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) \
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 TSHARK_TAP_OBJECTS = $(TSHARK_TAP_SRC:.c=.obj)
34 libcliui.lib : ..\..\config.h $(TSHARK_TAP_OBJECTS) tshark-tap-register.obj
35 link /lib /out:libcliui.lib $(TSHARK_TAP_OBJECTS) tshark-tap-register.obj
38 # Build "tshark-tap-register.c", which contains a function
39 # "register_all_tap_listeners()"
40 # that calls the register routines for all TShark tap listeners.
42 # We do this by grepping through sources.
44 # The shell script runs slowly, as multiple greps and seds are run
45 # for each input file; this is especially slow on Windows. Therefore,
46 # if Python is present (as indicated by PYTHON being defined), we run
47 # a faster Python script to do that work instead.
49 # Formatting conventions: The name of the tap_listener_register_*
50 # routines must start in column zero, or must be preceded only by
51 # "void " starting in column zero, and must not be inside #if.
54 tshark-tap-register.c: $(TSHARK_TAP_SRC) ..\..\tools\make-tap-reg.py
55 @echo Making tshark-tap-register.c using python
56 @$(PYTHON) ..\..\tools\make-tap-reg.py . tshark-taps $(TSHARK_TAP_SRC)
58 # The first argument is the name of the file to write.
59 # The second argument is the directory in which the source files live.
60 # All subsequent arguments are the files to scan.
61 tshark-tap-register.c: $(TSHARK_TAP_SRC) ..\..\tools\make-tapreg-dotc
62 @echo Making tshark-tap-register.c
63 @$(SH) ../../tools/make-tapreg-dotc tshark-tap-register.c . $(TSHARK_TAP_SRC)
67 rm -f $(TSHARK_TAP_OBJECTS) tshark-tap-register.obj libcliui.lib *.pdb \
68 *.sbr doxygen.cfg html/*.* tshark-tap-register-cache.pkl \
69 tshark-tap-register.c-tmp
70 if exist html rmdir html
74 maintainer-clean: distclean
75 rm -f $(GENERATED_FILES)
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 \