Add infrastructure for display filter functions.
[metze/wireshark/wip.git] / epan / dfilter / Makefile.nmake
index 3c5474e7b65c9197bea5d900145673da33599b07..38ac1d7c53ca879c3d7bf09c663af1e72d49721d 100644 (file)
@@ -1,7 +1,7 @@
 ## Makefile for building ethereal.exe with Microsoft C and nmake
 ## Use: $(MAKE) /$(MAKEFLAGS) -f makefile.nmake
 #
-# $Id: Makefile.nmake,v 1.12 2004/01/22 19:27:59 ulfl Exp $
+# $Id$
 
 include ..\..\config.nmake
 
@@ -20,6 +20,7 @@ CVARSDLL=-DWIN32 -DNULL=0 -D_MT -D_DLL
 
 OBJECTS = \
        dfilter.obj             \
+       dfunctions.obj  \
        dfvm.obj                \
        drange.obj              \
        gencode.obj             \
@@ -27,6 +28,7 @@ OBJECTS = \
        grammar.obj             \
        scanner.obj             \
        semcheck.obj            \
+       sttype-function.obj     \
        sttype-integer.obj      \
        sttype-pointer.obj      \
        sttype-range.obj        \
@@ -35,21 +37,32 @@ OBJECTS = \
        syntax-tree.obj
 
 dfilter.lib    : $(OBJECTS)
-       lib /out:dfilter.lib $(OBJECTS)
+       link /lib /out:dfilter.lib $(OBJECTS)
 
-$(OBJECTS): ..\config.h
+$(OBJECTS): ..\..\config.h
 
-..\config.h:
-       cd ..
-       $(MAKE) -f makefile.nmake config.h
-       cd dfilter
+..\..\config.h: ..\..\config.h.win32 ..\..\config.nmake
+       cd ..\..
+       $(MAKE) -f Makefile.nmake config.h
+       cd epan\dfilter
 
 clean:
        rm -f $(OBJECTS) dfilter.lib $(PDB_FILE)
 
+#
+# We remove the generated files with "distclean" because one of them,
+# "scanner.c", needs different #includes for UN*X and Windows
+# (UN*X versions of Flex make it include <unistd.h>, but that's a
+# UN*X-only header), so if you're going to build from source, you need
+# to build "scanner.c" from "scanner.l" with Flex.
+# This might not be necessary for "grammar.{c,h}", but we handle them
+# the same for now.
+#
 distclean: clean
        rm -f scanner.c grammar.c grammar.h grammar.out
 
+maintainer-clean: distclean
+
 scanner.c : scanner.l
        $(LEX) -Pdf_ -oscanner.c scanner.l