2004-07-18 00:24:25 +00:00
|
|
|
# $Id$
|
2001-03-09 03:43:58 +00:00
|
|
|
|
2010-04-09 21:42:51 +00:00
|
|
|
# Some more information about the settings in this file can be found in
|
|
|
|
# the file README.windows and the Developer's Guide (available online).
|
2006-08-31 01:50:11 +00:00
|
|
|
|
2012-10-15 15:31:20 +00:00
|
|
|
##### Program name #####
|
2012-10-16 14:03:42 +00:00
|
|
|
# Changing the name is experimental and may break the installer/unistaller and possibly other stuff.
|
|
|
|
# Application data will still be under the same dir as Wireshark so perference files profiles etc
|
|
|
|
# will be shared with a "normal" Wireshark installation.
|
|
|
|
# Note that suport libararies needs to be in PROGRAM_NAME-libs...
|
|
|
|
|
|
|
|
!IFNDEF PROGRAM_NAME
|
|
|
|
PROGRAM_NAME=Wireshark
|
|
|
|
!ENDIF
|
2012-10-15 15:31:20 +00:00
|
|
|
|
2008-08-14 23:56:57 +00:00
|
|
|
##### Target platform #####
|
2014-02-01 16:46:50 +00:00
|
|
|
|
|
|
|
# Pick up the value from the environment, VS2012 onwards sets this via vcvarsall.bat
|
|
|
|
# For VS2010 and earlier you'll have to set the value yourself
|
|
|
|
!IF "$(PLATFORM)" == "X64"
|
|
|
|
WIRESHARK_TARGET_PLATFORM=win64
|
|
|
|
!ENDIF
|
|
|
|
|
2009-03-07 01:06:40 +00:00
|
|
|
# Only "win32" and "win64" are valid (for now).
|
2008-08-14 23:56:57 +00:00
|
|
|
# This can be defined in the system environment.
|
2009-03-11 16:13:17 +00:00
|
|
|
!IFNDEF WIRESHARK_TARGET_PLATFORM
|
2011-04-13 05:43:07 +00:00
|
|
|
WIRESHARK_TARGET_PLATFORM=win32
|
2008-08-14 23:56:57 +00:00
|
|
|
!ENDIF
|
2006-08-31 01:50:11 +00:00
|
|
|
|
|
|
|
##### Versions #####
|
2004-09-02 18:23:23 +00:00
|
|
|
|
2014-02-07 19:14:52 +00:00
|
|
|
# The Git description of our build. Updated by make-version.pl
|
|
|
|
GIT_REVISION=0
|
2011-11-17 00:19:03 +00:00
|
|
|
|
|
|
|
# The current Wireshark version. Recommended: Leave unchanged.
|
|
|
|
# Updated by make-version.pl
|
2008-03-17 23:01:20 +00:00
|
|
|
VERSION_MAJOR=1
|
2013-04-22 17:59:38 +00:00
|
|
|
VERSION_MINOR=11
|
2013-11-18 17:41:00 +00:00
|
|
|
VERSION_MICRO=3
|
2014-02-07 19:14:52 +00:00
|
|
|
VERSION_BUILD=$(GIT_REVISION)
|
2004-09-02 18:23:23 +00:00
|
|
|
|
2011-11-17 00:19:03 +00:00
|
|
|
# Local build information. Recommended: Unique string for your
|
|
|
|
# environment, e.g. "-JackStackBarbecue". Updated by make-version.pl
|
2014-02-01 16:46:50 +00:00
|
|
|
# Defaults to the environment variable WIRESHARK_VERSION_EXTRA
|
2004-09-02 18:23:23 +00:00
|
|
|
|
2014-02-01 16:46:50 +00:00
|
|
|
VERSION_EXTRA=$(WIRESHARK_VERSION_EXTRA)
|
2000-02-09 00:41:57 +00:00
|
|
|
|
2011-11-17 00:19:03 +00:00
|
|
|
# The version of the wiretap library. Recommended: Leave unchanged.
|
|
|
|
WTAP_VERSION_MAJOR=$(VERSION_MAJOR)
|
|
|
|
WTAP_VERSION_MINOR=$(VERSION_MINOR)
|
|
|
|
WTAP_VERSION_MICRO=0
|
2003-10-10 09:48:54 +00:00
|
|
|
|
2014-01-08 04:35:28 +00:00
|
|
|
# The version of the filetap library. Recommended: Leave unchanged.
|
|
|
|
FTAP_VERSION_MAJOR=$(VERSION_MAJOR)
|
|
|
|
FTAP_VERSION_MINOR=$(VERSION_MINOR)
|
|
|
|
FTAP_VERSION_MICRO=0
|
|
|
|
|
2007-01-05 04:58:52 +00:00
|
|
|
##### Directories #####
|
|
|
|
|
2008-03-20 00:30:47 +00:00
|
|
|
#
|
|
|
|
# Base directory, where your libraries reside, which are needed to
|
2007-01-05 04:58:52 +00:00
|
|
|
# compile the sources. This setting is used only inside this file.
|
2011-07-19 16:26:42 +00:00
|
|
|
# This can be defined in the system environment.
|
2007-01-05 04:58:52 +00:00
|
|
|
#
|
2011-07-19 18:22:46 +00:00
|
|
|
!IFNDEF WIRESHARK_LIB_DIR
|
2013-12-02 13:00:06 +00:00
|
|
|
!IFDEF WIRESHARK_BASE_DIR
|
|
|
|
WIRESHARK_LIB_DIR=$(WIRESHARK_BASE_DIR)\$(PROGRAM_NAME)-$(WIRESHARK_TARGET_PLATFORM)-libs
|
|
|
|
!ELSE
|
2013-08-28 17:33:14 +00:00
|
|
|
WIRESHARK_LIB_DIR=C:\$(PROGRAM_NAME)-$(WIRESHARK_TARGET_PLATFORM)-libs
|
2011-07-19 16:26:42 +00:00
|
|
|
!ENDIF
|
2013-12-02 13:00:06 +00:00
|
|
|
!ENDIF
|
2007-01-05 04:58:52 +00:00
|
|
|
|
2008-03-20 00:30:47 +00:00
|
|
|
#
|
|
|
|
# Base directory, where your programs reside.
|
2007-01-05 04:58:52 +00:00
|
|
|
# This setting is used only inside this file.
|
|
|
|
#
|
2008-09-25 20:32:00 +00:00
|
|
|
PROGRAM_FILES=$(PROGRAMFILES)
|
2013-08-23 22:18:49 +00:00
|
|
|
PROGRAM_FILES_W6432=$(PROGRAMW6432)
|
2007-01-05 04:58:52 +00:00
|
|
|
|
2008-12-17 21:11:20 +00:00
|
|
|
#
|
|
|
|
# Location of the "tools" directory. This affects HTML2TXT below and should
|
|
|
|
# be overridden by makefiles in any subdirectories that use HTML2TXT.
|
|
|
|
!IFNDEF TOOLS_DIR
|
|
|
|
TOOLS_DIR=tools
|
|
|
|
!ENDIF
|
|
|
|
|
2008-08-14 23:56:57 +00:00
|
|
|
#
|
|
|
|
# Machine type for the compiler and linker
|
|
|
|
# TARGET_MACHINE (Used for link /MACHINE) should be one of "X86" or "X64"
|
|
|
|
# (sorry ARM, Alpha, MIPS, and Itanium fans).
|
|
|
|
# CPU (Used by win32.mak) should be one of "i386" or "AMD64".
|
2011-01-28 00:21:05 +00:00
|
|
|
# PROCESSOR_ARCHITECTURE (Used for redistributable packages and
|
|
|
|
# manifests) should be one of "x86" or "amd64".
|
2009-03-11 16:13:17 +00:00
|
|
|
!if "$(WIRESHARK_TARGET_PLATFORM)" == "win32"
|
2009-04-17 19:02:56 +00:00
|
|
|
TARGET_MACHINE=x86
|
2008-08-14 23:56:57 +00:00
|
|
|
CPU=i386
|
2011-01-28 00:21:05 +00:00
|
|
|
PROCESSOR_ARCHITECTURE=x86
|
2009-03-11 16:13:17 +00:00
|
|
|
!else if "$(WIRESHARK_TARGET_PLATFORM)" == "win64"
|
2009-04-17 19:02:56 +00:00
|
|
|
TARGET_MACHINE=x64
|
2008-08-14 23:56:57 +00:00
|
|
|
CPU=AMD64
|
2011-01-28 00:21:05 +00:00
|
|
|
PROCESSOR_ARCHITECTURE=amd64
|
2009-03-07 01:06:40 +00:00
|
|
|
!else
|
2009-03-11 16:13:17 +00:00
|
|
|
!error Your mysterious moon-man architecture "$(WIRESHARK_TARGET_PLATFORM)" frightens and confuses us.
|
2008-08-14 23:56:57 +00:00
|
|
|
!endif
|
2007-01-05 04:58:52 +00:00
|
|
|
|
|
|
|
|
2007-01-03 02:53:30 +00:00
|
|
|
##### Microsoft Visual C / Studio Variant #####
|
2014-02-01 16:46:50 +00:00
|
|
|
|
|
|
|
# Pick up the value from the environment, VS2012 onwards sets this via vcvarsall.bat
|
|
|
|
# For VS2010 and earlier you'll have to set the value yourself
|
|
|
|
# Assume that the lack of detection of Express editions doesn't matter
|
|
|
|
!IF "$(VISUALSTUDIOVERSION)" == "10.0"
|
|
|
|
MSVC_VARIANT=MSVC2010
|
|
|
|
!ELSE IF "$(VISUALSTUDIOVERSION)" == "11.0"
|
|
|
|
MSVC_VARIANT=MSVC2012
|
|
|
|
!ELSE IF "$(VISUALSTUDIOVERSION)" == "12.0"
|
|
|
|
MSVC_VARIANT=MSVC2013
|
|
|
|
!ENDIF
|
|
|
|
|
2011-01-28 00:21:05 +00:00
|
|
|
# For the different Studios, see: http://en.wikipedia.org/wiki/Microsoft_Visual_Studio
|
2012-01-06 15:45:46 +00:00
|
|
|
# Only one of the following MSVC_VARIANT settings should be used
|
2007-01-03 02:53:30 +00:00
|
|
|
|
2008-08-04 23:05:32 +00:00
|
|
|
# "Microsoft Visual Studio 2008"
|
|
|
|
# Visual C++ 9.0, _MSC_VER 1500, msvcr90.dll
|
2011-01-28 00:21:05 +00:00
|
|
|
#MSVC_VARIANT=MSVC2008
|
2008-08-04 23:05:32 +00:00
|
|
|
|
2007-11-30 22:01:05 +00:00
|
|
|
# "Microsoft Visual C++ 2008 Express Edition"
|
|
|
|
# Visual C++ 9.0, _MSC_VER 1500, msvcr90.dll
|
|
|
|
#MSVC_VARIANT=MSVC2008EE
|
|
|
|
|
2010-04-21 05:23:29 +00:00
|
|
|
# "Microsoft Visual Studio 2010"
|
|
|
|
# Visual C++ 10.0, _MSC_VER 1600, msvcr100.dll
|
2012-07-06 07:49:36 +00:00
|
|
|
#MSVC_VARIANT=MSVC2010
|
2010-04-21 05:23:29 +00:00
|
|
|
|
|
|
|
# "Microsoft Visual C++ 2010 Express Edition"
|
|
|
|
# Visual C++ 10.0, _MSC_VER 1600, msvcr100.dll
|
2013-08-28 17:33:14 +00:00
|
|
|
#MSVC_VARIANT=MSVC2010EE
|
2010-04-21 05:23:29 +00:00
|
|
|
|
2012-09-18 19:42:04 +00:00
|
|
|
# "Microsoft Visual C++ 2012 Express Edition"
|
|
|
|
# Visual C++ 11.0, _MSC_VER 1700, msvcr110.dll
|
2012-12-28 21:18:19 +00:00
|
|
|
## Notes:
|
|
|
|
## 1. Sep 20,2012: *Beta*: Build with VC11 (2012) succeeds; Seems OK: Minimally tested;
|
|
|
|
## win32.mak is apparently not part of the MS 2012EE install;
|
|
|
|
## To build Windows Wireshark, win32.mak must be obtained*
|
2012-09-20 21:24:33 +00:00
|
|
|
## and copied to a dir specified in the Windows Environment
|
|
|
|
## variable 'include' (or to a dir added to the list in 'include').
|
2012-12-28 21:18:19 +00:00
|
|
|
## *One possibility: download the Windows 7 Platform SDK and copy
|
2012-09-20 21:24:33 +00:00
|
|
|
## win32.mak from ...\Microsoft SDKs\Windows\v7.[something]\include
|
|
|
|
## See: http://ask.wireshark.org/questions/14343/setting-development-project-under-visual-studio-2012
|
2012-12-28 21:18:19 +00:00
|
|
|
## 2. Dec 28,2012: "VS2012 Update 1" is required to use VS 2012 to build an .exe which
|
|
|
|
## will run on Windows XP (as well as on later versions of Windows).
|
|
|
|
## ToDo: It appears that some special setup is required to to do this.
|
|
|
|
## https://blogs.msdn.com/b/vcblog/archive/2012/10/08/10357555.aspx
|
2013-02-07 21:59:27 +00:00
|
|
|
## 3. Feb 07,2013: [WMeier] I've noted no problems to date with Wireshark built with VS2012
|
|
|
|
## based upon a fair amount of use while doing Wireshark testing and debugging.
|
2012-12-28 21:18:19 +00:00
|
|
|
##
|
2012-09-18 19:42:04 +00:00
|
|
|
#MSVC_VARIANT=MSVC2012EE
|
|
|
|
|
2012-09-21 06:16:19 +00:00
|
|
|
# "Microsoft Visual Studio 2012"
|
|
|
|
# Visual C++ 11.0, _MSC_VER 1700, msvcr110.dll
|
|
|
|
#MSVC_VARIANT=MSVC2012
|
|
|
|
|
2013-10-20 17:35:30 +00:00
|
|
|
# "Microsoft Visual Studio 2013"
|
|
|
|
# Visual C++ 12.0, _MSC_VER 1800, msvcr120.dll
|
|
|
|
#MSVC_VARIANT=MSVC2013
|
|
|
|
|
|
|
|
# "Microsoft Visual Studio 2013 Express Edition"
|
|
|
|
# Visual C++ 12.0, _MSC_VER 1800, msvcr120.dll
|
|
|
|
#MSVC_VARIANT=MSVC2013EE
|
|
|
|
|
2011-01-28 00:21:05 +00:00
|
|
|
# The default if we haven't set a system environment variable or
|
2012-06-03 07:07:35 +00:00
|
|
|
# uncommented an entry above. We default to the version recommended
|
|
|
|
# in the Developer's Guide, namely MSVC++ 2010 Express Edition.
|
2011-01-28 00:21:05 +00:00
|
|
|
!IFNDEF MSVC_VARIANT
|
2012-06-03 07:07:35 +00:00
|
|
|
MSVC_VARIANT=MSVC2010EE
|
2011-01-28 00:21:05 +00:00
|
|
|
!ENDIF
|
|
|
|
|
2007-11-28 10:18:16 +00:00
|
|
|
#
|
|
|
|
# Optional: To compile some time critical code from assembler instead of C
|
|
|
|
#
|
|
|
|
# If you have the NASM compiler, set this to the NASM executable.
|
2007-11-28 21:33:01 +00:00
|
|
|
# http://nasm.sourceforge.net/
|
2007-11-28 10:18:16 +00:00
|
|
|
#
|
|
|
|
# If you don't have NASM, comment this line out, so that NASM
|
|
|
|
# isn't defined.
|
|
|
|
#
|
2011-07-19 18:22:46 +00:00
|
|
|
NASM=$(WIRESHARK_LIB_DIR)\nasm-2.09.08\nasm.exe
|
2007-01-03 22:09:15 +00:00
|
|
|
|
2010-06-01 22:20:15 +00:00
|
|
|
#
|
|
|
|
# Optional: the Python library enables scripting support.
|
|
|
|
#
|
|
|
|
# If you don't have the Python library, comment this line out, so that
|
|
|
|
# PYTHON_EMBED isn't defined.
|
|
|
|
#
|
|
|
|
# NOTE: The Python library must have been compiled with the same
|
2011-02-21 18:42:19 +00:00
|
|
|
# compiler (MSVC_VARIANT) as Wireshark. Known python.org Python
|
2010-06-01 22:20:15 +00:00
|
|
|
# CRT versions:
|
|
|
|
#
|
|
|
|
# Python version CRT (32-bit) CRT (64-bit)
|
|
|
|
# 2.4.4 7.1 ?
|
|
|
|
# 2.6.1 9.0 ?
|
2011-10-04 20:50:12 +00:00
|
|
|
# 2.6.2 ? 9.0
|
|
|
|
# 2.7.1 9.0 9.0
|
|
|
|
# 3.2.2 9.0 9.0
|
2010-06-01 22:20:15 +00:00
|
|
|
#
|
|
|
|
# If you versions of Python and Visual C++ use different CRTs
|
|
|
|
# comment this out.
|
|
|
|
#
|
2010-08-25 20:30:59 +00:00
|
|
|
# XXX The DLL path in epan/wspython/wspy_libws.py likely needs to
|
|
|
|
# be fixed before this is enabled by default.
|
2010-06-01 22:20:15 +00:00
|
|
|
#PYTHON_EMBED=1
|
|
|
|
|
|
|
|
#
|
|
|
|
# Optional: the Python interpreter is used as part of the buildsystem
|
|
|
|
#
|
2010-09-24 23:50:38 +00:00
|
|
|
# This will override the automatic detection below.
|
|
|
|
#PYTHON_VER=27
|
|
|
|
#PYTHON_DIR=C:\Python$(PYTHON_VER)
|
|
|
|
|
2010-06-01 22:20:15 +00:00
|
|
|
#
|
2010-09-24 23:50:38 +00:00
|
|
|
# If you don't have the native Python package installed, you can use
|
|
|
|
# the Cygwin version (not recommended)
|
2010-06-01 22:20:15 +00:00
|
|
|
#
|
2010-09-24 23:50:38 +00:00
|
|
|
#PYTHON=env python
|
|
|
|
|
2010-10-28 16:29:39 +00:00
|
|
|
# Santity check: native vs Cygwin Python options
|
|
|
|
!IF DEFINED(PYTHON) && DEFINED(PYTHON_DIR)
|
|
|
|
!ERROR PYTHON and PYTHON_DIR cannot be specified at the same time
|
|
|
|
!ENDIF
|
|
|
|
|
2010-09-24 23:50:38 +00:00
|
|
|
# Find native Python automatically if PYTHON(_DIR) wasn't defined
|
|
|
|
!IF !DEFINED(PYTHON) && !DEFINED(PYTHON_DIR)
|
|
|
|
!IF EXIST(c:\Python27\python.exe)
|
|
|
|
PYTHON_VER=27
|
|
|
|
!ELSE IF EXIST(c:\Python26\python.exe)
|
|
|
|
PYTHON_VER=26
|
|
|
|
!ELSE IF EXIST(c:\Python25\python.exe)
|
|
|
|
PYTHON_VER=25
|
|
|
|
!ELSE IF EXIST(c:\Python24\python.exe)
|
|
|
|
PYTHON_VER=24
|
|
|
|
!ENDIF
|
2010-06-01 22:20:15 +00:00
|
|
|
|
2010-09-24 23:50:38 +00:00
|
|
|
!IF DEFINED(PYTHON_VER)
|
|
|
|
PYTHON_DIR=C:\Python$(PYTHON_VER)
|
|
|
|
!ENDIF
|
2010-10-28 16:29:39 +00:00
|
|
|
!ENDIF
|
2010-09-24 23:50:38 +00:00
|
|
|
|
|
|
|
!IF DEFINED(PYTHON_DIR)
|
|
|
|
PYTHON="$(PYTHON_DIR)\python.exe"
|
|
|
|
PATH=$(PYTHON_DIR);$(PATH)
|
|
|
|
!ENDIF
|
2007-11-30 22:01:05 +00:00
|
|
|
|
2011-06-17 17:52:31 +00:00
|
|
|
#### Save files as pcap-ng by default. Comment out to use pcap instead. ####
|
|
|
|
PCAP_NG_DEFAULT=^#define PCAP_NG_DEFAULT 1
|
|
|
|
|
2011-05-12 17:14:59 +00:00
|
|
|
##### To Use packet editor uncomment this line ####
|
2013-11-07 07:42:35 +00:00
|
|
|
### Experimental - work in progress
|
|
|
|
WANT_PACKET_EDITOR=^#define WANT_PACKET_EDITOR 1
|
2011-05-12 17:14:59 +00:00
|
|
|
|
2009-03-11 16:13:17 +00:00
|
|
|
!if "$(WIRESHARK_TARGET_PLATFORM)" == "win32"
|
2009-03-07 01:06:40 +00:00
|
|
|
##### Win32 Libraries #####
|
2006-08-31 01:50:11 +00:00
|
|
|
#
|
|
|
|
# Mandatory: GLib settings
|
2003-11-11 18:25:04 +00:00
|
|
|
#
|
2008-04-09 03:48:16 +00:00
|
|
|
# Please note: Since Wireshark release 1.0.0, we no longer support GLib1.x
|
2003-11-11 18:25:04 +00:00
|
|
|
#
|
2003-08-04 14:34:17 +00:00
|
|
|
GLIB_VERSION=2.0
|
2000-02-09 00:41:57 +00:00
|
|
|
|
2003-06-15 22:58:19 +00:00
|
|
|
#
|
2009-11-19 20:27:08 +00:00
|
|
|
# Mandatory: GLib, GTK & related library settings
|
2003-06-15 22:58:19 +00:00
|
|
|
#
|
2008-04-09 03:48:16 +00:00
|
|
|
# Please note: Since Wireshark release 1.0.0, we no longer support GTK1.x
|
2008-03-20 00:30:47 +00:00
|
|
|
#
|
2009-07-16 12:39:50 +00:00
|
|
|
# If you want building with GTK+, set GTK_DIR to the pathname of the
|
2008-04-09 03:48:16 +00:00
|
|
|
# directory in which the "include" and "lib" directories reside.
|
2003-06-15 22:58:19 +00:00
|
|
|
#
|
2013-07-24 18:48:25 +00:00
|
|
|
# Set the name to gtk2 if you want to use gtk2
|
2013-12-23 16:47:10 +00:00
|
|
|
GTK_NAME=gtk3
|
2012-04-21 08:45:52 +00:00
|
|
|
GTK_DIR=$(WIRESHARK_LIB_DIR)\$(GTK_NAME)
|
2012-05-14 17:54:47 +00:00
|
|
|
|
2012-10-19 17:47:34 +00:00
|
|
|
|
2009-08-28 15:59:20 +00:00
|
|
|
# These macros are used by the nsis installer script and by the install target.
|
2012-05-14 17:54:47 +00:00
|
|
|
#EXPAT_DLL=libexpat-1.dll
|
|
|
|
FFI_DLL=libffi-5.dll
|
2009-09-16 13:34:37 +00:00
|
|
|
FONTCONFIG_DLL=libfontconfig-1.dll
|
2012-05-14 17:54:47 +00:00
|
|
|
FREETYPE_DLL=libfreetype-6.dll
|
|
|
|
INTL_DLL=libintl-8.dll
|
|
|
|
JASPER_DLL=libjasper-1.dll
|
|
|
|
JPEG_DLL=libjpeg-8.dll
|
|
|
|
LZMA_DLL=liblzma-5.dll
|
|
|
|
PIXMAN_DLL=libpixman-1-0.dll
|
|
|
|
PNG_DLL=libpng15-15.dll
|
|
|
|
TIFF_DLL=libtiff-5.dll
|
|
|
|
XML_DLL=libxml2-2.dll
|
|
|
|
|
2009-11-19 20:27:08 +00:00
|
|
|
# This macro is used by the setup target.
|
2012-04-21 08:45:52 +00:00
|
|
|
!IF "$(GTK_NAME)" == "gtk2"
|
2012-10-14 18:42:02 +00:00
|
|
|
GDK_DLL=libgdk-win32-2.0-0.dll
|
|
|
|
GTK_DLL=libgtk-win32-2.0-0.dll
|
2012-12-19 04:44:01 +00:00
|
|
|
#GTK_PKG=2.24.10-2.7
|
|
|
|
GTK_PKG=2.24.14-1.1
|
2012-05-14 17:54:47 +00:00
|
|
|
PKG_SUFIX=ws
|
2012-04-21 08:45:52 +00:00
|
|
|
!ELSE
|
2012-10-14 18:42:02 +00:00
|
|
|
GDK_DLL=libgdk-3-0.dll
|
|
|
|
GTK_DLL=libgtk-3-0.dll
|
2012-04-23 07:19:22 +00:00
|
|
|
PKG_SUFIX=ws
|
2012-12-22 21:46:59 +00:00
|
|
|
GTK_PKG=3.4.4-2.1
|
2014-01-27 19:22:10 +00:00
|
|
|
#GTK_PKG=3.6.1-1.1
|
2012-04-21 08:45:52 +00:00
|
|
|
!ENDIF
|
2003-06-15 22:58:19 +00:00
|
|
|
|
2006-02-06 09:09:06 +00:00
|
|
|
#
|
2008-04-09 03:48:16 +00:00
|
|
|
# Mandatory: Version numbers of GTK and pango.
|
2006-08-31 01:50:11 +00:00
|
|
|
#
|
2008-03-20 00:30:47 +00:00
|
|
|
# (MAJOR + MINOR Version number but without MICRO version number)
|
2004-06-20 20:28:23 +00:00
|
|
|
# These macros are used by the nsis installer script and by the setup target.
|
From Lars Roland: define an "installation" version of GTK+ 2.x and Pango
in "config.nmake", and use that in the NSIS script when generating the
NSIS installer, so it puts GTK+ and Pango in the appropriate
subdirectories. Also, when uninstalling, remove both of the sets of
subdirectories.
As per his suggestion, get rid of the "GTK1_VERSION" and "GTK2_VERSION"
macros, and just directly insert the values where those macros were used
- "GTK1_VERSION" wasn't used at all, and "GTK2_VERSION" was only used
immediately below where it was defined, and stuff elsewhere, such as in
the NSIS script, didn't use them and would break if you changed them
anyway.
svn path=/trunk/; revision=10976
2004-05-23 22:21:30 +00:00
|
|
|
#
|
2013-07-24 17:29:52 +00:00
|
|
|
!IF "$(GTK_NAME)" == "gtk2"
|
2012-02-29 14:44:08 +00:00
|
|
|
GTK_INST_VERSION=2.24
|
2012-04-21 08:45:52 +00:00
|
|
|
!ELSE
|
|
|
|
GTK_INST_VERSION=3.4
|
2014-01-27 19:22:10 +00:00
|
|
|
#GTK_INST_VERSION=3.6
|
2012-04-21 08:45:52 +00:00
|
|
|
!ENDIF
|
2009-08-26 07:05:50 +00:00
|
|
|
|
2003-11-07 23:27:13 +00:00
|
|
|
#
|
2013-10-08 23:03:56 +00:00
|
|
|
# Recommended: Qt
|
|
|
|
#
|
|
|
|
# This must point to a top-level Qt directory. QMake should be in
|
2013-10-12 00:12:24 +00:00
|
|
|
# $(QT5_BASE_DIR)\bin
|
2013-10-08 23:03:56 +00:00
|
|
|
#
|
2013-10-10 23:45:16 +00:00
|
|
|
# Qt's various paths are hardcoded but with care you can relocate your
|
|
|
|
# installation directory:
|
|
|
|
# http://stackoverflow.com/questions/913642/qmake-and-qt-install-prefix-how-can-i-select-a-new-location-for-qt-library
|
|
|
|
#
|
2013-10-12 00:12:24 +00:00
|
|
|
#QT5_BASE_DIR=output of "qmake -query QT_INSTALL_PREFIX"
|
|
|
|
!IF !DEFINED(QT5_BASE_DIR)
|
2013-10-11 23:52:19 +00:00
|
|
|
# Wireshark custom
|
2013-10-10 23:52:29 +00:00
|
|
|
!IF EXIST(C:\Qt\Qt-5.1.1-MSVC2010-$(WIRESHARK_TARGET_PLATFORM)-ws)
|
2013-10-12 00:12:24 +00:00
|
|
|
QT5_BASE_DIR=C:\Qt\Qt-5.1.1-MSVC2010-$(WIRESHARK_TARGET_PLATFORM)-ws
|
2013-10-11 23:52:19 +00:00
|
|
|
# Digia official
|
2013-10-10 23:45:16 +00:00
|
|
|
!ELSE IF EXIST(C:\Qt\Qt5.1.1\5.1.1\msvc2010)
|
2013-10-12 00:12:24 +00:00
|
|
|
QT5_BASE_DIR=C:\Qt\Qt5.1.1\5.1.1\msvc2010
|
2013-10-11 23:52:19 +00:00
|
|
|
# Digia official, installed in $(WIRESHARK_LIB_DIR)
|
|
|
|
!ELSE IF EXIST($(WIRESHARK_LIB_DIR)\Qt5.1.1\5.1.1\msvc2010)
|
2013-10-12 00:12:24 +00:00
|
|
|
QT5_BASE_DIR=$(WIRESHARK_LIB_DIR)\Qt5.1.1\5.1.1\msvc2010
|
2013-10-10 23:45:16 +00:00
|
|
|
!ENDIF
|
|
|
|
!ENDIF
|
2013-10-08 23:03:56 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Recommended: WinPcap developer's pack to capture network traffic.
|
2006-08-31 01:50:11 +00:00
|
|
|
#
|
2008-03-20 00:30:47 +00:00
|
|
|
# If you have the WinPcap developer's pack (at least version 3.0),
|
2007-02-03 20:40:11 +00:00
|
|
|
# set this to the directory in which the WinPcap developer's pack resides.
|
2006-08-31 01:50:11 +00:00
|
|
|
#
|
2008-03-20 00:30:47 +00:00
|
|
|
# If you don't have the WPdpack, comment this line out, so that
|
2006-08-31 01:50:11 +00:00
|
|
|
# PCAP_DIR isn't defined.
|
|
|
|
#
|
2011-07-19 18:22:46 +00:00
|
|
|
PCAP_DIR=$(WIRESHARK_LIB_DIR)\WPdpack
|
2009-08-28 15:59:20 +00:00
|
|
|
# This macro is used by the nsis installer script, by the u3/portable apps and by the setup target.
|
2013-12-01 10:05:16 +00:00
|
|
|
WINPCAP_VERSION=4_1_3
|
2013-03-09 01:20:09 +00:00
|
|
|
WPD_VERSION=4_1_2
|
2006-08-31 01:50:11 +00:00
|
|
|
|
2007-12-04 11:19:29 +00:00
|
|
|
#
|
|
|
|
# Optional: WinPcap remote capture support and new API
|
|
|
|
# (pcap_open(), pcap_findalldevs_ex(), etc.)
|
|
|
|
#
|
2008-05-07 13:15:24 +00:00
|
|
|
PCAP_REMOTE=1
|
2007-12-04 11:19:29 +00:00
|
|
|
|
2006-08-31 01:50:11 +00:00
|
|
|
#
|
2008-03-20 00:30:47 +00:00
|
|
|
# Optional: The ZLib enables unzipping of gzip compressed capture files
|
2006-08-31 01:50:11 +00:00
|
|
|
# "on the fly".
|
|
|
|
#
|
2008-03-20 00:30:47 +00:00
|
|
|
# If you have Zlib, set this to directory in which the Zlib headers
|
2006-08-31 01:50:11 +00:00
|
|
|
# and .lib file are stored.
|
|
|
|
#
|
|
|
|
# If you don't have Zlib, comment this line out, so that ZLIB_DIR isn't
|
2003-11-07 23:27:13 +00:00
|
|
|
# defined.
|
2011-04-12 15:44:05 +00:00
|
|
|
# EXperimental only use zlib 1.2.5 on win32 for now
|
2011-07-19 18:22:46 +00:00
|
|
|
ZLIB_DIR=$(WIRESHARK_LIB_DIR)\zlib125
|
2003-11-07 23:27:13 +00:00
|
|
|
|
2003-06-12 09:45:42 +00:00
|
|
|
#
|
2008-03-20 00:30:47 +00:00
|
|
|
# Optional: the ADNS library enables asynchronous (nonblocking) DNS
|
2006-08-31 01:50:11 +00:00
|
|
|
# name resolvings.
|
|
|
|
#
|
2008-03-20 00:30:47 +00:00
|
|
|
# If you have GNU ADNS, set this to the directory in which the GNU ADNS
|
2006-08-31 01:50:11 +00:00
|
|
|
# .lib file is stored.
|
2003-06-12 09:45:42 +00:00
|
|
|
#
|
|
|
|
# If you don't have GNU ADNS, comment this line out, so that ADNS_DIR
|
|
|
|
# isn't defined.
|
|
|
|
#
|
2008-08-07 21:41:48 +00:00
|
|
|
# If C_ARES_DIR is defined below, it will override this setting.
|
|
|
|
#
|
2011-07-19 18:22:46 +00:00
|
|
|
#ADNS_DIR=$(WIRESHARK_LIB_DIR)\adns-1.0-win32-05ws
|
2008-08-07 21:41:48 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Optional: the c-ares library enables asynchronous (nonblocking) DNS
|
|
|
|
# name resolvings.
|
|
|
|
#
|
|
|
|
# If you have c-ares, set this to the directory in which the c-ares
|
|
|
|
# .lib file is stored. Setting this will override ADNS_DIR above. You
|
|
|
|
# can't have both.
|
|
|
|
#
|
2008-08-11 17:20:18 +00:00
|
|
|
# If you're using Visual C++ 6.0, you'll have to use a platform SDK that
|
|
|
|
# defines socklen_t, such as Windows Server 2003 PSDK.
|
|
|
|
#
|
2008-08-07 21:41:48 +00:00
|
|
|
# If you don't have c-ares, comment this line out, so that C_ARES_DIR
|
|
|
|
# isn't defined.
|
|
|
|
#
|
2013-03-08 16:51:21 +00:00
|
|
|
C_ARES_PKG=1.9.1-1
|
2000-02-09 19:18:42 +00:00
|
|
|
|
2006-08-31 01:50:11 +00:00
|
|
|
#
|
2012-03-29 20:18:10 +00:00
|
|
|
# Optional: the GnuTLS library enables ssl decryption.
|
2006-08-31 01:50:11 +00:00
|
|
|
#
|
2012-03-29 20:18:10 +00:00
|
|
|
# If you have the GnuTLS library, set this to the package version.
|
2006-08-31 01:50:11 +00:00
|
|
|
#
|
2012-03-29 20:18:10 +00:00
|
|
|
# If you don't have GnuTLS, comment this line out, so that GNUTLS_PKG
|
2006-08-31 01:50:11 +00:00
|
|
|
# isn't defined.
|
|
|
|
#
|
2007-01-05 05:03:15 +00:00
|
|
|
# Platform SDK conflicts with openssl.h header
|
2012-03-27 22:57:42 +00:00
|
|
|
GNUTLS_PKG=2.12.18-1.2
|
2006-08-31 01:50:11 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Optional: the KFW library enables kerberos/sasl/dcerpc decryption.
|
|
|
|
#
|
2008-03-20 00:30:47 +00:00
|
|
|
# If you have the kerberos for windows (mit) library, set this to the
|
2006-08-31 01:50:11 +00:00
|
|
|
# directory where the kfw package is stored.
|
|
|
|
#
|
|
|
|
# If you don't have KFW, comment this line out, so that KFW_DIR
|
|
|
|
# isn't defined.
|
|
|
|
#
|
2011-07-19 18:22:46 +00:00
|
|
|
KFW_DIR=$(WIRESHARK_LIB_DIR)\kfw-3-2-2-i386-ws-vc6
|
2006-08-05 04:32:57 +00:00
|
|
|
|
2004-10-15 15:36:12 +00:00
|
|
|
#
|
2006-08-31 01:50:11 +00:00
|
|
|
# Optional: the Nettle library enables ??? decryption.
|
|
|
|
#
|
2008-03-20 00:30:47 +00:00
|
|
|
# If you have the Nettle encryption library, set this to the
|
2006-08-31 01:50:11 +00:00
|
|
|
# directory in which the nettle package is stored.
|
2004-10-15 15:36:12 +00:00
|
|
|
#
|
|
|
|
# If you don't have Nettle, comment this line out, so that NETTLE_DIR
|
|
|
|
# isn't defined.
|
|
|
|
#
|
2011-07-19 18:22:46 +00:00
|
|
|
# NETTLE_DIR=$(WIRESHARK_LIB_DIR)\nettle-1.10
|
2004-10-15 15:36:12 +00:00
|
|
|
|
2006-02-07 09:12:43 +00:00
|
|
|
#
|
2006-08-31 01:50:11 +00:00
|
|
|
# Optional: the LUA library enables scripting support.
|
|
|
|
#
|
2008-03-20 00:30:47 +00:00
|
|
|
# If you have the LUA library, set this to the directory in which
|
2006-08-31 01:50:11 +00:00
|
|
|
# the LUA package is stored.
|
2006-02-07 09:12:43 +00:00
|
|
|
#
|
|
|
|
# If you don't have LUA, comment this line out, so that LUA_DIR
|
|
|
|
# isn't defined.
|
|
|
|
#
|
2009-03-07 01:06:40 +00:00
|
|
|
LUA_DIST=5_1_4_Win32_dll6
|
2011-07-19 18:22:46 +00:00
|
|
|
LUA_DIR=$(WIRESHARK_LIB_DIR)\lua5.1.4
|
2006-02-07 09:12:43 +00:00
|
|
|
|
2006-08-30 21:51:31 +00:00
|
|
|
#
|
2006-08-31 01:50:11 +00:00
|
|
|
# Optional: the PORTAUDIO library enables audio output for RTP streams.
|
|
|
|
#
|
2008-03-20 00:30:47 +00:00
|
|
|
# If you have the PORTAUDIO library (used for rtp_player), set this to
|
2006-08-31 01:50:11 +00:00
|
|
|
# the directory in which the PORTAUDIO library is stored.
|
2006-08-30 21:51:31 +00:00
|
|
|
#
|
2008-03-20 00:30:47 +00:00
|
|
|
# If you don't have PORTAUDIO, comment this line out, so that
|
2006-08-30 21:51:31 +00:00
|
|
|
# PORTAUDIO_DIR isn't defined.
|
|
|
|
#
|
2011-07-19 18:22:46 +00:00
|
|
|
#PORTAUDIO_DIR=$(WIRESHARK_LIB_DIR)\portaudio_v18_1
|
|
|
|
PORTAUDIO_DIR=$(WIRESHARK_LIB_DIR)\portaudio_v19_2
|
2006-10-07 14:24:32 +00:00
|
|
|
|
2006-09-12 00:27:03 +00:00
|
|
|
#
|
2006-09-11 22:43:00 +00:00
|
|
|
# Version number of PortAudio
|
2008-03-20 00:30:47 +00:00
|
|
|
#
|
2006-12-27 22:21:46 +00:00
|
|
|
#PORTAUDIO_VERSION=18
|
|
|
|
PORTAUDIO_VERSION=19
|
2006-08-30 21:51:31 +00:00
|
|
|
|
2006-09-12 00:27:03 +00:00
|
|
|
#
|
2008-03-20 00:30:47 +00:00
|
|
|
# Optional: AirPcap developer's pack to capture wireless network traffic
|
2006-09-12 00:27:03 +00:00
|
|
|
# incl. 802.11 management frames.
|
|
|
|
#
|
2008-03-20 00:30:47 +00:00
|
|
|
# If you have the AirPcap developer's pack, set this to the directory
|
2006-09-12 00:27:03 +00:00
|
|
|
# in which the AirPcap developer's pack resides.
|
|
|
|
#
|
2008-03-20 00:30:47 +00:00
|
|
|
# If you don't have the AirPcap developer's pack, comment this line out,
|
2006-09-12 00:27:03 +00:00
|
|
|
# so that AIRPCAP_DIR isn't defined.
|
|
|
|
#
|
2011-07-19 18:22:46 +00:00
|
|
|
AIRPCAP_DIR=$(WIRESHARK_LIB_DIR)\AirPcap_Devpack_4_1_0_1622\AirPcap_Devpack
|
2006-09-12 00:27:03 +00:00
|
|
|
|
2007-08-26 20:03:23 +00:00
|
|
|
#
|
2008-03-20 00:30:47 +00:00
|
|
|
# Optional: LIBSMI, System Management Interface
|
2007-08-26 20:03:23 +00:00
|
|
|
#
|
|
|
|
# Used for oid-name resolution for SNMP and other protocols
|
|
|
|
#
|
2011-06-27 20:48:26 +00:00
|
|
|
SMI_PKG=svn-40773
|
2003-12-23 11:57:26 +00:00
|
|
|
|
2008-12-23 18:56:31 +00:00
|
|
|
#
|
|
|
|
# Optional: GeoIP, IP address database lookups
|
|
|
|
#
|
|
|
|
# Used to map IP addresses to MaxMind GeoIP database entries
|
|
|
|
#
|
2013-07-20 01:01:55 +00:00
|
|
|
GEOIP_PKG=1.5.1-2
|
2000-10-14 04:31:26 +00:00
|
|
|
|
2013-02-19 22:21:17 +00:00
|
|
|
#
|
|
|
|
# Optional: WinSparkle, software updates
|
|
|
|
#
|
|
|
|
# Used for automatic software updates
|
|
|
|
#
|
|
|
|
WINSPARKLE_PKG=0.3-44-g2c8d9d3-win32ws
|
|
|
|
|
2009-03-07 01:06:40 +00:00
|
|
|
!else
|
|
|
|
##### Win64 Libraries #####
|
|
|
|
#
|
|
|
|
# Mandatory: GLib settings
|
|
|
|
#
|
|
|
|
# Please note: Since Wireshark release 1.0.0, we no longer support GLib1.x
|
|
|
|
#
|
|
|
|
GLIB_VERSION=2.0
|
|
|
|
|
|
|
|
#
|
2009-11-19 20:27:08 +00:00
|
|
|
# Mandatory: GLib, GTK & related library settings
|
2009-03-07 01:06:40 +00:00
|
|
|
#
|
|
|
|
# Please note: Since Wireshark release 1.0.0, we no longer support GTK1.x
|
|
|
|
#
|
2009-07-16 12:39:50 +00:00
|
|
|
# If you want building with GTK+, set GTK_DIR to the pathname of the
|
2009-03-07 01:06:40 +00:00
|
|
|
# directory in which the "include" and "lib" directories reside.
|
|
|
|
#
|
2012-04-21 08:45:52 +00:00
|
|
|
#
|
2013-03-06 20:56:04 +00:00
|
|
|
# Set the name to gtk3 if you want to use gtk3 - (experimental ?)
|
2012-10-15 12:50:20 +00:00
|
|
|
GTK_NAME=gtk2
|
2012-04-21 08:45:52 +00:00
|
|
|
GTK_DIR=$(WIRESHARK_LIB_DIR)\$(GTK_NAME)
|
|
|
|
|
2009-08-28 15:59:20 +00:00
|
|
|
# These macros are used by the nsis installer script and by the install target.
|
2012-05-14 17:54:47 +00:00
|
|
|
#EXPAT_DLL=libexpat-1.dll
|
|
|
|
FFI_DLL=libffi-5.dll
|
2012-04-20 23:41:36 +00:00
|
|
|
FONTCONFIG_DLL=libfontconfig-1.dll
|
2012-05-14 17:54:47 +00:00
|
|
|
FREETYPE_DLL=libfreetype-6.dll
|
2009-11-19 20:27:08 +00:00
|
|
|
INTL_DLL=libintl-8.dll
|
2012-05-14 17:54:47 +00:00
|
|
|
JASPER_DLL=libjasper-1.dll
|
|
|
|
JPEG_DLL=libjpeg-8.dll
|
|
|
|
LZMA_DLL=liblzma-5.dll
|
|
|
|
PIXMAN_DLL=libpixman-1-0.dll
|
|
|
|
PNG_DLL=libpng15-15.dll
|
|
|
|
TIFF_DLL=libtiff-5.dll
|
|
|
|
XML_DLL=libxml2-2.dll
|
2009-11-19 20:27:08 +00:00
|
|
|
|
2009-08-28 15:59:20 +00:00
|
|
|
# These macros are used by the setup target.
|
2012-04-21 08:45:52 +00:00
|
|
|
!IF "$(GTK_NAME)" == "gtk2"
|
2012-10-14 18:42:02 +00:00
|
|
|
GDK_DLL=libgdk-win32-2.0-0.dll
|
|
|
|
GTK_DLL=libgtk-win32-2.0-0.dll
|
2012-12-19 06:52:56 +00:00
|
|
|
#GTK_PKG=2.24.10-2.7
|
|
|
|
GTK_PKG=2.24.14-1.1
|
2012-05-14 17:54:47 +00:00
|
|
|
PKG_SUFIX=ws
|
2012-04-21 08:45:52 +00:00
|
|
|
!ELSE
|
2012-10-14 18:42:02 +00:00
|
|
|
GDK_DLL=libgdk-3-0.dll
|
|
|
|
GTK_DLL=libgtk-3-0.dll
|
2012-04-21 08:45:52 +00:00
|
|
|
PKG_SUFIX=ws
|
2012-12-22 21:46:59 +00:00
|
|
|
GTK_PKG=3.4.4-2.1
|
2014-01-27 19:22:10 +00:00
|
|
|
#GTK_PKG=3.6.1-1.1
|
2012-04-21 08:45:52 +00:00
|
|
|
!ENDIF
|
2009-03-07 01:06:40 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Mandatory: Version numbers of GTK and pango.
|
|
|
|
#
|
|
|
|
# (MAJOR + MINOR Version number but without MICRO version number)
|
|
|
|
# These macros are used by the nsis installer script and by the setup target.
|
|
|
|
#
|
2012-04-21 08:45:52 +00:00
|
|
|
!IF "$(GTK_NAME)" == "gtk2"
|
2011-04-13 14:38:58 +00:00
|
|
|
#GTK_INST_VERSION=2.16
|
2012-05-14 17:54:47 +00:00
|
|
|
GTK_INST_VERSION=2.24
|
2012-04-21 08:45:52 +00:00
|
|
|
!ELSE
|
2014-01-27 19:22:10 +00:00
|
|
|
#GTK_INST_VERSION=3.4
|
|
|
|
GTK_INST_VERSION=3.6
|
2012-04-21 08:45:52 +00:00
|
|
|
!ENDIF
|
2009-08-26 07:05:50 +00:00
|
|
|
|
2009-03-07 01:06:40 +00:00
|
|
|
#
|
2013-10-08 23:03:56 +00:00
|
|
|
# Recommended: Qt
|
|
|
|
#
|
|
|
|
# This must point to a top-level Qt directory. QMake should be in
|
2013-10-12 00:12:24 +00:00
|
|
|
# $(QT5_BASE_DIR)\bin
|
2013-10-08 23:03:56 +00:00
|
|
|
#
|
2013-10-10 23:45:16 +00:00
|
|
|
# Qt's various paths are hardcoded but with care you can relocate your
|
|
|
|
# installation directory:
|
|
|
|
# http://stackoverflow.com/questions/913642/qmake-and-qt-install-prefix-how-can-i-select-a-new-location-for-qt-library
|
|
|
|
#
|
2013-10-12 00:12:24 +00:00
|
|
|
#QT5_BASE_DIR=output of "qmake -query QT_INSTALL_PREFIX"
|
|
|
|
!IF !DEFINED(QT5_BASE_DIR)
|
2013-10-11 23:52:19 +00:00
|
|
|
# Wireshark custom
|
2013-10-10 23:52:29 +00:00
|
|
|
!IF EXIST(C:\Qt\Qt-5.1.1-MSVC2010-$(WIRESHARK_TARGET_PLATFORM)-ws)
|
2013-10-12 00:12:24 +00:00
|
|
|
QT5_BASE_DIR=C:\Qt\Qt-5.1.1-MSVC2010-$(WIRESHARK_TARGET_PLATFORM)-ws
|
2013-10-11 23:52:19 +00:00
|
|
|
# Digia official
|
2013-10-10 23:45:16 +00:00
|
|
|
!ELSE IF EXIST(C:\Qt\Qt5.1.1\5.1.1\msvc2010)
|
2013-10-12 00:12:24 +00:00
|
|
|
QT5_BASE_DIR=C:\Qt\Qt5.1.1\5.1.1\msvc2010
|
2013-10-11 23:52:19 +00:00
|
|
|
# Digia official, installed in $(WIRESHARK_LIB_DIR)
|
|
|
|
!ELSE IF EXIST($(WIRESHARK_LIB_DIR)\Qt5.1.1\5.1.1\msvc2010)
|
2013-10-12 00:12:24 +00:00
|
|
|
QT5_BASE_DIR=$(WIRESHARK_LIB_DIR)\Qt5.1.1\5.1.1\msvc2010
|
2013-10-10 23:45:16 +00:00
|
|
|
!ENDIF
|
|
|
|
!ENDIF
|
2013-10-08 23:03:56 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Recommended: WinPcap developer's pack to capture network traffic.
|
2009-03-07 01:06:40 +00:00
|
|
|
#
|
|
|
|
# If you have the WinPcap developer's pack (at least version 3.0),
|
|
|
|
# set this to the directory in which the WinPcap developer's pack resides.
|
|
|
|
#
|
|
|
|
# If you don't have the WPdpack, comment this line out, so that
|
|
|
|
# PCAP_DIR isn't defined.
|
|
|
|
#
|
2011-07-19 18:22:46 +00:00
|
|
|
PCAP_DIR=$(WIRESHARK_LIB_DIR)\WPdpack
|
2009-08-28 15:59:20 +00:00
|
|
|
# This macro is used by the nsis installer script, by the u3/portable apps and by the setup target.
|
2013-12-01 10:05:16 +00:00
|
|
|
WINPCAP_VERSION=4_1_3
|
2013-03-09 01:20:09 +00:00
|
|
|
WPD_VERSION=4_1_2
|
2009-03-07 01:06:40 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Optional: WinPcap remote capture support and new API
|
|
|
|
# (pcap_open(), pcap_findalldevs_ex(), etc.)
|
|
|
|
#
|
|
|
|
PCAP_REMOTE=1
|
|
|
|
|
|
|
|
#
|
|
|
|
# Optional: The ZLib enables unzipping of gzip compressed capture files
|
|
|
|
# "on the fly".
|
|
|
|
#
|
|
|
|
# If you have Zlib, set this to directory in which the Zlib headers
|
|
|
|
# and .lib file are stored.
|
|
|
|
#
|
|
|
|
# If you don't have Zlib, comment this line out, so that ZLIB_DIR isn't
|
|
|
|
# defined.
|
|
|
|
#
|
2011-07-19 18:22:46 +00:00
|
|
|
ZLIB_DIR=$(WIRESHARK_LIB_DIR)\zlib125
|
2009-03-07 01:06:40 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Optional: the ADNS library enables asynchronous (nonblocking) DNS
|
|
|
|
# name resolvings.
|
|
|
|
#
|
|
|
|
# If you have GNU ADNS, set this to the directory in which the GNU ADNS
|
|
|
|
# .lib file is stored.
|
|
|
|
#
|
|
|
|
# If you don't have GNU ADNS, comment this line out, so that ADNS_DIR
|
|
|
|
# isn't defined.
|
|
|
|
#
|
|
|
|
# If C_ARES_DIR is defined below, it will override this setting.
|
|
|
|
#
|
2011-07-19 18:22:46 +00:00
|
|
|
#ADNS_DIR=$(WIRESHARK_LIB_DIR)\adns-1.0-win32-05ws
|
2009-03-07 01:06:40 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Optional: the c-ares library enables asynchronous (nonblocking) DNS
|
|
|
|
# name resolvings.
|
|
|
|
#
|
|
|
|
# If you have c-ares, set this to the directory in which the c-ares
|
|
|
|
# .lib file is stored. Setting this will override ADNS_DIR above. You
|
|
|
|
# can't have both.
|
|
|
|
#
|
|
|
|
# If you're using Visual C++ 6.0, you'll have to use a platform SDK that
|
|
|
|
# defines socklen_t, such as Windows Server 2003 PSDK.
|
|
|
|
#
|
|
|
|
# If you don't have c-ares, comment this line out, so that C_ARES_DIR
|
|
|
|
# isn't defined.
|
|
|
|
#
|
2013-03-08 16:51:21 +00:00
|
|
|
C_ARES_PKG=1.9.1-1
|
2009-03-07 01:06:40 +00:00
|
|
|
|
|
|
|
#
|
2012-03-29 20:18:10 +00:00
|
|
|
# Optional: the GnuTLS library enables ssl decryption.
|
2009-03-07 01:06:40 +00:00
|
|
|
#
|
2012-03-29 20:18:10 +00:00
|
|
|
# If you have the GnuTLS library, set this to the package version.
|
2009-03-07 01:06:40 +00:00
|
|
|
#
|
2012-03-29 20:18:10 +00:00
|
|
|
# If you don't have GnuTLS, comment this line out, so that GNUTLS_PKG
|
2009-03-07 01:06:40 +00:00
|
|
|
# isn't defined.
|
|
|
|
#
|
|
|
|
# Platform SDK conflicts with openssl.h header
|
2012-03-29 20:18:10 +00:00
|
|
|
GNUTLS_PKG=2.12.18-1.2-1
|
2009-03-07 01:06:40 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Optional: the KFW library enables kerberos/sasl/dcerpc decryption.
|
|
|
|
#
|
|
|
|
# If you have the kerberos for windows (mit) library, set this to the
|
|
|
|
# directory where the kfw package is stored.
|
|
|
|
#
|
|
|
|
# If you don't have KFW, comment this line out, so that KFW_DIR
|
|
|
|
# isn't defined.
|
|
|
|
#
|
2011-07-19 18:22:46 +00:00
|
|
|
#KFW_DIR=$(WIRESHARK_LIB_DIR)\kfw-3.2.2-ws1
|
2009-03-07 01:06:40 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Optional: the Nettle library enables ??? decryption.
|
|
|
|
#
|
|
|
|
# If you have the Nettle encryption library, set this to the
|
|
|
|
# directory in which the nettle package is stored.
|
|
|
|
#
|
|
|
|
# If you don't have Nettle, comment this line out, so that NETTLE_DIR
|
|
|
|
# isn't defined.
|
|
|
|
#
|
2011-07-19 18:22:46 +00:00
|
|
|
# NETTLE_DIR=$(WIRESHARK_LIB_DIR)\nettle-1.10
|
2009-03-07 01:06:40 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Optional: the LUA library enables scripting support.
|
|
|
|
#
|
|
|
|
# If you have the LUA library, set this to the directory in which
|
|
|
|
# the LUA package is stored.
|
|
|
|
#
|
|
|
|
# If you don't have LUA, comment this line out, so that LUA_DIR
|
|
|
|
# isn't defined.
|
|
|
|
#
|
2012-06-06 20:42:47 +00:00
|
|
|
LUA_DIST=-5.1.4_Win64_dll10
|
2011-07-19 18:22:46 +00:00
|
|
|
LUA_DIR=$(WIRESHARK_LIB_DIR)\lua5.1.4
|
2009-03-07 01:06:40 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Optional: the PORTAUDIO library enables audio output for RTP streams.
|
|
|
|
#
|
|
|
|
# If you have the PORTAUDIO library (used for rtp_player), set this to
|
|
|
|
# the directory in which the PORTAUDIO library is stored.
|
|
|
|
#
|
|
|
|
# If you don't have PORTAUDIO, comment this line out, so that
|
|
|
|
# PORTAUDIO_DIR isn't defined.
|
|
|
|
#
|
2011-07-19 18:22:46 +00:00
|
|
|
#PORTAUDIO_DIR=$(WIRESHARK_LIB_DIR)\portaudio_v18_1
|
|
|
|
PORTAUDIO_DIR=$(WIRESHARK_LIB_DIR)\portaudio_v19_2
|
2009-03-07 01:06:40 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Version number of PortAudio
|
|
|
|
#
|
|
|
|
#PORTAUDIO_VERSION=18
|
|
|
|
PORTAUDIO_VERSION=19
|
|
|
|
|
|
|
|
#
|
|
|
|
# Optional: AirPcap developer's pack to capture wireless network traffic
|
|
|
|
# incl. 802.11 management frames.
|
|
|
|
#
|
|
|
|
# If you have the AirPcap developer's pack, set this to the directory
|
|
|
|
# in which the AirPcap developer's pack resides.
|
|
|
|
#
|
|
|
|
# If you don't have the AirPcap developer's pack, comment this line out,
|
|
|
|
# so that AIRPCAP_DIR isn't defined.
|
|
|
|
#
|
2011-07-19 18:22:46 +00:00
|
|
|
AIRPCAP_DIR=$(WIRESHARK_LIB_DIR)\AirPcap_Devpack_4_1_0_1622\AirPcap_Devpack
|
2009-03-07 01:06:40 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Optional: LIBSMI, System Management Interface
|
|
|
|
#
|
|
|
|
# Used for oid-name resolution for SNMP and other protocols
|
|
|
|
#
|
2011-06-27 20:48:26 +00:00
|
|
|
SMI_PKG=svn-40773
|
2009-03-07 01:06:40 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Optional: GeoIP, IP address database lookups
|
|
|
|
#
|
|
|
|
# Used to map IP addresses to MaxMind GeoIP database entries
|
|
|
|
#
|
2013-07-20 01:01:55 +00:00
|
|
|
GEOIP_PKG=1.5.1-2
|
2009-03-07 01:06:40 +00:00
|
|
|
|
2013-02-19 22:57:40 +00:00
|
|
|
#
|
|
|
|
# Optional: WinSparkle, software updates
|
|
|
|
#
|
|
|
|
# Used for automatic software updates
|
|
|
|
#
|
|
|
|
WINSPARKLE_PKG=0.3-44-g2c8d9d3-win64ws
|
|
|
|
|
2009-03-07 01:06:40 +00:00
|
|
|
!endif
|
2013-03-06 20:56:04 +00:00
|
|
|
##### win32 / win64 #####
|
2012-10-19 17:47:34 +00:00
|
|
|
|
|
|
|
!IF "$(GTK_NAME)" == "gtk2"
|
|
|
|
GTK_ETC_DIR=etc\gtk-2.0
|
|
|
|
GTK_ENGINES_DIR=lib\gtk-2.0\$(GTK_LIB_DIR)\engines
|
|
|
|
GTK_MODULES_DIR=lib\gtk-2.0\modules
|
|
|
|
GTK_THEMES_DIR=share\themes\MS-Windows\gtk-2.0
|
|
|
|
!ELSE
|
|
|
|
GTK_ETC_DIR=etc\gtk-3.0
|
2012-12-22 22:18:29 +00:00
|
|
|
GTK_SCHEMAS_DIR=\share\glib-2.0\schemas
|
2012-10-19 17:47:34 +00:00
|
|
|
!ENDIF
|
|
|
|
|
2009-03-07 01:06:40 +00:00
|
|
|
|
2006-08-31 01:50:11 +00:00
|
|
|
##### Tools #####
|
2004-09-02 18:23:23 +00:00
|
|
|
|
2006-08-31 01:50:11 +00:00
|
|
|
# Set the following mandatory commands to find the tools.
|
2004-09-02 18:23:23 +00:00
|
|
|
# The easiest way is to use the corresponding packages from cygwin.
|
|
|
|
|
2006-12-26 22:40:49 +00:00
|
|
|
# Set up the path to the cygwin binaries
|
2013-08-28 17:33:14 +00:00
|
|
|
CYGWIN_PATH=c:\cygwin\bin
|
2006-12-26 22:40:49 +00:00
|
|
|
|
2006-08-31 01:50:11 +00:00
|
|
|
# command for a shell (cygwin's bash package recommended)
|
2009-08-07 14:01:44 +00:00
|
|
|
SH_PROG=bash
|
2006-12-04 05:41:53 +00:00
|
|
|
|
|
|
|
# bash versions after 3.1.6 need the 'igncr' shell option to be able to
|
2014-03-04 02:52:11 +00:00
|
|
|
# process scripts in Windows 'native format' (dos crlf format).
|
2006-12-04 05:41:53 +00:00
|
|
|
# The following !IF results in the option being used only if it is available
|
|
|
|
# since using it on bash version 3.1.6 (or earlier) is not required and
|
|
|
|
# will cause an error message.
|
2006-12-26 22:40:49 +00:00
|
|
|
!if "$(SH_PROG)"=="bash" && [$(CYGWIN_PATH)\bash -c "set -o igncr" 2>nul: ] == 0
|
2006-12-04 05:41:53 +00:00
|
|
|
SH_FLAGS=-o igncr
|
|
|
|
!endif
|
|
|
|
|
|
|
|
SH=$(SH_PROG) $(SH_FLAGS)
|
|
|
|
|
2004-09-02 18:23:23 +00:00
|
|
|
|
2006-08-31 01:50:11 +00:00
|
|
|
# command for perl (cygwin's perl package recommended)
|
2000-07-28 20:03:59 +00:00
|
|
|
PERL=perl
|
2004-09-02 18:23:23 +00:00
|
|
|
|
2008-03-20 00:30:47 +00:00
|
|
|
# command for pod2man and pod2html
|
2006-08-31 01:50:11 +00:00
|
|
|
# (part of the perl package, usually leave these unchanged)
|
2003-12-22 21:34:13 +00:00
|
|
|
POD2MAN=$(SH) pod2man
|
|
|
|
POD2HTML=$(SH) pod2html
|
2004-09-02 18:23:23 +00:00
|
|
|
|
2013-11-03 12:22:39 +00:00
|
|
|
# command for sed (cygwin's sed recommended)
|
|
|
|
SED=sed
|
|
|
|
|
2014-01-16 01:28:02 +00:00
|
|
|
# Command for lex/flexx. Cygwin's flex or Chocolatey's win_flex
|
|
|
|
# recommended.
|
2014-01-16 18:57:29 +00:00
|
|
|
# Absolute or relative paths must be Windows-style
|
2014-01-16 01:28:02 +00:00
|
|
|
|
|
|
|
# Chocolatey's C:\Chocolatey\bin\win_flex and -\win_bison are
|
|
|
|
# currently unusable without some manual adjustments to the
|
|
|
|
# win_flex and win_bison wrapper scripts. Calling the executables
|
|
|
|
# directly should work.
|
|
|
|
|
2014-01-04 01:00:19 +00:00
|
|
|
#LEX=win_flex
|
2014-01-16 18:57:29 +00:00
|
|
|
#LEX=C:\Chocolatey\lib\winflexbison.2.4.1.20140103\tools\win_flex
|
2000-04-29 07:35:07 +00:00
|
|
|
LEX=flex
|
2004-09-02 18:23:23 +00:00
|
|
|
|
2014-01-16 01:28:02 +00:00
|
|
|
# Command for yacc/bison. Cygwin's bison or Chocolatey's win_bison
|
|
|
|
# recommended.
|
2014-01-16 18:57:29 +00:00
|
|
|
# Absolute or relative paths must be Windows-style
|
2014-01-16 01:28:02 +00:00
|
|
|
|
2014-01-04 01:00:19 +00:00
|
|
|
#YACC=win_bison
|
2014-01-16 01:28:02 +00:00
|
|
|
#YACC=C:\Chocolatey\lib\winflexbison.2.4.1.20140103\tools\win_bison
|
2000-04-29 07:35:07 +00:00
|
|
|
YACC=bison
|
2000-10-14 04:31:26 +00:00
|
|
|
|
2010-04-09 21:42:51 +00:00
|
|
|
# Commands to convert UNIX line endings to DOS/Windows
|
|
|
|
UNIX2DOS=u2d
|
|
|
|
TEXTIFY=$(SH) $(TOOLS_DIR)/textify.sh
|
|
|
|
|
2006-08-31 01:50:11 +00:00
|
|
|
#
|
2013-08-23 22:18:49 +00:00
|
|
|
# Optional: Build the NSIS installer.
|
2006-08-31 01:50:11 +00:00
|
|
|
#
|
2013-08-23 22:18:49 +00:00
|
|
|
# If NSIS is installed in a standard location (under Program Files
|
|
|
|
# or Program Files (x86)) you shouldn't have to change anything.
|
2006-08-31 01:50:11 +00:00
|
|
|
#
|
2013-08-23 22:18:49 +00:00
|
|
|
# If NSIS is installed in a custom location uncomment the following
|
|
|
|
# line and adjust the path accordingly.
|
2006-08-31 01:50:11 +00:00
|
|
|
#
|
2013-08-23 22:18:49 +00:00
|
|
|
|
|
|
|
#MAKENSIS="\custom\path\to\NSIS\makensis.exe"
|
|
|
|
|
|
|
|
# Find NSIS automatically
|
|
|
|
!IF !DEFINED(MAKENSIS)
|
|
|
|
!IF EXIST("$(PROGRAM_FILES)\NSIS\makensis.exe")
|
2010-12-29 20:41:53 +00:00
|
|
|
MAKENSIS="$(PROGRAM_FILES)\NSIS\makensis.exe"
|
2013-08-23 22:18:49 +00:00
|
|
|
!ELSE IF EXIST("$(PROGRAM_FILES_W6432)\NSIS\makensis.exe")
|
|
|
|
MAKENSIS="$(PROGRAM_FILES_W6432)\NSIS\makensis.exe"
|
|
|
|
!ENDIF
|
|
|
|
!ENDIF
|
2010-12-29 20:41:53 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Optional: To build the NSIS PortableApps installer.
|
|
|
|
#
|
|
|
|
# If you have the NSIS Unicode package, set this to the NSIS Unicode executable.
|
|
|
|
#
|
|
|
|
# If you don't have NSIS Unicode, comment this line out, so that
|
|
|
|
# MAKENSIS_UNICODE isn't defined.
|
|
|
|
#
|
|
|
|
MAKENSIS_UNICODE="$(PROGRAM_FILES)\NSIS\Unicode\makensis.exe"
|
2003-06-14 20:36:04 +00:00
|
|
|
|
2006-08-31 01:50:11 +00:00
|
|
|
#
|
2007-02-03 20:57:24 +00:00
|
|
|
# Optional: To build the developers API documentation with doxygen and dot.
|
|
|
|
# Currently experimental, outdated and incomplete.
|
2004-05-11 01:05:13 +00:00
|
|
|
#
|
2006-08-31 01:50:11 +00:00
|
|
|
# You will have to download and install:
|
2007-02-03 20:57:24 +00:00
|
|
|
# Doxygen from: http://www.doxygen.org
|
2004-06-04 17:31:11 +00:00
|
|
|
# Graphviz from: http://www.research.att.com/sw/tools/graphviz/
|
|
|
|
#
|
2006-08-31 01:50:11 +00:00
|
|
|
# If you have doxygen, set this to the doxygen executable.
|
|
|
|
#
|
2004-06-04 17:31:11 +00:00
|
|
|
# If you don't want the developers documentation (or don't have the tools),
|
2004-05-11 01:05:13 +00:00
|
|
|
# comment this line out, so that DOXYGEN isn't defined.
|
|
|
|
#
|
2010-08-26 23:40:27 +00:00
|
|
|
#DOXYGEN="$(PROGRAM_FILES)/doxygen/bin/doxygen.exe"
|
2004-05-11 01:05:13 +00:00
|
|
|
|
2006-08-31 01:50:11 +00:00
|
|
|
#
|
2007-02-03 04:06:43 +00:00
|
|
|
# Recommended: Use the compressed html help format .chm as the Wireshark integrated help.
|
|
|
|
#
|
2012-01-06 15:45:46 +00:00
|
|
|
# The required htmlhelp.h and htmlhelp.lib should be included in versions of MSVC supported by Wireshark
|
2004-06-04 17:31:11 +00:00
|
|
|
#
|
2006-04-21 22:47:19 +00:00
|
|
|
# If you don't want the online help (or don't have the tools),
|
|
|
|
# comment this line out, so that HHC_DIR isn't defined.
|
2004-06-04 17:31:11 +00:00
|
|
|
#
|
2013-06-01 13:05:28 +00:00
|
|
|
HHC_DIR=$(PROGRAM_FILES)\HTML Help Workshop
|
2004-06-04 17:31:11 +00:00
|
|
|
|
2007-11-18 10:20:26 +00:00
|
|
|
#
|
|
|
|
# Optional: To reduce the size of dlls and exes, which is especially useful for USB device distributions (U3, PortableApps)
|
|
|
|
#
|
|
|
|
# If you have the UPX package, set this to the upx.exe executable.
|
|
|
|
#
|
|
|
|
# UPX can be downloaded from:
|
|
|
|
# http://upx.sourceforge.net/
|
|
|
|
#
|
2008-03-20 00:30:47 +00:00
|
|
|
# If you don't have UPX, or don't want to pack exes and dlls,
|
2007-11-24 11:45:51 +00:00
|
|
|
# comment this line out, so that UPX isn't defined.
|
2007-11-18 10:20:26 +00:00
|
|
|
#
|
|
|
|
|
2011-07-19 18:22:46 +00:00
|
|
|
UPX=$(WIRESHARK_LIB_DIR)\upx303w\upx.exe
|
2006-08-31 01:50:11 +00:00
|
|
|
|
|
|
|
##### Flags, PATHs and Miscellaneous #####
|
|
|
|
|
2010-06-01 22:20:15 +00:00
|
|
|
# Santity check: Python embedding requires a valid PYTHON_DIR
|
|
|
|
!IF DEFINED(PYTHON_EMBED) && !DEFINED(PYTHON_DIR)
|
|
|
|
!ERROR PYTHON_EMBED requires that PYTHON_DIR is defined
|
|
|
|
!ENDIF
|
|
|
|
|
2007-12-07 23:58:46 +00:00
|
|
|
# "convert" the MSVC variant into the required MSC compiler version
|
2012-01-06 15:45:46 +00:00
|
|
|
!IF "$(MSVC_VARIANT)" == "MSVC2005" || "$(MSVC_VARIANT)" == "MSVC2005EE" || "$(MSVC_VARIANT)" == "DOTNET20"
|
2007-12-07 23:58:46 +00:00
|
|
|
MSC_VER_REQUIRED=1400
|
2008-08-04 23:05:32 +00:00
|
|
|
!ELSEIF "$(MSVC_VARIANT)" == "MSVC2008" || "$(MSVC_VARIANT)" == "MSVC2008EE"
|
2007-12-07 23:58:46 +00:00
|
|
|
MSC_VER_REQUIRED=1500
|
2010-04-21 05:23:29 +00:00
|
|
|
!ELSEIF "$(MSVC_VARIANT)" == "MSVC2010" || "$(MSVC_VARIANT)" == "MSVC2010EE"
|
|
|
|
MSC_VER_REQUIRED=1600
|
2012-09-18 19:42:04 +00:00
|
|
|
!ELSEIF "$(MSVC_VARIANT)" == "MSVC2012" || "$(MSVC_VARIANT)" == "MSVC2012EE"
|
|
|
|
MSC_VER_REQUIRED=1700
|
2013-10-20 17:35:30 +00:00
|
|
|
!ELSEIF "$(MSVC_VARIANT)" == "MSVC2013" || "$(MSVC_VARIANT)" == "MSVC2013EE"
|
|
|
|
MSC_VER_REQUIRED=1800
|
2007-12-07 23:58:46 +00:00
|
|
|
!ELSE
|
|
|
|
!ERROR MSVC_VARIANT unknown
|
|
|
|
!ENDIF
|
|
|
|
|
2010-04-22 19:35:47 +00:00
|
|
|
## Manifest processing is not needed for VC10 (Visual Studio 2010 C)
|
|
|
|
## See: http://msdn.microsoft.com/en-us/library/dd293574.aspx
|
|
|
|
!IF ($(MSC_VER_REQUIRED) >= 1400) && ($(MSC_VER_REQUIRED) < 1600)
|
|
|
|
MANIFEST_INFO_REQUIRED=1
|
|
|
|
!ENDIF
|
|
|
|
|
2014-02-01 16:46:50 +00:00
|
|
|
## VS2012 (VC11) and later: configure subsystem version
|
2012-12-28 21:18:19 +00:00
|
|
|
## See: https://blogs.msdn.com/b/vcblog/archive/2012/10/08/10357555.aspx
|
|
|
|
## (APPVER used in win32.mak to set subsystem version)
|
2014-02-01 16:46:50 +00:00
|
|
|
!IF ($(MSC_VER_REQUIRED) >= 1700)
|
2012-12-28 21:18:19 +00:00
|
|
|
!if "$(WIRESHARK_TARGET_PLATFORM)" == "win32"
|
|
|
|
APPVER=5.01
|
|
|
|
!else
|
|
|
|
APPVER=5.02
|
|
|
|
!endif
|
|
|
|
!ENDIF
|
|
|
|
|
2007-01-02 01:19:40 +00:00
|
|
|
# Compiler flags:
|
2012-01-30 22:57:09 +00:00
|
|
|
# /W3 Warning level 3 (0 less - 4 most, 1 default).
|
|
|
|
# /Zi Create .pdb file for debugging.
|
|
|
|
# /FR Create .sbr file with complete symbolic information.
|
|
|
|
# add to standard CFLAGS if you want to build the .sbr files
|
|
|
|
# for Wireshark compiles.
|
|
|
|
# Warning: using /FR for Wireshark requires ~1Gig of additional disk space
|
|
|
|
# XXX: provides less functionality for VC8, ... than for previous compilers ?
|
2012-06-13 16:44:06 +00:00
|
|
|
# XXX: .bsc files not usable (not supported ?) with VC10 (Visual Studio 2010) ?
|
2012-01-30 22:57:09 +00:00
|
|
|
# /MD Use "multithread- and DLL-specific version" of run-time libraries.
|
2011-02-02 01:19:53 +00:00
|
|
|
# msvc documentation states that /MD causes _MT and _DLL to be defined
|
|
|
|
# See: http://msdn.microsoft.com/en-us/library/2kzt1wy3%28v=VS.90%29.aspx
|
2012-01-30 22:57:09 +00:00
|
|
|
# /D_CRT_SECURE_NO_DEPRECATE Don't warn for "insecure" calls;
|
|
|
|
# see MSDN "Security Enhancements in the CRT".
|
|
|
|
# /D_CRT_NONSTDC_NO_DEPRECATE Don't warn for "Deprecated CRT Functions" as MSDN calls this.
|
|
|
|
# /D_BIND_TO_CURRENT_CRT_VERSION=1 Make sure our CRT and manifest versions match.
|
2011-02-02 01:19:53 +00:00
|
|
|
# (http://msdn.microsoft.com/en-us/library/cc664727.aspx)
|
2012-01-30 22:57:09 +00:00
|
|
|
# /DWIN32_LEAN_AND_MEAN Don't include unnecessary Windows include files (see windows.h).
|
2011-02-02 01:19:53 +00:00
|
|
|
# /MANIFEST:no Don't create a SxS manifest. Makes sure our plugins don't load
|
|
|
|
# a second copy of the CRT.
|
2014-03-04 02:52:11 +00:00
|
|
|
# -DPSAPI_VERSION=1 Programs that must run on earlier versions of Windows as well as Windows 7 and later
|
|
|
|
# versions should always call this function as GetProcessMemoryInfo. To ensure correct
|
|
|
|
# resolution of symbols, add Psapi.lib to the TARGETLIBS macro and compile the program
|
|
|
|
# with -DPSAPI_VERSION=1.To use run-time dynamic linking, load Psapi.dll.
|
2013-07-24 15:54:55 +00:00
|
|
|
# http://msdn.microsoft.com/en-us/library/windows/desktop/ms683219(v=vs.85).aspx
|
2014-03-04 02:52:11 +00:00
|
|
|
# -DBUILD_WINDOWS Starting from VS2013, GetVersionEx is deprecated and we are recommended to use
|
2013-11-05 21:49:57 +00:00
|
|
|
# VerifyVersionInfo instead
|
|
|
|
# http://msdn.microsoft.com/en-us/library/windows/desktop/ms724429(v=vs.85).aspx
|
|
|
|
# http://msdn.microsoft.com/en-us/library/windows/desktop/ms725491(v=vs.85).aspx
|
|
|
|
# To continue to use GetVersionEx, we can define BUILD_WINDOWS
|
2014-02-01 16:46:50 +00:00
|
|
|
# -D_ALLOW_KEYWORD_MACROS For VS2012 onwards the, C++ STL does not permit macro redefinitions of keywords
|
|
|
|
# (see http://msdn.microsoft.com/en-us/library/bb531344(v=vs.110).aspx)
|
|
|
|
# This definition prevents the complaint about the redefinition of inline by WinPCap
|
|
|
|
# in pcap-stdinc.h when compiling CPP files, e.g. the QT UI
|
2011-02-02 01:19:53 +00:00
|
|
|
#
|
2011-02-15 16:56:31 +00:00
|
|
|
##Note: LOCAL_CFLAGS are flags used for *all* compilations
|
|
|
|
## STANDARD_CFLAGS (see below) are flags used just for *Wireshark* compilations
|
2012-01-06 15:45:46 +00:00
|
|
|
!IF "$(MSVC_VARIANT)" == "MSVC2005" || \
|
2011-02-02 01:19:53 +00:00
|
|
|
"$(MSVC_VARIANT)" == "MSVC2005EE" || \
|
|
|
|
"$(MSVC_VARIANT)" == "DOTNET20" || \
|
|
|
|
"$(MSVC_VARIANT)" == "MSVC2008" || \
|
|
|
|
"$(MSVC_VARIANT)" == "MSVC2008EE" || \
|
|
|
|
"$(MSVC_VARIANT)" == "MSVC2010" || \
|
2012-09-18 19:42:04 +00:00
|
|
|
"$(MSVC_VARIANT)" == "MSVC2010EE" || \
|
|
|
|
"$(MSVC_VARIANT)" == "MSVC2012" || \
|
2013-10-20 17:35:30 +00:00
|
|
|
"$(MSVC_VARIANT)" == "MSVC2012EE" || \
|
|
|
|
"$(MSVC_VARIANT)" == "MSVC2013" || \
|
|
|
|
"$(MSVC_VARIANT)" == "MSVC2013EE"
|
2011-02-02 01:19:53 +00:00
|
|
|
LOCAL_CFLAGS=/Zi /W3 /MD /DWIN32_LEAN_AND_MEAN /DMSC_VER_REQUIRED=$(MSC_VER_REQUIRED) \
|
2013-07-24 15:54:55 +00:00
|
|
|
/D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE -DPSAPI_VERSION=1
|
2011-02-02 01:19:53 +00:00
|
|
|
|
2014-02-01 16:46:50 +00:00
|
|
|
!IF "$(MSVC_VARIANT)" == "MSVC2012" || \
|
|
|
|
"$(MSVC_VARIANT)" == "MSVC2012EE" || \
|
|
|
|
"$(MSVC_VARIANT)" == "MSVC2013" || \
|
|
|
|
"$(MSVC_VARIANT)" == "MSVC2013EE"
|
|
|
|
LOCAL_CFLAGS=$(LOCAL_CFLAGS) /D_ALLOW_KEYWORD_MACROS
|
|
|
|
!ENDIF
|
|
|
|
|
2013-11-05 21:49:57 +00:00
|
|
|
!IF "$(MSVC_VARIANT)" == "MSVC2013" || \
|
|
|
|
"$(MSVC_VARIANT)" == "MSVC2013EE"
|
|
|
|
LOCAL_CFLAGS=$(LOCAL_CFLAGS) /DBUILD_WINDOWS
|
|
|
|
!ENDIF
|
|
|
|
|
2009-09-17 21:54:52 +00:00
|
|
|
!IF "$(WIRESHARK_TARGET_PLATFORM)" != "win64"
|
|
|
|
LOCAL_CFLAGS=$(LOCAL_CFLAGS) /D_BIND_TO_CURRENT_CRT_VERSION=1
|
|
|
|
!ENDIF
|
2011-02-02 01:19:53 +00:00
|
|
|
|
|
|
|
# Additional compiler warnings to be treated as "Level 3"
|
|
|
|
# when compiling Wireshark sources. (Selected from "level 4" warnings).
|
|
|
|
## 4295: array is too small to include a terminating null character
|
|
|
|
WARNINGS_CFLAGS=/w34295
|
|
|
|
|
2007-01-02 01:19:40 +00:00
|
|
|
!ELSE
|
|
|
|
!ERROR MSVC_VARIANT unknown
|
|
|
|
!ENDIF
|
2006-08-31 01:50:11 +00:00
|
|
|
|
2009-07-16 08:27:18 +00:00
|
|
|
# http://msdn.microsoft.com/en-us/library/bb385193.aspx
|
2009-10-05 17:43:27 +00:00
|
|
|
# /MP Compiles multiple source files by using multiple processes
|
|
|
|
# /MP[processMax] If you omit the processMax argument, the compiler retrieves the number of effective processors
|
|
|
|
# on your computer from the operating system, and creates a process for each processor.
|
2009-07-16 08:27:18 +00:00
|
|
|
#
|
|
|
|
# The following compiler options and language features that are incompatible with the /MP option:
|
2009-10-05 17:43:27 +00:00
|
|
|
#
|
|
|
|
# * #import preprocessor directive
|
|
|
|
# * /E, /EP
|
|
|
|
# * /Gm
|
|
|
|
# * /showIncludes
|
|
|
|
# * /Yc
|
|
|
|
#
|
2011-02-02 01:19:53 +00:00
|
|
|
!IF "$(MSVC_VARIANT)" == "MSVC2008" || \
|
|
|
|
"$(MSVC_VARIANT)" == "MSVC2008EE" || \
|
|
|
|
"$(MSVC_VARIANT)" == "MSVC2010" || \
|
2012-09-18 19:42:04 +00:00
|
|
|
"$(MSVC_VARIANT)" == "MSVC2010EE" || \
|
|
|
|
"$(MSVC_VARIANT)" == "MSVC2012" || \
|
2013-10-20 17:35:30 +00:00
|
|
|
"$(MSVC_VARIANT)" == "MSVC2012EE" || \
|
|
|
|
"$(MSVC_VARIANT)" == "MSVC2013" || \
|
|
|
|
"$(MSVC_VARIANT)" == "MSVC2013EE"
|
2009-07-16 08:27:18 +00:00
|
|
|
LOCAL_CFLAGS= $(LOCAL_CFLAGS) /MP
|
|
|
|
!ENDIF
|
2010-09-16 19:20:06 +00:00
|
|
|
|
2011-01-28 18:42:49 +00:00
|
|
|
# Optional: Static analysis. Only supported in the full-frontal MSVC editions.
|
|
|
|
# http://msdn.microsoft.com/en-us/library/ms182025.aspx
|
|
|
|
|
2011-02-15 16:40:09 +00:00
|
|
|
!IFDEF ENABLE_CODE_ANALYSIS
|
2011-04-13 04:47:38 +00:00
|
|
|
LOCAL_CFLAGS= $(LOCAL_CFLAGS) /analyze:WX-
|
2011-02-15 16:40:09 +00:00
|
|
|
!ENDIF
|
2011-01-28 18:42:49 +00:00
|
|
|
|
2011-02-15 16:56:31 +00:00
|
|
|
#STANDARD_CFLAGS are flags used for *Wireshark* compiles (not stuff like lemon, etc)
|
2013-12-01 10:05:16 +00:00
|
|
|
STANDARD_CFLAGS=/DWINPCAP_VERSION=$(WINPCAP_VERSION) $(LOCAL_CFLAGS) $(WARNINGS_CFLAGS)
|
2011-02-02 01:19:53 +00:00
|
|
|
|
2012-01-30 22:57:09 +00:00
|
|
|
# Optional: Define WIRESHARK_GENERATE_BSC_FILE to generate .sbr files for input to bscmake
|
|
|
|
!IFDEF WIRESHARK_GENERATE_BSC_FILE
|
|
|
|
STANDARD_CFLAGS= $(STANDARD_CFLAGS) /FR
|
|
|
|
!ENDIF
|
|
|
|
|
2011-02-15 16:56:31 +00:00
|
|
|
#Comment out the following if warnings are not to be treated as errors
|
2011-02-02 01:19:53 +00:00
|
|
|
WARNINGS_ARE_ERRORS=-WX
|
|
|
|
|
2007-01-02 01:19:40 +00:00
|
|
|
# Linker flags:
|
2006-08-31 01:50:11 +00:00
|
|
|
# /DEBUG generate debug info
|
|
|
|
# /PROFILE generate map file(s) for profiling
|
2007-01-02 01:19:40 +00:00
|
|
|
# /DEFAULTLIB:xxx use xxx as the standard C library
|
|
|
|
# /NODEFAULTLIB:xxx don't use xxx as the standard C library
|
2008-03-20 00:30:47 +00:00
|
|
|
#
|
2008-08-14 23:56:57 +00:00
|
|
|
LOCAL_LDFLAGS=/DEBUG /MACHINE:$(TARGET_MACHINE)
|
2009-07-16 12:39:50 +00:00
|
|
|
DLL_LDFLAGS =
|
2010-04-22 19:35:47 +00:00
|
|
|
!IFDEF MANIFEST_INFO_REQUIRED
|
2009-03-02 21:33:11 +00:00
|
|
|
DLL_LDFLAGS = /MANIFEST:no
|
2009-03-02 18:57:35 +00:00
|
|
|
!ENDIF
|
2006-08-31 01:50:11 +00:00
|
|
|
|
2011-04-19 19:20:03 +00:00
|
|
|
# Enable Safe Exception Handler.
|
|
|
|
# http://msdn.microsoft.com/en-us/magazine/cc337897.aspx
|
|
|
|
!IF $(MSC_VER_REQUIRED) >= 1300
|
|
|
|
LOCAL_CFLAGS= $(LOCAL_CFLAGS) /GS
|
2011-04-20 05:21:32 +00:00
|
|
|
!IF "$(WIRESHARK_TARGET_PLATFORM)" != "win64"
|
2011-04-19 19:20:03 +00:00
|
|
|
LOCAL_LDFLAGS= $(LOCAL_LDFLAGS) /SafeSEH
|
|
|
|
!ENDIF
|
2011-04-20 05:21:32 +00:00
|
|
|
!ENDIF
|
2011-04-19 19:20:03 +00:00
|
|
|
|
2010-09-16 19:20:06 +00:00
|
|
|
# Enable ASLR. Requires VS2008 or later.
|
|
|
|
# http://blogs.msdn.com/b/vcblog/archive/2009/05/21/dynamicbase-and-nxcompat.aspx
|
2011-04-19 19:20:03 +00:00
|
|
|
# DEP (/NXCompat) is handled in init_process_policies() via SetProcessDEPPolicy.
|
2010-09-16 19:20:06 +00:00
|
|
|
|
|
|
|
# ASLR http://msdn.microsoft.com/en-us/library/bb384887.aspx
|
|
|
|
!IF $(MSC_VER_REQUIRED) >= 1500
|
2011-04-19 19:20:03 +00:00
|
|
|
LOCAL_LDFLAGS= $(LOCAL_LDFLAGS) /DYNAMICBASE /FIXED:no
|
2010-09-16 19:20:06 +00:00
|
|
|
!ENDIF
|
|
|
|
|
2009-03-02 21:33:11 +00:00
|
|
|
PLUGIN_LDFLAGS = /NOLOGO /INCREMENTAL:no $(LOCAL_LDFLAGS) $(DLL_LDFLAGS)
|
|
|
|
|
2006-08-31 01:50:11 +00:00
|
|
|
#
|
2006-05-31 22:34:21 +00:00
|
|
|
# According to http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=403
|
2005-09-07 13:26:23 +00:00
|
|
|
# XCOPY under Windows NT doesn't support the "/Y" flag. This works
|
|
|
|
# around that bug.
|
2005-09-16 16:25:53 +00:00
|
|
|
# XXX - This apparently doesn't work for some versions of nmake:
|
|
|
|
# http://support.microsoft.com/default.aspx?scid=kb;en-us;86814
|
|
|
|
# It looks like we'll have to call "set copycmd=/y" before we run xcopy.
|
|
|
|
COPYCMD=/y
|
2005-09-07 13:26:23 +00:00
|
|
|
|
2006-08-31 01:50:11 +00:00
|
|
|
#
|
2006-05-31 00:23:01 +00:00
|
|
|
# If you don't want to build libwireshark.dll, you should comment out the
|
2005-05-31 21:34:14 +00:00
|
|
|
# following line. (Note: for plugin support this option must stay activated)
|
2006-05-31 00:23:01 +00:00
|
|
|
ENABLE_LIBWIRESHARK=USE
|
2004-05-09 10:03:41 +00:00
|
|
|
|
2006-09-23 01:39:07 +00:00
|
|
|
#
|
2008-04-09 03:48:16 +00:00
|
|
|
# install (debug) directory for Wireshark (relative to your source dir)
|
|
|
|
INSTALL_DIR=wireshark-gtk2
|
2006-09-23 01:39:07 +00:00
|
|
|
|
2004-09-29 19:30:10 +00:00
|
|
|
|
2006-08-31 01:50:11 +00:00
|
|
|
|
2007-01-13 00:59:39 +00:00
|
|
|
##### C-Runtime Redistributable #####
|
|
|
|
#
|
2008-03-20 00:30:47 +00:00
|
|
|
# The C-Runtime since Version 7 must be shipped together with
|
2007-01-13 00:59:39 +00:00
|
|
|
# the program installer, to avoid missing msvcr*.dll files on
|
|
|
|
# the target machine.
|
|
|
|
#
|
2008-03-20 00:30:47 +00:00
|
|
|
# The location of these files differ on the various compiler
|
2007-01-13 00:59:39 +00:00
|
|
|
# packages, the following will use the default paths depending
|
|
|
|
# on the package version.
|
|
|
|
#
|
2012-09-24 22:57:54 +00:00
|
|
|
|
|
|
|
# You can either place the redistributable in its own platform-
|
|
|
|
# and compiler-specific directory or in the top-level library
|
|
|
|
# directory.
|
2013-04-23 17:40:27 +00:00
|
|
|
# Microsoft maintains a list of the latest redistributables in
|
|
|
|
# KB 20197667: http://support.microsoft.com/kb/2019667
|
2012-09-24 22:57:54 +00:00
|
|
|
!IF EXIST("$(WIRESHARK_LIB_DIR)\vcredist_$(MSVC_VARIANT)")
|
|
|
|
VCREDIST_DIR=$(WIRESHARK_LIB_DIR)\vcredist_$(MSVC_VARIANT)
|
|
|
|
!ELSE
|
|
|
|
VCREDIST_DIR=$(WIRESHARK_LIB_DIR)
|
|
|
|
!ENDIF
|
|
|
|
|
2012-01-06 15:45:46 +00:00
|
|
|
!IF "$(WIRESHARK_TARGET_PLATFORM)" == "win64"
|
2012-10-04 04:54:58 +00:00
|
|
|
#
|
|
|
|
# For 64-bit platforms, we don't create portable packages and therefore
|
|
|
|
# don't have to worry that "Using the Visual C++ Redistributable
|
|
|
|
# Package" requires that an installer be run to install that package,
|
|
|
|
# so we use that method to make the C runtime available.
|
|
|
|
#
|
2012-09-24 22:57:54 +00:00
|
|
|
VCREDIST_EXE=$(VCREDIST_DIR)\vcredist_$(TARGET_MACHINE).exe
|
2009-09-17 21:54:52 +00:00
|
|
|
|
2007-01-13 00:59:39 +00:00
|
|
|
!ELSEIF "$(MSVC_VARIANT)" == "MSVC2005"
|
2012-10-04 04:54:58 +00:00
|
|
|
#
|
|
|
|
# For MSVC 2005 non-Express Edition, we "Install a particular Visual C++
|
|
|
|
# assembly as a private assembly for the application", by copying
|
|
|
|
# the contents of the Microsoft.VC80.CRT folder to the target directory.
|
|
|
|
# This is done to reduce the size of the installer; it also makes
|
|
|
|
# a portable version work, as the C runtime doesn't have to be
|
|
|
|
# installed on the target machine.
|
|
|
|
#
|
2011-01-28 00:21:05 +00:00
|
|
|
MSVCR_DLL=$(PROGRAM_FILES)\Microsoft Visual Studio 8\VC\redist\$(PROCESSOR_ARCHITECTURE)\Microsoft.VC80.CRT\*.*
|
2007-01-13 00:59:39 +00:00
|
|
|
|
2008-08-04 23:05:32 +00:00
|
|
|
!ELSEIF "$(MSVC_VARIANT)" == "MSVC2005EE" || "$(MSVC_VARIANT)" == "DOTNET20" || "$(MSVC_VARIANT)" == "MSVC2008EE"
|
2012-10-04 04:54:58 +00:00
|
|
|
#
|
|
|
|
# For MSVC 2005 Express Edition, for the .NET Framework 2.0 SDK, and
|
|
|
|
# for MSVC 2008 Express Edition, we "Use the Visual C++ Redistributable
|
|
|
|
# Package", because they don't provide the Microsoft.VC80.CRT folder.
|
|
|
|
#
|
|
|
|
# They also don't provide the redistributable package, so you need to
|
|
|
|
# download the appropriate version of the redistributable package,
|
|
|
|
# vcredist_x86.exe, vcredist_x64.exe, or vcredist_ia64.exe, from
|
|
|
|
# Microsoft first, and copy it to the lib folder!!!
|
|
|
|
#
|
2012-09-24 22:57:54 +00:00
|
|
|
VCREDIST_EXE=$(VCREDIST_DIR)\vcredist_$(TARGET_MACHINE).exe
|
2007-01-13 00:59:39 +00:00
|
|
|
|
2008-08-04 23:05:32 +00:00
|
|
|
!ELSEIF "$(MSVC_VARIANT)" == "MSVC2008"
|
2012-10-04 04:54:58 +00:00
|
|
|
#
|
|
|
|
# For MSVC 2008 non-Express Edition, we "Install a particular Visual C++
|
|
|
|
# assembly as a private assembly for the application", by copying
|
|
|
|
# the contents of the Microsoft.VC90.CRT folder to the target directory.
|
|
|
|
# This is done to reduce the size of the installer; it also makes
|
|
|
|
# a portable version work, as the C runtime doesn't have to be
|
|
|
|
# installed on the target machine.
|
|
|
|
#
|
2011-01-28 00:21:05 +00:00
|
|
|
MSVCR_DLL=$(PROGRAM_FILES)\Microsoft Visual Studio 9.0\VC\redist\$(PROCESSOR_ARCHITECTURE)\Microsoft.VC90.CRT\*.*
|
2007-11-30 22:01:05 +00:00
|
|
|
|
2010-04-21 05:23:29 +00:00
|
|
|
!ELSEIF "$(MSVC_VARIANT)" == "MSVC2010EE"
|
2012-10-04 04:54:58 +00:00
|
|
|
#
|
|
|
|
# For MSVC 2010 Express Edition, we "Use the Visual C++ Redistributable
|
|
|
|
# Package", because it doesn't provide the Microsoft.VC80.CRT folder.
|
|
|
|
#
|
|
|
|
# It also doesn't provide the redistributable package, so you need to
|
|
|
|
# download the appropriate version of the redistributable package,
|
|
|
|
# vcredist_x86.exe or vcredist_x64.exe, from Microsoft first, and copy
|
|
|
|
# it to the lib folder!!!
|
2012-09-24 22:57:54 +00:00
|
|
|
VCREDIST_EXE=$(VCREDIST_DIR)\vcredist_$(TARGET_MACHINE).exe
|
2010-04-21 05:23:29 +00:00
|
|
|
!ELSEIF "$(MSVC_VARIANT)" == "MSVC2010"
|
2012-10-04 04:54:58 +00:00
|
|
|
#
|
|
|
|
# For MSVC 2010 non-Express Edition, we "Install a particular Visual C++
|
|
|
|
# assembly as a private assembly for the application", by copying
|
|
|
|
# the contents of the Microsoft.VC100.CRT folder to the target directory.
|
|
|
|
# This is done to reduce the size of the installer; it also makes
|
|
|
|
# a portable version work, as the C runtime doesn't have to be
|
|
|
|
# installed on the target machine.
|
|
|
|
#
|
|
|
|
# Note: for what it's worth, Microsoft recommends "Using the Visual C++
|
|
|
|
# Redistributable Package", rather than "Installing a particular Visual
|
|
|
|
# C++ assembly as a private assembly for the application", starting
|
|
|
|
# with Visual Studio 2010.
|
|
|
|
#
|
2010-11-09 23:03:47 +00:00
|
|
|
MSVCR_DLL=$(PROGRAM_FILES)\Microsoft Visual Studio 10.0\VC\redist\$(TARGET_MACHINE)\Microsoft.VC100.CRT\*.*
|
2013-10-07 04:49:44 +00:00
|
|
|
!ELSEIF "$(MSVC_VARIANT)" == "MSVC2012" || "$(MSVC_VARIANT)" == "MSVC2012EE"
|
2012-10-04 04:54:58 +00:00
|
|
|
#
|
2013-10-07 04:49:44 +00:00
|
|
|
# EE version added as per bug https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9227
|
|
|
|
#
|
|
|
|
# For MSVC 2012, we "Install a particular Visual C++
|
2012-10-04 04:54:58 +00:00
|
|
|
# assembly as a private assembly for the application", by copying
|
|
|
|
# the contents of the Microsoft.VC110.CRT folder to the target directory.
|
|
|
|
# This is done to reduce the size of the installer; it also makes
|
|
|
|
# a portable version work, as the C runtime doesn't have to be
|
|
|
|
# installed on the target machine.
|
|
|
|
#
|
|
|
|
# Note: for what it's worth, Microsoft recommends "Using the Visual C++
|
|
|
|
# Redistributable Package", rather than "Installing a particular Visual
|
|
|
|
# C++ assembly as a private assembly for the application", starting
|
|
|
|
# with Visual Studio 2010.
|
|
|
|
#
|
2012-09-18 19:42:04 +00:00
|
|
|
MSVCR_DLL=$(PROGRAM_FILES)\Microsoft Visual Studio 11.0\VC\redist\$(TARGET_MACHINE)\Microsoft.VC110.CRT\*.*
|
2013-10-20 17:35:30 +00:00
|
|
|
!ELSEIF "$(MSVC_VARIANT)" == "MSVC2013" || "$(MSVC_VARIANT)" == "MSVC2013EE"
|
|
|
|
#
|
|
|
|
# EE version added as per bug https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9227
|
|
|
|
#
|
|
|
|
# For MSVC 2013, we "Install a particular Visual C++
|
|
|
|
# assembly as a private assembly for the application", by copying
|
|
|
|
# the contents of the Microsoft.VC120.CRT folder to the target directory.
|
|
|
|
# This is done to reduce the size of the installer; it also makes
|
|
|
|
# a portable version work, as the C runtime doesn't have to be
|
|
|
|
# installed on the target machine.
|
|
|
|
#
|
|
|
|
# Note: for what it's worth, Microsoft recommends "Using the Visual C++
|
|
|
|
# Redistributable Package", rather than "Installing a particular Visual
|
|
|
|
# C++ assembly as a private assembly for the application", starting
|
|
|
|
# with Visual Studio 2010.
|
|
|
|
#
|
|
|
|
MSVCR_DLL=$(PROGRAM_FILES)\Microsoft Visual Studio 12.0\VC\redist\$(TARGET_MACHINE)\Microsoft.VC120.CRT\*.*
|
2007-01-13 00:59:39 +00:00
|
|
|
!ELSE
|
|
|
|
!ERROR MSVC_VARIANT unknown
|
|
|
|
!ENDIF
|
|
|
|
|
2012-11-13 15:01:49 +00:00
|
|
|
# This is still optional yet we define it above for all users.
|
|
|
|
# So, don't check if it exists...
|
|
|
|
#!IF DEFINED(VCREDIST_EXE) && ! EXIST("$(VCREDIST_EXE)")
|
|
|
|
#!ERROR Can't find $(VCREDIST_EXE). Have you downloaded it from Microsoft? \
|
|
|
|
#See the developer's guide section "C-Runtime "Redistributable" files" for details how to get it
|
|
|
|
#!ENDIF
|
2007-01-13 00:59:39 +00:00
|
|
|
|
2007-02-03 05:13:39 +00:00
|
|
|
##### Advanced: Docbook/XML documentation generation #####
|
2008-03-20 00:30:47 +00:00
|
|
|
# If you want to generate the Docbook/XML based docs (User's and Developer's
|
|
|
|
# Guide, ...), you'll need some additional tools / libraries compared to the
|
|
|
|
# rest of the build process.
|
2007-02-03 04:06:43 +00:00
|
|
|
#
|
2009-11-10 01:32:59 +00:00
|
|
|
# FOR DETAILED INSTRUCTIONS TO GENERATE THE DOCS, SEE: docbook\README.txt.
|
2007-02-03 04:06:43 +00:00
|
|
|
#
|
2008-03-20 00:30:47 +00:00
|
|
|
# If you don't call the Makefile.nmake in the docbook dir to generate the
|
2007-02-03 05:13:39 +00:00
|
|
|
# docs, the following settings in this section will have no effect.
|
2007-02-03 04:06:43 +00:00
|
|
|
|
|
|
|
# formatting objects processor executable
|
2008-03-20 00:30:47 +00:00
|
|
|
# Comment this out if you don't have fop installed or you don't want the docs
|
2007-02-03 05:13:39 +00:00
|
|
|
# in PDF format.
|
2009-11-10 01:32:59 +00:00
|
|
|
#
|
|
|
|
# You may want to install the FOP hyphenation patterns from
|
|
|
|
# http://offo.sourceforge.net/hyphenation/
|
2007-02-03 04:06:43 +00:00
|
|
|
!IFNDEF FOP
|
2011-05-19 19:03:22 +00:00
|
|
|
FOP=fop-1.0\fop.bat
|
2007-02-03 04:06:43 +00:00
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
# Additional options to fop.
|
|
|
|
FOP_OPTS=-Xmx256m
|
|
|
|
|
|
|
|
# html help compiler
|
2008-03-20 00:30:47 +00:00
|
|
|
# Comment this out if you don't have hhc.exe or you don't want the docs in
|
2007-02-03 05:13:39 +00:00
|
|
|
# .chm format.
|
2007-02-03 04:06:43 +00:00
|
|
|
#
|
2007-02-03 05:13:39 +00:00
|
|
|
# Beware: hhc.exe is NOT part of the MSVC packages in HHC_DIR mentioned above,
|
2007-02-03 04:06:43 +00:00
|
|
|
# so you'll need to install the HTML Help Workshop for this.
|
2007-02-03 07:54:18 +00:00
|
|
|
HHC_EXE="$(HHC_DIR)\hhc.exe"
|
2007-02-03 04:06:43 +00:00
|
|
|
|
|
|
|
# html to text converter for text version of release notes, e.g. elinks.
|
|
|
|
# This could also be "lynx", or "true" if neither elinks nor lynx is installed
|
|
|
|
# (cygwin: lynx works, elinks not available, links and true doesn't produce output)
|
|
|
|
#HTML2TXT=elinks -dump -dump-width 72
|
2010-04-05 19:42:07 +00:00
|
|
|
##HTML2TXT=links -dump -width 72 ## XXX: Fails: For links -dump requires 'url' (filename) arg.
|
2008-12-17 21:11:20 +00:00
|
|
|
#HTML2TXT=lynx -dump -width=72 -nolist -stdin
|
|
|
|
|
|
|
|
!IFNDEF HTML2TXT
|
|
|
|
HTML2TXT=$(PYTHON) $(TOOLS_DIR)\html2text.py --width=72 --no-links
|
|
|
|
!ENDIF
|
2007-02-03 04:06:43 +00:00
|
|
|
|
|
|
|
# the XSL processor (part of cygwin's libxslt package)
|
|
|
|
XSLTPROC="xsltproc"
|
|
|
|
|
|
|
|
# the XML validator (part of cygwin's libxml2 package)
|
|
|
|
XMLLINT="xmllint"
|
|
|
|
|
2013-03-15 17:00:21 +00:00
|
|
|
# Asciidoc converter (part of cygwin's asciidoc package). In order to build
|
|
|
|
# the release notes you must have the Cygwin asciidoc and lynx packages
|
|
|
|
# installed.
|
|
|
|
A2X=a2x
|
|
|
|
LYNX=lynx
|
2007-01-13 00:59:39 +00:00
|
|
|
|
2006-08-31 01:50:11 +00:00
|
|
|
##############################################################################
|
2003-06-14 20:36:04 +00:00
|
|
|
#
|
|
|
|
# You should not have to change anything below this comment.
|
|
|
|
# If you do, it's a deficiency in the Makefile.nmake files;
|
2006-05-31 22:34:21 +00:00
|
|
|
# either tell wireshark-dev@wireshark.org about it, including
|
2003-06-14 20:36:04 +00:00
|
|
|
# details of why you had to change it, or fix config.nmake
|
|
|
|
# and any Makefile.nmake files that need to be changed, and
|
|
|
|
# send us the patches, along with details of why the change
|
|
|
|
# was necessary.
|
|
|
|
#
|
2006-08-31 01:50:11 +00:00
|
|
|
##############################################################################
|
|
|
|
|
|
|
|
#
|
2008-03-20 00:30:47 +00:00
|
|
|
# The RC_VERSION should be comma-separated, not dot-separated,
|
2006-08-31 01:50:11 +00:00
|
|
|
# as per Graham Bloice's message in
|
|
|
|
#
|
2014-02-07 19:14:52 +00:00
|
|
|
# http://www.wireshark.org/lists/ethereal-dev/200303/msg00283.html
|
2006-08-31 01:50:11 +00:00
|
|
|
#
|
2008-03-20 00:30:47 +00:00
|
|
|
# "The RC_VERSION variable in config.nmake should be comma separated.
|
2006-08-31 01:50:11 +00:00
|
|
|
# This allows the resources to be built correctly and the version
|
|
|
|
# number to be correctly displayed in the explorer properties dialog
|
|
|
|
# for the executables, and XP's tooltip, rather than 0.0.0.0."
|
|
|
|
#
|
|
|
|
|
|
|
|
VERSION=$(VERSION_MAJOR).$(VERSION_MINOR).$(VERSION_MICRO)$(VERSION_EXTRA)
|
2008-02-18 18:08:14 +00:00
|
|
|
RC_VERSION=$(VERSION_MAJOR),$(VERSION_MINOR),$(VERSION_MICRO),$(VERSION_BUILD)
|
2011-03-01 19:40:51 +00:00
|
|
|
PRODUCT_VERSION=$(VERSION_MAJOR).$(VERSION_MINOR).$(VERSION_MICRO).$(VERSION_BUILD)
|
2006-08-31 01:50:11 +00:00
|
|
|
|
2006-11-05 22:46:44 +00:00
|
|
|
WTAP_VERSION=$(WTAP_VERSION_MAJOR).$(WTAP_VERSION_MINOR).$(WTAP_VERSION_MICRO)
|
|
|
|
RC_WTAP_VERSION=$(WTAP_VERSION_MAJOR),$(WTAP_VERSION_MINOR),$(WTAP_VERSION_MICRO)
|
2014-01-08 04:35:28 +00:00
|
|
|
FTAP_VERSION=$(FTAP_VERSION_MAJOR).$(FTAP_VERSION_MINOR).$(FTAP_VERSION_MICRO)
|
|
|
|
RC_FTAP_VERSION=$(FTAP_VERSION_MAJOR),$(FTAP_VERSION_MINOR),$(FTAP_VERSION_MICRO)
|
2006-08-31 01:50:11 +00:00
|
|
|
|
2009-08-29 05:35:50 +00:00
|
|
|
# GLib
|
2009-11-19 20:27:08 +00:00
|
|
|
GLIB_CFLAGS=/I$(GTK_DIR)\include\glib-$(GLIB_VERSION) \
|
2011-08-07 19:58:13 +00:00
|
|
|
/I$(GTK_DIR)\lib\glib-$(GLIB_VERSION)\include \
|
2012-02-19 23:26:29 +00:00
|
|
|
-DG_DISABLE_DEPRECATED \
|
|
|
|
-DG_DISABLE_SINGLE_INCLUDES
|
2009-11-19 20:27:08 +00:00
|
|
|
GLIB_LIBS=$(GTK_DIR)\lib\glib-$(GLIB_VERSION).lib \
|
|
|
|
$(GTK_DIR)\lib\gmodule-$(GLIB_VERSION).lib \
|
|
|
|
$(GTK_DIR)\lib\gobject-$(GLIB_VERSION).lib
|
|
|
|
GTHREAD_LIBS=$(GTK_DIR)\lib\gthread-$(GLIB_VERSION).lib
|
2003-08-04 08:10:33 +00:00
|
|
|
|
2012-06-04 20:42:09 +00:00
|
|
|
|
|
|
|
# 2.18 was no good(Theming problem)
|
|
|
|
!IF "$(GTK_INST_VERSION)" == "2.24" || "$(GTK_INST_VERSION)" == "2.22" || "$(GTK_INST_VERSION)" == "2.16" || "$(GTK_INST_VERSION)" == "2.14"
|
|
|
|
|
2008-04-09 03:48:16 +00:00
|
|
|
# GTK+
|
|
|
|
GTK_CFLAGS=$(GLIB_CFLAGS) /I$(GTK_DIR)\include\gtk-2.0 \
|
2010-10-20 20:41:39 +00:00
|
|
|
/I$(GTK_DIR)\include\gdk-pixbuf-2.0 \
|
2008-04-09 03:48:16 +00:00
|
|
|
/I$(GTK_DIR)\lib\gtk-2.0\include \
|
|
|
|
/I$(GTK_DIR)\include\atk-1.0 \
|
|
|
|
/I$(GTK_DIR)\include\cairo \
|
2011-07-29 10:12:48 +00:00
|
|
|
/I$(GTK_DIR)\include\pango-1.0 \
|
2013-03-06 20:56:04 +00:00
|
|
|
-DGDK_DISABLE_DEPRECATED \
|
|
|
|
-DGDK_PIXBUF_DISABLE_DEPRECATED \
|
2011-08-17 17:34:56 +00:00
|
|
|
-DGTK_DISABLE_DEPRECATED \
|
2013-03-06 20:56:04 +00:00
|
|
|
-DGTK_DISABLE_SINGLE_INCLUDES \
|
2011-07-29 10:12:48 +00:00
|
|
|
-DGSEAL_ENABLE
|
2008-04-09 03:48:16 +00:00
|
|
|
GTK_LIBS=$(GTK_DIR)\lib\gtk-win32-2.0.lib \
|
|
|
|
$(GTK_DIR)\lib\gdk-win32-2.0.lib \
|
|
|
|
$(GTK_DIR)\lib\gdk_pixbuf-2.0.lib \
|
2011-07-17 13:18:55 +00:00
|
|
|
$(GTK_DIR)\lib\cairo.lib \
|
2008-04-09 03:48:16 +00:00
|
|
|
$(GTK_DIR)\lib\pango-1.0.lib \
|
2011-08-03 14:54:03 +00:00
|
|
|
$(GTK_DIR)\lib\pangocairo-1.0.lib \
|
2003-06-17 05:38:24 +00:00
|
|
|
$(GLIB_LIBS)
|
2004-01-24 20:01:36 +00:00
|
|
|
|
2008-04-09 03:48:16 +00:00
|
|
|
GTK_LIB_DIR=2.10.0
|
2009-11-19 20:27:08 +00:00
|
|
|
|
2012-04-20 23:41:36 +00:00
|
|
|
!IFDEF PNG_DLL
|
2012-05-14 17:54:47 +00:00
|
|
|
NEED_PNG_DLL=USE
|
2010-02-15 20:57:50 +00:00
|
|
|
!ENDIF
|
|
|
|
!IFDEF JPEG_DLL
|
2012-05-14 17:54:47 +00:00
|
|
|
NEED_JPEG_DLL=USE
|
2010-02-15 20:57:50 +00:00
|
|
|
!ENDIF
|
|
|
|
!IFDEF TIFF_DLL
|
2012-05-14 17:54:47 +00:00
|
|
|
NEED_TIFF_DLL=USE
|
2010-02-15 20:57:50 +00:00
|
|
|
!ENDIF
|
2012-04-20 23:41:36 +00:00
|
|
|
NEED_CAIRO_DLL=USE
|
|
|
|
# Pango >=1.24.5 Needs these:
|
|
|
|
NEED_FREETYPE_DLL=USE
|
|
|
|
NEED_FONTCONFIG_DLL=USE
|
2012-05-14 17:54:47 +00:00
|
|
|
#NEED_EXPAT_DLL=USE
|
|
|
|
NEED_XML_DLL=USE
|
|
|
|
NEED_PIXMAN_DLL=USE
|
|
|
|
NEED_FFI_DLL=USE
|
|
|
|
NEED_JASPER_DLL=USE
|
|
|
|
NEED_JPEG_DLL=USE
|
|
|
|
NEED_TIFF_DLL=USE
|
|
|
|
NEED_LZMA_DLL=USE
|
2009-11-19 20:27:08 +00:00
|
|
|
|
2014-01-27 19:22:10 +00:00
|
|
|
!ELSEIF "$(GTK_INST_VERSION)" == "3.4" || "$(GTK_INST_VERSION)" == "3.6"
|
2012-04-21 08:45:52 +00:00
|
|
|
|
|
|
|
# GTK+
|
2013-12-21 19:12:04 +00:00
|
|
|
## Note: If Wireshark is ever to be built with Gtk >= 3.10
|
|
|
|
## then -DGTK_DISABLE_DEPRECATED must be removed
|
|
|
|
## and -DGDK_DISABLE_DEPRECIATION_WARNINGS must
|
|
|
|
## be added below.
|
|
|
|
## Wireshark changes to handle Gtk 3.10 deprecated features
|
|
|
|
## will not be done since Wireshark is moving to Qt.
|
2012-04-21 08:45:52 +00:00
|
|
|
GTK_CFLAGS=$(GLIB_CFLAGS) /I$(GTK_DIR)\include\gtk-3.0 \
|
|
|
|
/I$(GTK_DIR)\include\gdk-pixbuf-2.0 \
|
|
|
|
/I$(GTK_DIR)\lib\gtk-3.0\include \
|
|
|
|
/I$(GTK_DIR)\include\atk-1.0 \
|
|
|
|
/I$(GTK_DIR)\include\cairo \
|
|
|
|
/I$(GTK_DIR)\include\pango-1.0 \
|
2013-03-06 20:56:04 +00:00
|
|
|
-DGDK_DISABLE_DEPRECATED \
|
|
|
|
-DGDK_PIXBUF_DISABLE_DEPRECATED \
|
|
|
|
-DGTK_DISABLE_DEPRECATED \
|
2012-04-21 08:45:52 +00:00
|
|
|
-DGTK_DISABLE_SINGLE_INCLUDES \
|
|
|
|
-DGSEAL_ENABLE
|
2012-06-04 20:42:09 +00:00
|
|
|
GTK_LIBS=$(GTK_DIR)\lib\gtk-3.lib \
|
|
|
|
$(GTK_DIR)\lib\gdk-3.lib \
|
2012-04-21 08:45:52 +00:00
|
|
|
$(GTK_DIR)\lib\gdk_pixbuf-2.0.lib \
|
|
|
|
$(GTK_DIR)\lib\cairo.lib \
|
|
|
|
$(GTK_DIR)\lib\pango-1.0.lib \
|
|
|
|
$(GTK_DIR)\lib\pangocairo-1.0.lib \
|
|
|
|
$(GLIB_LIBS)
|
|
|
|
|
|
|
|
GTK_LIB_DIR=3.4
|
|
|
|
|
|
|
|
!IFDEF _DLL
|
|
|
|
!ENDIF
|
|
|
|
|
2012-10-19 17:47:34 +00:00
|
|
|
NEED_CAIRO_GOBJECT_DLL=USE
|
2012-04-21 08:45:52 +00:00
|
|
|
NEED_CAIRO_DLL=USE
|
|
|
|
|
|
|
|
!IFDEF EXPAT_DLL
|
|
|
|
NEED_EXPAT_DLL=USE
|
|
|
|
!ENDIF
|
|
|
|
!IFDEF FFI_DLL
|
|
|
|
NEED_FFI_DLL=USE
|
|
|
|
!ENDIF
|
|
|
|
!IFDEF FONTCONFIG_DLL
|
|
|
|
NEED_FONTCONFIG_DLL=USE
|
|
|
|
!ENDIF
|
|
|
|
!IFDEF FREETYPE_DLL
|
|
|
|
NEED_FREETYPE_DLL=USE
|
|
|
|
!ENDIF
|
|
|
|
!IFDEF JASPER_DLL
|
|
|
|
NEED_JASPER_DLL=USE
|
|
|
|
!ENDIF
|
|
|
|
!IFDEF JPEG_DLL
|
|
|
|
NEED_JPEG_DLL=USE
|
|
|
|
!ENDIF
|
|
|
|
!IFDEF LZMA_DLL
|
|
|
|
NEED_LZMA_DLL=USE
|
|
|
|
!ENDIF
|
|
|
|
!IFDEF PIXMAN_DLL
|
|
|
|
NEED_PIXMAN_DLL=USE
|
|
|
|
!ENDIF
|
|
|
|
!IFDEF PNG_DLL
|
|
|
|
NEED_PNG_DLL=USE
|
|
|
|
!ENDIF
|
|
|
|
!IFDEF TIFF_DLL
|
|
|
|
NEED_TIFF_DLL=USE
|
|
|
|
!ENDIF
|
|
|
|
!IFDEF XML_DLL
|
|
|
|
NEED_XML_DLL=USE
|
|
|
|
!ENDIF
|
2008-02-16 21:07:19 +00:00
|
|
|
!ELSE
|
2012-04-21 08:45:52 +00:00
|
|
|
!ERROR ? Unknown or invalid GTK_INST_VERSION "$(GTK_INST_VERSION)"
|
2005-10-21 18:47:04 +00:00
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
|
2006-09-12 00:27:03 +00:00
|
|
|
!IFDEF AIRPCAP_DIR
|
|
|
|
AIRPCAP_CONFIG=^#define HAVE_AIRPCAP 1
|
2007-05-20 22:32:14 +00:00
|
|
|
#AIRPCAP_CFLAGS=/I$(AIRPCAP_DIR)\include
|
2006-09-12 00:27:03 +00:00
|
|
|
!ELSE
|
2006-08-16 18:01:25 +00:00
|
|
|
AIRPCAP_CONFIG=
|
2012-06-19 12:42:06 +00:00
|
|
|
WIRELESS_TOOLBAR_CONFIG=
|
2006-09-12 00:27:03 +00:00
|
|
|
!ENDIF
|
2005-10-21 18:47:04 +00:00
|
|
|
|
2006-09-12 00:27:03 +00:00
|
|
|
!IFDEF PCAP_DIR
|
2003-10-10 09:48:54 +00:00
|
|
|
# Nmake uses carets to escape special characters
|
|
|
|
WINPCAP_CONFIG=^#define HAVE_LIBPCAP 1
|
2010-03-17 22:09:19 +00:00
|
|
|
#
|
|
|
|
# This requires that, if you're *building* Wireshark, you have
|
|
|
|
# the most recent WinPcap's development package. If, at *run*
|
|
|
|
# time, an older version of WinPcap, missing some routines,
|
|
|
|
# is found, we work around that.
|
|
|
|
#
|
2003-10-10 09:48:54 +00:00
|
|
|
PCAP_FINDALLDEVS_CONFIG=^#define HAVE_PCAP_FINDALLDEVS 1
|
2004-09-23 17:54:49 +00:00
|
|
|
PCAP_DATALINK_NAME_TO_VAL_CONFIG=^#define HAVE_PCAP_DATALINK_NAME_TO_VAL 1
|
|
|
|
PCAP_DATALINK_VAL_TO_NAME_CONFIG=^#define HAVE_PCAP_DATALINK_VAL_TO_NAME 1
|
2009-12-18 20:36:36 +00:00
|
|
|
PCAP_DATALINK_VAL_TO_DESCRIPTION_CONFIG=^#define HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1
|
2006-08-13 01:07:46 +00:00
|
|
|
# PCAP_BREAKLOOP won't have any benefit on Win32, but breaks compatibility with 3.0
|
2006-05-21 21:32:04 +00:00
|
|
|
PCAP_BREAKLOOP_CONFIG=
|
2010-03-17 22:09:19 +00:00
|
|
|
PCAP_LIST_DATALINKS_CONFIG=^#define HAVE_PCAP_LIST_DATALINKS 1
|
|
|
|
PCAP_FREE_DATALINKS_CONFIG=^#define HAVE_PCAP_FREE_DATALINKS 1
|
|
|
|
PCAP_SET_DATALINK_CONFIG=^#define HAVE_PCAP_SET_DATALINK 1
|
2010-10-03 12:04:18 +00:00
|
|
|
PCAP_OPEN_DEAD_CONFIG=^#define HAVE_PCAP_OPEN_DEAD 1
|
2010-10-03 22:42:27 +00:00
|
|
|
BPF_IMAGE_CONFIG=^#define HAVE_BPF_IMAGE 1
|
2003-10-10 09:48:54 +00:00
|
|
|
!ELSE
|
2007-02-03 20:40:11 +00:00
|
|
|
# no WpdPack installed
|
2003-10-10 09:48:54 +00:00
|
|
|
WINPCAP_CONFIG=
|
|
|
|
PCAP_FINDALLDEVS_CONFIG=
|
2004-09-23 17:54:49 +00:00
|
|
|
PCAP_DATALINK_NAME_TO_VAL_CONFIG=
|
|
|
|
PCAP_DATALINK_VAL_TO_NAME_CONFIG=
|
2009-12-18 20:36:36 +00:00
|
|
|
PCAP_DATALINK_VAL_TO_DESCRIPTION_CONFIG=
|
2006-05-21 21:32:04 +00:00
|
|
|
PCAP_BREAKLOOP_CONFIG=
|
2010-03-17 22:09:19 +00:00
|
|
|
PCAP_LIST_DATALINKS_CONFIG=
|
|
|
|
PCAP_FREE_DATALINKS_CONFIG=
|
|
|
|
PCAP_SET_DATALINK_CONFIG=
|
2010-10-03 12:04:18 +00:00
|
|
|
PCAP_OPEN_DEAD_CONFIG=
|
2010-10-03 22:42:27 +00:00
|
|
|
BPF_IMAGE_CONFIG=
|
2003-10-10 09:48:54 +00:00
|
|
|
!ENDIF
|
|
|
|
|
2007-12-04 11:19:29 +00:00
|
|
|
!IF DEFINED(PCAP_DIR) && DEFINED(PCAP_REMOTE)
|
|
|
|
PCAP_HAVE_REMOTE_CONFIG=^#define HAVE_REMOTE 1
|
|
|
|
PCAP_REMOTE_CONFIG=^#define HAVE_PCAP_REMOTE 1
|
|
|
|
PCAP_OPEN_CONFIG=^#define HAVE_PCAP_OPEN 1
|
|
|
|
PCAP_SETSAMPLING_CONFIG=^#define HAVE_PCAP_SETSAMPLING 1
|
|
|
|
!ELSE
|
|
|
|
PCAP_HAVE_REMOTE_CONFIG=
|
|
|
|
PCAP_REMOTE_CONFIG=
|
|
|
|
PCAP_OPEN_CONFIG=
|
|
|
|
PCAP_SETSAMPLING_CONFIG=
|
|
|
|
!ENDIF
|
|
|
|
|
2003-11-07 23:27:13 +00:00
|
|
|
!IFDEF ZLIB_DIR
|
2005-09-13 16:48:13 +00:00
|
|
|
ZLIB_PATH=$(ZLIB_DIR)
|
2003-12-01 17:17:51 +00:00
|
|
|
ZLIB_CFLAGS=/I$(ZLIB_DIR)\include
|
|
|
|
ZLIB_LIBS=$(ZLIB_DIR)\lib\zdll.lib
|
2007-11-28 20:06:21 +00:00
|
|
|
ZLIB_DLL=$(ZLIB_DIR)\zlib1.dll
|
2003-11-07 23:27:13 +00:00
|
|
|
# Nmake uses carets to escape special characters
|
|
|
|
ZLIB_CONFIG=^#define HAVE_LIBZ 1
|
|
|
|
!else
|
|
|
|
ZLIB_CFLAGS=
|
|
|
|
ZLIB_LIBS=
|
2007-11-28 20:06:21 +00:00
|
|
|
ZLIB_DLL=
|
2003-11-07 23:27:13 +00:00
|
|
|
ZLIB_CONFIG=
|
|
|
|
!ENDIF
|
|
|
|
|
2009-12-17 22:01:13 +00:00
|
|
|
!IFDEF C_ARES_PKG
|
2008-08-07 21:41:48 +00:00
|
|
|
!UNDEF ADNS_DIR
|
2011-07-19 18:22:46 +00:00
|
|
|
C_ARES_DIR=$(WIRESHARK_LIB_DIR)\c-ares-$(C_ARES_PKG)-$(WIRESHARK_TARGET_PLATFORM)ws
|
2009-12-17 22:01:13 +00:00
|
|
|
C_ARES_CFLAGS=/I$(C_ARES_DIR)/include
|
|
|
|
C_ARES_LIBS=$(C_ARES_DIR)\lib\libcares-2.lib
|
|
|
|
C_ARES_DLL=$(C_ARES_DIR)\bin\libcares-2.dll
|
2008-08-07 21:41:48 +00:00
|
|
|
# Nmake uses carets to escape special characters
|
|
|
|
C_ARES_CONFIG=^#define HAVE_C_ARES 1
|
|
|
|
!else
|
|
|
|
C_ARES_CFLAGS=
|
|
|
|
C_ARES_LIBS=
|
|
|
|
C_ARES_CONFIG=
|
2003-06-15 23:04:47 +00:00
|
|
|
!IFDEF ADNS_DIR
|
2005-09-13 16:48:13 +00:00
|
|
|
ADNS_PATH=$(ADNS_DIR)\adns_win32\lib
|
2003-06-15 23:04:47 +00:00
|
|
|
ADNS_CFLAGS=/I$(ADNS_DIR)\src /I$(ADNS_DIR)\adns_win32
|
2011-07-19 18:22:46 +00:00
|
|
|
ADNS_LIBS=$(WIRESHARK_LIB_DIR)\$(MSVC_VARIANT)\adns\adns_dll.lib
|
|
|
|
ADNS_DLL=$(WIRESHARK_LIB_DIR)\$(MSVC_VARIANT)\adns\adns_dll.dll
|
2003-06-24 18:51:21 +00:00
|
|
|
# Nmake uses carets to escape special characters
|
|
|
|
ADNS_CONFIG=^#define HAVE_GNU_ADNS 1
|
2003-06-15 23:04:47 +00:00
|
|
|
!else
|
2003-06-26 08:41:33 +00:00
|
|
|
ADNS_CFLAGS=
|
2003-06-15 23:04:47 +00:00
|
|
|
ADNS_LIBS=
|
2003-06-16 07:58:26 +00:00
|
|
|
ADNS_CONFIG=
|
2008-08-07 21:41:48 +00:00
|
|
|
!ENDIF # ADNS
|
|
|
|
!ENDIF # C_ARES
|
2003-12-07 00:04:32 +00:00
|
|
|
|
2006-08-05 04:32:57 +00:00
|
|
|
!IFDEF KFW_DIR
|
2010-01-19 22:58:12 +00:00
|
|
|
KFW_PATH=$(KFW_DIR)\bin
|
|
|
|
KFW_CFLAGS=/I$(KFW_DIR)\include
|
|
|
|
KFW_LIBS=$(KFW_DIR)\lib\krb5_32.lib
|
2006-08-05 04:32:57 +00:00
|
|
|
# Nmake uses carets to escape special characters
|
|
|
|
KFW_CONFIG=^#define HAVE_MIT_KERBEROS 1
|
|
|
|
!else
|
|
|
|
KFW_CFLAGS=
|
|
|
|
KFW_LIBS=
|
|
|
|
KFW_CONFIG=
|
2003-12-07 00:04:32 +00:00
|
|
|
!ENDIF
|
|
|
|
|
2004-10-15 15:36:12 +00:00
|
|
|
!IFDEF NETTLE_DIR
|
|
|
|
NETTLE_CFLAGS=/I$(NETTLE_DIR)
|
|
|
|
NETTLE_LIBS=$(NETTLE_DIR)\libnettle.lib
|
|
|
|
# Nmake uses carets to escape special characters
|
|
|
|
NETTLE_CONFIG=^#define HAVE_LIBNETTLE 1
|
|
|
|
!else
|
|
|
|
NETTLE_CFLAGS=
|
|
|
|
NETTLE_LIBS=
|
|
|
|
NETTLE_CONFIG=
|
|
|
|
!ENDIF
|
|
|
|
|
2009-12-21 21:06:01 +00:00
|
|
|
!IFDEF GNUTLS_PKG
|
2011-07-19 18:22:46 +00:00
|
|
|
GNUTLS_DIR=$(WIRESHARK_LIB_DIR)\gnutls-$(GNUTLS_PKG)-$(WIRESHARK_TARGET_PLATFORM)ws
|
2006-02-06 09:09:06 +00:00
|
|
|
GNUTLS_PATH=$(GNUTLS_DIR)
|
2007-01-07 19:50:16 +00:00
|
|
|
# /DNOCRYPT avoids inclusion of Wincrypt.h, avoiding a X509_NAME define clash
|
2009-02-09 09:38:58 +00:00
|
|
|
GNUTLS_CFLAGS=/I$(GNUTLS_DIR)\include /DNOCRYPT /DIMPORT_LIGNUTLSDLL
|
2009-12-08 00:13:57 +00:00
|
|
|
GCRYPT_LIBS = $(GNUTLS_DIR)\bin\libgcrypt-11.lib
|
2006-08-09 02:00:05 +00:00
|
|
|
GNUTLS_LIBS=\
|
|
|
|
$(GNUTLS_DIR)\bin\libtasn1-3.lib \
|
|
|
|
$(GNUTLS_DIR)\bin\libgpg-error-0.lib \
|
2009-12-08 00:13:57 +00:00
|
|
|
$(GCRYPT_LIBS) \
|
2008-05-16 06:53:15 +00:00
|
|
|
$(GNUTLS_DIR)\bin\libgnutls-26.lib
|
2006-02-06 09:09:06 +00:00
|
|
|
# Nmake uses carets to escape special characters
|
2006-02-07 10:26:20 +00:00
|
|
|
GNUTLS_CONFIG=^#define HAVE_LIBGNUTLS 1
|
2006-08-09 02:00:05 +00:00
|
|
|
LIBGCRYPT_CONFIG=^#define HAVE_LIBGCRYPT 1
|
2006-02-06 09:09:06 +00:00
|
|
|
!else
|
|
|
|
GNUTLS_CFLAGS=
|
|
|
|
GNUTLS_LIBS=
|
|
|
|
GNUTLS_CONFIG=
|
2006-08-09 02:00:05 +00:00
|
|
|
LIBGCRYPT_CONFIG=
|
2006-02-06 09:09:06 +00:00
|
|
|
!ENDIF
|
|
|
|
|
2006-02-07 09:12:43 +00:00
|
|
|
!IFDEF LUA_DIR
|
|
|
|
LUA_CFLAGS=/I$(LUA_DIR)\include
|
2008-10-01 19:38:27 +00:00
|
|
|
LUA_LIBS=$(LUA_DIR)\lua5.1.lib
|
2006-02-07 09:12:43 +00:00
|
|
|
# Nmake uses carets to escape special characters
|
|
|
|
LUA_CONFIG=^#define HAVE_LUA 1
|
2012-06-25 20:42:07 +00:00
|
|
|
LUA_VERSION=^#define HAVE_LUA 1
|
2006-02-07 09:12:43 +00:00
|
|
|
!else
|
|
|
|
LUA_CFLAGS=
|
|
|
|
LUA_LIBS=
|
|
|
|
LUA_CONFIG=
|
|
|
|
!ENDIF
|
2006-02-06 09:09:06 +00:00
|
|
|
|
2010-06-01 22:20:15 +00:00
|
|
|
!IF DEFINED(PYTHON_EMBED)
|
|
|
|
PYTHON_CFLAGS=/I$(PYTHON_DIR)\include
|
|
|
|
PYTHON_LIBS=$(PYTHON_DIR)\libs\python$(PYTHON_VER).lib
|
|
|
|
# Nmake uses carets to escape special characters
|
|
|
|
PYTHON_CONFIG=^#define HAVE_PYTHON 1
|
|
|
|
!else
|
|
|
|
PYTHON_CFLAGS=
|
|
|
|
PYTHON_LIBS=
|
|
|
|
PYTHON_CONFIG=
|
|
|
|
!ENDIF
|
|
|
|
|
2006-08-30 21:51:31 +00:00
|
|
|
!IFDEF PORTAUDIO_DIR
|
|
|
|
# Nmake uses carets to escape special characters
|
2006-09-13 11:28:36 +00:00
|
|
|
PORTAUDIO_CONFIG=^#define HAVE_LIBPORTAUDIO 1
|
2006-09-11 22:43:00 +00:00
|
|
|
!IF "$(PORTAUDIO_VERSION)" == "18"
|
|
|
|
# V18 uses API version 1 and v19 API version 2
|
2006-10-07 14:24:32 +00:00
|
|
|
PORTAUDIO_CFLAGS=/I$(PORTAUDIO_DIR)\pa_common
|
2006-09-11 22:43:00 +00:00
|
|
|
PORTAUDIO_API_CONFIG=^#define PORTAUDIO_API_1 1
|
2006-10-07 14:24:32 +00:00
|
|
|
!ELSE
|
2008-05-13 07:39:23 +00:00
|
|
|
PORTAUDIO_CFLAGS=/I$(PORTAUDIO_DIR)\include /I$(PORTAUDIO_DIR)\src\common /I$(PORTAUDIO_DIR)\src\os\win /DPA_NO_DS /DPA_NO_ASIO
|
2006-09-11 22:43:00 +00:00
|
|
|
!ENDIF
|
2007-02-03 20:57:24 +00:00
|
|
|
!ELSE
|
2006-09-12 00:27:03 +00:00
|
|
|
PORTAUDIO_CFLAGS=
|
2006-08-30 21:51:31 +00:00
|
|
|
PORTAUDIO_CONFIG=
|
|
|
|
!ENDIF
|
|
|
|
|
2006-09-12 00:27:03 +00:00
|
|
|
!IFDEF HHC_DIR
|
2007-01-10 09:56:39 +00:00
|
|
|
HHC_CFLAGS=-DHHC_DIR
|
|
|
|
HHC_LIBS=htmlhelp.lib
|
|
|
|
!ELSE
|
2006-09-12 00:27:03 +00:00
|
|
|
HHC_CFLAGS=
|
|
|
|
HHC_LIBS=
|
|
|
|
!ENDIF
|
|
|
|
|
2011-06-27 20:48:26 +00:00
|
|
|
!IFDEF SMI_PKG
|
2011-07-19 18:22:46 +00:00
|
|
|
SMI_DIR=$(WIRESHARK_LIB_DIR)\libsmi-$(SMI_PKG)-$(WIRESHARK_TARGET_PLATFORM)ws
|
2007-08-26 20:03:23 +00:00
|
|
|
SMI_CONFIG=^#define HAVE_LIBSMI 1
|
|
|
|
SMI_CFLAGS=/I$(SMI_DIR)\include
|
2011-06-27 20:48:26 +00:00
|
|
|
SMI_LIBS=$(SMI_DIR)\lib\libsmi-2.lib
|
2007-08-26 20:03:23 +00:00
|
|
|
!ELSE
|
2011-06-27 20:48:26 +00:00
|
|
|
SMI_DIR=
|
2007-08-26 20:03:23 +00:00
|
|
|
SMI_LIBS=
|
|
|
|
SMI_CFLAGS=
|
|
|
|
SMI_CONFIG=
|
|
|
|
!ENDIF
|
|
|
|
|
2012-05-29 23:31:00 +00:00
|
|
|
!IFDEF GEOIP_PKG
|
|
|
|
GEOIP_DIR=$(WIRESHARK_LIB_DIR)\GeoIP-$(GEOIP_PKG)-$(WIRESHARK_TARGET_PLATFORM)ws
|
2008-12-23 18:56:31 +00:00
|
|
|
GEOIP_CONFIG=^#define HAVE_GEOIP 1
|
2011-10-05 23:02:31 +00:00
|
|
|
GEOIP_V6_CONFIG=^#define HAVE_GEOIP_V6 1
|
2012-05-30 15:36:48 +00:00
|
|
|
GEOIP_CFLAGS=/I$(GEOIP_DIR)/include
|
2012-05-29 23:31:00 +00:00
|
|
|
GEOIP_LIBS=$(GEOIP_DIR)\lib\libGeoIP-1.lib
|
2008-12-23 18:56:31 +00:00
|
|
|
!ELSE
|
2012-05-29 23:31:00 +00:00
|
|
|
GEOIP_DIR=
|
2011-10-05 23:02:31 +00:00
|
|
|
GEOIP_LIBS=
|
|
|
|
GEOIP_CFLAGS=
|
|
|
|
GEOIP_CONFIG=
|
|
|
|
GEOIP_V6_CONFIG=
|
2008-12-23 18:56:31 +00:00
|
|
|
!ENDIF
|
|
|
|
|
2013-02-19 22:21:17 +00:00
|
|
|
!IFDEF WINSPARKLE_PKG
|
|
|
|
WINSPARKLE_DIR=$(WIRESHARK_LIB_DIR)\WinSparkle-$(WINSPARKLE_PKG)
|
|
|
|
WINSPARKLE_CONFIG=^#define HAVE_SOFTWARE_UPDATE 1
|
|
|
|
WINSPARKLE_CFLAGS=/I$(WINSPARKLE_DIR)
|
|
|
|
WINSPARKLE_LIBS=$(WINSPARKLE_DIR)\WinSparkle.lib
|
|
|
|
!ELSE
|
|
|
|
WINSPARKLE_DIR=
|
|
|
|
WINSPARKLE_CONFIG=
|
|
|
|
WINSPARKLE_CFLAGS=
|
|
|
|
WINSPARKLE_LIBS=
|
|
|
|
!ENDIF
|
|
|
|
|
2006-09-12 00:27:03 +00:00
|
|
|
!IFDEF ENABLE_LIBWIRESHARK
|
2008-03-20 00:30:47 +00:00
|
|
|
# Link plugins with the import library of libwireshark.dll
|
2007-02-03 20:57:24 +00:00
|
|
|
LINK_PLUGINS_WITH_LIBWIRESHARK=USE
|
2006-09-12 00:27:03 +00:00
|
|
|
!ELSE
|
|
|
|
LIBWIRESHARK_CONFIG=
|
|
|
|
!ENDIF
|
|
|
|
|
2005-09-13 16:48:13 +00:00
|
|
|
# Construct the path
|
2009-11-19 20:27:08 +00:00
|
|
|
PATH=$(PATH);$(CYGWIN_PATH);$(GTK_DIR)\bin;$(GETTEXT_DIR)\bin;$(ZLIB_PATH);$(ADNS_PATH)
|
2008-08-11 21:59:59 +00:00
|
|
|
|
|
|
|
INET6_CONFIG=^#define INET6 1
|
2009-05-08 19:53:41 +00:00
|
|
|
|
|
|
|
NTDDNDIS_CONFIG=^#define HAVE_NTDDNDIS_H 1
|