1 ## Makefile for building wireshark.exe with Microsoft C and nmake
2 ## Use: $(MAKE) /$(MAKEFLAGS) -f makefile.nmake
5 include ..\config.nmake
6 include ..\Makefile.nmake.inc
8 ############### no need to modify below this line #########
10 # We use GENERATED_CFLAGS to get around flex's non-LLP64-compliant output
14 /I.. $(GLIB_CFLAGS) $(GNUTLS_CFLAGS) \
15 /I$(PCAP_DIR)\WPCAP\LIBPCAP /I$(PCAP_DIR)\WPCAP\LIBPCAP\bpf \
16 /I$(PCAP_DIR)\WPCAP\LIBPCAP\lbl \
17 /I$(PCAP_DIR)\include $(AIRPCAP_CFLAGS) \
18 $(PORTAUDIO_CFLAGS) $(GEOIP_CFLAGS) $(WINSPARKLE_CFLAGS) \
21 CFLAGS=$(WARNINGS_ARE_ERRORS) $(GENERATED_CFLAGS)
24 $(CC) $(CFLAGS) $(WSUG_CFLAGS) -Fd.\ -c $<
26 include Makefile.common
29 # if you add files here, be sure to include them also in Makefile.am EXTRA_DIST
30 WIRESHARK_UI_OBJECTS = \
31 $(WIRESHARK_UI_SRC:.c=.obj) \
32 $(GENERATED_C_FILES:.c=.obj) \
33 $(DIRTY_GENERATED_C_FILES:.c=.obj)
35 RUNLEX=../tools/runlex.sh
37 text_import_scanner.h: text_import_scanner.c
38 text_import_scanner_lex.h: text_import_scanner.c
39 text_import_scanner.obj : text_import_scanner.c
40 $(CC) $(GENERATED_CFLAGS) $(WSUG_CFLAGS) -Fd.\ -c $?
42 libui.lib : ..\config.h $(WIRESHARK_UI_OBJECTS)
43 link /lib /out:libui.lib $(WIRESHARK_UI_OBJECTS)
46 rm -f $(WIRESHARK_UI_OBJECTS) $(WIRESHARK_TAP_OBJECTS) libui.lib \
47 *.nativecodeanalysis.xml *.pdb *.sbr \
48 doxygen.cfg html/*.* wireshark-tap-register-cache.pkl
49 if exist html rmdir html
53 maintainer-clean: distclean
54 rm -f $(GENERATED_FILES)
56 # convert doxygen.cfg.in to doxygen.cfg with stamped version info
57 doxygen.cfg: ..\config.nmake doxygen.cfg.in
59 sed -e s/@VERSION@/$(VERSION)/ \
65 $(DOXYGEN) doxygen.cfg
68 # MS html help compiler hhc returns 1 on success, but as nmake expects 0 it would stop here.
69 # the prepended -1 will raise the accepted error levels of nmake, so it will continue
72 -1 $(HHC) html\index.hhp
75 doxygen: doxygen.cfg doxygen-run doxygen.chm
77 checkapi: checkapi-base checkapi-todo
80 $(PERL) ../tools/checkAPIs.pl -g deprecated-gtk -build \
84 $(PERL) ../tools/checkAPIs.pl -M -g deprecated-gtk-todo -build \