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
|
|
|
|
#
|
2004-07-18 00:24:25 +00:00
|
|
|
# $Id$
|
2002-02-27 09:42:52 +00:00
|
|
|
|
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
|
|
|
|
|
2009-04-08 18:08:25 +00:00
|
|
|
# We use GENERATED_CFLAGS to get around flex's non-LLP64-compliant output
|
2011-02-02 01:19:53 +00:00
|
|
|
GENERATED_CFLAGS=\
|
|
|
|
$(STANDARD_CFLAGS) \
|
|
|
|
/I. /I.. /I../wiretap $(GLIB_CFLAGS) \
|
2008-08-07 21:41:48 +00:00
|
|
|
$(ZLIB_CFLAGS) $(C_ARES_CFLAGS) $(ADNS_CFLAGS) $(PCRE_CFLAGS) \
|
2010-07-15 03:31:51 +00:00
|
|
|
$(LUA_CFLAGS) $(GNUTLS_CFLAGS) /I$(PCAP_DIR)\include \
|
2011-06-11 20:24:24 +00:00
|
|
|
$(PYTHON_CFLAGS) $(SMI_CFLAGS) $(GEOIP_CFLAGS)
|
2000-10-11 07:35:02 +00:00
|
|
|
|
2011-02-02 01:19:53 +00:00
|
|
|
CFLAGS=$(WARNINGS_ARE_ERRORS) $(GENERATED_CFLAGS)
|
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
|
|
|
|
|
2010-06-01 22:20:15 +00:00
|
|
|
!IFDEF PYTHON_DIR
|
|
|
|
WSPYTHON_LIB=wspython\wspython.lib
|
|
|
|
WSPYTHON_DIR=wspython
|
|
|
|
!ELSE
|
|
|
|
WSPYTHON_LIB=
|
|
|
|
WSPYTHON_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) \
|
|
|
|
$(PCRE_LIBS) \
|
2006-08-05 04:32:57 +00:00
|
|
|
$(KFW_LIBS) \
|
2004-10-15 15:36:12 +00:00
|
|
|
$(NETTLE_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) \
|
2010-06-01 22:20:15 +00:00
|
|
|
$(PYTHON_LIBS) \
|
2007-08-26 23:24:49 +00:00
|
|
|
$(SMI_LIBS) \
|
2008-12-23 18:56:31 +00:00
|
|
|
$(GEOIP_LIBS) \
|
2010-09-15 15:13:17 +00:00
|
|
|
..\wsutil\libwsutil.lib \
|
2006-09-26 03:31:00 +00:00
|
|
|
..\wiretap\wiretap-$(WTAP_VERSION).lib \
|
2009-03-18 21:59:30 +00:00
|
|
|
crc\crc.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 \
|
2006-09-26 22:51:04 +00:00
|
|
|
$(WSLUA_LIB) \
|
2010-06-01 22:20:15 +00:00
|
|
|
$(WSPYTHON_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::
|
2004-03-22 20:35:07 +00:00
|
|
|
$(CC) $(CVARSDLL) $(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
|
2010-06-01 22:20:15 +00:00
|
|
|
all: crc crypt ftypes dfilter $(WSLUA_DIR) $(WSPYTHON_DIR) dissectors libwireshark.dll
|
2004-05-09 10:03:41 +00:00
|
|
|
!ELSE
|
2010-06-01 22:20:15 +00:00
|
|
|
all: crc crypt ftypes dfilter $(WSLUA_DIR) $(WSPYTHON_DIR) 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
|
|
|
|
2010-06-01 22:20:15 +00:00
|
|
|
libwireshark.dll: ..\config.h $(LIBWIRESHARK_OBJECTS) libwireshark.def crc crypt ftypes dfilter $(WSLUA_DIR) $(WSPYTHON_DIR) dissectors $(DOXYGEN_DEP) $(EXTRA_OBJECTS) \
|
|
|
|
crc\crc.lib crypt\airpdcap.lib ftypes\ftypes.lib dfilter\dfilter.lib dissectors\dissectors.lib $(WSLUA_LIB) $(WSPYTHON_LIB) ..\image\libwireshark.res
|
2006-05-31 00:23:01 +00:00
|
|
|
@echo Linking libwireshark.dll
|
2010-09-15 15:13:17 +00:00
|
|
|
$(link) $(dlllflags) $(conlibsdll) shell32.lib \
|
2009-03-02 21:33:11 +00:00
|
|
|
$(LOCAL_LDFLAGS) $(DLL_LDFLAGS) \
|
2006-05-31 00:23:01 +00:00
|
|
|
/DEF:libwireshark.def /OUT:libwireshark.dll \
|
|
|
|
/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
|
|
|
|
2010-06-01 22:20:15 +00:00
|
|
|
libwireshark.lib : ..\config.h $(LIBWIRESHARK_OBJECTS) crc crypt ftypes dfilter $(WSLUA_DIR) $(WSPYTHON_DIR) dissectors $(DOXYGEN_DEP) $(EXTRA_OBJECTS) \
|
|
|
|
crc\crc.lib crypt\airpdcap.lib ftypes\ftypes.lib dfilter\dfilter.lib $(WSLUA_LIB) $(WSPYTHON_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 \
|
2008-08-07 21:41:48 +00:00
|
|
|
*.pdb doxygen.cfg html/*.* \
|
2007-04-03 13:24:20 +00:00
|
|
|
exntest.obj exntest.exe reassemble_test.obj reassemble_test.exe tvbtest.obj tvbtest.exe
|
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
|
2009-03-18 21:59:30 +00:00
|
|
|
cd crc
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
|
|
|
|
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
|
2006-09-26 03:31:00 +00:00
|
|
|
cd ../wslua
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
|
2010-06-01 22:20:15 +00:00
|
|
|
cd ../wspython
|
|
|
|
$(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 \
|
2007-05-22 07:21:12 +00:00
|
|
|
$(LIBWIRESHARK_DISTCLEAN_GENERATED_SRC) \
|
2007-08-04 08:04:17 +00:00
|
|
|
$(LIBWIRESHARK_DISTCLEAN_GENERATED_INCLUDES) \
|
2007-05-22 07:21:12 +00:00
|
|
|
$(LIBWIRESHARK_NODISTCLEAN_GENERATED_SRC) \
|
2007-08-04 08:04:17 +00:00
|
|
|
$(LIBWIRESHARK_NODISTCLEAN_GENERATED_INCLUDES) \
|
2010-05-28 20:19:55 +00:00
|
|
|
dtd_grammar.out sminmpec.c
|
2007-10-15 16:44:31 +00:00
|
|
|
|
|
|
|
distclean: distclean-local
|
2009-03-18 21:59:30 +00:00
|
|
|
cd crc
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
|
|
|
|
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
|
2006-09-26 03:31:00 +00:00
|
|
|
cd ../wslua
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
|
2010-06-01 22:20:15 +00:00
|
|
|
cd ../wspython
|
|
|
|
$(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
|
2009-03-18 21:59:30 +00:00
|
|
|
cd crc
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
|
|
|
|
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
|
2006-09-26 03:31:00 +00:00
|
|
|
cd ../wslua
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
|
2010-06-01 22:20:15 +00:00
|
|
|
cd ../wspython
|
|
|
|
$(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 ..
|
|
|
|
|
2009-03-18 21:59:30 +00:00
|
|
|
crc:: ..\config.h
|
|
|
|
cd crc
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
|
|
|
|
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 ..
|
|
|
|
|
|
|
|
wslua:: ..\config.h
|
|
|
|
cd wslua
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
|
2010-06-01 22:20:15 +00:00
|
|
|
cd ..
|
|
|
|
|
|
|
|
wspython:: ..\config.h
|
|
|
|
cd wspython
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
|
2004-07-18 18:06:47 +00:00
|
|
|
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
|
|
|
|
|
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
|
|
|
|
TVBTEST_OBJ=tvbtest.obj \
|
|
|
|
tvbuff.obj \
|
|
|
|
except.obj \
|
|
|
|
to_str.obj \
|
|
|
|
strutil.obj \
|
2011-07-03 21:18:22 +00:00
|
|
|
charsets.obj \
|
2010-03-01 19:17:05 +00:00
|
|
|
emem.obj
|
|
|
|
|
|
|
|
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 \
|
2010-03-01 19:17:05 +00:00
|
|
|
$(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
|
|
|
|
2010-03-01 19:17:05 +00:00
|
|
|
# Object files for reassemble_test
|
|
|
|
REASSEMBLE_TEST_OBJ=reassemble_test.obj \
|
|
|
|
tvbuff.obj \
|
|
|
|
except.obj \
|
|
|
|
to_str.obj \
|
|
|
|
strutil.obj \
|
2011-07-03 18:59:41 +00:00
|
|
|
charsets.obj \
|
2010-03-01 19:17:05 +00:00
|
|
|
emem.obj \
|
|
|
|
reassemble.obj
|
|
|
|
|
|
|
|
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 \
|
2010-03-01 19:17:05 +00:00
|
|
|
$(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
|
2007-04-24 03:43:08 +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
|
2007-04-24 03:43:08 +00:00
|
|
|
if exist tvbtest.exe xcopy tvbtest.exe $(INSTALL_DIR) /d
|
2007-04-18 22:31:47 +00:00
|
|
|
|
|
|
|
reassemble_test_install:
|
|
|
|
set copycmd=/y
|
2007-04-24 03:43:08 +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
|
|
|
|
|
2009-10-11 14:39:14 +00:00
|
|
|
sminmpec.c: enterprise-numbers ..\tools\make-sminmpec.pl
|
|
|
|
$(PERL) ../tools/make-sminmpec.pl enterprise-numbers sminmpec.c
|
2005-09-10 17:29:15 +00:00
|
|
|
|
2007-08-04 02:13:52 +00:00
|
|
|
RUNLEX=..\tools\runlex.sh
|
2010-05-28 20:19:55 +00:00
|
|
|
|
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
|
2009-04-08 18:08:25 +00:00
|
|
|
$(CC) $(CVARSDLL) $(GENERATED_CFLAGS) -Fd.\ -c $?
|
2007-01-28 10:31:32 +00:00
|
|
|
|
2007-08-04 02:13:52 +00:00
|
|
|
dtd_parse_lex.h: dtd_parse.c
|
2007-08-01 00:22:25 +00:00
|
|
|
dtd_parse.obj : dtd_parse.c
|
2009-04-08 18:08:25 +00:00
|
|
|
$(CC) $(CVARSDLL) $(GENERATED_CFLAGS) -Fd.\ -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
|
|
|
|
$(CC) $(CVARSDLL) $(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
|
2009-04-08 18:08:25 +00:00
|
|
|
$(CC) $(CVARSDLL) $(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
|
2009-04-08 18:10:32 +00:00
|
|
|
$(CC) $(CVARSDLL) $(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
|
|
|
|
|
|
|
checkapi:
|
|
|
|
$(PERL) ../tools/checkAPIs.pl -g termoutput $(LIBWIRESHARK_SRC)
|