2006-06-17 11:57:26 +00:00
|
|
|
## Makefile for building wireshark.exe with Microsoft C and nmake
|
2002-02-27 09:42:52 +00:00
|
|
|
## Use: $(MAKE) /$(MAKEFLAGS) -f makefile.nmake
|
|
|
|
#
|
|
|
|
|
2000-10-11 07:35:02 +00:00
|
|
|
include ..\config.nmake
|
2004-05-09 10:03:41 +00:00
|
|
|
include <win32.mak>
|
2007-08-01 22:20:38 +00:00
|
|
|
include ..\Makefile.nmake.inc
|
2004-05-09 10:03:41 +00:00
|
|
|
|
2007-08-01 22:20:38 +00:00
|
|
|
include Makefile.common
|
2000-10-11 07:35:02 +00:00
|
|
|
|
2007-04-03 17:30:02 +00:00
|
|
|
LINK= link
|
|
|
|
|
2013-03-23 21:02:39 +00:00
|
|
|
#
|
|
|
|
# These are the flags for all source files.
|
|
|
|
#
|
|
|
|
COMMON_CFLAGS=\
|
2011-02-02 01:19:53 +00:00
|
|
|
$(STANDARD_CFLAGS) \
|
|
|
|
/I. /I.. /I../wiretap $(GLIB_CFLAGS) \
|
2011-08-23 09:25:06 +00:00
|
|
|
$(ZLIB_CFLAGS) $(C_ARES_CFLAGS) $(ADNS_CFLAGS) \
|
2010-07-15 03:31:51 +00:00
|
|
|
$(LUA_CFLAGS) $(GNUTLS_CFLAGS) /I$(PCAP_DIR)\include \
|
2014-06-16 18:43:27 +00:00
|
|
|
$(SMI_CFLAGS) $(GEOIP_CFLAGS)
|
2000-10-11 07:35:02 +00:00
|
|
|
|
2013-03-23 21:02:39 +00:00
|
|
|
#
|
|
|
|
# These are the flags for generated source files; we don't include
|
|
|
|
# $(WARNINGS_ARE_ERRORS), so that we flex's non-LLP64-compliant output
|
|
|
|
# doesn't cause compilation to fail.
|
|
|
|
#
|
|
|
|
GENERATED_CFLAGS=\
|
|
|
|
$(COMMON_CFLAGS) -DWS_BUILD_DLL
|
|
|
|
|
|
|
|
#
|
|
|
|
# These are the flags for test programs; we don't include -DWS_BUILD_DLL,
|
|
|
|
# as we're building test programs that link with the library, not routines
|
|
|
|
# incorporated into the library, so they should *import* stuff from the
|
|
|
|
# library, not *export* stuff from the library.
|
|
|
|
#
|
|
|
|
TEST_CFLAGS=\
|
|
|
|
$(WARNINGS_ARE_ERRORS) $(COMMON_CFLAGS)
|
|
|
|
|
|
|
|
#
|
|
|
|
# These are flags for everything else; we include $(WARNINGS_ARE_ERRORS),
|
|
|
|
# as the code should be warning-free, and we include -DWS_BUILD_DLL,
|
|
|
|
# as these are library routines, not test programs.
|
|
|
|
#
|
|
|
|
CFLAGS=$(WARNINGS_ARE_ERRORS) $(GENERATED_CFLAGS) -DWS_BUILD_DLL
|
2001-03-23 02:05:29 +00:00
|
|
|
|
2006-09-26 22:51:04 +00:00
|
|
|
!IFDEF LUA_DIR
|
|
|
|
WSLUA_LIB=wslua\wslua.lib
|
|
|
|
WSLUA_DIR=wslua
|
|
|
|
!ELSE
|
|
|
|
WSLUA_LIB=
|
|
|
|
WSLUA_DIR=
|
|
|
|
!ENDIf
|
|
|
|
|
2006-05-31 00:23:01 +00:00
|
|
|
# For use when making libwireshark.dll
|
|
|
|
libwireshark_LIBS = \
|
2004-05-09 10:03:41 +00:00
|
|
|
$(GLIB_LIBS) \
|
2008-08-07 21:41:48 +00:00
|
|
|
$(C_ARES_LIBS) \
|
2004-05-09 10:03:41 +00:00
|
|
|
$(ADNS_LIBS) \
|
2006-08-05 04:32:57 +00:00
|
|
|
$(KFW_LIBS) \
|
2004-05-09 10:03:41 +00:00
|
|
|
$(ZLIB_LIBS) \
|
2006-02-06 09:09:06 +00:00
|
|
|
$(GNUTLS_LIBS) \
|
2006-09-26 03:31:00 +00:00
|
|
|
$(LUA_LIBS) \
|
2007-08-26 23:24:49 +00:00
|
|
|
$(SMI_LIBS) \
|
2008-12-23 18:56:31 +00:00
|
|
|
$(GEOIP_LIBS) \
|
2014-07-10 00:59:01 +00:00
|
|
|
..\wsutil\libwsutil.lib \
|
2006-09-26 03:31:00 +00:00
|
|
|
..\wiretap\wiretap-$(WTAP_VERSION).lib \
|
2006-12-28 17:22:12 +00:00
|
|
|
crypt\airpdcap.lib \
|
2004-05-09 10:03:41 +00:00
|
|
|
ftypes\ftypes.lib \
|
|
|
|
dfilter\dfilter.lib \
|
2012-10-24 02:04:40 +00:00
|
|
|
wmem\wmem.lib \
|
2006-09-26 22:51:04 +00:00
|
|
|
$(WSLUA_LIB) \
|
2014-07-02 13:10:02 +00:00
|
|
|
nghttp2\nghttp2.lib \
|
2004-07-18 18:06:47 +00:00
|
|
|
dissectors\dissectors.lib
|
2000-10-14 04:31:26 +00:00
|
|
|
|
2001-12-12 01:29:13 +00:00
|
|
|
.c.obj::
|
2012-02-24 16:23:38 +00:00
|
|
|
$(CC) $(CFLAGS) -Fd.\ -c $<
|
2000-10-11 07:35:02 +00:00
|
|
|
|
2007-05-17 17:08:11 +00:00
|
|
|
LIBWIRESHARK_OBJECTS = $(LIBWIRESHARK_ALL_SRC:.c=.obj)
|
2004-07-18 23:46:07 +00:00
|
|
|
|
|
|
|
EXTRA_OBJECTS = \
|
2009-04-08 19:15:10 +00:00
|
|
|
!IF defined(NASM) && "$(WIRESHARK_TARGET_PLATFORM)" == "win32"
|
2007-11-28 10:18:16 +00:00
|
|
|
asm_utils_win32_x86.obj
|
|
|
|
!ELSE
|
|
|
|
asm_utils.obj
|
|
|
|
!ENDIF
|
|
|
|
|
2006-02-09 07:03:54 +00:00
|
|
|
!IFDEF DOXYGEN
|
|
|
|
DOXYGEN_DEP=doxygen
|
|
|
|
!ENDIF
|
|
|
|
|
2006-05-31 00:23:01 +00:00
|
|
|
!IFDEF ENABLE_LIBWIRESHARK
|
2014-07-02 13:10:02 +00:00
|
|
|
all: crypt ftypes dfilter wmem $(WSLUA_DIR) nghttp2 dissectors libwireshark.dll
|
2004-05-09 10:03:41 +00:00
|
|
|
!ELSE
|
2014-07-02 13:10:02 +00:00
|
|
|
all: crypt ftypes dfilter wmem $(WSLUA_DIR) nghttp2 dissectors libwireshark.lib
|
2004-05-09 10:03:41 +00:00
|
|
|
!ENDIF
|
|
|
|
|
2006-05-31 00:23:01 +00:00
|
|
|
# For use when making libwireshark.dll
|
|
|
|
libwireshark.lib: libwireshark.dll
|
|
|
|
libwireshark.exp: libwireshark.dll
|
2001-02-02 04:03:43 +00:00
|
|
|
|
2014-07-02 13:10:02 +00:00
|
|
|
libwireshark.dll: ..\config.h $(LIBWIRESHARK_OBJECTS) crypt ftypes dfilter wmem $(WSLUA_DIR) nghttp2 dissectors $(DOXYGEN_DEP) $(EXTRA_OBJECTS) \
|
|
|
|
crypt\airpdcap.lib ftypes\ftypes.lib dfilter\dfilter.lib wmem\wmem.lib dissectors\dissectors.lib $(WSLUA_LIB) nghttp2\nghttp2.lib ..\image\libwireshark.res
|
2006-05-31 00:23:01 +00:00
|
|
|
@echo Linking libwireshark.dll
|
2013-07-30 05:49:58 +00:00
|
|
|
$(link) $(dlllflags) $(conlibsdll) shell32.lib psapi.lib \
|
2009-03-02 21:33:11 +00:00
|
|
|
$(LOCAL_LDFLAGS) $(DLL_LDFLAGS) \
|
2013-03-01 23:53:11 +00:00
|
|
|
/OUT:libwireshark.dll \
|
2006-05-31 00:23:01 +00:00
|
|
|
/IMPLIB:libwireshark.lib $(LIBWIRESHARK_OBJECTS) \
|
2010-09-15 15:13:17 +00:00
|
|
|
$(libwireshark_LIBS) ..\image\libwireshark.res \
|
2005-02-10 01:26:19 +00:00
|
|
|
dissectors\register.obj \
|
2004-08-10 07:52:11 +00:00
|
|
|
$(EXTRA_OBJECTS)
|
2000-10-14 04:31:26 +00:00
|
|
|
|
2014-07-02 13:10:02 +00:00
|
|
|
libwireshark.lib : ..\config.h $(LIBWIRESHARK_OBJECTS) crypt ftypes dfilter wmem $(WSLUA_DIR) nghttp2 dissectors $(DOXYGEN_DEP) $(EXTRA_OBJECTS) \
|
|
|
|
crypt\airpdcap.lib ftypes\ftypes.lib dfilter\dfilter.lib wmem\wmem.lib $(WSLUA_LIB) nghttp2\nghttp2.lib dissectors\dissectors.lib
|
2006-08-04 14:43:48 +00:00
|
|
|
link /lib /out:libwireshark.lib $(LIBWIRESHARK_OBJECTS) \
|
2005-02-10 01:26:19 +00:00
|
|
|
$(EXTRA_OBJECTS)
|
2000-10-11 07:35:02 +00:00
|
|
|
|
2004-05-06 20:48:36 +00:00
|
|
|
..\config.h : ..\config.h.win32 ..\config.nmake
|
|
|
|
cd ..
|
2006-12-04 05:41:53 +00:00
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake config.h
|
2004-05-06 20:48:36 +00:00
|
|
|
cd epan
|
2000-10-11 07:35:02 +00:00
|
|
|
|
2007-10-15 16:44:31 +00:00
|
|
|
clean-local:
|
2007-01-03 05:41:11 +00:00
|
|
|
rm -f $(LIBWIRESHARK_OBJECTS) $(EXTRA_OBJECTS) \
|
2008-09-16 21:08:18 +00:00
|
|
|
libwireshark.lib libwireshark.dll *.manifest libwireshark.exp \
|
2012-01-29 20:21:30 +00:00
|
|
|
*.pdb *.sbr doxygen.cfg html/*.* \
|
2013-10-20 02:10:39 +00:00
|
|
|
exntest.obj exntest.exe exntest.exp reassemble_test.obj reassemble_test.exe tvbtest.obj tvbtest.exe tvbtest.exp oids_test.obj oids_test.exe oids_test.exp
|
2010-10-22 05:43:12 +00:00
|
|
|
if exist html rm -rf html
|
2007-10-15 16:44:31 +00:00
|
|
|
|
|
|
|
clean: clean-local
|
2011-08-31 09:11:16 +00:00
|
|
|
cd crypt
|
2006-12-28 17:22:12 +00:00
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
|
|
|
|
cd ../ftypes
|
2001-03-06 13:08:13 +00:00
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
|
2001-02-02 04:03:43 +00:00
|
|
|
cd ../dfilter
|
2001-03-06 13:08:13 +00:00
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
|
2004-07-18 18:06:47 +00:00
|
|
|
cd ../dissectors
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
|
2012-10-24 02:04:40 +00:00
|
|
|
cd ../wmem
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
|
2006-09-26 03:31:00 +00:00
|
|
|
cd ../wslua
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
|
2014-07-02 13:10:02 +00:00
|
|
|
cd ../nghttp2
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
|
2003-10-13 19:04:56 +00:00
|
|
|
cd ..
|
2001-02-02 04:03:43 +00:00
|
|
|
|
2005-08-04 22:22:53 +00:00
|
|
|
#
|
2005-09-12 19:50:45 +00:00
|
|
|
# We remove the Flex-generated files with "distclean" because they need
|
|
|
|
# different #includes for UN*X and Windows (UN*X versions of Flex make it
|
|
|
|
# include <unistd.h>, but that's a UN*X-only header), so if you're going
|
|
|
|
# to build from source, you need to build those scanners from the
|
|
|
|
# corresponding ".l" files with Flex.
|
|
|
|
# This might not be necessary for "dtd_grammar.{c,h}", but we handle them
|
|
|
|
# the same for now.
|
2005-08-04 22:22:53 +00:00
|
|
|
#
|
2007-10-15 16:44:31 +00:00
|
|
|
distclean-local: clean-local
|
2010-05-28 20:19:55 +00:00
|
|
|
rm -f config.h register.c mkstemp.c \
|
2013-02-09 23:35:30 +00:00
|
|
|
$(NODIST_LIBWIRESHARK_GENERATED_C_FILES) \
|
|
|
|
$(NODIST_LIBWIRESHARK_GENERATED_HEADER_FILES) \
|
2013-02-05 06:09:17 +00:00
|
|
|
$(LIBWIRESHARK_GENERATED_C_FILES) \
|
|
|
|
$(LIBWIRESHARK_GENERATED_HEADER_FILES) \
|
2014-05-05 18:50:24 +00:00
|
|
|
dtd_grammar.out
|
2007-10-15 16:44:31 +00:00
|
|
|
|
|
|
|
distclean: distclean-local
|
2011-08-31 09:27:25 +00:00
|
|
|
cd crypt
|
2006-12-28 17:22:12 +00:00
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
|
|
|
|
cd ../ftypes
|
2003-10-10 21:31:53 +00:00
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
|
|
|
|
cd ../dfilter
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
|
2004-07-27 18:56:50 +00:00
|
|
|
cd ../dissectors
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
|
2012-10-24 02:04:40 +00:00
|
|
|
cd ../wmem
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
|
2006-09-26 03:31:00 +00:00
|
|
|
cd ../wslua
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
|
2014-07-02 13:10:02 +00:00
|
|
|
cd ../nghttp2
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
|
2003-10-13 19:04:56 +00:00
|
|
|
cd ..
|
2001-02-02 04:03:43 +00:00
|
|
|
|
2007-10-15 16:44:31 +00:00
|
|
|
maintainer-clean-local: distclean-local
|
|
|
|
|
|
|
|
maintainer-clean: maintainer-clean-local
|
2011-08-31 09:27:25 +00:00
|
|
|
cd crypt
|
2006-12-28 17:22:12 +00:00
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
|
|
|
|
cd ../ftypes
|
Make the "maintainer-clean" rules get rid of some additional generated
files. Do this with GENERATED_HEADER_FILES, GENERATED_C_FILES, and
GENERATED_FILES macros in Makefile.common files, along the lines of what
wiretap/Makefile.common has.
Clean up "*~" files with "make clean" rather than only "make distclean"
in some additional places.
Add "maintainer-clean" rules to the Makefile.nmake files, paralelling
the ones in the automake-generated Makefile.in files, using the
GENERATED_FILES macros from Makefile.common files. In some cases, move
the cleanup of files from "make distclean" to "make maintainer-clean",
and in other cases, put in a comment indicating why we're not doing that
(because some files that are distributed in the source tarballs, namely
Flex output, were built with a UN*X Flex and won't compile on Windows,
so we get rid of them with "make distclean" so you can clean up stuff
that *has* to be re-generated for Windows).
Clean up some *CLEANFILES definitions - get rid of ones that no longer
apply as files were moved or that add to the definition a name that's
already there.
svn path=/trunk/; revision=13402
2005-02-14 20:33:57 +00:00
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
|
|
|
|
cd ../dfilter
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
|
|
|
|
cd ../dissectors
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
|
2012-10-24 02:04:40 +00:00
|
|
|
cd ../wmem
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
|
2006-09-26 03:31:00 +00:00
|
|
|
cd ../wslua
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
|
2014-07-02 13:10:02 +00:00
|
|
|
cd ../nghttp2
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
|
Make the "maintainer-clean" rules get rid of some additional generated
files. Do this with GENERATED_HEADER_FILES, GENERATED_C_FILES, and
GENERATED_FILES macros in Makefile.common files, along the lines of what
wiretap/Makefile.common has.
Clean up "*~" files with "make clean" rather than only "make distclean"
in some additional places.
Add "maintainer-clean" rules to the Makefile.nmake files, paralelling
the ones in the automake-generated Makefile.in files, using the
GENERATED_FILES macros from Makefile.common files. In some cases, move
the cleanup of files from "make distclean" to "make maintainer-clean",
and in other cases, put in a comment indicating why we're not doing that
(because some files that are distributed in the source tarballs, namely
Flex output, were built with a UN*X Flex and won't compile on Windows,
so we get rid of them with "make distclean" so you can clean up stuff
that *has* to be re-generated for Windows).
Clean up some *CLEANFILES definitions - get rid of ones that no longer
apply as files were moved or that add to the definition a name that's
already there.
svn path=/trunk/; revision=13402
2005-02-14 20:33:57 +00:00
|
|
|
cd ..
|
|
|
|
|
2006-12-28 17:22:12 +00:00
|
|
|
crypt:: ..\config.h
|
|
|
|
cd crypt
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
|
|
|
|
cd ..
|
|
|
|
|
2004-05-06 20:48:36 +00:00
|
|
|
ftypes:: ..\config.h
|
2001-02-02 04:03:43 +00:00
|
|
|
cd ftypes
|
2001-03-06 13:08:13 +00:00
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
|
2001-02-02 04:03:43 +00:00
|
|
|
cd ..
|
|
|
|
|
2004-05-06 20:48:36 +00:00
|
|
|
dfilter:: ..\config.h
|
2001-02-02 04:03:43 +00:00
|
|
|
cd dfilter
|
2001-03-06 13:08:13 +00:00
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
|
2001-02-02 04:03:43 +00:00
|
|
|
cd ..
|
2004-03-02 01:21:56 +00:00
|
|
|
|
2004-07-18 18:06:47 +00:00
|
|
|
dissectors:: ..\config.h
|
|
|
|
cd dissectors
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
|
2006-09-26 03:31:00 +00:00
|
|
|
cd ..
|
|
|
|
|
2012-10-24 02:04:40 +00:00
|
|
|
wmem:: ..\config.h
|
|
|
|
cd wmem
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
|
|
|
|
cd ..
|
|
|
|
|
2006-09-26 03:31:00 +00:00
|
|
|
wslua:: ..\config.h
|
|
|
|
cd wslua
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
|
2010-06-01 22:20:15 +00:00
|
|
|
cd ..
|
|
|
|
|
2014-07-02 13:10:02 +00:00
|
|
|
nghttp2:: ..\config.h
|
|
|
|
cd nghttp2
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
|
|
|
|
cd ..
|
|
|
|
|
2004-06-25 07:10:55 +00:00
|
|
|
doxygen.cfg: ..\config.nmake doxygen.cfg.in
|
2004-05-13 10:10:28 +00:00
|
|
|
sed -e s/@VERSION@/$(VERSION)/ \
|
2004-06-25 07:10:55 +00:00
|
|
|
< doxygen.cfg.in > $@
|
2004-05-13 10:10:28 +00:00
|
|
|
|
|
|
|
doxygen-run:
|
2004-05-11 00:53:12 +00:00
|
|
|
!IFDEF DOXYGEN
|
2004-06-25 07:10:55 +00:00
|
|
|
$(DOXYGEN) doxygen.cfg
|
2004-05-11 00:53:12 +00:00
|
|
|
!ENDIF
|
|
|
|
|
2004-06-25 07:10:55 +00:00
|
|
|
doxygen: doxygen.cfg doxygen-run
|
2004-05-13 10:10:28 +00:00
|
|
|
|
2007-04-03 13:24:20 +00:00
|
|
|
# Rules for making unit tests
|
|
|
|
exntest: exntest.exe
|
|
|
|
reassemble_test: reassemble_test.exe
|
|
|
|
tvbtest: tvbtest.exe
|
2013-10-20 02:10:39 +00:00
|
|
|
oids_test: oids_test.exe
|
2007-04-03 13:24:20 +00:00
|
|
|
|
2010-03-01 19:17:05 +00:00
|
|
|
# Object files for exntest
|
|
|
|
EXNTEST_OBJ=exntest.obj except.obj
|
2007-04-08 11:48:59 +00:00
|
|
|
|
2010-03-01 19:17:05 +00:00
|
|
|
exntest.exe: $(EXNTEST_OBJ)
|
2007-04-03 13:24:20 +00:00
|
|
|
@echo Linking $@
|
2007-04-13 01:53:14 +00:00
|
|
|
$(LINK) /OUT:$@ $(conflags) $(conlibsdll) $(LOCAL_LDFLAGS) /LARGEADDRESSAWARE /SUBSYSTEM:console \
|
2010-03-01 19:17:05 +00:00
|
|
|
$(GLIB_LIBS) $(EXNTEST_OBJ)
|
2010-04-22 19:35:47 +00:00
|
|
|
!IFDEF MANIFEST_INFO_REQUIRED
|
2007-05-06 09:24:36 +00:00
|
|
|
mt.exe -nologo -manifest "$@.manifest" -outputresource:$@;1
|
|
|
|
!ENDIF
|
2007-04-03 13:24:20 +00:00
|
|
|
|
2010-03-01 19:17:05 +00:00
|
|
|
# Object files for tvbtest
|
2013-07-14 10:19:12 +00:00
|
|
|
TVBTEST_OBJ=tvbtest.obj
|
|
|
|
TVBTEST_LIBS= ..\wiretap\wiretap-$(WTAP_VERSION).lib \
|
|
|
|
wsock32.lib user32.lib \
|
|
|
|
$(GLIB_LIBS) \
|
2014-07-10 00:59:01 +00:00
|
|
|
..\wsutil\libwsutil.lib \
|
2013-07-14 10:19:12 +00:00
|
|
|
$(GNUTLS_LIBS) \
|
|
|
|
!IFDEF ENABLE_LIBWIRESHARK
|
|
|
|
libwireshark.lib \
|
|
|
|
!ELSE
|
|
|
|
dissectors\dissectors.lib \
|
|
|
|
wireshark.lib \
|
|
|
|
crypt\airpdcap.lib \
|
|
|
|
dfilter\dfilter.lib \
|
|
|
|
ftypes\ftypes.lib \
|
|
|
|
$(C_ARES_LIBS) \
|
|
|
|
$(ADNS_LIBS) \
|
|
|
|
$(ZLIB_LIBS)
|
|
|
|
!ENDIF
|
2010-03-01 19:17:05 +00:00
|
|
|
|
|
|
|
tvbtest.exe: $(TVBTEST_OBJ)
|
2007-04-03 13:24:20 +00:00
|
|
|
@echo Linking $@
|
2007-04-13 01:53:14 +00:00
|
|
|
$(LINK) /OUT:$@ $(conflags) $(conlibsdll) $(LOCAL_LDFLAGS) /LARGEADDRESSAWARE /SUBSYSTEM:console \
|
2013-07-14 10:19:12 +00:00
|
|
|
$(TVBTEST_LIBS) $(GLIB_LIBS) $(ZLIB_LIBS) $(TVBTEST_OBJ)
|
2010-04-22 19:35:47 +00:00
|
|
|
!IFDEF MANIFEST_INFO_REQUIRED
|
2007-05-06 09:24:36 +00:00
|
|
|
mt.exe -nologo -manifest "$@.manifest" -outputresource:$@;1
|
|
|
|
!ENDIF
|
2007-04-03 13:24:20 +00:00
|
|
|
|
2013-10-20 02:10:39 +00:00
|
|
|
# Object files for oids_test
|
|
|
|
OIDS_TEST_OBJ=oids_test.obj
|
|
|
|
OIDS_TEST_LIBS= ..\wiretap\wiretap-$(WTAP_VERSION).lib \
|
|
|
|
wsock32.lib user32.lib \
|
|
|
|
$(GLIB_LIBS) \
|
2014-07-10 00:59:01 +00:00
|
|
|
..\wsutil\libwsutil.lib \
|
2013-10-20 02:10:39 +00:00
|
|
|
$(GNUTLS_LIBS) \
|
|
|
|
!IFDEF ENABLE_LIBWIRESHARK
|
|
|
|
libwireshark.lib \
|
|
|
|
!ELSE
|
|
|
|
dissectors\dissectors.lib \
|
|
|
|
wireshark.lib \
|
|
|
|
crypt\airpdcap.lib \
|
|
|
|
dfilter\dfilter.lib \
|
|
|
|
ftypes\ftypes.lib \
|
|
|
|
wmem\wmem.lib \
|
|
|
|
$(C_ARES_LIBS) \
|
|
|
|
$(ADNS_LIBS) \
|
|
|
|
$(ZLIB_LIBS)
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
oids_test.exe: $(OIDS_TEST_OBJ)
|
|
|
|
@echo Linking $@
|
|
|
|
$(LINK) /OUT:$@ $(conflags) $(conlibsdll) $(LOCAL_LDFLAGS) /LARGEADDRESSAWARE /SUBSYSTEM:console \
|
|
|
|
$(OIDS_TEST_LIBS) $(GLIB_LIBS) $(ZLIB_LIBS) $(OIDS_TEST_OBJ)
|
|
|
|
!IFDEF MANIFEST_INFO_REQUIRED
|
|
|
|
mt.exe -nologo -manifest "$@.manifest" -outputresource:$@;1
|
|
|
|
!ENDIF
|
|
|
|
|
2010-03-01 19:17:05 +00:00
|
|
|
# Object files for reassemble_test
|
2012-02-28 15:04:45 +00:00
|
|
|
REASSEMBLE_TEST_OBJ=reassemble_test.obj
|
2012-02-28 16:08:47 +00:00
|
|
|
REASSEMBLE_TEST_LIBS= ..\wiretap\wiretap-$(WTAP_VERSION).lib \
|
2012-02-28 09:00:05 +00:00
|
|
|
wsock32.lib user32.lib \
|
|
|
|
$(GLIB_LIBS) \
|
2014-07-10 00:59:01 +00:00
|
|
|
..\wsutil\libwsutil.lib \
|
2012-02-28 09:00:05 +00:00
|
|
|
$(GNUTLS_LIBS) \
|
|
|
|
!IFDEF ENABLE_LIBWIRESHARK
|
2012-02-28 16:08:47 +00:00
|
|
|
libwireshark.lib \
|
2012-02-28 09:00:05 +00:00
|
|
|
!ELSE
|
2012-02-28 16:08:47 +00:00
|
|
|
dissectors\dissectors.lib \
|
|
|
|
wireshark.lib \
|
|
|
|
crypt\airpdcap.lib \
|
|
|
|
dfilter\dfilter.lib \
|
|
|
|
ftypes\ftypes.lib \
|
2012-02-28 09:00:05 +00:00
|
|
|
$(C_ARES_LIBS) \
|
|
|
|
$(ADNS_LIBS) \
|
|
|
|
$(ZLIB_LIBS)
|
|
|
|
!ENDIF
|
2010-03-01 19:17:05 +00:00
|
|
|
|
|
|
|
reassemble_test.exe: $(REASSEMBLE_TEST_OBJ)
|
2007-04-03 13:24:20 +00:00
|
|
|
@echo Linking $@
|
2007-04-13 01:53:14 +00:00
|
|
|
$(LINK) /OUT:$@ $(conflags) $(conlibsdll) $(LOCAL_LDFLAGS) /LARGEADDRESSAWARE /SUBSYSTEM:console \
|
2013-06-25 15:32:49 +00:00
|
|
|
$(REASSEMBLE_TEST_LIBS) $(GLIB_LIBS) $(ZLIB_LIBS) $(REASSEMBLE_TEST_OBJ)
|
2010-04-22 19:35:47 +00:00
|
|
|
!IFDEF MANIFEST_INFO_REQUIRED
|
2007-05-06 09:24:36 +00:00
|
|
|
mt.exe -nologo -manifest "$@.manifest" -outputresource:$@;1
|
|
|
|
!ENDIF
|
2007-04-11 12:26:02 +00:00
|
|
|
|
2007-04-18 22:31:47 +00:00
|
|
|
exntest_install:
|
|
|
|
set copycmd=/y
|
2012-05-16 16:36:32 +00:00
|
|
|
if exist exntest.exe xcopy exntest.exe ..\$(INSTALL_DIR) /d
|
2007-04-18 22:31:47 +00:00
|
|
|
|
|
|
|
tvbtest_install:
|
|
|
|
set copycmd=/y
|
2014-05-28 16:04:30 +00:00
|
|
|
if exist tvbtest.exe xcopy tvbtest.exe ..\$(INSTALL_DIR) /d
|
2007-04-18 22:31:47 +00:00
|
|
|
|
2013-10-20 02:10:39 +00:00
|
|
|
oids_test_install:
|
|
|
|
set copycmd=/y
|
2014-05-28 16:04:30 +00:00
|
|
|
if exist oids_test.exe xcopy oids_test.exe ..\$(INSTALL_DIR) /d
|
2013-10-20 02:10:39 +00:00
|
|
|
|
2007-04-18 22:31:47 +00:00
|
|
|
reassemble_test_install:
|
|
|
|
set copycmd=/y
|
2014-05-28 16:04:30 +00:00
|
|
|
if exist reassemble_test.exe xcopy reassemble_test.exe ..\$(INSTALL_DIR) /d
|
2007-04-18 22:31:47 +00:00
|
|
|
|
2005-02-13 00:10:15 +00:00
|
|
|
|
2007-11-28 10:18:16 +00:00
|
|
|
#
|
2007-12-25 15:55:19 +00:00
|
|
|
# Compile some time critical code from assembler if NASM available
|
2007-11-28 10:18:16 +00:00
|
|
|
#
|
|
|
|
!IFDEF NASM
|
|
|
|
asm_utils_win32_x86.obj: asm_utils_win32_x86.asm
|
2009-04-08 19:15:10 +00:00
|
|
|
$(NASM) -f $(WIRESHARK_TARGET_PLATFORM) -o $@ $?
|
2007-11-28 10:18:16 +00:00
|
|
|
!ENDIF
|
|
|
|
|
2014-05-05 18:50:24 +00:00
|
|
|
update-sminmpec:
|
|
|
|
$(PERL) ../tools/make-sminmpec.pl
|
2005-09-10 17:29:15 +00:00
|
|
|
|
2014-07-12 14:59:56 +00:00
|
|
|
RUNLEX=../tools/runlex.sh
|
2010-05-28 20:19:55 +00:00
|
|
|
|
2013-02-09 23:41:43 +00:00
|
|
|
#
|
|
|
|
# We compile these specially because they're Flex-generated and thus
|
|
|
|
# "warnings are errors" will fail because there's a bunch of
|
|
|
|
# warnings we can't eliminate.
|
|
|
|
#
|
2007-08-04 02:13:52 +00:00
|
|
|
diam_dict_lex.h: diam_dict.c
|
2007-08-01 00:22:25 +00:00
|
|
|
diam_dict.obj : diam_dict.c
|
2012-02-24 16:23:38 +00:00
|
|
|
$(CC) $(GENERATED_CFLAGS) -Fd.\ -c $?
|
2007-01-28 10:31:32 +00:00
|
|
|
|
2013-02-09 23:41:43 +00:00
|
|
|
#
|
|
|
|
# This depends on dtd_grammar.h to force dtd_grammar.h to be
|
|
|
|
# built before we try to compile it, as dtd_parse.c includes
|
|
|
|
# dtd_grammar.h, and dtd_grammar.h is not distributed with
|
|
|
|
# the source (it's generated with Lemon). That means we can't
|
|
|
|
# use $?, as that would make it try to compile dtd_grammar.h.
|
|
|
|
#
|
2007-08-04 02:13:52 +00:00
|
|
|
dtd_parse_lex.h: dtd_parse.c
|
2013-02-05 08:57:58 +00:00
|
|
|
dtd_parse.obj : dtd_grammar.h
|
|
|
|
dtd_parse.obj : dtd_parse.c
|
2013-02-09 23:41:43 +00:00
|
|
|
$(CC) $(GENERATED_CFLAGS) -Fd.\ -c dtd_parse.c
|
2007-08-01 00:22:25 +00:00
|
|
|
|
2007-08-04 02:13:52 +00:00
|
|
|
dtd_preparse_lex.h: dtd_preparse.c
|
2009-04-08 18:08:25 +00:00
|
|
|
dtd_preparse.obj : dtd_preparse.c
|
2012-02-24 16:23:38 +00:00
|
|
|
$(CC) $(GENERATED_CFLAGS) -Fd.\ -c $?
|
2007-08-01 00:22:25 +00:00
|
|
|
|
2007-08-04 02:13:52 +00:00
|
|
|
radius_dict_lex.h: radius_dict.c
|
|
|
|
radius_dict.obj : radius_dict.c
|
2012-02-24 16:23:38 +00:00
|
|
|
$(CC) $(GENERATED_CFLAGS) -Fd.\ -c $?
|
2007-08-04 02:13:52 +00:00
|
|
|
|
|
|
|
uat_load_lex.h: uat_load.c
|
2007-08-01 00:22:25 +00:00
|
|
|
uat_load.obj : uat_load.c
|
2013-03-02 23:30:21 +00:00
|
|
|
$(CC) $(GENERATED_CFLAGS) -Fd.\ -c $?
|
2005-09-10 17:29:15 +00:00
|
|
|
|
2005-09-10 18:33:32 +00:00
|
|
|
LEMON=..\tools\lemon
|
2005-09-10 17:29:15 +00:00
|
|
|
|
2007-08-04 02:13:52 +00:00
|
|
|
dtd_grammar.h: dtd_grammar.c
|
2008-03-23 08:58:52 +00:00
|
|
|
dtd_grammar.c: $(LEMON)\lemon.exe $(LEMON)\lempar.c dtd_grammar.lemon
|
2005-09-10 18:33:32 +00:00
|
|
|
$(LEMON)\lemon t=$(LEMON)\lempar.c dtd_grammar.lemon
|
2010-11-30 02:04:55 +00:00
|
|
|
|
2013-03-23 21:02:39 +00:00
|
|
|
#
|
|
|
|
# We compile these specially because they're test programs, not library
|
|
|
|
# routines, and thus they import stuff from the library rather than
|
|
|
|
# exporting stuff from the library.
|
|
|
|
#
|
2013-03-23 22:05:24 +00:00
|
|
|
exntest.obj: exntest.c
|
|
|
|
$(CC) $(TEST_CFLAGS) -Fd.\ -c $?
|
|
|
|
|
2013-03-23 21:02:39 +00:00
|
|
|
reassemble_test.obj: reassemble_test.c
|
|
|
|
$(CC) $(TEST_CFLAGS) -Fd.\ -c $?
|
|
|
|
|
2013-03-23 22:05:24 +00:00
|
|
|
tvbtest.obj: tvbtest.c
|
|
|
|
$(CC) $(TEST_CFLAGS) -Fd.\ -c $?
|
|
|
|
|
2013-10-20 02:10:39 +00:00
|
|
|
oids_test.obj: oids_test.c
|
|
|
|
$(CC) $(TEST_CFLAGS) -Fd.\ -c $?
|
|
|
|
|
2013-07-12 03:50:50 +00:00
|
|
|
ps.c: ..\tools\rdps.py print.ps
|
|
|
|
$(PYTHON) ..\tools\rdps.py print.ps ps.c
|
|
|
|
|
2010-11-30 02:04:55 +00:00
|
|
|
checkapi:
|
2012-04-04 20:46:49 +00:00
|
|
|
$(PERL) ../tools/checkAPIs.pl -g termoutput -build $(LIBWIRESHARK_SRC)
|
2014-05-28 16:04:30 +00:00
|
|
|
|
|
|
|
#
|
2014-09-16 20:12:10 +00:00
|
|
|
# Editor modelines - https://www.wireshark.org/tools/modelines.html
|
2014-05-28 16:04:30 +00:00
|
|
|
#
|
|
|
|
# Local variables:
|
|
|
|
# c-basic-offset: 8
|
|
|
|
# tab-width: 8
|
|
|
|
# indent-tabs-mode: t
|
|
|
|
# End:
|
|
|
|
#
|
|
|
|
# vi: set shiftwidth=8 tabstop=8 noexpandtab:
|
|
|
|
# :indentSize=8:tabSize=8:noTabs=false:
|
|
|
|
#
|