aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/Makefile.nmake
diff options
context:
space:
mode:
authorGilbert Ramirez <gram@alumni.rice.edu>2001-03-23 02:05:29 +0000
committerGilbert Ramirez <gram@alumni.rice.edu>2001-03-23 02:05:29 +0000
commite108afe2bb9c855ad17700d9e177f6f59f68ee8b (patch)
tree8a6e6a175e5f3a7bf451abf5d15c0107ba43378c /wiretap/Makefile.nmake
parent2218ce1220aba62c515952ac2d79844bccea1ba9 (diff)
The Win32 build builds wiretap as a DLL and requires WinPcap 2.1.
svn path=/trunk/; revision=3163
Diffstat (limited to 'wiretap/Makefile.nmake')
-rw-r--r--wiretap/Makefile.nmake34
1 files changed, 28 insertions, 6 deletions
diff --git a/wiretap/Makefile.nmake b/wiretap/Makefile.nmake
index 18b43d219d..7eb25c52b5 100644
--- a/wiretap/Makefile.nmake
+++ b/wiretap/Makefile.nmake
@@ -1,15 +1,19 @@
#
-# $Id: Makefile.nmake,v 1.16 2001/02/22 22:03:31 guy Exp $
+# $Id: Makefile.nmake,v 1.17 2001/03/23 02:05:29 gram Exp $
#
include ..\config.nmake
+include <win32.mak>
############### no need to modify below this line #########
-CFLAGS=/MT /DHAVE_CONFIG_H /I$(GLIB_DIR) $(LOCAL_CFLAGS)
+CFLAGS=-DHAVE_CONFIG_H /I$(GLIB_DIR) $(LOCAL_CFLAGS)
+
+CVARSDLL=-DWIN32 -DNULL=0 -D_MT -D_DLL
+
{$S}.c{$O}.obj::
- $(CC) $(CFLAGS) -Fd$O\ -c $<
+ $(CC) $(CVARSDLL) $(CFLAGS) -Fd$O\ -c $<
OBJECTS=ascend-grammar.obj \
ascend-scanner.obj \
@@ -33,8 +37,23 @@ OBJECTS=ascend-grammar.obj \
toshiba.obj \
wtap.obj
-libwtap.lib : config.h $(OBJECTS)
- lib /out:libwtap.lib $(OBJECTS)
+
+wiretap_LIBS = \
+ $(GLIB_DIR)\glib-$(GLIB_VERSION).lib
+
+all: wiretap-$(WTAP_VERSION).dll
+
+wiretap-$(WTAP_VERSION).lib: wiretap-$(WTAP_VERSION).dll
+wiretap-$(WTAP_VERSION).exp: wiretap-$(WTAP_VERSION).dll
+
+wiretap-$(WTAP_VERSION).dll : $(OBJECTS) wtap.def
+ $(link) $(dlllflags) $(conlibsdll) \
+ $(LOCAL_LDFLAGS) \
+ /DEF:wtap.def /OUT:wiretap-$(WTAP_VERSION).dll \
+ /IMPLIB:wiretap-$(WTAP_VERSION).lib \
+ $(OBJECTS) $(wiretap_LIBS)
+
+$(OBJECTS): config.h
ascend-grammar.c ascend-grammar.h : ascend-grammar.y
$(YACC) $(YACC_OPTS) -d -p ascend ascend-grammar.y -o ascend-grammar.c
@@ -49,4 +68,7 @@ config.h : config.h.win32
copy config.h.win32 $@
clean :
- rm -f $(OBJECTS) libwtap.lib ascend-grammar.c ascend-grammar.h ascend-scanner.c
+ rm -f $(OBJECTS) ascend-grammar.c ascend-grammar.h ascend-scanner.c \
+ wiretap-$(WTAP_VERSION).lib \
+ wiretap-$(WTAP_VERSION).exp \
+ wiretap-$(WTAP_VERSION).dll