1 ## Makefile for building wireshark.exe with Microsoft C and nmake
2 ## Use: $(MAKE) /$(MAKEFLAGS) -f makefile.nmake
6 include ..\config.nmake
7 include ..\Makefile.nmake.inc
9 ############### no need to modify below this line #########
11 # We use GENERATED_CFLAGS to get around flex's non-LLP64-compliant output
15 /I.. /I../wiretap $(GLIB_CFLAGS) $(GNUTLS_CFLAGS) \
16 /I$(PCAP_DIR)\WPCAP\LIBPCAP /I$(PCAP_DIR)\WPCAP\LIBPCAP\bpf \
17 /I$(PCAP_DIR)\WPCAP\LIBPCAP\lbl \
18 /I$(PCAP_DIR)\include $(AIRPCAP_CFLAGS) \
19 $(PORTAUDIO_CFLAGS) $(GEOIP_CFLAGS) $(WINSPARKLE_CFLAGS) \
22 CFLAGS=$(WARNINGS_ARE_ERRORS) $(GENERATED_CFLAGS)
25 $(CC) $(CFLAGS) $(WSUG_CFLAGS) -Fd.\ -c $<
27 include Makefile.common
30 # if you add files here, be sure to include them also in Makefile.am EXTRA_DIST
31 WIRESHARK_UI_OBJECTS = \
32 $(WIRESHARK_UI_SRC:.c=.obj) \
33 $(GENERATED_C_FILES:.c=.obj) \
34 $(DIRTY_GENERATED_C_FILES:.c=.obj)
36 RUNLEX=..\tools\runlex.sh
38 text_import_scanner.h: text_import_scanner.c
39 text_import_scanner_lex.h: text_import_scanner.c
40 text_import_scanner.obj : text_import_scanner.c
41 $(CC) $(GENERATED_CFLAGS) $(WSUG_CFLAGS) -Fd.\ -c $?
43 libui.lib : ..\config.h $(WIRESHARK_UI_OBJECTS)
44 link /lib /out:libui.lib $(WIRESHARK_UI_OBJECTS)
47 rm -f $(WIRESHARK_UI_OBJECTS) $(WIRESHARK_TAP_OBJECTS) libui.lib *.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 \