1 ## Makefile for building ethereal.exe with Microsoft C and nmake
2 ## Use: nmake -f makefile.nmake
4 # $Id: Makefile.nmake,v 1.69 2000/12/23 08:06:14 guy Exp $
8 ############### no need to modify below this line #########
13 LDFLAGS = /NOLOGO /INCREMENTAL:no /MACHINE:I386 $(LOCAL_LDFLAGS)
15 CFLAGS=/MT -DHAVE_CONFIG_H $(LOCAL_CFLAGS) /I$(GLIB_DIR) /I$(GLIB_DIR)\gmodule \
16 /I$(GTK_DIR) /Iepan /Iwiretap /I$(GTK_DIR)\gdk /I$(GTK_DIR)\gdk\win32 \
20 $(CC) $(CFLAGS) -Fd$O\ -c $<
102 packet-osi-options.c \
131 packet-smb-browse.c \
132 packet-smb-common.c \
134 packet-smb-mailslot.c \
172 DISSECTOR_OBJECTS = $(DISSECTOR_SOURCES:.c=.obj)
174 ETHEREAL_COMMON_OBJECTS = \
190 $(DISSECTOR_OBJECTS) \
191 $(ETHEREAL_COMMON_OBJECTS) \
196 tethereal_OBJECTS = \
197 $(DISSECTOR_OBJECTS) \
198 $(ETHEREAL_COMMON_OBJECTS) \
206 ethereal_LIBS= wiretap\libwtap.lib gtk\libui.lib epan\ethereal.lib \
207 wsock32.lib user32.lib \
208 $(GTK_DIR)\gtk\gtk-$(GTK_VERSION).lib \
209 $(GTK_DIR)\gdk\gdk-$(GTK_VERSION).lib \
210 $(GLIB_DIR)\glib-$(GLIB_VERSION).lib \
211 $(GLIB_DIR)\gmodule\gmodule-$(GLIB_VERSION).lib \
212 $(PCAP_DIR)\lib\libpcap.lib
214 tethereal_LIBS= wiretap\libwtap.lib epan\ethereal.lib \
215 wsock32.lib user32.lib \
216 $(GLIB_DIR)\glib-$(GLIB_VERSION).lib \
217 $(GLIB_DIR)\gmodule\gmodule-$(GLIB_VERSION).lib \
218 $(PCAP_DIR)\lib\libpcap.lib
220 editcap_LIBS= wiretap\libwtap.lib wsock32.lib user32.lib \
221 $(GLIB_DIR)\glib-$(GLIB_VERSION).lib \
222 $(GLIB_DIR)\gmodule\gmodule-$(GLIB_VERSION).lib
224 EXECUTABLES=ethereal.exe tethereal.exe editcap.exe
226 RESOURCES=image\ethereal.res image\tethereal.res image\editcap.res
228 all: wiretap gtk epan $(EXECUTABLES) $(RESOURCES)
230 ethereal.exe : config.h $(ethereal_OBJECTS) $(EXTRA_OBJECTS) image\ethereal.res wiretap\libwtap.lib gtk\libui.lib plugins
233 /OUT:ethereal.exe $(LDFLAGS) /SUBSYSTEM:windows $(ethereal_LIBS) $(ethereal_OBJECTS) $(EXTRA_OBJECTS) image\ethereal.res
236 tethereal.exe : config.h $(tethereal_OBJECTS) $(EXTRA_OBJECTS) image\tethereal.res wiretap\libwtap.lib plugins
239 /OUT:tethereal.exe $(LDFLAGS) /SUBSYSTEM:console $(tethereal_LIBS) $(tethereal_OBJECTS) $(EXTRA_OBJECTS) image\tethereal.res
242 editcap.exe : config.h editcap.obj getopt.obj wiretap\libwtap.lib image\editcap.res
245 /OUT:editcap.exe $(LDFLAGS) /SUBSYSTEM:console editcap.obj getopt.obj $(editcap_LIBS) image\editcap.res
248 config.h : config.h.win32
249 copy config.h.win32 $@
251 ps.c : rdps.exe print.ps
254 packet-ncp2222.c : ncp2222.py
255 $(PYTHON) ncp2222.py > packet-ncp2222.c
257 register.c: $(DISSECTOR_SOURCES)
258 @echo Making register.c
259 @sh make-reg-dotc . $(DISSECTOR_SOURCES)
262 rm -f $(ethereal_OBJECTS) $(EXTRA_OBJECTS) $(EXECUTABLES) \
263 tethereal.obj editcap.obj register.c dfilter-scanner.c \
264 dfilter-grammar.c dfilter-grammar.h rdps.obj
266 nmake -f Makefile.nmake clean
268 nmake -f Makefile.nmake clean
270 nmake -f Makefile.nmake clean
272 nmake -f Makefile.nmake clean
277 nmake -f Makefile.nmake
282 nmake -f Makefile.nmake
287 nmake -f Makefile.nmake
292 nmake -f Makefile.nmake