1 ## Makefile for building ethereal.exe with Microsoft C and nmake
2 ## Use: $(MAKE) /$(MAKEFLAGS) -f makefile.nmake
6 include ..\config.nmake
8 ############### no need to modify below this line #########
10 CFLAGS=-DHAVE_CONFIG_H /I.. /I../wiretap $(GTK_CFLAGS) \
11 /I$(PCAP_DIR)\WPCAP\LIBPCAP /I$(PCAP_DIR)\WPCAP\LIBPCAP\bpf \
12 /I$(PCAP_DIR)\WPCAP\LIBPCAP\lbl \
13 /I$(PCAP_DIR)\include /I$(NET_SNMP_DIR)\include \
14 /I$(NET_SNMP_DIR)\win32 /Zm800 -D_U_="" -D_NEED_VAR_IMPORT_ $(LOCAL_CFLAGS)
16 CVARSDLL=-DWIN32 -DNULL=0 -D_MT -D_DLL
18 !IFDEF ETHEREAL_EUG_DIR
19 EUG_CFLAGS=-DETHEREAL_EUG_DIR
23 $(CC) $(CVARSDLL) $(CFLAGS) $(EUG_CFLAGS) -Fd.\ -c $<
25 include Makefile.common
28 # if you add files here, be sure to include them also in Makefile.am EXTRA_DIST
29 ETHEREAL_WIN32_GTK_SRC = \
34 ETHEREAL_TAP_OBJECTS = $(ETHEREAL_TAP_SRC:.c=.obj)
37 ETHEREAL_WIN32_GTK_OBJECTS = $(ETHEREAL_WIN32_GTK_SRC:.c=.obj)
40 libui.lib : ..\config.h $(ETHEREAL_WIN32_GTK_OBJECTS) $(ETHEREAL_TAP_OBJECTS)
41 link /lib /out:libui.lib $(ETHEREAL_WIN32_GTK_OBJECTS) $(ETHEREAL_TAP_OBJECTS)
43 ethereal-tap-register.c: $(ETHEREAL_TAP_SRC) ../make-tapreg-dotc Makefile.common
44 @echo Making ethereal-tap-register.c
45 @$(SH) ../make-tapreg-dotc ethereal-tap-register.c . $(ETHEREAL_TAP_SRC)
49 rm -f $(ETHEREAL_WIN32_GTK_OBJECTS) $(ETHEREAL_TAP_OBJECTS) libui.lib $(PDB_FILE) doxygen.cfg html/*.*
50 if exist html rmdir html
54 maintainer-clean: distclean
55 rm -f $(GENERATED_FILES)
57 # convert doxygen.cfg.in to doxygen.cfg with stamped version info
58 doxygen.cfg: ..\config.nmake doxygen.cfg.in
60 sed -e s/@VERSION@/$(VERSION)/ \
66 $(DOXYGEN) doxygen.cfg
69 # MS html help conpiler hhc returns 1 on success, but as nmake expects 0 it would stop here.
70 # the prepended -1 will raise the accepted error levels of nmake, so it will continue
73 -1 $(HHC) html\index.hhp
76 doxygen: doxygen.cfg doxygen-run doxygen.chm