Witness: enum witness_notifyResponse_type
[wireshark-wip.git] / ui / Makefile.nmake
blob7613b81b84ad1bf05ac0c244a87e2b274c52c8a9
1 ## Makefile for building wireshark.exe with Microsoft C and nmake
2 ## Use: $(MAKE) /$(MAKEFLAGS) -f makefile.nmake
4 # $Id$
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
12 GENERATED_CFLAGS=\
13         $(STANDARD_CFLAGS) \
14         /Zm800 \
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) \
20         $(HHC_CFLAGS)
22 CFLAGS=$(WARNINGS_ARE_ERRORS) $(GENERATED_CFLAGS)
24 .c.obj::
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)
46 clean:
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
51 distclean: clean
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
58 !IFDEF DOXYGEN
59         sed -e s/@VERSION@/$(VERSION)/ \
60             < doxygen.cfg.in > $@
61 !ENDIF
63 doxygen-run:
64 !IFDEF DOXYGEN
65         $(DOXYGEN) doxygen.cfg
66 !ENDIF
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
70 doxygen.chm:
71 !IFDEF HHC
72         -1 $(HHC) html\index.hhp
73 !ENDIF
75 doxygen: doxygen.cfg doxygen-run doxygen.chm
77 checkapi: checkapi-base checkapi-todo
79 checkapi-base:
80         $(PERL) ../tools/checkAPIs.pl -g deprecated-gtk -build \
81         $(WIRESHARK_UI_SRC)
83 checkapi-todo:
84         $(PERL) ../tools/checkAPIs.pl -M -g deprecated-gtk-todo -build \
85         $(WIRESHARK_UI_SRC)