2012-02-18 23:55:41 +00:00
|
|
|
## Makefile for building wireshark.exe with Microsoft C and nmake
|
|
|
|
## Use: $(MAKE) /$(MAKEFLAGS) -f makefile.nmake
|
|
|
|
#
|
|
|
|
|
|
|
|
include ..\config.nmake
|
|
|
|
include ..\Makefile.nmake.inc
|
|
|
|
|
|
|
|
############### no need to modify below this line #########
|
|
|
|
|
|
|
|
# We use GENERATED_CFLAGS to get around flex's non-LLP64-compliant output
|
|
|
|
GENERATED_CFLAGS=\
|
|
|
|
$(STANDARD_CFLAGS) \
|
2013-03-01 23:53:11 +00:00
|
|
|
/Zm800 \
|
2012-02-19 23:28:31 +00:00
|
|
|
/I.. /I../wiretap $(GLIB_CFLAGS) $(GNUTLS_CFLAGS) \
|
2012-02-18 23:55:41 +00:00
|
|
|
/I$(PCAP_DIR)\WPCAP\LIBPCAP /I$(PCAP_DIR)\WPCAP\LIBPCAP\bpf \
|
|
|
|
/I$(PCAP_DIR)\WPCAP\LIBPCAP\lbl \
|
|
|
|
/I$(PCAP_DIR)\include $(AIRPCAP_CFLAGS) \
|
2013-02-19 22:21:17 +00:00
|
|
|
$(PORTAUDIO_CFLAGS) $(GEOIP_CFLAGS) $(WINSPARKLE_CFLAGS) \
|
2013-09-09 21:09:00 +00:00
|
|
|
$(HHC_CFLAGS)
|
2012-02-18 23:55:41 +00:00
|
|
|
|
|
|
|
CFLAGS=$(WARNINGS_ARE_ERRORS) $(GENERATED_CFLAGS)
|
|
|
|
|
|
|
|
.c.obj::
|
2012-02-24 16:23:38 +00:00
|
|
|
$(CC) $(CFLAGS) $(WSUG_CFLAGS) -Fd.\ -c $<
|
2012-02-18 23:55:41 +00:00
|
|
|
|
|
|
|
include Makefile.common
|
|
|
|
|
|
|
|
|
|
|
|
# if you add files here, be sure to include them also in Makefile.am EXTRA_DIST
|
|
|
|
WIRESHARK_UI_OBJECTS = \
|
|
|
|
$(WIRESHARK_UI_SRC:.c=.obj) \
|
2012-09-15 08:19:39 +00:00
|
|
|
$(GENERATED_C_FILES:.c=.obj) \
|
|
|
|
$(DIRTY_GENERATED_C_FILES:.c=.obj)
|
2012-02-18 23:55:41 +00:00
|
|
|
|
2014-07-12 14:59:56 +00:00
|
|
|
RUNLEX=../tools/runlex.sh
|
2012-09-15 08:43:27 +00:00
|
|
|
|
|
|
|
text_import_scanner.h: text_import_scanner.c
|
|
|
|
text_import_scanner_lex.h: text_import_scanner.c
|
|
|
|
text_import_scanner.obj : text_import_scanner.c
|
|
|
|
$(CC) $(GENERATED_CFLAGS) $(WSUG_CFLAGS) -Fd.\ -c $?
|
|
|
|
|
2012-02-18 23:55:41 +00:00
|
|
|
libui.lib : ..\config.h $(WIRESHARK_UI_OBJECTS)
|
|
|
|
link /lib /out:libui.lib $(WIRESHARK_UI_OBJECTS)
|
|
|
|
|
|
|
|
clean:
|
2015-01-02 01:41:49 +00:00
|
|
|
rm -f $(WIRESHARK_UI_OBJECTS) $(WIRESHARK_TAP_OBJECTS) libui.lib \
|
|
|
|
*.nativecodeanalysis.xml *.pdb *.sbr \
|
2012-06-13 16:19:35 +00:00
|
|
|
doxygen.cfg html/*.* wireshark-tap-register-cache.pkl
|
2012-02-18 23:55:41 +00:00
|
|
|
if exist html rmdir html
|
|
|
|
|
|
|
|
distclean: clean
|
|
|
|
|
|
|
|
maintainer-clean: distclean
|
|
|
|
rm -f $(GENERATED_FILES)
|
|
|
|
|
|
|
|
# convert doxygen.cfg.in to doxygen.cfg with stamped version info
|
|
|
|
doxygen.cfg: ..\config.nmake doxygen.cfg.in
|
|
|
|
!IFDEF DOXYGEN
|
|
|
|
sed -e s/@VERSION@/$(VERSION)/ \
|
|
|
|
< doxygen.cfg.in > $@
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
doxygen-run:
|
|
|
|
!IFDEF DOXYGEN
|
|
|
|
$(DOXYGEN) doxygen.cfg
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
# MS html help compiler hhc returns 1 on success, but as nmake expects 0 it would stop here.
|
|
|
|
# the prepended -1 will raise the accepted error levels of nmake, so it will continue
|
|
|
|
doxygen.chm:
|
|
|
|
!IFDEF HHC
|
|
|
|
-1 $(HHC) html\index.hhp
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
doxygen: doxygen.cfg doxygen-run doxygen.chm
|
|
|
|
|
|
|
|
checkapi: checkapi-base checkapi-todo
|
|
|
|
|
|
|
|
checkapi-base:
|
2012-04-04 20:46:49 +00:00
|
|
|
$(PERL) ../tools/checkAPIs.pl -g deprecated-gtk -build \
|
2012-02-18 23:55:41 +00:00
|
|
|
$(WIRESHARK_UI_SRC)
|
|
|
|
|
|
|
|
checkapi-todo:
|
2012-04-04 20:46:49 +00:00
|
|
|
$(PERL) ../tools/checkAPIs.pl -M -g deprecated-gtk-todo -build \
|
2012-02-18 23:55:41 +00:00
|
|
|
$(WIRESHARK_UI_SRC)
|