diff options
Diffstat (limited to 'writecap/Makefile.nmake')
-rw-r--r-- | writecap/Makefile.nmake | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/writecap/Makefile.nmake b/writecap/Makefile.nmake new file mode 100644 index 0000000000..3862ca541f --- /dev/null +++ b/writecap/Makefile.nmake @@ -0,0 +1,71 @@ +## Makefile for building wireshark.exe with Microsoft C and nmake +## Use: $(MAKE) /$(MAKEFLAGS) -f makefile.nmake +# + +include ..\config.nmake +include ..\Makefile.nmake.inc +include Makefile.common + +############### no need to modify below this line ######### + +# We use GENERATED_CFLAGS to get around flex's non-LLP64-compliant output +GENERATED_CFLAGS=\ + $(STANDARD_CFLAGS) \ + /Zm800 \ + /I.. $(GLIB_CFLAGS) + +CFLAGS=$(WARNINGS_ARE_ERRORS) $(GENERATED_CFLAGS) + +.c.obj:: + $(CC) $(CFLAGS) $(WSUG_CFLAGS) -Fd.\ -c $< + +# if you add files here, be sure to include them also in Makefile.am EXTRA_DIST +WRITECAP_OBJECTS = \ + $(WRITECAP_SRC:.c=.obj) + +RUNLEX=../tools/runlex.sh + +libcaputils.lib : ..\config.h $(WRITECAP_OBJECTS) + link /lib /out:libcaputils.lib $(WRITECAP_OBJECTS) + +clean: + rm -f $(WRITECAP_OBJECTS) $(WIRESHARK_TAP_OBJECTS) libcaputils.lib \ + *.nativecodeanalysis.xml *.pdb *.sbr \ + doxygen.cfg html/*.* + 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: + $(PERL) ../tools/checkAPIs.pl -g deprecated-gtk -build \ + $(WRITECAP_SRC) + +checkapi-todo: + $(PERL) ../tools/checkAPIs.pl -M -g deprecated-gtk-todo -build \ + $(WRITECAP_SRC) |