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.. /I../wiretap $(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
31 $(CAPCHILD_SRC:.c=.obj)
33 RUNLEX=../tools/runlex.sh
35 libcapchild.lib : ..\config.h $(CAPCHILD_OBJECTS)
36 link /lib /out:libcapchild.lib $(CAPCHILD_OBJECTS)
39 rm -f $(CAPCHILD_OBJECTS) $(WIRESHARK_TAP_OBJECTS) libcapchild.lib \
40 *.nativecodeanalysis.xml *.pdb *.sbr \
41 doxygen.cfg html/*.* wireshark-tap-register-cache.pkl
42 if exist html rmdir html
46 maintainer-clean: distclean
47 rm -f $(GENERATED_FILES)
49 # convert doxygen.cfg.in to doxygen.cfg with stamped version info
50 doxygen.cfg: ..\config.nmake doxygen.cfg.in
52 sed -e s/@VERSION@/$(VERSION)/ \
58 $(DOXYGEN) doxygen.cfg
61 # MS html help compiler hhc returns 1 on success, but as nmake expects 0 it would stop here.
62 # the prepended -1 will raise the accepted error levels of nmake, so it will continue
65 -1 $(HHC) html\index.hhp
68 doxygen: doxygen.cfg doxygen-run doxygen.chm
70 checkapi: checkapi-base checkapi-todo
73 $(PERL) ../tools/checkAPIs.pl -g deprecated-gtk -build \
77 $(PERL) ../tools/checkAPIs.pl -M -g deprecated-gtk-todo -build \