1 ## Makefile for building ethereal.exe with Microsoft C and nmake
2 ## Use: nmake -f makefile.nmake
4 # $Id: Makefile.nmake,v 1.40 2000/05/29 20:11:23 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 \
20 $(CC) $(CFLAGS) -Fd$O\ -c $<
90 packet-osi-options.c \
114 packet-smb-browse.c \
115 packet-smb-common.c \
117 packet-smb-mailslot.c \
147 DISSECTOR_OBJECTS = $(DISSECTOR_SOURCES:.c=.obj)
149 ETHEREAL_COMMON_OBJECTS = \
153 dfilter-grammar.obj \
154 dfilter-scanner.obj \
174 $(DISSECTOR_OBJECTS) \
175 $(ETHEREAL_COMMON_OBJECTS) \
180 tethereal_OBJECTS = \
181 $(DISSECTOR_OBJECTS) \
182 $(ETHEREAL_COMMON_OBJECTS) \
193 ethereal_LIBS= wiretap\libwtap.lib gtk\libui.lib wsock32.lib user32.lib \
194 $(GTK_DIR)\gtk\gtk-$(GTK_VERSION).lib \
195 $(GTK_DIR)\gdk\win32\gdk-$(GTK_VERSION).lib \
196 $(GLIB_DIR)\glib-$(GLIB_VERSION).lib \
197 $(GLIB_DIR)\gmodule-$(GLIB_VERSION).lib \
198 $(PCAP_DIR)\lib\libpcap.lib
200 tethereal_LIBS= wiretap\libwtap.lib wsock32.lib user32.lib \
201 $(GLIB_DIR)\glib-$(GLIB_VERSION).lib \
202 $(GLIB_DIR)\gmodule-$(GLIB_VERSION).lib \
203 $(PCAP_DIR)\lib\libpcap.lib
205 editcap_LIBS= wiretap\libwtap.lib wsock32.lib user32.lib \
206 $(GLIB_DIR)\glib-$(GLIB_VERSION).lib \
207 $(GLIB_DIR)\gmodule-$(GLIB_VERSION).lib
209 EXECUTABLES=ethereal.exe tethereal.exe editcap.exe
211 RESOURCES=image\ethereal.res image\tethereal.res image\editcap.res
213 all: $(EXECUTABLES) $(RESOURCES)
215 ethereal.exe : config.h $(ethereal_OBJECTS) $(EXTRA_OBJECTS) image\ethereal.res wiretap gtk plugins
217 /OUT:ethereal.exe $(LDFLAGS) /SUBSYSTEM:windows $(ethereal_LIBS) $(ethereal_OBJECTS) $(EXTRA_OBJECTS) image\ethereal.res /NODEFAULTLIB:libcmt
220 tethereal.exe : config.h $(tethereal_OBJECTS) $(EXTRA_OBJECTS) image\tethereal.res wiretap plugins
222 /OUT:tethereal.exe $(LDFLAGS) /SUBSYSTEM:console $(tethereal_LIBS) $(tethereal_OBJECTS) $(EXTRA_OBJECTS) image\tethereal.res /NODEFAULTLIB:libcmt
225 editcap.exe : config.h editcap.obj getopt.obj wiretap image\editcap.res
227 /OUT:editcap.exe $(LDFLAGS) /SUBSYSTEM:console editcap.obj getopt.obj $(editcap_LIBS) image\editcap.res
230 config.h : config.h.win32
231 copy config.h.win32 $@
233 ps.c : rdps.exe print.ps
236 dfilter-scanner.obj : dfilter-scanner.c dfilter-grammar.h
238 dfilter-scanner.c : dfilter-scanner.l
239 $(LEX) -Pdfilter_ -odfilter-scanner.c dfilter-scanner.l
241 dfilter-grammar.c dfilter-grammar.h : dfilter-grammar.y
242 $(YACC) $(YACC_OPTS) -d -p dfilter_ dfilter-grammar.y -o dfilter-grammar.c
244 register.c: packet.c $(DISSECTOR_SOURCES)
245 @echo Making register.c
246 @sh make-reg-dotc . packet.c $(DISSECTOR_SOURCES)
249 rm -f $(ethereal_OBJECTS) $(EXTRA_OBJECTS) $(EXECUTABLES) \
250 tethereal.obj editcap.obj register.c dfilter-scanner.c \
251 dfilter-grammar.c dfilter-grammar.h rdps.obj
253 nmake -f Makefile.nmake clean
255 nmake -f Makefile.nmake clean
257 nmake -f Makefile.nmake clean
262 nmake -f Makefile.nmake
267 nmake -f Makefile.nmake
272 nmake -f Makefile.nmake