summaryrefslogtreecommitdiff
path: root/epan/Makefile.nmake
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2000-10-11 07:35:02 +0000
committerGuy Harris <guy@alum.mit.edu>2000-10-11 07:35:02 +0000
commitfaf70584f2eaa0cafb8f40a411bcbfc61264ffca (patch)
treeaecc3ed74fa0c03d46b0b72f5369bb6c9787c799 /epan/Makefile.nmake
parent54ecbe2d4e4d1eaf2d1e8ae0789d4378f3b9c874 (diff)
downloadwireshark-faf70584f2eaa0cafb8f40a411bcbfc61264ffca.tar.gz
Fix it to build on Windows.
svn path=/trunk/; revision=2488
Diffstat (limited to 'epan/Makefile.nmake')
-rw-r--r--epan/Makefile.nmake43
1 files changed, 43 insertions, 0 deletions
diff --git a/epan/Makefile.nmake b/epan/Makefile.nmake
new file mode 100644
index 0000000000..b2228468fe
--- /dev/null
+++ b/epan/Makefile.nmake
@@ -0,0 +1,43 @@
+include ..\config.nmake
+
+############### no need to modify below this line #########
+
+CFLAGS=/MT /DHAVE_CONFIG_H /I. /I.. /I../wiretap \
+ /I$(GLIB_DIR) /I$(GTK_DIR) /I$(GLIB_DIR)/gmodule \
+ /I$(GTK_DIR)\gdk /I$(GTK_DIR)\gdk\win32 \
+ /I$(PCAP_DIR)\include $(LOCAL_CFLAGS)
+
+{$S}.c{$O}.obj::
+ $(CC) $(CFLAGS) -Fd$O\ -c $<
+
+OBJECTS=conversation.obj \
+ dfilter-grammar.obj \
+ dfilter-scanner.obj \
+ dfilter.obj \
+ epan.obj \
+ except.obj \
+ filesystem.obj \
+ ipv4.obj \
+ packet.obj \
+ plugins.obj \
+ proto.obj \
+ resolv.obj \
+ strutil.obj \
+ tvbuff.obj \
+
+libepan.lib : ..\config.h $(OBJECTS)
+ lib /out:libepan.lib $(OBJECTS)
+
+dfilter-scanner.obj : dfilter-scanner.c dfilter-grammar.h
+
+dfilter-scanner.c : dfilter-scanner.l
+ $(LEX) -Pdfilter_ -odfilter-scanner.c dfilter-scanner.l
+
+dfilter-grammar.c dfilter-grammar.h : dfilter-grammar.y
+ $(YACC) $(YACC_OPTS) -d -p dfilter_ dfilter-grammar.y -o dfilter-grammar.c
+
+..\config.h : ..\config.h.win32
+ copy ..\config.h.win32 ..\config.h
+
+clean:
+ rm -f $(OBJECTS) libepan.lib