2006-05-31 19:12:15 +00:00
|
|
|
## Makefile for building wireshark.exe with Microsoft C and nmake
|
2001-03-06 13:08:13 +00:00
|
|
|
## Use: $(MAKE) /$(MAKEFLAGS) -f makefile.nmake
|
2000-04-12 21:52:11 +00:00
|
|
|
#
|
2004-07-18 00:24:25 +00:00
|
|
|
# $Id$
|
1999-07-13 02:53:26 +00:00
|
|
|
|
2008-09-16 21:08:18 +00:00
|
|
|
# We "Deploy using XCopy," which is described at
|
|
|
|
# http://msdn.microsoft.com/en-us/library/ms235291.aspx
|
|
|
|
|
2000-02-09 00:41:57 +00:00
|
|
|
include config.nmake
|
2001-03-23 02:05:29 +00:00
|
|
|
include <win32.mak>
|
1999-07-13 02:53:26 +00:00
|
|
|
|
|
|
|
############### no need to modify below this line #########
|
|
|
|
|
2008-02-15 23:20:32 +00:00
|
|
|
CC = cl
|
2006-09-12 01:04:35 +00:00
|
|
|
LINK= link
|
2008-07-03 00:16:28 +00:00
|
|
|
BSCMAKE= bscmake
|
2008-02-15 23:20:32 +00:00
|
|
|
|
2009-12-28 01:47:10 +00:00
|
|
|
WIN_SETUP=tools/$(WIRESHARK_TARGET_PLATFORM)-setup.sh
|
2009-03-07 01:06:40 +00:00
|
|
|
|
2009-05-28 23:20:20 +00:00
|
|
|
# -------------
|
2009-06-14 12:39:47 +00:00
|
|
|
# Checking that the Wireshark Libraries are up-to-date:
|
2009-09-16 16:27:37 +00:00
|
|
|
# 1. win??-setup.sh --checktag is invoked during nmake "preprocessing".
|
2009-06-14 12:39:47 +00:00
|
|
|
# If an error status is returned (ie: the libraries are not up-to-date)
|
|
|
|
# then CHECK_TAG is defined as a non-null string.
|
|
|
|
# 2. The $(LIBS_CHECK) target is invoked during the nmake:
|
|
|
|
# If $(CHECK_TAG) is non-null, then a "libraries not up to date" exit will occur.
|
|
|
|
# If $(CHECK_TAG) is null, but either config.nmake or Makefile.nmake
|
2009-06-14 12:50:52 +00:00
|
|
|
# are newer than the $(LIBS_CHECK) target, then a detailed verification
|
2009-06-14 12:39:47 +00:00
|
|
|
# as to the required library package files will be made.
|
2010-05-28 20:19:55 +00:00
|
|
|
#
|
2009-05-28 23:20:20 +00:00
|
|
|
LIBS_CHECK=_libs_check_
|
2011-07-19 18:22:46 +00:00
|
|
|
!IF [$(SH) $(WIN_SETUP) --checktag "$(WIRESHARK_LIB_DIR)"] != 0
|
2009-06-14 12:39:47 +00:00
|
|
|
CHECK_TAG=_check_tag_
|
2009-05-28 23:20:20 +00:00
|
|
|
!ELSE
|
2009-06-14 12:39:47 +00:00
|
|
|
CHECK_TAG=
|
2009-05-27 17:07:51 +00:00
|
|
|
!ENDIF
|
2009-05-28 23:20:20 +00:00
|
|
|
# -------------
|
2009-05-27 17:07:51 +00:00
|
|
|
|
2012-01-30 04:37:12 +00:00
|
|
|
LDFLAGS = /NOLOGO /INCREMENTAL:NO $(LOCAL_LDFLAGS)
|
1999-07-13 02:53:26 +00:00
|
|
|
|
2009-04-16 04:05:39 +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) \
|
|
|
|
-D_NEED_VAR_IMPORT_ \
|
|
|
|
/I. /Iwiretap $(GLIB_CFLAGS) \
|
2010-07-15 03:31:51 +00:00
|
|
|
$(ZLIB_CFLAGS) /I$(PCAP_DIR)\include $(AIRPCAP_CFLAGS) \
|
2011-06-23 23:04:03 +00:00
|
|
|
$(C_ARES_CFLAGS) $(ADNS_CFLAGS) $(GNUTLS_CFLAGS) \
|
2011-02-02 01:19:53 +00:00
|
|
|
$(PYTHON_CFLAGS) $(SMI_CFLAGS) $(GEOIP_CFLAGS)
|
1999-07-13 02:53:26 +00:00
|
|
|
|
2011-02-02 01:19:53 +00:00
|
|
|
CFLAGS=$(WARNINGS_ARE_ERRORS) $(GENERATED_CFLAGS)
|
2001-03-23 02:05:29 +00:00
|
|
|
|
2001-12-12 01:29:13 +00:00
|
|
|
.c.obj::
|
2012-03-01 02:53:38 +00:00
|
|
|
$(CC) $(CFLAGS) -Fd.\ -c $<
|
2000-05-29 20:11:41 +00:00
|
|
|
|
2005-05-20 22:16:47 +00:00
|
|
|
PLATFORM_SRC = capture-wpcap.c capture_wpcap_packet.c
|
2004-02-22 08:30:41 +00:00
|
|
|
|
2008-06-22 15:13:08 +00:00
|
|
|
WTAP_PLUGIN_SOURCES = \
|
|
|
|
epan/plugins.c \
|
|
|
|
epan/report_err.c \
|
|
|
|
epan/filesystem.c
|
|
|
|
|
2004-01-21 21:46:59 +00:00
|
|
|
include Makefile.common
|
2000-04-29 07:35:07 +00:00
|
|
|
|
2006-05-31 19:12:15 +00:00
|
|
|
wireshark_OBJECTS = $(wireshark_SOURCES:.c=.obj)
|
2006-05-31 17:38:42 +00:00
|
|
|
tshark_OBJECTS = $(tshark_SOURCES:.c=.obj)
|
2008-02-15 23:20:32 +00:00
|
|
|
rawshark_OBJECTS = $(rawshark_SOURCES:.c=.obj)
|
2008-06-22 15:13:08 +00:00
|
|
|
###text2pcap_OBJECTS = $(text2pcap_SOURCES:.c=.obj)
|
|
|
|
###mergecap_OBJECTS = $(mergecap_SOURCES:.c=.obj)
|
|
|
|
editcap_OBJECTS = $(editcap_SOURCES:.c=.obj)
|
|
|
|
capinfos_OBJECTS = $(capinfos_SOURCES:.c=.obj)
|
2004-05-09 10:03:41 +00:00
|
|
|
dftest_OBJECTS = $(dftest_SOURCES:.c=.obj)
|
2005-11-28 08:54:52 +00:00
|
|
|
dumpcap_OBJECTS = $(dumpcap_SOURCES:.c=.obj)
|
2004-02-22 08:30:41 +00:00
|
|
|
randpkt_OBJECTS = $(randpkt_SOURCES:.c=.obj)
|
2002-10-16 14:45:27 +00:00
|
|
|
|
2006-05-31 19:12:15 +00:00
|
|
|
wireshark_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
|
2012-06-21 22:21:02 +00:00
|
|
|
wsock32.lib user32.lib shell32.lib comctl32.lib ole32.lib \
|
2011-07-14 23:18:02 +00:00
|
|
|
$(GTHREAD_LIBS) \
|
2006-09-12 01:04:35 +00:00
|
|
|
$(HHC_LIBS) \
|
2010-09-15 15:13:17 +00:00
|
|
|
wsutil\libwsutil.lib \
|
2009-01-08 13:24:04 +00:00
|
|
|
$(GNUTLS_LIBS) \
|
2010-06-01 22:20:15 +00:00
|
|
|
$(PYTHON_LIBS) \
|
2006-05-31 00:23:01 +00:00
|
|
|
!IFDEF ENABLE_LIBWIRESHARK
|
|
|
|
epan\libwireshark.lib \
|
2004-05-09 10:03:41 +00:00
|
|
|
!ELSE
|
2004-07-18 18:06:47 +00:00
|
|
|
epan\dissectors\dissectors.lib \
|
2006-05-31 19:12:15 +00:00
|
|
|
epan\wireshark.lib \
|
2006-12-28 17:22:12 +00:00
|
|
|
epan\crypt\airpdcap.lib \
|
|
|
|
epan\dfilter\dfilter.lib \
|
|
|
|
epan\ftypes\ftypes.lib \
|
2008-08-07 21:41:48 +00:00
|
|
|
$(C_ARES_LIBS) \
|
2003-06-15 23:04:47 +00:00
|
|
|
$(ADNS_LIBS) \
|
2009-01-08 13:24:04 +00:00
|
|
|
$(ZLIB_LIBS)
|
2004-05-09 10:03:41 +00:00
|
|
|
!ENDIF
|
1999-07-13 02:53:26 +00:00
|
|
|
|
2006-05-31 17:38:42 +00:00
|
|
|
tshark_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
|
2011-05-24 00:07:56 +00:00
|
|
|
wsock32.lib user32.lib \
|
2003-06-14 20:45:29 +00:00
|
|
|
$(GLIB_LIBS) \
|
2011-11-11 00:10:05 +00:00
|
|
|
$(GTHREAD_LIBS) \
|
2010-09-15 15:13:17 +00:00
|
|
|
wsutil\libwsutil.lib \
|
2009-01-08 13:24:04 +00:00
|
|
|
$(GNUTLS_LIBS) \
|
2010-06-01 22:20:15 +00:00
|
|
|
$(PYTHON_LIBS) \
|
2006-05-31 00:23:01 +00:00
|
|
|
!IFDEF ENABLE_LIBWIRESHARK
|
|
|
|
epan\libwireshark.lib \
|
2004-05-09 10:03:41 +00:00
|
|
|
!ELSE
|
2004-07-18 18:06:47 +00:00
|
|
|
epan\dissectors\dissectors.lib \
|
2006-05-31 19:12:15 +00:00
|
|
|
epan\wireshark.lib \
|
2006-12-28 17:22:12 +00:00
|
|
|
epan\crypt\airpdcap.lib \
|
|
|
|
epan\dfilter\dfilter.lib \
|
|
|
|
epan\ftypes\ftypes.lib \
|
2008-08-07 21:41:48 +00:00
|
|
|
$(C_ARES_LIBS) \
|
2003-06-15 23:04:47 +00:00
|
|
|
$(ADNS_LIBS) \
|
2009-01-08 13:24:04 +00:00
|
|
|
$(ZLIB_LIBS)
|
2004-05-09 10:03:41 +00:00
|
|
|
!ENDIF
|
2000-04-12 21:52:11 +00:00
|
|
|
|
2008-02-15 23:20:32 +00:00
|
|
|
rawshark_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
|
2011-05-24 00:07:56 +00:00
|
|
|
wsock32.lib user32.lib \
|
2008-02-15 23:20:32 +00:00
|
|
|
$(GLIB_LIBS) \
|
2010-09-15 15:13:17 +00:00
|
|
|
wsutil\libwsutil.lib \
|
2009-01-08 13:24:04 +00:00
|
|
|
$(GNUTLS_LIBS) \
|
2010-06-01 22:20:15 +00:00
|
|
|
$(PYTHON_LIBS) \
|
2008-02-15 23:20:32 +00:00
|
|
|
!IFDEF ENABLE_LIBWIRESHARK
|
|
|
|
epan\libwireshark.lib \
|
|
|
|
!ELSE
|
|
|
|
epan\dissectors\dissectors.lib \
|
|
|
|
epan\wireshark.lib \
|
|
|
|
epan\crypt\airpdcap.lib \
|
|
|
|
epan\dfilter\dfilter.lib \
|
|
|
|
epan\ftypes\ftypes.lib \
|
2008-08-07 21:41:48 +00:00
|
|
|
$(C_ARES_LIBS) \
|
2008-02-15 23:20:32 +00:00
|
|
|
$(ADNS_LIBS) \
|
2009-01-08 13:24:04 +00:00
|
|
|
$(ZLIB_LIBS)
|
2008-02-15 23:20:32 +00:00
|
|
|
!ENDIF
|
|
|
|
|
2004-10-20 18:50:58 +00:00
|
|
|
capinfos_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
|
2010-09-10 13:52:42 +00:00
|
|
|
wsock32.lib user32.lib shell32.lib \
|
2010-09-15 15:13:17 +00:00
|
|
|
wsutil\libwsutil.lib \
|
2009-12-08 00:13:57 +00:00
|
|
|
$(GLIB_LIBS) \
|
|
|
|
$(GCRYPT_LIBS)
|
2004-07-28 20:51:29 +00:00
|
|
|
|
2001-03-23 02:05:29 +00:00
|
|
|
editcap_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
|
2010-09-10 13:52:42 +00:00
|
|
|
wsock32.lib user32.lib shell32.lib \
|
2010-09-15 15:13:17 +00:00
|
|
|
wsutil\libwsutil.lib \
|
2003-06-14 20:45:29 +00:00
|
|
|
$(GLIB_LIBS)
|
2000-04-12 21:52:11 +00:00
|
|
|
|
2001-07-12 19:59:41 +00:00
|
|
|
mergecap_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
|
2011-05-24 00:07:56 +00:00
|
|
|
wsock32.lib user32.lib \
|
2010-09-15 15:13:17 +00:00
|
|
|
wsutil\libwsutil.lib \
|
2003-06-14 20:45:29 +00:00
|
|
|
$(GLIB_LIBS)
|
2001-07-12 19:59:41 +00:00
|
|
|
|
2007-10-16 18:28:27 +00:00
|
|
|
text2pcap_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
|
2011-05-24 00:07:56 +00:00
|
|
|
wsock32.lib user32.lib \
|
2010-09-15 15:13:17 +00:00
|
|
|
wsutil\libwsutil.lib \
|
2007-10-16 18:28:27 +00:00
|
|
|
$(GLIB_LIBS)
|
|
|
|
|
2011-01-04 07:06:01 +00:00
|
|
|
dumpcap_LIBS= \
|
2011-05-24 00:07:56 +00:00
|
|
|
wsock32.lib user32.lib \
|
2010-09-15 15:13:17 +00:00
|
|
|
wsutil\libwsutil.lib \
|
2009-01-08 13:24:04 +00:00
|
|
|
$(GLIB_LIBS) \
|
2011-01-04 22:12:25 +00:00
|
|
|
$(GTHREAD_LIBS)
|
2005-11-28 08:54:52 +00:00
|
|
|
|
2004-05-09 10:03:41 +00:00
|
|
|
dftest_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
|
2001-02-11 03:19:45 +00:00
|
|
|
wsock32.lib user32.lib \
|
2004-02-13 02:03:14 +00:00
|
|
|
$(GLIB_LIBS) \
|
2010-09-15 15:13:17 +00:00
|
|
|
wsutil\libwsutil.lib \
|
2009-01-08 13:24:04 +00:00
|
|
|
$(GNUTLS_LIBS) \
|
2006-05-31 00:23:01 +00:00
|
|
|
!IFDEF ENABLE_LIBWIRESHARK
|
|
|
|
epan\libwireshark.lib \
|
2004-05-09 10:03:41 +00:00
|
|
|
!ELSE
|
2004-07-18 18:06:47 +00:00
|
|
|
epan\dissectors\dissectors.lib \
|
2006-05-31 19:12:15 +00:00
|
|
|
epan\wireshark.lib \
|
2004-05-09 10:03:41 +00:00
|
|
|
epan\dfilter\dfilter.lib epan\ftypes\ftypes.lib \
|
2008-08-07 21:41:48 +00:00
|
|
|
$(C_ARES_LIBS) \
|
2004-02-23 22:45:24 +00:00
|
|
|
$(ADNS_LIBS) \
|
2006-02-06 09:09:06 +00:00
|
|
|
$(ZLIB_LIBS) \
|
2009-01-08 13:24:04 +00:00
|
|
|
$(SMI_LIBS)
|
2004-05-09 10:03:41 +00:00
|
|
|
!ENDIF
|
2001-02-11 03:19:45 +00:00
|
|
|
|
2002-10-16 14:45:27 +00:00
|
|
|
randpkt_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
|
2011-05-24 00:07:56 +00:00
|
|
|
user32.lib \
|
2010-09-15 15:13:17 +00:00
|
|
|
wsutil\libwsutil.lib \
|
2007-09-24 06:59:40 +00:00
|
|
|
$(GLIB_LIBS)
|
2002-10-16 14:45:27 +00:00
|
|
|
|
2008-04-05 01:22:53 +00:00
|
|
|
EXECUTABLES=wireshark.exe tshark.exe rawshark.exe \
|
2005-11-28 08:54:52 +00:00
|
|
|
capinfos.exe editcap.exe mergecap.exe text2pcap.exe randpkt.exe dumpcap.exe
|
1999-07-13 02:53:26 +00:00
|
|
|
|
2012-07-12 00:04:53 +00:00
|
|
|
RESOURCES=image\wireshark.res image\file_dlg_win32.res \
|
|
|
|
image\libwireshark.res image\tshark.res image\capinfos.res \
|
|
|
|
image\editcap.res image\mergecap.res image\text2pcap.res \
|
|
|
|
image\wiretap.res image\dumpcap.res image\rawshark.res \
|
|
|
|
image\libwsutil.res
|
2000-04-12 21:52:11 +00:00
|
|
|
|
2007-09-02 20:53:15 +00:00
|
|
|
|
2012-01-30 22:57:09 +00:00
|
|
|
all: $(LIBS_CHECK) config.h ui\qt\config.pri tools image codecs $(C_ARES_DLL) $(ADNS_DLL) $(ZLIB_DLL) wsutil wiretap epan $(EXECUTABLES) wireshark.bsc $(RESOURCES) doc help install-all
|
2000-04-15 04:10:50 +00:00
|
|
|
|
2010-01-12 22:27:41 +00:00
|
|
|
!IFDEF MAKENSIS
|
2004-01-26 21:12:41 +00:00
|
|
|
packaging: all
|
|
|
|
cd packaging
|
|
|
|
cd nsis
|
2006-12-04 05:41:53 +00:00
|
|
|
$(MAKE) /$(MAKEFLAGS) -f makefile.nmake
|
2004-02-18 20:45:54 +00:00
|
|
|
cd ..
|
|
|
|
cd ..
|
2010-01-12 22:27:41 +00:00
|
|
|
!ELSE
|
|
|
|
packaging: _FORCE_
|
2010-04-18 14:08:12 +00:00
|
|
|
@echo \? NSIS not available (MAKENSIS not defined in config.nmake)
|
2010-01-12 22:27:41 +00:00
|
|
|
@echo.
|
|
|
|
@exit 1
|
|
|
|
!ENDIF
|
2004-02-18 20:45:54 +00:00
|
|
|
|
2006-09-22 23:16:31 +00:00
|
|
|
packaging_u3: all
|
|
|
|
cd packaging
|
|
|
|
cd u3
|
|
|
|
cd win32
|
2006-12-04 05:41:53 +00:00
|
|
|
$(MAKE) /$(MAKEFLAGS) -f makefile.nmake
|
2006-09-22 23:16:31 +00:00
|
|
|
cd ..
|
|
|
|
cd ..
|
|
|
|
cd ..
|
|
|
|
|
2007-11-02 13:47:23 +00:00
|
|
|
packaging_papps: all
|
|
|
|
cd packaging
|
|
|
|
cd portableapps
|
|
|
|
cd win32
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f makefile.nmake
|
|
|
|
cd ..
|
|
|
|
cd ..
|
|
|
|
cd ..
|
|
|
|
|
2006-09-23 01:39:07 +00:00
|
|
|
# use (info-)zip from cygwin to pack things
|
2008-04-05 01:22:53 +00:00
|
|
|
packaging_zip: all
|
2007-04-10 21:30:40 +00:00
|
|
|
!IFDEF MSVCR_DLL
|
2008-04-09 03:48:16 +00:00
|
|
|
xcopy "$(MSVCR_DLL)" $(INSTALL_DIR)
|
2007-04-10 21:30:40 +00:00
|
|
|
!ENDIF
|
|
|
|
!IFDEF VCREDIST_EXE
|
2009-09-17 21:54:52 +00:00
|
|
|
@echo Including vcredist_$(TARGET_MACHINE).exe -- your recipient may need to run it!
|
2008-04-09 03:48:16 +00:00
|
|
|
xcopy "$(VCREDIST_EXE)" $(INSTALL_DIR)
|
2007-04-10 21:30:40 +00:00
|
|
|
!ENDIF
|
2008-04-05 01:22:53 +00:00
|
|
|
rm -f wireshark.zip
|
2008-04-09 03:48:16 +00:00
|
|
|
zip -r -9 wireshark.zip $(INSTALL_DIR)/
|
2006-09-23 01:39:07 +00:00
|
|
|
|
2012-01-30 22:57:09 +00:00
|
|
|
!IFDEF WIRESHARK_GENERATE_BSC_FILE
|
|
|
|
# FIXME: Add epan\wspython\*.sbr when we support Python embedding
|
2012-06-13 14:42:30 +00:00
|
|
|
# Note: Certain .sbr files cause bscmake warning "too many references... ignoring ..."
|
2012-06-13 16:18:38 +00:00
|
|
|
# XXX: It seems that using .bsc files with VS2010 doesn't work (isn't supported ?)
|
|
|
|
# Using .bsc files with VS2008 may work
|
|
|
|
# See: http://ask.wireshark.org/questions/8660/wireshark-building-and-debugging-on-visual-c-or-visual-studio
|
2012-02-18 23:55:41 +00:00
|
|
|
wireshark.bsc: \
|
|
|
|
*.sbr \
|
|
|
|
codecs\*.sbr \
|
|
|
|
epan\*.sbr \
|
|
|
|
epan\crypt\*.sbr \
|
|
|
|
epan\dfilter\*.sbr \
|
|
|
|
epan\dissectors\*.sbr \
|
|
|
|
epan\ftypes\*.sbr \
|
|
|
|
epan\wslua\*.sbr \
|
|
|
|
plugins\asn1\*.sbr \
|
|
|
|
plugins\docsis\*.sbr \
|
|
|
|
plugins\ethercat\*.sbr \
|
|
|
|
plugins\gryphon\*.sbr \
|
|
|
|
plugins\irda\*.sbr \
|
|
|
|
plugins\m2m\*.sbr \
|
|
|
|
plugins\mate\*.sbr \
|
|
|
|
plugins\opcua\*.sbr \
|
|
|
|
plugins\profinet\*.sbr \
|
2012-06-13 14:42:30 +00:00
|
|
|
plugins\stats_tree\*.sbr \
|
2012-02-18 23:55:41 +00:00
|
|
|
plugins\unistim\*.sbr \
|
|
|
|
plugins\wimax\*.sbr \
|
|
|
|
plugins\wimaxasncp\*.sbr \
|
2012-07-20 01:21:27 +00:00
|
|
|
plugins\wimaxmacphy\*.sbr \
|
2012-06-13 14:42:30 +00:00
|
|
|
ui\*.sbr \
|
|
|
|
ui\cli\*.sbr \
|
|
|
|
ui\gtk\*.sbr \
|
|
|
|
ui\win32\*.sbr \
|
2012-02-18 23:55:41 +00:00
|
|
|
wiretap\*.sbr \
|
|
|
|
wsutil\*.sbr
|
2008-07-03 00:16:28 +00:00
|
|
|
$(BSCMAKE) @<<
|
|
|
|
/o $@ $?
|
|
|
|
<<
|
2012-01-30 22:57:09 +00:00
|
|
|
!ELSE
|
|
|
|
wireshark.bsc:
|
|
|
|
!ENDIF
|
2006-09-22 23:16:31 +00:00
|
|
|
|
2010-07-06 22:35:33 +00:00
|
|
|
pdb_zip: all
|
|
|
|
cd $(INSTALL_DIR)
|
2012-03-16 17:36:40 +00:00
|
|
|
rm -f ../[Ww]ireshark-pdb-$(WIRESHARK_TARGET_PLATFORM)-$(VERSION).zip
|
|
|
|
zip -9 ../Wireshark-pdb-$(WIRESHARK_TARGET_PLATFORM)-$(VERSION).zip *.pdb *.lib
|
2010-07-06 22:35:33 +00:00
|
|
|
cd ..
|
|
|
|
|
2002-01-04 21:20:20 +00:00
|
|
|
$(RESOURCES): image
|
|
|
|
|
2007-11-28 20:06:21 +00:00
|
|
|
wiretap\wiretap-$(WTAP_VERSION).lib: image $(ZLIB_DLL) wiretap
|
2002-01-04 21:20:20 +00:00
|
|
|
|
2012-07-25 00:37:29 +00:00
|
|
|
wireshark.exe : $(LIBS_CHECK) config.h $(wireshark_OBJECTS) codecs epan ui gtk win32 image\wireshark.res image\file_dlg_win32.res wsutil\libwsutil.lib wiretap\wiretap-$(WTAP_VERSION).lib codecs\codecs.lib ui\libui.lib ui\gtk\libgtkui.lib ui\win32\libgtkui_win32.lib plugins
|
2000-06-16 15:05:26 +00:00
|
|
|
@echo Linking $@
|
2000-04-12 21:52:11 +00:00
|
|
|
$(LINK) @<<
|
2012-07-12 00:04:53 +00:00
|
|
|
/OUT:wireshark.exe $(guiflags) $(guilibsdll) $(LDFLAGS) /LARGEADDRESSAWARE /SUBSYSTEM:windows $(wireshark_LIBS) $(GTK_LIBS) codecs\codecs.lib ui\gtk\libgtkui.lib ui\win32\libgtkui_win32.lib ui\libui.lib $(wireshark_OBJECTS) image\wireshark.res image\file_dlg_win32.res
|
2004-01-24 20:01:36 +00:00
|
|
|
<<
|
2010-04-22 19:35:47 +00:00
|
|
|
!IFDEF MANIFEST_INFO_REQUIRED
|
2007-05-06 09:17:19 +00:00
|
|
|
mt.exe -nologo -manifest "wireshark.exe.manifest" -outputresource:wireshark.exe;1
|
|
|
|
!ENDIF
|
2000-04-12 21:52:11 +00:00
|
|
|
|
2012-07-25 00:37:29 +00:00
|
|
|
tshark.exe : $(LIBS_CHECK) config.h $(tshark_OBJECTS) epan ui cli image\tshark.res wsutil\libwsutil.lib wiretap\wiretap-$(WTAP_VERSION).lib plugins
|
2000-06-16 15:05:26 +00:00
|
|
|
@echo Linking $@
|
1999-07-21 17:40:42 +00:00
|
|
|
$(LINK) @<<
|
2012-02-19 19:01:01 +00:00
|
|
|
/OUT:tshark.exe $(conflags) $(conlibsdll) $(LDFLAGS) /LARGEADDRESSAWARE /SUBSYSTEM:console $(tshark_LIBS) $(tshark_OBJECTS) ui\cli\libcliui.lib ui\libui.lib image\tshark.res
|
2000-04-12 21:52:11 +00:00
|
|
|
<<
|
2010-04-22 19:35:47 +00:00
|
|
|
!IFDEF MANIFEST_INFO_REQUIRED
|
2007-05-06 09:17:19 +00:00
|
|
|
mt.exe -nologo -manifest "tshark.exe.manifest" -outputresource:tshark.exe;1
|
|
|
|
!ENDIF
|
2000-04-12 21:52:11 +00:00
|
|
|
|
2012-02-18 23:55:41 +00:00
|
|
|
rawshark.exe : $(LIBS_CHECK) config.h $(rawshark_OBJECTS) epan ui image\rawshark.res wsutil\libwsutil.lib wiretap\wiretap-$(WTAP_VERSION).lib plugins
|
2008-02-15 23:20:32 +00:00
|
|
|
@echo Linking $@
|
|
|
|
$(LINK) @<<
|
2012-02-18 23:55:41 +00:00
|
|
|
/OUT:rawshark.exe $(conflags) $(conlibsdll) $(LDFLAGS) /LARGEADDRESSAWARE /SUBSYSTEM:console $(rawshark_LIBS) $(rawshark_OBJECTS) ui\libui.lib image\rawshark.res
|
2008-02-15 23:20:32 +00:00
|
|
|
<<
|
2010-04-22 19:35:47 +00:00
|
|
|
!IFDEF MANIFEST_INFO_REQUIRED
|
2008-10-13 18:32:49 +00:00
|
|
|
mt.exe -nologo -manifest "rawshark.exe.manifest" -outputresource:rawshark.exe;1
|
|
|
|
!ENDIF
|
2008-02-15 23:20:32 +00:00
|
|
|
|
2008-06-22 15:13:08 +00:00
|
|
|
# XXX: This makefile does not properly handle doing a 'nmake ... capinfos.exe' directly since some of the .objs
|
|
|
|
# (e.g. epan\plugins.obj) must be built first using epan\Makefile.nmake (which happens for 'nmake ... all').
|
2010-02-21 22:06:50 +00:00
|
|
|
# Linking with setargv.obj enables "wildcard expansion" of command-line arguments
|
2010-05-28 20:19:55 +00:00
|
|
|
capinfos.exe : $(LIBS_CHECK) config.h $(capinfos_OBJECTS) wsutil\libwsutil.lib wiretap\wiretap-$(WTAP_VERSION).lib image\capinfos.res
|
2004-07-28 20:51:29 +00:00
|
|
|
@echo Linking $@
|
|
|
|
$(LINK) @<<
|
2010-09-15 15:13:17 +00:00
|
|
|
/OUT:capinfos.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console $(capinfos_OBJECTS) $(capinfos_LIBS) setargv.obj image\capinfos.res
|
2004-07-28 20:51:29 +00:00
|
|
|
<<
|
2010-04-22 19:35:47 +00:00
|
|
|
!IFDEF MANIFEST_INFO_REQUIRED
|
2007-05-06 09:17:19 +00:00
|
|
|
mt.exe -nologo -manifest "capinfos.exe.manifest" -outputresource:capinfos.exe;1
|
|
|
|
!ENDIF
|
2004-07-28 20:51:29 +00:00
|
|
|
|
2008-06-22 15:13:08 +00:00
|
|
|
# XXX: This makefile does not properly handle doing a 'nmake ... editcap.exe' directly since some of the .objs
|
|
|
|
# (e.g. epan\plugins.obj) must be built first using epan\Makefile.nmake (which happens for 'nmake ... all').
|
2010-05-28 20:19:55 +00:00
|
|
|
editcap.exe : $(LIBS_CHECK) config.h $(editcap_OBJECTS) wsutil\libwsutil.lib wiretap\wiretap-$(WTAP_VERSION).lib image\editcap.res
|
2000-06-16 15:05:26 +00:00
|
|
|
@echo Linking $@
|
2000-04-12 21:52:11 +00:00
|
|
|
$(LINK) @<<
|
2010-09-15 15:13:17 +00:00
|
|
|
/OUT:editcap.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console $(editcap_OBJECTS) $(editcap_LIBS) image\editcap.res
|
1999-07-21 17:40:42 +00:00
|
|
|
<<
|
2010-04-22 19:35:47 +00:00
|
|
|
!IFDEF MANIFEST_INFO_REQUIRED
|
2007-05-06 09:17:19 +00:00
|
|
|
mt.exe -nologo -manifest "editcap.exe.manifest" -outputresource:editcap.exe;1
|
|
|
|
!ENDIF
|
1999-07-13 02:53:26 +00:00
|
|
|
|
2010-02-21 22:06:50 +00:00
|
|
|
# Linking with setargv.obj enables "wildcard expansion" of command-line arguments
|
2010-05-28 20:19:55 +00:00
|
|
|
mergecap.exe : $(LIBS_CHECK) config.h mergecap.obj merge.obj wsutil\libwsutil.lib wiretap\wiretap-$(WTAP_VERSION).lib image\mergecap.res
|
2001-07-12 19:59:41 +00:00
|
|
|
@echo Linking $@
|
|
|
|
$(LINK) @<<
|
2010-09-15 15:13:17 +00:00
|
|
|
/OUT:mergecap.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console mergecap.obj merge.obj $(mergecap_LIBS) setargv.obj image\mergecap.res
|
2001-07-12 19:59:41 +00:00
|
|
|
<<
|
2010-04-22 19:35:47 +00:00
|
|
|
!IFDEF MANIFEST_INFO_REQUIRED
|
2007-05-06 09:17:19 +00:00
|
|
|
mt.exe -nologo -manifest "mergecap.exe.manifest" -outputresource:mergecap.exe;1
|
|
|
|
!ENDIF
|
2001-07-12 19:59:41 +00:00
|
|
|
|
2010-05-28 20:19:55 +00:00
|
|
|
text2pcap.exe : $(LIBS_CHECK) config.h text2pcap.obj text2pcap-scanner.obj wsutil\libwsutil.lib wiretap\wiretap-$(WTAP_VERSION).lib image\text2pcap.res
|
2001-05-21 03:17:14 +00:00
|
|
|
@echo Linking $@
|
|
|
|
$(LINK) @<<
|
2010-09-15 15:13:17 +00:00
|
|
|
/OUT:text2pcap.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console text2pcap.obj text2pcap-scanner.obj $(text2pcap_LIBS) image\text2pcap.res
|
2001-05-21 03:17:14 +00:00
|
|
|
<<
|
2010-04-22 19:35:47 +00:00
|
|
|
!IFDEF MANIFEST_INFO_REQUIRED
|
2007-05-06 09:17:19 +00:00
|
|
|
mt.exe -nologo -manifest "text2pcap.exe.manifest" -outputresource:text2pcap.exe;1
|
|
|
|
!ENDIF
|
2001-05-21 03:17:14 +00:00
|
|
|
|
2012-02-18 23:55:41 +00:00
|
|
|
dftest.exe : $(dftest_OBJECTS) epan ui
|
2005-12-05 21:28:34 +00:00
|
|
|
@echo Linking $@
|
2001-02-11 03:19:45 +00:00
|
|
|
$(LINK) @<<
|
2012-06-25 22:21:58 +00:00
|
|
|
/OUT:dftest.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console $(dftest_LIBS) ui\libui.lib $(dftest_OBJECTS)
|
2001-02-11 03:19:45 +00:00
|
|
|
<<
|
2010-04-22 19:35:47 +00:00
|
|
|
!IFDEF MANIFEST_INFO_REQUIRED
|
2007-05-06 09:17:19 +00:00
|
|
|
mt.exe -nologo -manifest "dftest.exe.manifest" -outputresource:dftest.exe;1
|
|
|
|
!ENDIF
|
2001-02-11 03:19:45 +00:00
|
|
|
|
2010-05-28 20:19:55 +00:00
|
|
|
randpkt.exe : $(randpkt_OBJECTS)
|
2005-12-05 21:28:34 +00:00
|
|
|
@echo Linking $@
|
2002-10-16 14:45:27 +00:00
|
|
|
$(LINK) @<<
|
2010-09-15 15:13:17 +00:00
|
|
|
/OUT:randpkt.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console $(randpkt_LIBS) $(randpkt_OBJECTS)
|
2002-10-16 14:45:27 +00:00
|
|
|
<<
|
2010-04-22 19:35:47 +00:00
|
|
|
!IFDEF MANIFEST_INFO_REQUIRED
|
2007-05-06 09:17:19 +00:00
|
|
|
mt.exe -nologo -manifest "randpkt.exe.manifest" -outputresource:randpkt.exe;1
|
|
|
|
!ENDIF
|
2002-10-16 14:45:27 +00:00
|
|
|
|
2011-01-04 22:12:25 +00:00
|
|
|
dumpcap.exe : $(LIBS_CHECK) config.h $(dumpcap_OBJECTS) wsutil\libwsutil.lib image\dumpcap.res
|
2005-11-28 08:54:52 +00:00
|
|
|
@echo Linking $@
|
|
|
|
$(LINK) @<<
|
2010-09-15 15:13:17 +00:00
|
|
|
/OUT:dumpcap.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console $(dumpcap_LIBS) $(dumpcap_OBJECTS) image\dumpcap.res
|
2005-11-28 08:54:52 +00:00
|
|
|
<<
|
2010-04-22 19:35:47 +00:00
|
|
|
!IFDEF MANIFEST_INFO_REQUIRED
|
2007-05-06 09:17:19 +00:00
|
|
|
mt.exe -nologo -manifest "dumpcap.exe.manifest" -outputresource:dumpcap.exe;1
|
|
|
|
!ENDIF
|
2005-11-28 08:54:52 +00:00
|
|
|
|
|
|
|
|
2003-06-12 09:45:42 +00:00
|
|
|
config.h : config.h.win32 config.nmake
|
2003-10-10 09:48:54 +00:00
|
|
|
sed -e s/@VERSION@/$(VERSION)/ \
|
2008-08-07 21:41:48 +00:00
|
|
|
-e "s/@HAVE_C_ARES@/$(C_ARES_CONFIG)/" \
|
2003-10-10 09:48:54 +00:00
|
|
|
-e "s/@HAVE_GNU_ADNS@/$(ADNS_CONFIG)/" \
|
2006-08-05 04:32:57 +00:00
|
|
|
-e "s/@HAVE_KFW@/$(KFW_CONFIG)/" \
|
2004-10-15 15:36:12 +00:00
|
|
|
-e "s/@HAVE_NETTLE@/$(NETTLE_CONFIG)/" \
|
2003-11-07 23:27:13 +00:00
|
|
|
-e "s/@HAVE_LIBZ@/$(ZLIB_CONFIG)/" \
|
2003-10-10 09:48:54 +00:00
|
|
|
-e "s/@HAVE_LIBPCAP@/$(WINPCAP_CONFIG)/" \
|
|
|
|
-e "s/@HAVE_PCAP_FINDALLDEVS@/$(PCAP_FINDALLDEVS_CONFIG)/" \
|
2004-09-23 17:54:49 +00:00
|
|
|
-e "s/@HAVE_PCAP_DATALINK_NAME_TO_VAL@/$(PCAP_DATALINK_NAME_TO_VAL_CONFIG)/" \
|
|
|
|
-e "s/@HAVE_PCAP_DATALINK_VAL_TO_NAME@/$(PCAP_DATALINK_VAL_TO_NAME_CONFIG)/" \
|
2009-12-18 20:36:36 +00:00
|
|
|
-e "s/@HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION@/$(PCAP_DATALINK_VAL_TO_DESCRIPTION_CONFIG)/" \
|
2006-05-21 21:32:04 +00:00
|
|
|
-e "s/@HAVE_PCAP_BREAKLOOP@/$(PCAP_BREAKLOOP_CONFIG)/" \
|
2007-12-04 11:19:29 +00:00
|
|
|
-e "s/@HAVE_REMOTE@/$(PCAP_HAVE_REMOTE_CONFIG)/" \
|
|
|
|
-e "s/@HAVE_PCAP_REMOTE@/$(PCAP_REMOTE_CONFIG)/" \
|
|
|
|
-e "s/@HAVE_PCAP_OPEN@/$(PCAP_OPEN_CONFIG)/" \
|
2010-10-03 12:04:18 +00:00
|
|
|
-e "s/@HAVE_PCAP_OPEN_DEAD@/$(PCAP_OPEN_DEAD_CONFIG)/" \
|
2009-08-30 18:30:14 +00:00
|
|
|
-e "s/@HAVE_PCAP_LIST_DATALINKS@/$(PCAP_LIST_DATALINKS_CONFIG)/" \
|
2010-03-17 18:04:21 +00:00
|
|
|
-e "s/@HAVE_PCAP_FREE_DATALINKS@/$(PCAP_FREE_DATALINKS_CONFIG)/" \
|
2009-08-30 18:30:14 +00:00
|
|
|
-e "s/@HAVE_PCAP_SET_DATALINK@/$(PCAP_SET_DATALINK_CONFIG)/" \
|
2007-12-04 11:19:29 +00:00
|
|
|
-e "s/@HAVE_PCAP_SETSAMPLING@/$(PCAP_SETSAMPLING_CONFIG)/" \
|
2010-10-03 22:42:27 +00:00
|
|
|
-e "s/@HAVE_BPF_IMAGE@/$(BPF_IMAGE_CONFIG)/" \
|
2006-05-31 00:23:01 +00:00
|
|
|
-e "s/@HAVE_LIBWIRESHARKDLL@/$(LIBWIRESHARK_CONFIG)/" \
|
2006-09-12 17:46:55 +00:00
|
|
|
-e "s/@HAVE_LIBGNUTLS@/$(GNUTLS_CONFIG)/" \
|
2006-08-09 02:00:05 +00:00
|
|
|
-e "s/@HAVE_LIBGCRYPT@/$(LIBGCRYPT_CONFIG)/" \
|
2006-03-01 21:31:07 +00:00
|
|
|
-e "s/@HAVE_LUA@/$(LUA_CONFIG)/" \
|
2012-06-25 20:42:07 +00:00
|
|
|
-e "s/@HAVE_LUA@/$(LUA_VERSION)/" \
|
2010-06-01 22:20:15 +00:00
|
|
|
-e "s/@HAVE_PYTHON@/$(PYTHON_CONFIG)/" \
|
2006-08-19 00:24:40 +00:00
|
|
|
-e "s/@HAVE_AIRPCAP@/$(AIRPCAP_CONFIG)/" \
|
2006-12-06 20:29:54 +00:00
|
|
|
-e "s/@HAVE_AIRPDCAP@/$(AIRPDCAP_CONFIG)/" \
|
2006-09-12 18:43:56 +00:00
|
|
|
-e "s/@HAVE_LIBPORTAUDIO@/$(PORTAUDIO_CONFIG)/" \
|
|
|
|
-e "s/@PORTAUDIO_API_1@/$(PORTAUDIO_API_CONFIG)/" \
|
2007-09-24 06:59:40 +00:00
|
|
|
-e "s/@HAVE_SMI@/$(SMI_CONFIG)/" \
|
2008-12-23 18:56:31 +00:00
|
|
|
-e "s/@HAVE_GEOIP@/$(GEOIP_CONFIG)/" \
|
2011-10-05 23:02:31 +00:00
|
|
|
-e "s/@HAVE_GEOIP_V6@/$(GEOIP_V6_CONFIG)/" \
|
2008-08-11 21:59:59 +00:00
|
|
|
-e "s/@INET6@/$(INET6_CONFIG)/" \
|
2009-05-08 19:53:41 +00:00
|
|
|
-e "s/@HAVE_NTDDNDIS_H@/$(NTDDNDIS_CONFIG)/" \
|
2011-06-17 18:40:07 +00:00
|
|
|
-e "s/@PCAP_NG_DEFAULT@/$(PCAP_NG_DEFAULT)/" \
|
2011-05-12 17:46:54 +00:00
|
|
|
-e "s/@WANT_PACKET_EDITOR@/$(WANT_PACKET_EDITOR)/" \
|
2003-10-10 09:48:54 +00:00
|
|
|
< config.h.win32 > $@
|
1999-07-13 02:53:26 +00:00
|
|
|
|
2012-01-20 18:30:44 +00:00
|
|
|
ui\qt\config.pri: config.nmake Makefile.nmake
|
2012-01-20 01:10:40 +00:00
|
|
|
@echo Creating <<ui\qt\config.pri
|
2012-01-24 21:26:22 +00:00
|
|
|
# Automatically generated from Makefile.nmake. Edit there, not here.
|
2012-03-25 21:27:49 +00:00
|
|
|
# qmake apparently requires a three-part numeric VERSION.
|
|
|
|
VERSION = $(VERSION_MAJOR).$(VERSION_MINOR).$(VERSION_MICRO)
|
|
|
|
VERSION_FULL = $(VERSION)
|
2012-06-05 18:37:32 +00:00
|
|
|
WTAP_VERSION = $(WTAP_VERSION)
|
2012-02-01 21:47:31 +00:00
|
|
|
!IFDEF MANIFEST_INFO_REQUIRED
|
|
|
|
CONFIG += wireshark_manifest_info_required
|
|
|
|
!ENDIF
|
2012-03-25 19:01:58 +00:00
|
|
|
!IFDEF KFW_DIR
|
|
|
|
CONFIG += wireshark_use_kfw
|
|
|
|
!ENDIF
|
2012-01-20 18:30:44 +00:00
|
|
|
WIRESHARK_LIB_DIR = $(WIRESHARK_LIB_DIR:\=/)
|
|
|
|
GLIB_DIR = $(GTK_DIR:\=/)
|
|
|
|
C_ARES_DIR = $(C_ARES_DIR:\=/)
|
|
|
|
ZLIB_DIR = $(ZLIB_DIR:\=/)
|
|
|
|
GNUTLS_DIR = $(GNUTLS_DIR:\=/)
|
|
|
|
SMI_DIR = $(SMI_DIR:\=/)
|
|
|
|
KFW_DIR = $(KFW_DIR:\=/)
|
|
|
|
LUA_DIR = $(LUA_DIR:\=/)
|
2012-01-24 21:26:22 +00:00
|
|
|
PORTAUDIO_DIR = $(PORTAUDIO_DIR:\=/)
|
2012-06-05 23:43:02 +00:00
|
|
|
GEOIP_DIR = $(GEOIP_DIR:\=/)
|
2012-01-20 18:30:44 +00:00
|
|
|
|
2012-03-25 19:01:58 +00:00
|
|
|
INTL_DLL = $(INTL_DLL)
|
|
|
|
|
2012-01-20 18:30:44 +00:00
|
|
|
MSVC_VARIANT = $(MSVC_VARIANT)
|
2012-08-16 19:37:01 +00:00
|
|
|
MSVCR_DLL = "$(MSVCR_DLL:\=/)"
|
2012-01-20 18:30:44 +00:00
|
|
|
|
2012-01-30 04:37:12 +00:00
|
|
|
QMAKE_CFLAGS *= $(STANDARD_CFLAGS) $(PORTAUDIO_CFLAGS:\=/)
|
|
|
|
QMAKE_CXXFLAGS *= $(STANDARD_CFLAGS) $(PORTAUDIO_CFLAGS:\=/)
|
|
|
|
QMAKE_LFLAGS *= /LARGEADDRESSAWARE $(LDFLAGS)
|
2012-01-20 18:30:44 +00:00
|
|
|
|
|
|
|
DEFINES += _NEED_VAR_IMPORT_
|
|
|
|
|
2012-01-20 01:10:40 +00:00
|
|
|
<<KEEP
|
2004-01-17 00:26:30 +00:00
|
|
|
|
2009-10-04 07:50:36 +00:00
|
|
|
ps.c: tools\rdps.py print.ps
|
|
|
|
$(PYTHON) tools\rdps.py print.ps ps.c
|
2004-01-17 00:26:30 +00:00
|
|
|
#
|
|
|
|
# Build the version string
|
|
|
|
#
|
2011-11-17 19:41:36 +00:00
|
|
|
!IF EXIST(".svn/wc.db")
|
|
|
|
SVNENTRIES = .svn/wc.db
|
|
|
|
!ELSE IF EXIST(".svn/entries")
|
2006-10-18 20:30:15 +00:00
|
|
|
SVNENTRIES = .svn/entries
|
|
|
|
!ELSE
|
|
|
|
SVNENTRIES =
|
|
|
|
!ENDIF
|
|
|
|
svnversion.h: $(SVNENTRIES)
|
|
|
|
rm -f svnversion.h
|
2004-01-17 13:09:00 +00:00
|
|
|
$(PERL) make-version.pl
|
2004-01-17 00:26:30 +00:00
|
|
|
|
2004-05-21 17:25:32 +00:00
|
|
|
|
2001-05-21 03:17:14 +00:00
|
|
|
text2pcap-scanner.c : text2pcap-scanner.l
|
|
|
|
$(LEX) -otext2pcap-scanner.c text2pcap-scanner.l
|
|
|
|
|
2009-04-16 04:05:39 +00:00
|
|
|
text2pcap-scanner.obj : text2pcap-scanner.c
|
2012-03-01 02:53:38 +00:00
|
|
|
$(CC) $(GENERATED_CFLAGS) -Fd.\ -c $?
|
2009-04-16 04:05:39 +00:00
|
|
|
|
2010-01-02 17:34:45 +00:00
|
|
|
#
|
2010-05-28 20:19:55 +00:00
|
|
|
# The following targets will rebuild their respective objs
|
2010-01-02 17:34:45 +00:00
|
|
|
# if and when svnversion.h should change.
|
|
|
|
#
|
2011-01-16 23:24:15 +00:00
|
|
|
text2pcap.obj mergecap.obj capinfos.obj editcap.obj version_info.obj: svnversion.h
|
2010-01-02 17:34:45 +00:00
|
|
|
|
|
|
|
|
2011-02-02 01:19:53 +00:00
|
|
|
clean-local:
|
2008-02-18 13:22:00 +00:00
|
|
|
rm -f $(wireshark_OBJECTS) $(tshark_OBJECTS) $(dumpcap_OBJECTS) $(rawshark_OBJECTS) \
|
2012-01-29 21:56:35 +00:00
|
|
|
$(EXECUTABLES) *.pdb *.sbr *.exe.manifest \
|
2007-06-11 18:26:09 +00:00
|
|
|
capinfos.obj editcap.obj mergecap.obj text2pcap.obj \
|
2007-09-05 23:09:39 +00:00
|
|
|
nio-ie5.obj update.obj \
|
2003-10-10 21:31:53 +00:00
|
|
|
text2pcap-scanner.obj text2pcap-scanner.c rdps.obj \
|
2009-06-21 12:47:48 +00:00
|
|
|
rdps.pdb rdps.exe rdps.ilk config.h ps.c $(LIBS_CHECK) \
|
2007-10-11 01:24:36 +00:00
|
|
|
dftest.obj dftest.exe randpkt.obj randpkt.ext \
|
2005-12-16 17:53:44 +00:00
|
|
|
doxygen.cfg \
|
2008-05-20 21:51:01 +00:00
|
|
|
$(RESOURCES) libwireshark.dll wiretap-$(WTAP_VERSION).dll \
|
2008-07-03 00:16:28 +00:00
|
|
|
libwsutil.dll \
|
|
|
|
wireshark.bsc
|
2011-02-02 01:19:53 +00:00
|
|
|
rm -rf $(INSTALL_DIR)
|
2007-10-15 16:44:31 +00:00
|
|
|
|
|
|
|
clean: clean-local
|
2006-02-25 09:31:35 +00:00
|
|
|
cd asn1
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
|
2008-05-20 21:51:01 +00:00
|
|
|
cd ../wiretap
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
|
|
|
|
cd ../wsutil
|
2001-03-06 13:08:13 +00:00
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
|
2006-09-02 06:39:43 +00:00
|
|
|
cd ../codecs
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
|
2012-02-18 23:55:41 +00:00
|
|
|
cd ../ui
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
|
|
|
|
cd gtk
|
2001-03-06 13:08:13 +00:00
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
|
2012-01-16 01:26:46 +00:00
|
|
|
cd ../win32
|
2010-11-26 19:16:06 +00:00
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
|
2012-02-19 19:01:01 +00:00
|
|
|
cd ../cli
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
|
2012-01-16 01:26:46 +00:00
|
|
|
cd ../../epan
|
2001-03-06 13:08:13 +00:00
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
|
2000-04-04 08:22:13 +00:00
|
|
|
cd ../plugins
|
2001-03-06 13:08:13 +00:00
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
|
2001-02-02 04:03:43 +00:00
|
|
|
cd ../tools
|
2001-03-06 13:08:13 +00:00
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
|
2001-04-05 04:39:29 +00:00
|
|
|
cd ../image
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
|
2002-01-04 21:20:20 +00:00
|
|
|
cd ../doc
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
|
2011-08-11 02:41:39 +00:00
|
|
|
cd ../docbook
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
|
2003-11-18 23:40:12 +00:00
|
|
|
cd ../help
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
|
2003-11-24 17:41:33 +00:00
|
|
|
cd ../packaging/nsis
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
|
2006-10-04 18:08:51 +00:00
|
|
|
cd ../u3/win32
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
|
2007-11-02 13:47:23 +00:00
|
|
|
cd ../../portableapps/win32
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
|
2006-10-04 18:08:51 +00:00
|
|
|
cd ../../..
|
2001-02-02 04:03:43 +00:00
|
|
|
|
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
|
|
|
# "distclean" removes all files not part of the distribution.
|
|
|
|
# It does not remove generated files that are part of the distribution.
|
2007-10-15 16:44:31 +00:00
|
|
|
distclean-local: clean-local
|
2008-04-13 17:58:04 +00:00
|
|
|
!IFDEF ADNS_DIR
|
2008-04-13 21:21:25 +00:00
|
|
|
rm -f $(ADNS_DLL) $(ADNS_LIBS)
|
2008-04-13 17:58:04 +00:00
|
|
|
!ENDIF
|
2007-11-28 20:06:21 +00:00
|
|
|
!IFDEF ZLIB_DIR
|
2008-04-13 17:58:04 +00:00
|
|
|
rm -f $(ZLIB_DLL) $(ZLIB_DIR)\zlib1.dll.manifest \
|
2007-01-08 02:40:06 +00:00
|
|
|
$(ZLIB_DIR)\include\zlib.h $(ZLIB_DIR)\include\zconf.h \
|
2008-02-15 23:20:32 +00:00
|
|
|
$(ZLIB_DIR)\lib\zdll.lib
|
2007-11-28 20:06:21 +00:00
|
|
|
!ENDIF
|
2011-08-10 20:02:31 +00:00
|
|
|
rm -f config.h $(BUILT_SOURCES) wireshark-pdb*.zip
|
2007-10-15 16:44:31 +00:00
|
|
|
|
|
|
|
distclean: distclean-local
|
2003-10-10 21:31:53 +00:00
|
|
|
cd wiretap
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
|
2008-05-20 21:51:01 +00:00
|
|
|
cd ../wsutil
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
|
2006-09-02 06:39:43 +00:00
|
|
|
cd ../codecs
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
|
2012-02-18 23:55:41 +00:00
|
|
|
cd ../ui
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
|
|
|
|
cd gtk
|
2003-10-10 21:31:53 +00:00
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
|
2012-01-16 01:26:46 +00:00
|
|
|
cd ../win32
|
2010-11-26 19:16:06 +00:00
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
|
2012-02-19 19:01:01 +00:00
|
|
|
cd ../cli
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
|
2012-01-16 01:26:46 +00:00
|
|
|
cd ../../epan
|
2003-10-10 21:31:53 +00:00
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
|
|
|
|
cd ../plugins
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
|
|
|
|
cd ../tools
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
|
|
|
|
cd ../image
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
|
|
|
|
cd ../doc
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
|
2011-08-11 02:41:39 +00:00
|
|
|
cd ../docbook
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
|
2003-11-18 23:40:12 +00:00
|
|
|
cd ../help
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
|
2003-11-24 17:41:33 +00:00
|
|
|
cd ../packaging/nsis
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
|
2006-10-04 18:08:51 +00:00
|
|
|
cd ../u3/win32
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
|
2007-11-02 13:47:23 +00:00
|
|
|
cd ../../portableapps/win32
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
|
2006-10-04 18:08:51 +00:00
|
|
|
cd ../../..
|
2002-09-10 08:28:14 +00:00
|
|
|
|
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 "maintainer-clean" only if you would like to remove ALL generated
|
|
|
|
# files.
|
|
|
|
# Be sure to have python and perl installed to regenerate them.
|
2007-10-15 16:44:31 +00:00
|
|
|
maintainer-clean-local: distclean-local
|
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
|
|
|
rm -f $(GENERATED_FILES)
|
2007-10-15 16:44:31 +00:00
|
|
|
|
|
|
|
maintainer-clean: maintainer-clean-local
|
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 wiretap
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
|
2008-05-20 21:51:01 +00:00
|
|
|
cd ../wsutil
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
|
2006-09-02 06:39:43 +00:00
|
|
|
cd ../codecs
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
|
2012-02-18 23:55:41 +00:00
|
|
|
cd ../ui
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
|
|
|
|
cd gtk
|
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
|
2012-01-16 01:26:46 +00:00
|
|
|
cd ../win32
|
2010-11-26 19:16:06 +00:00
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
|
2012-02-19 19:01:01 +00:00
|
|
|
cd ../cli
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
|
2012-01-16 01:26:46 +00:00
|
|
|
cd ../../epan
|
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 ../plugins
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
|
|
|
|
cd ../tools
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
|
|
|
|
cd ../image
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
|
|
|
|
cd ../doc
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
|
2011-08-11 02:41:39 +00:00
|
|
|
cd ../docbook
|
|
|
|
$(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 ../help
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
|
|
|
|
cd ../packaging/nsis
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
|
2006-10-04 18:08:51 +00:00
|
|
|
cd ../u3/win32
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
|
2007-11-02 13:47:23 +00:00
|
|
|
cd ../../portableapps/win32
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
|
2006-10-04 18:08:51 +00:00
|
|
|
cd ../../..
|
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
|
|
|
|
2001-02-02 04:03:43 +00:00
|
|
|
tools::
|
|
|
|
cd tools
|
2001-03-06 13:08:13 +00:00
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
|
2000-04-04 08:22:13 +00:00
|
|
|
cd ..
|
2000-02-09 00:41:57 +00:00
|
|
|
|
2001-04-05 04:39:29 +00:00
|
|
|
image::
|
|
|
|
cd image
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
|
|
|
|
cd ..
|
|
|
|
|
2008-04-13 17:58:04 +00:00
|
|
|
!IFDEF ADNS_DIR
|
2012-01-06 15:45:46 +00:00
|
|
|
# MSVC variants supported by Wireshark have to avoid indirectly using msvcrt.dll,
|
2008-04-13 14:45:43 +00:00
|
|
|
# therefore compile the adns dll from source ADNS_DIR package.
|
|
|
|
# To avoid path problems, copy the adns sources to a temp dir,
|
|
|
|
# compile and copy the resulting files back to (source) ADNS_DIR
|
2008-04-13 17:58:04 +00:00
|
|
|
#
|
2008-04-13 18:46:47 +00:00
|
|
|
# Unfortunately:
|
|
|
|
# - we need to "patch" adns_dll.rep and adns_dll.rc (at least for MSVC2005EE)
|
2008-05-22 15:46:27 +00:00
|
|
|
#
|
2008-04-13 17:58:04 +00:00
|
|
|
$(ADNS_DLL):
|
|
|
|
xcopy $(ADNS_DIR) adns.tmp /D /I /E /Y
|
|
|
|
copy adns_dll.dep adns.tmp\adns_win32\adns_dll
|
|
|
|
copy adns_dll.rc adns.tmp\adns_win32\adns_dll
|
|
|
|
cd adns.tmp\adns_win32\adns_dll
|
|
|
|
set CFG=adns_dll - Win32 Release
|
2008-09-16 21:08:18 +00:00
|
|
|
$(MAKE) /$(MAKEFLAGS) -f adns_dll.mak LOC="$(LOCAL_CFLAGS)"
|
2008-04-13 17:58:04 +00:00
|
|
|
cd ..\lib
|
2010-04-22 19:35:47 +00:00
|
|
|
!IFDEF MANIFEST_INFO_REQUIRED
|
2008-04-13 17:58:04 +00:00
|
|
|
mt.exe -nologo -manifest "adns_dll.dll.manifest" -outputresource:adns_dll.dll;2
|
|
|
|
!ENDIF
|
2012-01-06 18:25:20 +00:00
|
|
|
if not exist "$(WIRESHARK_LIB_DIR)\$(MSVC_VARIANT)\adns" mkdir "$(WIRESHARK_LIB_DIR)\$(MSVC_VARIANT)\adns"
|
2008-04-13 17:58:04 +00:00
|
|
|
copy adns_dll.dll $(ADNS_DLL)
|
|
|
|
copy adns_dll.lib $(ADNS_LIBS)
|
|
|
|
cd ..\..\..
|
|
|
|
rm -r -f adns.tmp
|
|
|
|
!ENDIF
|
2008-04-13 14:45:43 +00:00
|
|
|
|
2007-11-28 20:06:21 +00:00
|
|
|
!IFDEF ZLIB_DIR
|
2012-01-06 15:45:46 +00:00
|
|
|
# MSVC variants supported by Wireshark have to avoid indirectly using msvcrt.dll,
|
2007-01-08 02:40:06 +00:00
|
|
|
# therefore compile the zlib dll from source ZLIB_DIR package.
|
|
|
|
# To avoid path problems, copy the zlib sources to a temp dir,
|
|
|
|
# compile and copy the resulting files back to (source) ZLIB_DIR
|
2007-11-28 20:06:21 +00:00
|
|
|
$(ZLIB_DLL):
|
2007-01-10 21:42:34 +00:00
|
|
|
xcopy $(ZLIB_DIR) zlib.tmp /D /I /E /Y
|
2007-01-08 02:40:06 +00:00
|
|
|
cd zlib.tmp
|
2011-04-12 15:44:05 +00:00
|
|
|
!if "$(WIRESHARK_TARGET_PLATFORM)" == "win32"
|
2011-06-23 23:04:03 +00:00
|
|
|
$(MAKE) /$(MAKEFLAGS) -f win32/Makefile.msc zlib1.dll LOC="-DASMV -DASMINF" OBJA="inffas32.obj match686.obj"
|
2011-04-12 15:44:05 +00:00
|
|
|
!else
|
2011-04-13 04:47:38 +00:00
|
|
|
$(MAKE) /$(MAKEFLAGS) -f win32/Makefile.msc zlib1.dll AS=ml64 LOC="-DASMV -DASMINF" OBJA="inffasx64.obj gvmat64.obj inffas8664.obj"
|
2011-06-23 23:04:03 +00:00
|
|
|
!endif
|
2007-01-08 02:40:06 +00:00
|
|
|
if not exist $(ZLIB_DIR) mkdir $(ZLIB_DIR)
|
|
|
|
if not exist $(ZLIB_DIR)\lib mkdir $(ZLIB_DIR)\lib
|
|
|
|
if not exist $(ZLIB_DIR)\include mkdir $(ZLIB_DIR)\include
|
2010-04-22 19:35:47 +00:00
|
|
|
!IFDEF MANIFEST_INFO_REQUIRED
|
2007-05-09 06:35:13 +00:00
|
|
|
mt.exe -nologo -manifest "zlib1.dll.manifest" -outputresource:zlib1.dll;2
|
2007-05-06 09:17:19 +00:00
|
|
|
!ENDIF
|
2007-01-08 02:40:06 +00:00
|
|
|
copy zlib1.dll $(ZLIB_DIR)
|
|
|
|
copy zdll.lib $(ZLIB_DIR)\lib
|
|
|
|
copy zconf.h $(ZLIB_DIR)\include
|
|
|
|
copy zlib.h $(ZLIB_DIR)\include
|
|
|
|
cd ..
|
2008-09-16 21:08:18 +00:00
|
|
|
rm -r -f zlib.tmp
|
2007-11-28 20:06:21 +00:00
|
|
|
!ENDIF
|
2007-01-08 02:40:06 +00:00
|
|
|
|
2008-05-20 21:51:01 +00:00
|
|
|
wsutil::
|
|
|
|
cd wsutil
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
|
|
|
|
cd ..
|
2008-04-13 14:45:43 +00:00
|
|
|
|
2007-01-08 07:42:26 +00:00
|
|
|
wiretap::
|
2000-02-09 00:41:57 +00:00
|
|
|
cd wiretap
|
2001-03-06 13:08:13 +00:00
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
|
2000-02-09 00:41:57 +00:00
|
|
|
cd ..
|
|
|
|
|
2006-09-10 13:37:42 +00:00
|
|
|
codecs::
|
2012-01-15 21:59:11 +00:00
|
|
|
cd codecs
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
|
|
|
|
cd ..
|
2006-09-02 06:39:43 +00:00
|
|
|
|
2012-07-25 21:08:44 +00:00
|
|
|
ui:: help config.h svnversion.h doxygen
|
2012-02-18 23:55:41 +00:00
|
|
|
cd ui
|
|
|
|
$(MAKE) /$(MAKEFLAGS) /f Makefile.nmake libui.lib
|
|
|
|
cd ..
|
|
|
|
|
2012-07-25 21:08:44 +00:00
|
|
|
gtk:: help config.h svnversion.h doxygen
|
2012-01-15 21:59:11 +00:00
|
|
|
cd ui/gtk
|
2012-02-18 20:24:54 +00:00
|
|
|
$(MAKE) /$(MAKEFLAGS) /f Makefile.nmake libgtkui.lib
|
2012-01-15 21:59:11 +00:00
|
|
|
cd ../..
|
2000-02-09 00:41:57 +00:00
|
|
|
|
2012-07-25 21:08:44 +00:00
|
|
|
win32::
|
2012-01-16 01:26:46 +00:00
|
|
|
cd ui/win32
|
2012-02-18 20:24:54 +00:00
|
|
|
$(MAKE) /$(MAKEFLAGS) /f Makefile.nmake libgtkui_win32.lib
|
2012-01-16 01:26:46 +00:00
|
|
|
cd ../..
|
2010-11-26 19:16:06 +00:00
|
|
|
|
2012-07-25 21:08:44 +00:00
|
|
|
cli:: help config.h svnversion.h doxygen
|
2012-02-19 19:01:01 +00:00
|
|
|
cd ui/cli
|
|
|
|
$(MAKE) /$(MAKEFLAGS) /f Makefile.nmake libcliui.lib
|
|
|
|
cd ../..
|
|
|
|
|
2007-11-28 20:06:21 +00:00
|
|
|
epan:: $(RESOURCES) $(ZLIB_DLL) wiretap\wiretap-$(WTAP_VERSION).lib $(BUILT_SOURCES) doxygen
|
2000-10-11 07:35:02 +00:00
|
|
|
cd epan
|
2001-03-06 13:08:13 +00:00
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
|
2000-10-11 07:35:02 +00:00
|
|
|
cd ..
|
|
|
|
|
2000-02-09 19:18:42 +00:00
|
|
|
plugins::
|
2000-02-09 00:41:57 +00:00
|
|
|
cd plugins
|
2001-03-06 13:08:13 +00:00
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
|
2000-02-09 00:41:57 +00:00
|
|
|
cd ..
|
2003-11-18 23:40:12 +00:00
|
|
|
|
2003-12-08 22:28:53 +00:00
|
|
|
doc::
|
|
|
|
cd doc
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
|
2011-08-11 02:41:39 +00:00
|
|
|
cd ..
|
|
|
|
|
|
|
|
docbook::
|
|
|
|
cd docbook
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
|
2003-12-08 22:28:53 +00:00
|
|
|
cd ..
|
|
|
|
|
2003-11-18 23:40:12 +00:00
|
|
|
help::
|
|
|
|
cd help
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
|
|
|
|
cd ..
|
2004-04-08 20:36:09 +00:00
|
|
|
|
2004-07-13 19:30:02 +00:00
|
|
|
doxygen.cfg: config.nmake doxygen.cfg.in
|
|
|
|
sed -e s/@VERSION@/$(VERSION)/ \
|
|
|
|
< doxygen.cfg.in > $@
|
|
|
|
|
|
|
|
doxygen-run:
|
|
|
|
!IFDEF DOXYGEN
|
|
|
|
$(DOXYGEN) doxygen.cfg
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
doxygen: doxygen.cfg doxygen-run
|
2010-05-28 20:19:55 +00:00
|
|
|
|
2010-10-04 18:53:39 +00:00
|
|
|
services: tools\make-services.pl
|
|
|
|
$(PERL) tools/make-services.pl
|
2008-12-13 02:59:42 +00:00
|
|
|
|
2005-05-01 23:03:45 +00:00
|
|
|
################################################################################
|
|
|
|
# Prepare build environment by downloading and installing required libraries
|
|
|
|
################################################################################
|
|
|
|
|
2006-10-09 02:07:44 +00:00
|
|
|
# The required tools to build Wireshark.
|
2005-12-10 11:14:36 +00:00
|
|
|
#
|
|
|
|
# The 'find' tool is available both in \WINNT\System32 and in cygwin's /usr/bin.
|
|
|
|
# We only need the cygwin version (for some shell scripts).
|
|
|
|
# In the PATH, System32 is before cygwin's dir, so explicitly check for /usr/bin/find.
|
2004-09-01 11:53:28 +00:00
|
|
|
REQUIRED_TOOLS=\
|
2005-08-05 08:34:47 +00:00
|
|
|
$(CC) \
|
|
|
|
$(LINK) \
|
|
|
|
nmake \
|
2010-04-22 19:35:47 +00:00
|
|
|
!IFDEF MANIFEST_INFO_REQUIRED
|
2011-08-29 19:22:42 +00:00
|
|
|
--windowsonly mt \
|
2008-12-08 18:28:40 +00:00
|
|
|
!ENDIF
|
2006-12-04 05:41:53 +00:00
|
|
|
$(SH_PROG) \
|
2004-04-09 07:38:38 +00:00
|
|
|
$(YACC) \
|
|
|
|
$(LEX) \
|
2005-07-07 21:26:09 +00:00
|
|
|
env \
|
2004-04-08 20:36:09 +00:00
|
|
|
grep \
|
2011-08-29 19:22:42 +00:00
|
|
|
--cygwinonly /usr/bin/find \
|
2011-12-28 20:29:13 +00:00
|
|
|
peflags \
|
2004-04-09 07:38:38 +00:00
|
|
|
$(PERL) \
|
|
|
|
$(PYTHON) \
|
2004-04-08 20:36:09 +00:00
|
|
|
sed \
|
|
|
|
unzip \
|
|
|
|
wget
|
|
|
|
|
2004-09-01 11:53:28 +00:00
|
|
|
verify_tools:
|
2011-02-25 17:17:41 +00:00
|
|
|
# As win-setup.sh assumes the dir exists create it if it doesn't
|
2012-01-06 18:25:20 +00:00
|
|
|
@if not exist "$(WIRESHARK_LIB_DIR)" md "$(WIRESHARK_LIB_DIR)"
|
2009-03-07 01:06:40 +00:00
|
|
|
@$(SH) $(WIN_SETUP) --appverify $(REQUIRED_TOOLS)
|
2004-04-09 07:38:38 +00:00
|
|
|
|
2007-09-02 20:53:15 +00:00
|
|
|
# Targets and etc used to verify or download libraries
|
|
|
|
|
2009-03-07 01:06:40 +00:00
|
|
|
!IFNDEF WIN_SETUP_OPT
|
|
|
|
WIN_SETUP_OPT=--download
|
2007-09-02 20:53:15 +00:00
|
|
|
!ENDIF
|
|
|
|
|
2008-02-15 23:20:32 +00:00
|
|
|
# Verify that the required library 'package' (zip) files have been downloaded.
|
|
|
|
# (It seems reasonable to assume that if the files have been downloaded
|
|
|
|
# then they have been installed).
|
2007-09-02 20:53:15 +00:00
|
|
|
check_libs:
|
2009-03-07 01:06:40 +00:00
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake WIN_SETUP_OPT=--libverify process_libs
|
2007-09-02 20:53:15 +00:00
|
|
|
|
2009-06-14 12:39:47 +00:00
|
|
|
# Verify library packages:
|
|
|
|
# If $(CHECK_TAG) is non-null then checktag failed; Exit with an error message. (See beginning of this Makefile).
|
|
|
|
# Otherwise do detailed library package files verification only if Makefile.nmake or config.make have been updated
|
|
|
|
# (or dummy file doesn't exist because of 'make clean' or whatever).
|
2010-05-28 20:19:55 +00:00
|
|
|
# Note that the creation/modification time of a file after an svn update of that file
|
2009-06-14 12:39:47 +00:00
|
|
|
# is the time of the update (not the time of the file in the repository).
|
2008-09-29 17:05:46 +00:00
|
|
|
# touch is only called if libverify succeeds.
|
2009-06-14 12:39:47 +00:00
|
|
|
$(LIBS_CHECK): $(CHECK_TAG) config.nmake Makefile.nmake
|
|
|
|
@echo Verifying library package files ...
|
|
|
|
@$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake WIN_SETUP_OPT=--libverify process_libs
|
|
|
|
@touch $@
|
|
|
|
|
|
|
|
# Target for "checktag failed" (libraries not up to date).
|
|
|
|
# Defined only if "checktag" failed (see beginning of this Makefile).
|
|
|
|
!IF "$(CHECK_TAG)" != ""
|
2010-01-12 22:27:41 +00:00
|
|
|
$(CHECK_TAG): _FORCE_
|
2009-06-14 12:39:47 +00:00
|
|
|
@echo \? Wireshark Libraries not up-to-date \?
|
2009-09-16 16:27:37 +00:00
|
|
|
@echo \? Do you need to run "nmake -f Makefile.nmake setup" \?
|
2009-05-28 23:20:20 +00:00
|
|
|
@echo.
|
|
|
|
@exit 1
|
|
|
|
|
2009-05-27 17:07:51 +00:00
|
|
|
!ENDIF
|
2007-09-02 20:53:15 +00:00
|
|
|
|
2011-07-19 18:22:46 +00:00
|
|
|
# Download (if needed) and install all the required libraries into WIRESHARK_LIB_DIR.
|
2008-02-15 23:20:32 +00:00
|
|
|
# A clean_setup is done first to ensure that the target dirs don't
|
2007-01-19 02:41:25 +00:00
|
|
|
# contain old files remaining from a previous setup run.
|
2007-09-02 20:53:15 +00:00
|
|
|
setup: verify_tools clean_setup process_libs
|
|
|
|
|
|
|
|
|
|
|
|
# The process_libs target when invoked causes either a --libverify or a --download for all the required libraries.
|
2009-03-07 01:06:40 +00:00
|
|
|
# (The choice is determined by the value of the macro WIN_SETUP_OPT).
|
2007-09-02 20:53:15 +00:00
|
|
|
process_libs:
|
2012-01-15 21:59:11 +00:00
|
|
|
@if not exist "$(WIRESHARK_LIB_DIR)" md "$(WIRESHARK_LIB_DIR)"
|
2009-11-19 20:27:08 +00:00
|
|
|
!IFDEF GTK_DIR
|
2011-07-19 18:22:46 +00:00
|
|
|
@$(SH) $(WIN_SETUP) "$(WIN_SETUP_OPT)" "$(WIRESHARK_LIB_DIR)" \
|
2012-04-21 08:45:52 +00:00
|
|
|
"$(GTK_NAME)" gtk+-bundle_$(GTK_PKG)_$(WIRESHARK_TARGET_PLATFORM)$(PKG_SUFIX).zip
|
2009-03-07 01:06:40 +00:00
|
|
|
!ENDIF
|
2006-08-08 07:52:15 +00:00
|
|
|
!IFDEF KFW_DIR
|
2011-07-19 18:22:46 +00:00
|
|
|
@$(SH) $(WIN_SETUP) "$(WIN_SETUP_OPT)" "$(WIRESHARK_LIB_DIR)" \
|
2010-01-19 22:58:12 +00:00
|
|
|
. kfw-3-2-2-i386-ws-vc6.zip
|
2011-07-19 18:22:46 +00:00
|
|
|
# @$(SH) $(WIN_SETUP) "$(WIN_SETUP_OPT)" "$(WIRESHARK_LIB_DIR)" \
|
2010-01-19 22:58:12 +00:00
|
|
|
# . kfw-3-2-2.zip
|
2006-08-08 07:52:15 +00:00
|
|
|
!ENDIF
|
2004-04-09 16:54:07 +00:00
|
|
|
!IFDEF PCAP_DIR
|
2011-07-19 18:22:46 +00:00
|
|
|
@$(SH) $(WIN_SETUP) "$(WIN_SETUP_OPT)" "$(WIRESHARK_LIB_DIR)" \
|
2009-03-07 01:06:40 +00:00
|
|
|
. WpdPack_$(PCAP_VERSION).zip
|
2004-04-09 16:54:07 +00:00
|
|
|
!ENDIF
|
2007-01-05 01:35:23 +00:00
|
|
|
!IFDEF AIRPCAP_DIR
|
2011-07-19 18:22:46 +00:00
|
|
|
@$(SH) $(WIN_SETUP) "$(WIN_SETUP_OPT)" "$(WIRESHARK_LIB_DIR)" \
|
2009-11-12 23:48:11 +00:00
|
|
|
AirPcap_Devpack_4_1_0_1622 AirPcap_Devpack_4_1_0_1622.zip
|
2007-01-05 01:35:23 +00:00
|
|
|
!ENDIF
|
2008-08-07 21:41:48 +00:00
|
|
|
!IFDEF C_ARES_DIR
|
2011-07-19 18:22:46 +00:00
|
|
|
@$(SH) $(WIN_SETUP) "$(WIN_SETUP_OPT)" "$(WIRESHARK_LIB_DIR)" \
|
2009-12-17 22:01:13 +00:00
|
|
|
. c-ares-$(C_ARES_PKG)-$(WIRESHARK_TARGET_PLATFORM)ws.zip
|
2008-08-07 21:41:48 +00:00
|
|
|
!ENDIF
|
2004-04-09 16:54:07 +00:00
|
|
|
!IFDEF ADNS_DIR
|
2011-07-19 18:22:46 +00:00
|
|
|
@$(SH) $(WIN_SETUP) "$(WIN_SETUP_OPT)" "$(WIRESHARK_LIB_DIR)" \
|
2008-08-04 23:05:32 +00:00
|
|
|
. adns-1.0-win32-05ws.zip
|
2004-04-09 16:54:07 +00:00
|
|
|
!ENDIF
|
|
|
|
!IFDEF ZLIB_DIR
|
2011-07-19 18:22:46 +00:00
|
|
|
@$(SH) $(WIN_SETUP) "$(WIN_SETUP_OPT)" "$(WIRESHARK_LIB_DIR)" \
|
2011-04-12 15:44:05 +00:00
|
|
|
!if "$(WIRESHARK_TARGET_PLATFORM)" == "win32"
|
2012-02-02 06:54:33 +00:00
|
|
|
zlib125 zlib-1.2.5.zip
|
2011-04-12 15:44:05 +00:00
|
|
|
!else
|
2012-02-02 06:54:33 +00:00
|
|
|
zlib125 zlib125ws.zip
|
2011-04-12 15:44:05 +00:00
|
|
|
!endif
|
2007-01-08 02:40:06 +00:00
|
|
|
!ENDIF
|
2006-03-01 21:31:07 +00:00
|
|
|
!IFDEF LUA_DIR
|
2011-07-19 18:22:46 +00:00
|
|
|
@$(SH) $(WIN_SETUP) "$(WIN_SETUP_OPT)" "$(WIRESHARK_LIB_DIR)" \
|
2009-03-07 01:06:40 +00:00
|
|
|
lua5.1.4 lua$(LUA_DIST)_lib.zip
|
2006-03-01 21:31:07 +00:00
|
|
|
!ENDIF
|
2007-08-26 20:03:23 +00:00
|
|
|
|
2009-12-21 21:06:01 +00:00
|
|
|
!IFDEF GNUTLS_PKG
|
2011-07-19 18:22:46 +00:00
|
|
|
@$(SH) $(WIN_SETUP) "$(WIN_SETUP_OPT)" "$(WIRESHARK_LIB_DIR)" \
|
2009-12-21 21:06:01 +00:00
|
|
|
. gnutls-$(GNUTLS_PKG)-$(WIRESHARK_TARGET_PLATFORM)ws.zip
|
2006-08-07 19:52:18 +00:00
|
|
|
!ENDIF
|
2006-08-30 21:51:31 +00:00
|
|
|
!IFDEF PORTAUDIO_DIR
|
2011-07-19 18:22:46 +00:00
|
|
|
@$(SH) $(WIN_SETUP) "$(WIN_SETUP_OPT)" "$(WIRESHARK_LIB_DIR)" \
|
2008-05-13 07:39:23 +00:00
|
|
|
. portaudio_v19_2.zip
|
2006-08-30 21:51:31 +00:00
|
|
|
!ENDIF
|
2007-08-26 20:03:23 +00:00
|
|
|
!IFDEF SMI_DIR
|
2011-07-19 18:22:46 +00:00
|
|
|
@$(SH) $(WIN_SETUP) "$(WIN_SETUP_OPT)" "$(WIRESHARK_LIB_DIR)" \
|
2011-06-27 20:48:26 +00:00
|
|
|
. libsmi-$(SMI_PKG)-$(WIRESHARK_TARGET_PLATFORM)ws.zip
|
2007-08-26 20:03:23 +00:00
|
|
|
!ENDIF
|
2008-12-23 18:56:31 +00:00
|
|
|
!IFDEF GEOIP_DIR
|
2011-07-19 18:22:46 +00:00
|
|
|
@$(SH) $(WIN_SETUP) "$(WIN_SETUP_OPT)" "$(WIRESHARK_LIB_DIR)" \
|
2012-05-30 00:11:11 +00:00
|
|
|
GeoIP-$(GEOIP_PKG)-$(WIRESHARK_TARGET_PLATFORM)ws GeoIP-$(GEOIP_PKG)-$(WIRESHARK_TARGET_PLATFORM)ws.zip
|
2008-12-23 18:56:31 +00:00
|
|
|
!ENDIF
|
2007-01-19 01:10:59 +00:00
|
|
|
!IFDEF HHC_DIR
|
2011-07-19 18:22:46 +00:00
|
|
|
@$(SH) $(WIN_SETUP) "$(WIN_SETUP_OPT)" "$(WIRESHARK_LIB_DIR)" \
|
2011-05-19 21:09:29 +00:00
|
|
|
user-guide user-guide-37310.zip
|
2007-11-24 11:45:51 +00:00
|
|
|
!ENDIF
|
|
|
|
!IFDEF UPX
|
2011-07-19 18:22:46 +00:00
|
|
|
@$(SH) $(WIN_SETUP) "$(WIN_SETUP_OPT)" "$(WIRESHARK_LIB_DIR)" \
|
2009-06-13 08:26:11 +00:00
|
|
|
. upx303w.zip
|
2007-12-25 15:55:19 +00:00
|
|
|
!ENDIF
|
|
|
|
!IFDEF NASM
|
2011-07-19 18:22:46 +00:00
|
|
|
@$(SH) $(WIN_SETUP) "$(WIN_SETUP_OPT)" "$(WIRESHARK_LIB_DIR)" \
|
2011-04-12 15:44:05 +00:00
|
|
|
. nasm-2.09.08-win32.zip
|
2008-08-05 17:00:34 +00:00
|
|
|
!ENDIF
|
2009-03-07 01:06:40 +00:00
|
|
|
!IF "$(WIN_SETUP_OPT)" == "--download"
|
2011-07-19 18:22:46 +00:00
|
|
|
@$(SH) $(WIN_SETUP) --settag "$(WIRESHARK_LIB_DIR)"
|
2004-04-09 16:54:07 +00:00
|
|
|
!ENDIF
|
|
|
|
@echo.
|
2006-05-22 08:14:01 +00:00
|
|
|
@echo Wireshark is ready to build.
|
2004-04-23 05:19:49 +00:00
|
|
|
|
2008-02-15 23:20:32 +00:00
|
|
|
# Cleanup files installed by the setup target. It will not remove the
|
2004-09-12 10:07:23 +00:00
|
|
|
# downloaded zip files.
|
2008-02-15 23:20:32 +00:00
|
|
|
# WHEN UPDATING LIBRARY VERSIONS, KEEP ALSO ONE FORMER VERSION SO
|
|
|
|
# UPDATING REMOVES THE FORMER USER DIRS
|
2004-09-12 10:07:23 +00:00
|
|
|
clean_setup:
|
2012-01-06 18:25:20 +00:00
|
|
|
cd "$(WIRESHARK_LIB_DIR)"
|
2010-10-04 22:00:50 +00:00
|
|
|
rm -r -f adns-1.0-win32-05ws
|
|
|
|
rm -r -f c-ares-1.5.3ws
|
|
|
|
rm -r -f c-ares-1.6.0ws
|
|
|
|
rm -r -f c-ares-1.7.0-win??ws
|
|
|
|
rm -r -f c-ares-1.7.1-win??ws
|
|
|
|
rm -r -f gettext-0.14.5
|
|
|
|
rm -r -f gettext-runtime-0.17
|
|
|
|
rm -r -f gettext-runtime-0.17-1
|
|
|
|
rm -r -f gettext-0.17-1 # win64
|
|
|
|
rm -r -f glib
|
|
|
|
rm -r -f gnutls-2.8.1-1
|
|
|
|
rm -r -f gnutls-2.8.5-*-win??ws
|
2011-04-05 22:38:12 +00:00
|
|
|
rm -r -f gnutls-2.10.3-*-win??ws
|
2012-04-20 19:56:17 +00:00
|
|
|
rm -r -f gnutls-2.12.18-*-win??ws
|
2010-10-04 22:00:50 +00:00
|
|
|
rm -r -f gtk2
|
2012-04-21 08:45:52 +00:00
|
|
|
rm -r -f gtk3
|
2010-10-04 22:00:50 +00:00
|
|
|
rm -r -f gtk+
|
|
|
|
rm -r -f gtk-wimp
|
|
|
|
rm -r -f kfw-2.5
|
2012-03-01 02:43:07 +00:00
|
|
|
rm -r -f kfw-3-2-2-final
|
2010-10-04 22:00:50 +00:00
|
|
|
rm -r -f kfw-3.2.2-ws1
|
2012-03-01 02:43:07 +00:00
|
|
|
rm -r -f kfw-3-2-2-i386-ws-vc6
|
2010-10-04 22:00:50 +00:00
|
|
|
rm -r -f libiconv-1.9.1.bin.woe32
|
|
|
|
rm -r -f lua5.1
|
|
|
|
rm -r -f lua5.1.4
|
|
|
|
rm -r -f libsmi-0.4.5
|
|
|
|
rm -r -f libsmi-0.4.8
|
2012-03-01 02:43:07 +00:00
|
|
|
rm -r -f libsmi-svn-40773-win??ws
|
2010-10-04 22:00:50 +00:00
|
|
|
rm -r -f nasm-2.00
|
|
|
|
rm -r -f nasm-2.02
|
2011-04-12 15:44:05 +00:00
|
|
|
rm -r -f nasm-2.09.08
|
2010-10-04 22:00:50 +00:00
|
|
|
rm -r -f pcre-6.4
|
|
|
|
rm -r -f pcre-7.0
|
|
|
|
rm -r -f portaudio_v19
|
|
|
|
rm -r -f portaudio_v19_2
|
2012-03-01 02:43:07 +00:00
|
|
|
rm -r -f upx301w
|
|
|
|
rm -r -f upx303w
|
2010-10-04 22:00:50 +00:00
|
|
|
rm -r -f user-guide
|
|
|
|
rm -r -f zlib123
|
2012-03-01 02:43:07 +00:00
|
|
|
rm -r -f zlib125
|
2011-04-12 15:44:05 +00:00
|
|
|
rm -r -f zlib-1.2.5
|
2010-10-04 22:00:50 +00:00
|
|
|
rm -r -f zlib123-dll
|
2012-03-01 02:43:07 +00:00
|
|
|
rm -r -f AirPcap_Devpack_1_0_0_594
|
|
|
|
rm -r -f AirPcap_Devpack_4_0_0_1480
|
|
|
|
rm -r -f AirPcap_Devpack_4_1_0_1622
|
2010-10-04 22:00:50 +00:00
|
|
|
rm -r -f GeoIP-1.4.5ws
|
|
|
|
rm -r -f GeoIP-1.4.6-win??ws
|
2012-05-29 23:31:00 +00:00
|
|
|
rm -r -f GeoIP-1.4.8-win??ws
|
2012-05-31 08:08:44 +00:00
|
|
|
rm -r -f GeoIP-1.4.8-*-win??ws
|
2012-03-01 02:43:07 +00:00
|
|
|
rm -r -f WpdPack
|
2011-02-17 21:21:40 +00:00
|
|
|
cd "$(MAKEDIR)"
|
2004-09-12 10:07:23 +00:00
|
|
|
|
2005-05-01 23:03:45 +00:00
|
|
|
################################################################################
|
2006-09-23 01:39:07 +00:00
|
|
|
# Prepare the debug trees for running Wireshark/Tshark from there.
|
2005-05-01 23:03:45 +00:00
|
|
|
################################################################################
|
|
|
|
|
|
|
|
|
2008-04-09 03:48:16 +00:00
|
|
|
# prepare debugging of Wireshark in INSTALL_DIR
|
|
|
|
debug-wireshark: wireshark.exe install-generated-files
|
2006-09-23 01:39:07 +00:00
|
|
|
|
2008-04-09 03:48:16 +00:00
|
|
|
# prepare debugging of tshark in INSTALL_DIR
|
|
|
|
debug-tshark: tshark.exe install-generated-files
|
2008-02-15 23:20:32 +00:00
|
|
|
|
2008-04-09 03:48:16 +00:00
|
|
|
# prepare debugging of rawshark in INSTALL_DIR
|
|
|
|
debug-rawshark: rawshark.exe install-generated-files
|
2007-01-03 00:10:57 +00:00
|
|
|
|
2008-04-09 03:48:16 +00:00
|
|
|
# prepare debugging of dumpcap in INSTALL_DIR
|
|
|
|
debug-dumpcap: dumpcap.exe install-generated-files
|
2006-09-23 01:39:07 +00:00
|
|
|
|
2005-05-01 23:03:45 +00:00
|
|
|
|
2008-04-09 03:48:16 +00:00
|
|
|
# install generated files (exe, "our" libs, ...)
|
|
|
|
install-generated-files:
|
2006-09-23 01:39:07 +00:00
|
|
|
set copycmd=/y
|
2009-01-06 21:47:19 +00:00
|
|
|
if not exist $(INSTALL_DIR) mkdir $(INSTALL_DIR)
|
2009-09-17 21:54:52 +00:00
|
|
|
!IF DEFINED (MSVCR_DLL) && "$(MSVC_VARIANT)" == "MSVC2008"
|
2009-05-29 20:11:17 +00:00
|
|
|
xcopy "$(MSVCR_DLL)" $(INSTALL_DIR)\*.* /d
|
2007-11-30 22:01:05 +00:00
|
|
|
!ENDIF
|
2006-09-23 01:39:07 +00:00
|
|
|
!IFDEF ENABLE_LIBWIRESHARK
|
|
|
|
xcopy epan\libwireshark.dll $(INSTALL_DIR) /d
|
2011-08-15 22:00:21 +00:00
|
|
|
if exist epan\libwireshark.lib xcopy .\epan\libwireshark.lib $(INSTALL_DIR) /d
|
2009-05-29 20:11:17 +00:00
|
|
|
if exist epan\libwireshark.pdb xcopy .\epan\libwireshark.pdb $(INSTALL_DIR) /d
|
2006-09-23 01:39:07 +00:00
|
|
|
!ENDIF
|
|
|
|
xcopy ".\wiretap\wiretap-$(WTAP_VERSION).dll" $(INSTALL_DIR) /d
|
2011-08-15 22:00:21 +00:00
|
|
|
if exist ".\wiretap\wiretap-$(WTAP_VERSION).lib" xcopy ".\wiretap\wiretap-$(WTAP_VERSION).lib" $(INSTALL_DIR) /d
|
2008-02-15 23:20:32 +00:00
|
|
|
if exist ".\wiretap\wiretap-$(WTAP_VERSION).pdb" xcopy ".\wiretap\wiretap-$(WTAP_VERSION).pdb" $(INSTALL_DIR) /d
|
2008-05-20 21:51:01 +00:00
|
|
|
xcopy ".\wsutil\libwsutil.dll" $(INSTALL_DIR) /d
|
2011-08-15 22:00:21 +00:00
|
|
|
if exist ".\wsutil\libwsutil.lib" xcopy ".\wsutil\libwsutil.lib" $(INSTALL_DIR) /d
|
|
|
|
if exist ".\wsutil\libwsutil.pdb" xcopy ".\wsutil\libwsutil.pdb" $(INSTALL_DIR) /d
|
2012-07-25 00:47:11 +00:00
|
|
|
if exist wireshark.exe xcopy wireshark.exe $(INSTALL_DIR) /d
|
|
|
|
if exist wireshark.pdb xcopy wireshark.pdb $(INSTALL_DIR) /d
|
|
|
|
if exist wireshark.bsc xcopy wireshark.bsc $(INSTALL_DIR) /d
|
2008-04-09 03:48:16 +00:00
|
|
|
if exist ".\docbook\user-guide.chm" xcopy ".\docbook\user-guide.chm" $(INSTALL_DIR) /d
|
2011-08-15 22:00:21 +00:00
|
|
|
if exist capinfos.exe xcopy capinfos.exe $(INSTALL_DIR) /d
|
|
|
|
if exist capinfos.pdb xcopy capinfos.pdb $(INSTALL_DIR) /d
|
2007-01-03 00:10:57 +00:00
|
|
|
if exist dumpcap.exe xcopy dumpcap.exe $(INSTALL_DIR) /d
|
2008-02-15 23:20:32 +00:00
|
|
|
if exist dumpcap.pdb xcopy dumpcap.pdb $(INSTALL_DIR) /d
|
2011-08-15 22:00:21 +00:00
|
|
|
if exist editcap.exe xcopy editcap.exe $(INSTALL_DIR) /d
|
|
|
|
if exist editcap.pdb xcopy editcap.pdb $(INSTALL_DIR) /d
|
2007-01-03 00:10:57 +00:00
|
|
|
if exist mergecap.exe xcopy mergecap.exe $(INSTALL_DIR) /d
|
2008-02-15 23:20:32 +00:00
|
|
|
if exist mergecap.pdb xcopy mergecap.pdb $(INSTALL_DIR) /d
|
2011-08-15 22:00:21 +00:00
|
|
|
if exist rawshark.exe xcopy rawshark.exe $(INSTALL_DIR) /d
|
|
|
|
if exist rawshark.pdb xcopy rawshark.pdb $(INSTALL_DIR) /d
|
2007-01-03 00:10:57 +00:00
|
|
|
if exist text2pcap.exe xcopy text2pcap.exe $(INSTALL_DIR) /d
|
2008-02-15 23:20:32 +00:00
|
|
|
if exist text2pcap.pdb xcopy text2pcap.pdb $(INSTALL_DIR) /d
|
2011-08-15 22:00:21 +00:00
|
|
|
if exist tshark.exe xcopy tshark.exe $(INSTALL_DIR) /d
|
|
|
|
if exist tshark.pdb xcopy tshark.pdb $(INSTALL_DIR) /d
|
2009-06-21 12:47:48 +00:00
|
|
|
xcopy "doc\AUTHORS-SHORT" $(INSTALL_DIR) /d
|
2006-09-23 01:39:07 +00:00
|
|
|
xcopy ".\manuf" $(INSTALL_DIR) /d
|
2007-08-12 20:54:30 +00:00
|
|
|
xcopy ".\services" $(INSTALL_DIR) /d
|
2011-05-19 18:10:21 +00:00
|
|
|
xcopy ".\pdml2html.xsl" $(INSTALL_DIR) /d
|
2010-11-22 17:17:46 +00:00
|
|
|
$(TEXTIFY) "./COPYING" $(INSTALL_DIR)
|
|
|
|
$(TEXTIFY) "./NEWS" $(INSTALL_DIR)
|
|
|
|
$(TEXTIFY) "./README" $(INSTALL_DIR)
|
|
|
|
$(TEXTIFY) "./README.windows" $(INSTALL_DIR)
|
2006-09-23 01:39:07 +00:00
|
|
|
xcopy ".\cfilters" $(INSTALL_DIR) /d
|
|
|
|
xcopy ".\colorfilters" $(INSTALL_DIR) /d
|
|
|
|
xcopy ".\dfilters" $(INSTALL_DIR) /d
|
2007-08-27 22:06:47 +00:00
|
|
|
xcopy ".\smi_modules" $(INSTALL_DIR) /d
|
2007-10-28 13:46:20 +00:00
|
|
|
!IFDEF LUA_DIR
|
2007-05-25 17:22:32 +00:00
|
|
|
xcopy ".\epan\wslua\init.lua" $(INSTALL_DIR) /d
|
|
|
|
xcopy ".\epan\wslua\console.lua" $(INSTALL_DIR) /d
|
2010-06-01 22:20:15 +00:00
|
|
|
!ENDIF
|
|
|
|
!IFDEF PYTHON_DIR
|
|
|
|
if not exist $(INSTALL_DIR)\python mkdir $(INSTALL_DIR)\python
|
|
|
|
xcopy ".\epan\wspython\register-dissector.py" $(INSTALL_DIR)\python /d
|
|
|
|
xcopy ".\epan\wspython\wspy_dissector.py" $(INSTALL_DIR)\python /d
|
|
|
|
xcopy ".\epan\wspython\wspy_libws.py" $(INSTALL_DIR)\python /d
|
2007-10-28 13:46:20 +00:00
|
|
|
!ENDIF
|
2009-02-11 20:25:17 +00:00
|
|
|
xcopy ipmap.html $(INSTALL_DIR) /d
|
2007-10-28 13:46:20 +00:00
|
|
|
xcopy doc\*.html $(INSTALL_DIR) /d
|
2006-09-23 01:39:07 +00:00
|
|
|
if not exist $(INSTALL_DIR)\help mkdir $(INSTALL_DIR)\help
|
|
|
|
xcopy ".\help\*.*" $(INSTALL_DIR)\help /d
|
2009-01-29 01:31:11 +00:00
|
|
|
# you can't reliably use xcopy to rename files "on the fly" (so copy first, then rename)
|
|
|
|
xcopy ".\help\faq.txt" $(INSTALL_DIR) /d
|
2010-04-09 21:42:51 +00:00
|
|
|
$(UNIX2DOS) $(INSTALL_DIR)/help/*.txt
|
2006-09-23 01:39:07 +00:00
|
|
|
if not exist $(INSTALL_DIR)\dtds mkdir $(INSTALL_DIR)\dtds
|
|
|
|
xcopy ".\dtds\*.*" $(INSTALL_DIR)\dtds /d
|
|
|
|
if not exist $(INSTALL_DIR)\asn1 mkdir $(INSTALL_DIR)\asn1
|
|
|
|
echo create empty asn1 default.tt file to prevent problems 2> $(INSTALL_DIR)\asn1\default.tt
|
|
|
|
if not exist $(INSTALL_DIR)\radius mkdir $(INSTALL_DIR)\radius
|
|
|
|
xcopy ".\radius\*.*" $(INSTALL_DIR)\radius /d
|
|
|
|
if not exist $(INSTALL_DIR)\diameter mkdir $(INSTALL_DIR)\diameter
|
|
|
|
xcopy ".\diameter\*.dtd" $(INSTALL_DIR)\diameter /d
|
|
|
|
xcopy ".\diameter\*.xml" $(INSTALL_DIR)\diameter /d
|
2007-11-11 13:23:17 +00:00
|
|
|
if not exist $(INSTALL_DIR)\tpncp mkdir $(INSTALL_DIR)\tpncp
|
|
|
|
xcopy ".\tpncp\*.dat" $(INSTALL_DIR)\tpncp /d
|
2007-10-22 10:03:22 +00:00
|
|
|
if not exist $(INSTALL_DIR)\wimaxasncp mkdir $(INSTALL_DIR)\wimaxasncp
|
|
|
|
xcopy ".\wimaxasncp\*.*" $(INSTALL_DIR)\wimaxasncp /d
|
2007-12-14 17:52:53 +00:00
|
|
|
if not exist $(INSTALL_DIR)\plugins mkdir $(INSTALL_DIR)\plugins
|
2006-09-23 01:39:07 +00:00
|
|
|
if not exist $(INSTALL_DIR)\plugins\$(VERSION) mkdir $(INSTALL_DIR)\plugins\$(VERSION)
|
2010-05-28 20:19:55 +00:00
|
|
|
cd plugins
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake install-plugins
|
|
|
|
cd ..
|
2006-09-23 01:39:07 +00:00
|
|
|
|
2008-04-09 03:48:16 +00:00
|
|
|
# "install-all" will copy all files needed to run Wireshark/Tshark
|
|
|
|
# to the INSTALL_DIR, so you can run/debug Wireshark/Tshark from there.
|
|
|
|
install-all: install-generated-files
|
2005-09-16 16:25:53 +00:00
|
|
|
set copycmd=/y
|
2008-04-09 03:48:16 +00:00
|
|
|
if not exist $(INSTALL_DIR) mkdir $(INSTALL_DIR)
|
2012-06-04 20:42:09 +00:00
|
|
|
!IF "$(GTK_INST_VERSION)" == "3.4"
|
|
|
|
xcopy $(GTK_DIR)\bin\libgdk-3-0.dll $(INSTALL_DIR) /d
|
|
|
|
xcopy $(GTK_DIR)\bin\libgtk-3-0.dll $(INSTALL_DIR) /d
|
|
|
|
!ELSE
|
2008-04-09 03:48:16 +00:00
|
|
|
xcopy $(GTK_DIR)\bin\libgdk-win32-2.0-0.dll $(INSTALL_DIR) /d
|
|
|
|
xcopy $(GTK_DIR)\bin\libgtk-win32-2.0-0.dll $(INSTALL_DIR) /d
|
2012-06-04 20:42:09 +00:00
|
|
|
!ENDIF
|
|
|
|
xcopy $(GTK_DIR)\bin\libgdk_pixbuf-2.0-0.dll $(INSTALL_DIR) /d
|
2008-04-09 03:48:16 +00:00
|
|
|
xcopy $(GTK_DIR)\bin\libatk-1.0-0.dll $(INSTALL_DIR) /d
|
|
|
|
xcopy $(GTK_DIR)\bin\libpango-1.0-0.dll $(INSTALL_DIR) /d
|
|
|
|
xcopy $(GTK_DIR)\bin\libpangowin32-1.0-0.dll $(INSTALL_DIR) /d
|
|
|
|
if not exist $(INSTALL_DIR)\etc mkdir $(INSTALL_DIR)\etc
|
2012-06-04 20:42:09 +00:00
|
|
|
!IF "$(GTK_INST_VERSION)" == "3.4"
|
|
|
|
if not exist $(INSTALL_DIR)\etc\gtk-3.0 mkdir $(INSTALL_DIR)\etc\gtk-3.0
|
|
|
|
if not exist $(INSTALL_DIR)\etc\pango mkdir $(INSTALL_DIR)\etc\pango
|
|
|
|
if not exist $(INSTALL_DIR)\lib mkdir $(INSTALL_DIR)\lib
|
|
|
|
if not exist $(INSTALL_DIR)\lib\gtk-3.0 mkdir $(INSTALL_DIR)\lib\gtk-3.0
|
|
|
|
if not exist $(INSTALL_DIR)\lib\gtk-3.0\$(GTK_LIB_DIR) mkdir $(INSTALL_DIR)\lib\gtk-3.0\$(GTK_LIB_DIR)
|
|
|
|
xcopy $(GTK_DIR)\etc\gtk-3.0\*.* $(INSTALL_DIR)\etc\gtk-3.0 /d
|
|
|
|
!IFDEF NEED_CAIRO_DLL
|
|
|
|
xcopy $(GTK_DIR)\bin\libcairo-2.dll $(INSTALL_DIR) /d
|
|
|
|
xcopy $(GTK_DIR)\bin\libcairo-gobject-2.dll $(INSTALL_DIR) /d
|
|
|
|
xcopy $(GTK_DIR)\bin\libpangocairo-1.0-0.dll $(INSTALL_DIR) /d
|
|
|
|
!ENDIF
|
|
|
|
!ELSE
|
2008-04-09 03:48:16 +00:00
|
|
|
if not exist $(INSTALL_DIR)\etc\gtk-2.0 mkdir $(INSTALL_DIR)\etc\gtk-2.0
|
|
|
|
if not exist $(INSTALL_DIR)\etc\pango mkdir $(INSTALL_DIR)\etc\pango
|
|
|
|
if not exist $(INSTALL_DIR)\lib mkdir $(INSTALL_DIR)\lib
|
|
|
|
if not exist $(INSTALL_DIR)\lib\gtk-2.0 mkdir $(INSTALL_DIR)\lib\gtk-2.0
|
2008-09-08 07:14:52 +00:00
|
|
|
if not exist $(INSTALL_DIR)\lib\gtk-2.0\modules mkdir $(INSTALL_DIR)\lib\gtk-2.0\modules
|
2008-04-09 03:48:16 +00:00
|
|
|
if not exist $(INSTALL_DIR)\lib\gtk-2.0\$(GTK_LIB_DIR) mkdir $(INSTALL_DIR)\lib\gtk-2.0\$(GTK_LIB_DIR)
|
2008-12-10 20:30:34 +00:00
|
|
|
if not exist $(INSTALL_DIR)\lib\gtk-2.0\$(GTK_LIB_DIR)\loaders mkdir $(INSTALL_DIR)\lib\gtk-2.0\$(GTK_LIB_DIR)\loaders
|
2008-09-08 07:14:52 +00:00
|
|
|
if not exist $(INSTALL_DIR)\lib\gtk-2.0\$(GTK_LIB_DIR)\engines mkdir $(INSTALL_DIR)\lib\gtk-2.0\$(GTK_LIB_DIR)\engines
|
2008-04-09 03:48:16 +00:00
|
|
|
xcopy $(GTK_DIR)\etc\gtk-2.0\*.* $(INSTALL_DIR)\etc\gtk-2.0 /d
|
2009-04-16 21:34:44 +00:00
|
|
|
if exist $(GTK_DIR)\etc\pango xcopy $(GTK_DIR)\etc\pango\pango.* $(INSTALL_DIR)\etc\pango /d
|
|
|
|
if exist $(GTK_DIR)\lib\gtk-2.0\$(GTK_LIB_DIR)\loaders xcopy $(GTK_DIR)\lib\gtk-2.0\$(GTK_LIB_DIR)\loaders\libpixbufloader-*.dll $(INSTALL_DIR)\lib\gtk-2.0\$(GTK_LIB_DIR)\loaders /d
|
2008-09-08 07:14:52 +00:00
|
|
|
xcopy $(GTK_DIR)\lib\gtk-2.0\modules\libgail.dll $(INSTALL_DIR)\lib\gtk-2.0\modules /d
|
|
|
|
xcopy $(GTK_DIR)\lib\gtk-2.0\$(GTK_LIB_DIR)\engines\libpixmap.dll $(INSTALL_DIR)\lib\gtk-2.0\$(GTK_LIB_DIR)\engines /d
|
2012-04-20 23:41:36 +00:00
|
|
|
!IFDEF NEED_CAIRO_DLL
|
|
|
|
xcopy $(GTK_DIR)\bin\libcairo-2.dll $(INSTALL_DIR) /d
|
|
|
|
xcopy $(GTK_DIR)\bin\libpangocairo-1.0-0.dll $(INSTALL_DIR) /d
|
2012-04-19 18:31:11 +00:00
|
|
|
!ENDIF
|
2012-06-04 20:42:09 +00:00
|
|
|
!ENDIF
|
2012-05-14 17:54:47 +00:00
|
|
|
!IFDEF NEED_EXPAT_DLL
|
|
|
|
xcopy $(GTK_DIR)\bin\$(EXPAT_DLL) $(INSTALL_DIR) /d
|
|
|
|
!ENDIF
|
|
|
|
!IFDEF NEED_FFI_DLL
|
|
|
|
xcopy $(GTK_DIR)\bin\$(FFI_DLL) $(INSTALL_DIR) /d
|
|
|
|
!ENDIF
|
|
|
|
!IFDEF NEED_FONTCONFIG_DLL
|
|
|
|
xcopy $(GTK_DIR)\bin\$(FONTCONFIG_DLL) $(INSTALL_DIR) /d
|
|
|
|
!ENDIF
|
2009-09-16 13:34:37 +00:00
|
|
|
!IFDEF NEED_FREETYPE_DLL
|
|
|
|
xcopy $(GTK_DIR)\bin\libpangoft2-1.0-0.dll $(INSTALL_DIR) /d
|
2009-11-19 20:27:08 +00:00
|
|
|
xcopy $(GTK_DIR)\bin\$(FREETYPE_DLL) $(INSTALL_DIR) /d
|
2009-09-16 13:34:37 +00:00
|
|
|
!ENDIF
|
2012-05-14 17:54:47 +00:00
|
|
|
!IFDEF NEED_JASPER_DLL
|
|
|
|
xcopy $(GTK_DIR)\bin\$(JASPER_DLL) $(INSTALL_DIR) /d
|
2012-04-19 18:31:11 +00:00
|
|
|
!ENDIF
|
2012-05-14 17:54:47 +00:00
|
|
|
!IFDEF NEED_JPEG_DLL
|
|
|
|
xcopy $(GTK_DIR)\bin\$(JPEG_DLL) $(INSTALL_DIR) /d
|
|
|
|
!ENDIF
|
|
|
|
!IFDEF NEED_LZMA_DLL
|
|
|
|
xcopy $(GTK_DIR)\bin\$(LZMA_DLL) $(INSTALL_DIR) /d
|
|
|
|
!ENDIF
|
|
|
|
!IFDEF NEED_PIXMAN_DLL
|
|
|
|
xcopy $(GTK_DIR)\bin\$(PIXMAN_DLL) $(INSTALL_DIR) /d
|
|
|
|
!ENDIF
|
|
|
|
!IFDEF NEED_PNG_DLL
|
|
|
|
xcopy $(GTK_DIR)\bin\$(PNG_DLL) $(INSTALL_DIR) /d
|
|
|
|
!ENDIF
|
|
|
|
!IFDEF NEED_TIFF_DLL
|
|
|
|
xcopy $(GTK_DIR)\bin\$(TIFF_DLL) $(INSTALL_DIR) /d
|
|
|
|
!ENDIF
|
|
|
|
!IFDEF NEED_XML_DLL
|
|
|
|
xcopy $(GTK_DIR)\bin\$(XML_DLL) $(INSTALL_DIR) /d
|
2005-05-01 23:03:45 +00:00
|
|
|
!ENDIF
|
2012-06-04 20:42:09 +00:00
|
|
|
!IF "$(GTK_INST_VERSION)" == "3.4"
|
|
|
|
!ELSE
|
2008-04-09 03:48:16 +00:00
|
|
|
if not exist $(INSTALL_DIR)\$(GTK_WIMP_DLLDST_DIR) mkdir $(INSTALL_DIR)\$(GTK_WIMP_DLLDST_DIR)
|
|
|
|
xcopy "$(GTK_WIMP_DLLSRC_DIR)\libwimp.dll" $(INSTALL_DIR)\$(GTK_WIMP_DLLDST_DIR) /d
|
|
|
|
if not exist $(INSTALL_DIR)\$(GTK_WIMP_RCDST_DIR) mkdir $(INSTALL_DIR)\$(GTK_WIMP_RCDST_DIR)
|
|
|
|
xcopy "$(GTK_WIMP_RCSRC_DIR)\gtkrc" $(INSTALL_DIR)\$(GTK_WIMP_RCDST_DIR) /d
|
2012-06-04 20:42:09 +00:00
|
|
|
!ENDIF
|
2009-11-19 20:27:08 +00:00
|
|
|
xcopy $(GTK_DIR)\bin\libgio-2.0-0.dll $(INSTALL_DIR) /d
|
|
|
|
xcopy $(GTK_DIR)\bin\libglib-2.0-0.dll $(INSTALL_DIR) /d
|
|
|
|
xcopy $(GTK_DIR)\bin\libgmodule-2.0-0.dll $(INSTALL_DIR) /d
|
|
|
|
xcopy $(GTK_DIR)\bin\libgobject-2.0-0.dll $(INSTALL_DIR) /d
|
|
|
|
xcopy $(GTK_DIR)\bin\libgthread-2.0-0.dll $(INSTALL_DIR) /d
|
|
|
|
xcopy $(GTK_DIR)\bin\$(INTL_DLL) $(INSTALL_DIR) /d
|
2005-05-01 23:03:45 +00:00
|
|
|
!IFDEF ZLIB_DIR
|
2008-04-13 17:58:04 +00:00
|
|
|
xcopy $(ZLIB_DLL) $(INSTALL_DIR) /d
|
2008-08-07 21:41:48 +00:00
|
|
|
!ENDIF
|
|
|
|
!IFDEF C_ARES_DIR
|
|
|
|
xcopy $(C_ARES_DLL) $(INSTALL_DIR) /d
|
2005-05-01 23:03:45 +00:00
|
|
|
!ENDIF
|
|
|
|
!IFDEF ADNS_DIR
|
2008-04-13 17:58:04 +00:00
|
|
|
xcopy $(ADNS_DLL) $(INSTALL_DIR) /d
|
2005-05-01 23:03:45 +00:00
|
|
|
!ENDIF
|
2006-08-05 04:41:42 +00:00
|
|
|
!IFDEF KFW_DIR
|
2009-12-23 00:22:12 +00:00
|
|
|
xcopy $(KFW_PATH)\comerr32.dll $(INSTALL_DIR) /d
|
|
|
|
xcopy $(KFW_PATH)\krb5_32.dll $(INSTALL_DIR) /d
|
|
|
|
xcopy $(KFW_PATH)\k5sprt32.dll $(INSTALL_DIR) /d
|
2006-08-05 04:41:42 +00:00
|
|
|
!ENDIF
|
2006-08-07 19:52:18 +00:00
|
|
|
!IFDEF GNUTLS_DIR
|
2006-09-23 01:39:07 +00:00
|
|
|
xcopy $(GNUTLS_DIR)\bin\libgcrypt-11.dll $(INSTALL_DIR) /d
|
2008-05-16 06:53:15 +00:00
|
|
|
xcopy $(GNUTLS_DIR)\bin\libgnutls-26.dll $(INSTALL_DIR) /d
|
2006-09-23 01:39:07 +00:00
|
|
|
xcopy $(GNUTLS_DIR)\bin\libgpg-error-0.dll $(INSTALL_DIR) /d
|
|
|
|
xcopy $(GNUTLS_DIR)\bin\libtasn1-3.dll $(INSTALL_DIR) /d
|
2011-04-05 22:38:12 +00:00
|
|
|
! IF "$(INTL_DLL)" != "libintl-8.dll"
|
|
|
|
# The gtk+ bundle doesn't provide libintl-8.dll (which is the case
|
|
|
|
# with the 32-bit package); use the GNUTLS version.
|
|
|
|
xcopy $(GNUTLS_DIR)\bin\libintl-8.dll $(INSTALL_DIR) /d
|
|
|
|
! ENDIF
|
2006-09-23 01:39:07 +00:00
|
|
|
!ENDIF
|
2006-09-27 00:45:55 +00:00
|
|
|
!IFDEF LUA_DIR
|
2008-10-01 19:38:27 +00:00
|
|
|
xcopy "$(LUA_DIR)\lua5.1.dll" $(INSTALL_DIR) /d
|
2006-09-27 00:45:55 +00:00
|
|
|
!ENDIF
|
2007-08-26 20:03:23 +00:00
|
|
|
!IFDEF SMI_DIR
|
|
|
|
if not exist $(INSTALL_DIR)\snmp mkdir $(INSTALL_DIR)\snmp
|
|
|
|
if not exist $(INSTALL_DIR)\snmp\mibs mkdir $(INSTALL_DIR)\snmp\mibs
|
2011-06-27 20:48:26 +00:00
|
|
|
xcopy "$(SMI_DIR)\bin\libsmi-2.dll" $(INSTALL_DIR) /d
|
|
|
|
xcopy "$(SMI_DIR)\share\mibs\iana\*" $(INSTALL_DIR)\snmp\mibs /d
|
|
|
|
xcopy "$(SMI_DIR)\share\mibs\ietf\*" $(INSTALL_DIR)\snmp\mibs /d
|
|
|
|
xcopy "$(SMI_DIR)\share\mibs\irtf\*" $(INSTALL_DIR)\snmp\mibs /d
|
|
|
|
xcopy "$(SMI_DIR)\share\mibs\tubs\*" $(INSTALL_DIR)\snmp\mibs /d
|
|
|
|
xcopy "$(SMI_DIR)\share\pibs\*" $(INSTALL_DIR)\snmp\mibs /d
|
|
|
|
xcopy "$(SMI_DIR)\share\yang\*.yang" $(INSTALL_DIR)\snmp\mibs /d
|
2012-05-29 23:31:00 +00:00
|
|
|
!ENDIF
|
|
|
|
!IFDEF GEOIP_DIR
|
|
|
|
xcopy "$(GEOIP_DIR)\bin\libGeoip-1.dll" $(INSTALL_DIR) /d
|
2007-08-26 20:03:23 +00:00
|
|
|
!ENDIF
|
2011-12-28 20:29:13 +00:00
|
|
|
cd $(INSTALL_DIR)
|
|
|
|
peflags --dynamicbase=true --nxcompat=true *.dll
|
2011-12-28 22:37:38 +00:00
|
|
|
peflags --dynamicbase=true --nxcompat=true lib/gtk-2.0/*/engines/*.dll
|
|
|
|
peflags --dynamicbase=true --nxcompat=true lib/gtk-2.0/modules/*.dll
|
2011-12-28 20:29:13 +00:00
|
|
|
cd ..
|
2006-09-23 01:39:07 +00:00
|
|
|
|
2008-05-20 23:50:10 +00:00
|
|
|
checkapi_local:
|
2012-04-04 20:46:49 +00:00
|
|
|
$(PERL) tools/checkAPIs.pl -build \
|
2009-03-17 15:39:07 +00:00
|
|
|
$(wireshark_SOURCES) \
|
2008-05-26 17:09:03 +00:00
|
|
|
$(TSHARK_TAP_SRC) \
|
|
|
|
# $(EXTRA_wireshark_SOURCES)
|
2008-05-20 23:50:10 +00:00
|
|
|
|
2008-05-26 17:09:03 +00:00
|
|
|
checkapi: checkapi_local
|
2008-05-21 20:27:15 +00:00
|
|
|
cd wiretap
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake checkapi
|
|
|
|
cd ../codecs
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake checkapi
|
2012-02-18 23:55:41 +00:00
|
|
|
cd ../ui
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake checkapi
|
|
|
|
cd gtk
|
2009-03-09 20:29:09 +00:00
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake checkapi
|
2012-01-16 01:26:46 +00:00
|
|
|
cd ../win32
|
2010-11-26 19:16:06 +00:00
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake checkapi
|
2012-01-16 01:26:46 +00:00
|
|
|
cd ../../epan
|
2008-05-20 23:50:10 +00:00
|
|
|
## $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake checkapi
|
2008-06-03 05:35:19 +00:00
|
|
|
cd ../epan/crypt
|
|
|
|
## $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake checkapi
|
|
|
|
cd ../dfilter
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake checkapi
|
|
|
|
cd ../ftypes
|
|
|
|
## $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake checkapi
|
|
|
|
cd ../wslua
|
|
|
|
## $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake checkapi
|
|
|
|
cd ../dissectors
|
2008-05-21 20:27:15 +00:00
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake checkapi
|
|
|
|
cd ..
|
|
|
|
cd ../plugins
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake checkapi
|
2008-06-03 05:35:19 +00:00
|
|
|
cd ../wsutil
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake checkapi
|
2010-01-12 22:27:41 +00:00
|
|
|
|
|
|
|
####
|
|
|
|
_FORCE_: ## Assumption: no file named _FORCE_ exists in the current directory
|