aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.nmake
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2005-11-28 08:54:52 +0000
committerUlf Lamping <ulf.lamping@web.de>2005-11-28 08:54:52 +0000
commitfc61a1de255a9521b18ffc4db3320bd498b538ac (patch)
tree83654d0b55d2a4df2d46fef04d91a8c8bd1bd86a /Makefile.nmake
parent1a77239007047afeb7176abd99a723e7270ecd0e (diff)
first steps towards a separated capture tool, working title "dumpcap"
personal backup only, not meant for public testing! I've copied main.c into dumpcap.c and carved out all things not needed currently won't work as a command line tool, capture_loop.c wants an input pipe console output is also very ugly and the whole code needs a lot of further cleanup shouldn't break the unix build as I've only changed the nmake files so far, but who knows ... svn path=/trunk/; revision=16615
Diffstat (limited to 'Makefile.nmake')
-rw-r--r--Makefile.nmake25
1 files changed, 23 insertions, 2 deletions
diff --git a/Makefile.nmake b/Makefile.nmake
index b8440650f8..cff02abb31 100644
--- a/Makefile.nmake
+++ b/Makefile.nmake
@@ -31,6 +31,8 @@ ethereal_OBJECTS = $(ethereal_SOURCES:.c=.obj)
tethereal_OBJECTS = $(tethereal_SOURCES:.c=.obj)
dftest_OBJECTS = $(dftest_SOURCES:.c=.obj)
+dumpcap_OBJECTS = $(dumpcap_SOURCES:.c=.obj)
+
randpkt_OBJECTS = $(randpkt_SOURCES:.c=.obj)
command_line_OBJECTS = setargv.obj
@@ -83,6 +85,18 @@ mergecap_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
wsock32.lib user32.lib \
$(GLIB_LIBS)
+dumpcap_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
+ wsock32.lib user32.lib shell32.lib \
+ $(GLIB_LIBS) \
+ $(NET_SNMP_DIR)\win32\lib\release\netsnmp.lib \
+!IFDEF ENABLE_LIBETHEREAL
+ epan\libethereal.lib \
+!ELSE
+ epan\dissectors\dissectors.lib \
+ epan\ethereal.lib \
+ epan\dfilter\dfilter.lib epan\ftypes\ftypes.lib
+!ENDIF
+
dftest_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
wsock32.lib user32.lib \
$(GLIB_LIBS) \
@@ -104,11 +118,11 @@ randpkt_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
$(NET_SNMP_DIR)\win32\lib\release\netsnmp.lib
EXECUTABLES=ethereal.exe ethereal-gtk2.exe tethereal.exe \
- capinfos.exe editcap.exe mergecap.exe text2pcap.exe randpkt.exe
+ capinfos.exe editcap.exe mergecap.exe text2pcap.exe randpkt.exe dumpcap.exe
RESOURCES=image\ethereal.res image\libethereal.res image\tethereal.res \
image\capinfos.res image\editcap.res image\mergecap.res \
- image\text2pcap.res image\wiretap.res
+ image\text2pcap.res image\wiretap.res image\dumpcap.res
all: config.h tools image wiretap epan $(EXECUTABLES) $(RESOURCES) doc
@@ -195,6 +209,13 @@ randpkt.exe : $(randpkt_OBJECTS)
/OUT:randpkt.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console $(randpkt_LIBS) $(randpkt_OBJECTS) $(command_line_OBJECTS)
<<
+dumpcap.exe : config.h svnversion.h $(dumpcap_OBJECTS) epan image\dumpcap.res wiretap\wiretap-$(WTAP_VERSION).lib
+ @echo Linking $@
+ $(LINK) @<<
+ /OUT:dumpcap.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console $(dumpcap_LIBS) $(dumpcap_OBJECTS) image\dumpcap.res
+<<
+
+
config.h : config.h.win32 config.nmake
sed -e s/@VERSION@/$(VERSION)/ \
-e "s/@HAVE_GNU_ADNS@/$(ADNS_CONFIG)/" \