packet-smb2: fix lease epoch fields
[metze/wireshark/wip.git] / ui / Makefile.nmake
1 ## Makefile for building wireshark.exe with Microsoft C and nmake
2 ## Use: $(MAKE) /$(MAKEFLAGS) -f makefile.nmake
3 #
4 # $Id$
5
6 include ..\config.nmake
7 include ..\Makefile.nmake.inc
8
9 ############### no need to modify below this line #########
10
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)
21
22 CFLAGS=$(WARNINGS_ARE_ERRORS) $(GENERATED_CFLAGS)
23
24 .c.obj::
25         $(CC) $(CFLAGS) $(WSUG_CFLAGS) -Fd.\ -c $<
26
27 include Makefile.common
28
29
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)
35
36 RUNLEX=..\tools\runlex.sh
37
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 $?
42
43 libui.lib       : ..\config.h $(WIRESHARK_UI_OBJECTS)
44         link /lib /out:libui.lib $(WIRESHARK_UI_OBJECTS)
45
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
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)