Don't add the wiretap directory to the list of include directories.
[gd/wireshark/.git] / ui / Makefile.nmake
1 ## Makefile for building wireshark.exe with Microsoft C and nmake
2 ## Use: $(MAKE) /$(MAKEFLAGS) -f makefile.nmake
3 #
4
5 include ..\config.nmake
6 include ..\Makefile.nmake.inc
7
8 ############### no need to modify below this line #########
9
10 # We use GENERATED_CFLAGS to get around flex's non-LLP64-compliant output
11 GENERATED_CFLAGS=\
12         $(STANDARD_CFLAGS) \
13         /Zm800 \
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) \
19         $(HHC_CFLAGS)
20
21 CFLAGS=$(WARNINGS_ARE_ERRORS) $(GENERATED_CFLAGS)
22
23 .c.obj::
24         $(CC) $(CFLAGS) $(WSUG_CFLAGS) -Fd.\ -c $<
25
26 include Makefile.common
27
28
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)
34
35 RUNLEX=../tools/runlex.sh
36
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 $?
41
42 libui.lib       : ..\config.h $(WIRESHARK_UI_OBJECTS)
43         link /lib /out:libui.lib $(WIRESHARK_UI_OBJECTS)
44
45 clean:
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
50
51 distclean: clean
52
53 maintainer-clean: distclean
54         rm -f $(GENERATED_FILES)
55
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
62
63 doxygen-run:
64 !IFDEF DOXYGEN
65         $(DOXYGEN) doxygen.cfg
66 !ENDIF
67
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
74
75 doxygen: doxygen.cfg doxygen-run doxygen.chm
76
77 checkapi: checkapi-base checkapi-todo
78
79 checkapi-base:
80         $(PERL) ../tools/checkAPIs.pl -g deprecated-gtk -build \
81         $(WIRESHARK_UI_SRC)
82
83 checkapi-todo:
84         $(PERL) ../tools/checkAPIs.pl -M -g deprecated-gtk-todo -build \
85         $(WIRESHARK_UI_SRC)