1 ## Makefile for building ethereal.exe with Microsoft C and nmake
2 ## Use: nmake -f makefile.nmake
4 # $Id: Makefile.nmake,v 1.33 2000/04/29 07:34:35 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) /Iwiretap /I$(GTK_DIR)\gdk /I$(GTK_DIR)\gdk\win32 \
129 packet-osi-options.c \
130 packet-osi-options.h \
168 packet-smb-browse.c \
169 packet-smb-common.c \
170 packet-smb-common.h \
172 packet-smb-mailslot.c \
221 DISSECTOR_OBJECTS = \
231 packet-bootparams.obj \
242 packet-ethertype.obj \
262 packet-isis-clv.obj \
263 packet-isis-hello.obj \
264 packet-isis-lsp.obj \
265 packet-isis-snp.obj \
287 packet-osi-options.obj \
311 packet-smb-browse.obj \
312 packet-smb-common.obj \
313 packet-smb-logon.obj \
314 packet-smb-mailslot.obj \
315 packet-smb-pipe.obj \
344 ETHEREAL_COMMON_OBJECTS = \
348 dfilter-grammar.obj \
349 dfilter-scanner.obj \
367 $(DISSECTOR_OBJECTS) \
368 $(ETHEREAL_COMMON_OBJECTS) \
373 tethereal_OBJECTS = \
374 $(DISSECTOR_OBJECTS) \
375 $(ETHEREAL_COMMON_OBJECTS) \
386 ethereal_LIBS= wiretap\libwtap.lib gtk\libui.lib wsock32.lib user32.lib \
387 $(GTK_DIR)\gtk\gtk-$(GTK_VERSION).lib \
388 $(GTK_DIR)\gdk\win32\gdk-$(GTK_VERSION).lib \
389 $(GLIB_DIR)\glib-$(GLIB_VERSION).lib \
390 $(GLIB_DIR)\gmodule-$(GLIB_VERSION).lib \
391 $(PCAP_DIR)\lib\libpcap.lib
393 tethereal_LIBS= wiretap\libwtap.lib wsock32.lib user32.lib \
394 $(GLIB_DIR)\glib-$(GLIB_VERSION).lib \
395 $(GLIB_DIR)\gmodule-$(GLIB_VERSION).lib \
396 $(PCAP_DIR)\lib\libpcap.lib
398 editcap_LIBS= wiretap\libwtap.lib wsock32.lib user32.lib \
399 $(GLIB_DIR)\glib-$(GLIB_VERSION).lib \
400 $(GLIB_DIR)\gmodule-$(GLIB_VERSION).lib
402 EXECUTABLES=ethereal.exe tethereal.exe editcap.exe
404 RESOURCES=image\ethereal.res image\tethereal.res image\editcap.res
406 all: $(EXECUTABLES) $(RESOURCES)
408 ethereal.exe : config.h $(ethereal_OBJECTS) $(EXTRA_OBJECTS) image\ethereal.res wiretap gtk plugins
410 /OUT:ethereal.exe $(LDFLAGS) /SUBSYSTEM:windows $(ethereal_LIBS) $(ethereal_OBJECTS) $(EXTRA_OBJECTS) image\ethereal.res
413 tethereal.exe : config.h $(tethereal_OBJECTS) $(EXTRA_OBJECTS) image\tethereal.res wiretap plugins
415 /OUT:tethereal.exe $(LDFLAGS) /SUBSYSTEM:console $(tethereal_LIBS) $(tethereal_OBJECTS) $(EXTRA_OBJECTS) image\tethereal.res
418 editcap.exe : config.h editcap.obj getopt.obj wiretap image\editcap.res
420 /OUT:editcap.exe $(LDFLAGS) /SUBSYSTEM:console editcap.obj getopt.obj $(editcap_LIBS) image\editcap.res
423 config.h : config.h.win32
424 copy config.h.win32 $@
426 ps.c : rdps.exe print.ps
429 dfilter-scanner.obj : dfilter-scanner.c dfilter-grammar.h
431 dfilter-scanner.c : dfilter-scanner.l
432 $(LEX) -Pdfilter_ -odfilter-scanner.c dfilter-scanner.l
434 dfilter-grammar.c dfilter-grammar.h : dfilter-grammar.y
435 $(YACC) $(YACC_OPTS) -d -p dfilter_ dfilter-grammar.y -o dfilter-grammar.c
437 register.c: packet.c $(DISSECTOR_SOURCES)
438 @echo Making register.c
439 @sh make-reg-dotc . packet.c $(DISSECTOR_SOURCES)
442 rm -f $(ethereal_OBJECTS) $(EXTRA_OBJECTS) $(EXECUTABLES) \
443 tethereal.obj editcap.obj register.c dfilter-scanner.c \
444 dfilter-grammar.c dfilter-grammar.h rdps.obj
446 nmake -f Makefile.nmake clean
448 nmake -f Makefile.nmake clean
450 nmake -f Makefile.nmake clean
455 nmake -f Makefile.nmake
460 nmake -f Makefile.nmake
465 nmake -f Makefile.nmake