1 ## Makefile for building ethereal.exe with Microsoft C and nmake
2 ## Use: nmake -f makefile.nmake
4 # $Id: Makefile.nmake,v 1.24 2000/04/12 21:51:27 gram Exp $
8 ############### no need to modify below this line #########
13 LDFLAGS = /NOLOGO /SUBSYSTEM:console /INCREMENTAL:no /MACHINE:I386 \
16 CFLAGS=/MT -DHAVE_CONFIG_H $(LOCAL_CFLAGS) /I$(GLIB_DIR) /I$(GLIB_DIR)\gmodule \
17 /I$(GTK_DIR) /Iwiretap /I$(GTK_DIR)\gdk /I$(GTK_DIR)\gdk\win32 \
30 packet-bootparams.obj \
59 packet-isis-hello.obj \
103 packet-smb-browse.obj \
104 packet-smb-common.obj \
105 packet-smb-logon.obj \
106 packet-smb-mailslot.obj \
107 packet-smb-pipe.obj \
135 ETHEREAL_COMMON_OBJECTS = \
139 dfilter-grammar.obj \
140 dfilter-scanner.obj \
159 $(DISSECTOR_OBJECTS) \
160 $(ETHEREAL_COMMON_OBJECTS) \
165 tethereal_OBJECTS = \
166 $(DISSECTOR_OBJECTS) \
167 $(ETHEREAL_COMMON_OBJECTS) \
178 ethereal_LIBS= wiretap\libwtap.lib gtk\libui.lib wsock32.lib user32.lib \
179 $(GTK_DIR)\gtk\gtk-$(GTK_VERSION).lib \
180 $(GTK_DIR)\gdk\win32\gdk-$(GTK_VERSION).lib \
181 $(GLIB_DIR)\glib-$(GLIB_VERSION).lib \
182 $(GLIB_DIR)\gmodule-$(GLIB_VERSION).lib \
183 $(PCAP_DIR)\lib\libpcap.lib
185 tethereal_LIBS= wiretap\libwtap.lib wsock32.lib user32.lib \
186 $(GLIB_DIR)\glib-$(GLIB_VERSION).lib \
187 $(GLIB_DIR)\gmodule-$(GLIB_VERSION).lib \
188 $(PCAP_DIR)\lib\libpcap.lib
190 editcap_LIBS= wiretap\libwtap.lib wsock32.lib user32.lib \
191 $(GLIB_DIR)\glib-$(GLIB_VERSION).lib \
192 $(GLIB_DIR)\gmodule-$(GLIB_VERSION).lib
194 EXECUTABLES=ethereal.exe tethereal.exe editcap.exe
198 ethereal.exe : config.h $(ethereal_OBJECTS) $(EXTRA_OBJECTS) wiretap gtk plugins
200 /OUT:ethereal.exe $(LDFLAGS) $(ethereal_LIBS) $(ethereal_OBJECTS) $(EXTRA_OBJECTS)
203 tethereal.exe : config.h $(tethereal_OBJECTS) $(EXTRA_OBJECTS) wiretap plugins
205 /OUT:tethereal.exe $(LDFLAGS) $(tethereal_LIBS) $(tethereal_OBJECTS) $(EXTRA_OBJECTS)
208 editcap.exe : config.h editcap.obj getopt.obj wiretap
210 /OUT:editcap.exe $(LDFLAGS) editcap.obj getopt.obj $(editcap_LIBS)
213 config.h : config.h.win32
214 copy config.h.win32 $@
216 ps.c : rdps.exe print.ps
219 dfilter-scanner.obj : dfilter-scanner.c dfilter-grammar.h
221 dfilter-scanner.c : dfilter-scanner.l
222 $(LEX) -Pdfilter_ -odfilter-scanner.c dfilter-scanner.l
224 dfilter-grammar.c dfilter-grammar.h : dfilter-grammar.y
225 $(YACC) $(YACC_OPTS) -d -p dfilter_ dfilter-grammar.y -o dfilter-grammar.c
228 # TODO: Create register.c
232 rm -f $(ethereal_OBJECTS) $(EXTRA_OBJECTS) $(EXECUTABLES) tethereal.obj editcap.obj
234 nmake -f Makefile.nmake clean
236 nmake -f Makefile.nmake clean
238 nmake -f Makefile.nmake clean
243 nmake -f Makefile.nmake
248 nmake -f Makefile.nmake
253 nmake -f Makefile.nmake