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 #####
|
2014-09-27 08:37:11 +00:00
|
|
|
# Changing the name is experimental and may break the installer/uninstaller and possibly other stuff.
|
2014-07-28 18:37:27 +00:00
|
|
|
# Application data will still be under the same dir as Wireshark so preference files, profiles, and etc
|
2012-10-16 14:03:42 +00:00
|
|
|
# will be shared with a "normal" Wireshark installation.
|
2014-09-27 08:37:11 +00:00
|
|
|
# Note that support libraries need to be in PROGRAM_NAME-libs...
|
2012-10-16 14:03:42 +00:00
|
|
|
|
|
|
|
!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
|
|
|
|
2014-05-14 15:41:20 +00:00
|
|
|
# Pick up the value from the environment, VS2012 onwards sets PLATFORM via
|
2015-04-03 19:21:40 +00:00
|
|
|
# vcvarsall.bat (it appears for X64 only).
|
2014-02-01 16:46:50 +00:00
|
|
|
# For VS2010 and earlier you'll have to set the value yourself
|
2015-04-03 19:21:40 +00:00
|
|
|
!IF "$(PLATFORM)" == "x64" || "$(PLATFORM)" == "X64"
|
2014-02-01 16:46:50 +00:00
|
|
|
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
|
|
|
|
2015-01-25 21:50:37 +00:00
|
|
|
# The VCS's description of our build. Updated by make-version.pl
|
|
|
|
VCS_REVISION=0
|
2011-11-17 00:19:03 +00:00
|
|
|
|
|
|
|
# The current Wireshark version. Recommended: Leave unchanged.
|
|
|
|
# Updated by make-version.pl
|
2015-10-05 20:09:52 +00:00
|
|
|
VERSION_MAJOR=2
|
|
|
|
VERSION_MINOR=1
|
|
|
|
VERSION_MICRO=0
|
2015-01-25 21:50:37 +00:00
|
|
|
VERSION_BUILD=$(VCS_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
|
|
|
|
2015-02-10 21:48:48 +00:00
|
|
|
# Banner shown at top right of Qt welcome screen.
|
|
|
|
!IFDEF WIRESHARK_VERSION_FLAVOR
|
|
|
|
VERSION_FLAVOR=$(WIRESHARK_VERSION_FLAVOR)
|
|
|
|
!ELSE
|
2015-02-19 23:04:15 +00:00
|
|
|
VERSION_FLAVOR=Development Build
|
2015-02-10 21:48:48 +00:00
|
|
|
!ENDIF
|
|
|
|
|
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
|
|
|
|
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
|
|
|
#
|
Always use html2text.py for FAQ, improve output
A recent commit broke compilation with Python 3. The original author of
html2text.py is deceased and the fork has increased the number of files
for this "simple" helper.
The html2text.py script in this patch was rewritten and its output
matches with lynx (except for a few newlines around lists). This means
that indentation has been added for headings, paragraphs and lists.
Also, since it was written from scratch, a new license could be chosen
that matches Wireshark.
Since now the in-tree html2text.py script provides nicer output, remove
detection of the alternative programs (elinks, links). lynx/w3m is
somehow still necessary for asciidoc though.
(I also looked into reusing html2text.py for the release notes to
replace asciidoc, but the --format=html output produces different output
(HTML adds a ToC and section numbers). For now still require lynx for
release notes)
Tested with Python 2.6.6, 2.7.9, 3.2.6 and 3.4.3 under LC_ALL=C and
LC_ALL=en_US.UTF-8 on Linux. Tested reading from stdin and file, writing
to file, pipe and tty. Tested with cmake (Ninja) and autotools on Arch
Linux x86_64. Test:
# For each $PATH per python version, execute (with varying LC_ALL)
help/faq.py -b | tools/html2text.py /dev/stdin | md5sum
help/faq.py -b | tools/html2text.py | md5sum
help/faq.py -b | tools/html2text.py
help/faq.py -b | tools/html2text.py >/dev/null
Change-Id: I6409450a3e6c8b010ca082251f9db7358b0cc2fd
Reviewed-on: https://code.wireshark.org/review/7779
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2015-03-21 10:57:01 +00:00
|
|
|
# Location of the "tools" directory. This affects the path to textify.ps1
|
2008-12-17 21:11:20 +00:00
|
|
|
!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
|
2015-05-29 08:33:58 +00:00
|
|
|
!ELSE IF "$(VISUALSTUDIOVERSION)" == "14.0"
|
|
|
|
MSVC_VARIANT=MSVC2015
|
2014-02-01 16:46:50 +00:00
|
|
|
!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:
|
2014-05-01 14:54:27 +00:00
|
|
|
## 1. 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').
|
2014-05-01 14:54:27 +00:00
|
|
|
## Note that the 'include' environment variable is initialized
|
|
|
|
## when vcvarsall.bat is called to set up the build environment.
|
|
|
|
## [*]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
|
2015-03-10 17:46:50 +00:00
|
|
|
## See: https://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
|
|
|
|
##
|
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
|
2014-05-01 14:54:27 +00:00
|
|
|
## Notes:
|
|
|
|
## 1. win32.mak is apparently not part of the MS 2013EE install;
|
|
|
|
## To build Windows Wireshark, win32.mak must be obtained [*]
|
|
|
|
## and copied to a dir specified in the Windows Environment
|
|
|
|
## variable 'include' (or to a dir added to the list in 'include').
|
|
|
|
## Note that the 'include' environment variable is initialized
|
|
|
|
## when vcvarsall.bat is called to set up the build environment.
|
|
|
|
## [*]One possibility: download the Windows 7 Platform SDK and copy
|
|
|
|
## win32.mak from ...\Microsoft SDKs\Windows\v7.[something]\include
|
2015-03-10 17:46:50 +00:00
|
|
|
## See: https://ask.wireshark.org/questions/14343/setting-development-project-under-visual-studio-2012
|
2013-10-20 17:35:30 +00:00
|
|
|
#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
|
|
|
#
|
2014-08-02 23:21:31 +00:00
|
|
|
# The Python interpreter is used as part of the buildsystem
|
2010-06-01 22:20:15 +00:00
|
|
|
#
|
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)
|
2015-01-30 18:54:12 +00:00
|
|
|
!IF EXIST(c:\tools\python2\python.exe)
|
|
|
|
# Chocolatey default
|
|
|
|
PYTHON_DIR=C:\tools\python2
|
|
|
|
!ELSE IF EXIST(c:\Python27\python.exe)
|
2010-09-24 23:50:38 +00:00
|
|
|
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
|
|
|
|
2014-08-02 23:21:31 +00:00
|
|
|
# If all else fails, try to find it on the PATH
|
|
|
|
!IF !DEFINED(PYTHON)
|
|
|
|
PYTHON=python
|
|
|
|
!ENDIF
|
|
|
|
|
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"
|
2015-12-11 21:20:33 +00:00
|
|
|
DOWNLOAD_TAG=2015-12-11
|
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
|
|
|
#
|
2014-04-08 18:01:01 +00:00
|
|
|
# Set the name to gtk3 if you want to use gtk3
|
|
|
|
GTK_NAME=gtk2
|
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
|
2014-05-16 16:21:57 +00:00
|
|
|
FFI_DLL=libffi-6.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
|
2014-05-16 16:21:57 +00:00
|
|
|
HARFBUZZ_DLL=libharfbuzz-0.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
|
2014-05-16 16:21:57 +00:00
|
|
|
SJLJ_DLL=libgcc_s_sjlj-1.dll
|
2012-05-14 17:54:47 +00:00
|
|
|
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
|
2014-05-16 16:21:57 +00:00
|
|
|
GTK_PKG=2.24.23-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
|
|
|
|
#
|
2014-07-01 02:54:46 +00:00
|
|
|
# NOTE> the qmake command given below returns a path with forward slashes,
|
|
|
|
# which will need to be changed to backslashes for things to work properly
|
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
|
2014-05-12 22:16:23 +00:00
|
|
|
# Qt 5.2.1 web installer default paths
|
|
|
|
!ELSE IF EXIST(C:\Qt\5.2.1\msvc2010)
|
|
|
|
QT5_BASE_DIR=C:\Qt\5.2.1\msvc2010
|
|
|
|
!ELSE IF EXIST(C:\Qt\5.2.1\msvc2012)
|
|
|
|
QT5_BASE_DIR=C:\Qt\5.2.1\msvc2012
|
|
|
|
!ELSE IF EXIST(C:\Qt\5.2.1\msvc2012_64)
|
|
|
|
QT5_BASE_DIR=C:\Qt\5.2.1\msvc2012_64
|
2014-06-30 22:53:56 +00:00
|
|
|
!ELSE IF EXIST(C:\Qt\Qt5.3.0\5.3\msvc2013)
|
|
|
|
QT5_BASE_DIR=C:\Qt\Qt5.3.0\5.3\msvc2013
|
2014-07-25 00:27:33 +00:00
|
|
|
!ELSE IF EXIST(C:\Qt\5.3\msvc2013)
|
|
|
|
QT5_BASE_DIR=C:\Qt\5.3\msvc2013
|
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
|
2014-09-02 19:18:20 +00:00
|
|
|
# This macro is used by the NSIS installer script, PortableApps, 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.
|
2015-05-16 21:26:53 +00:00
|
|
|
ZLIB_DIR=$(WIRESHARK_LIB_DIR)\zlib-1.2.8-ws
|
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
|
2014-10-01 11:23:52 +00:00
|
|
|
GNUTLS_PKG=3.2.15-2.7
|
2014-06-04 17:17:44 +00:00
|
|
|
GPGERROR_DLL=libgpg-error-0.dll
|
|
|
|
GCC_DLL=libgcc_s_sjlj-1.dll
|
2006-08-31 01:50:11 +00:00
|
|
|
|
2015-11-19 10:30:44 +00:00
|
|
|
# Optional: libssh library is required for sshdump support
|
|
|
|
#
|
|
|
|
# If you don't have libssh, comment this line out so that LIBSSH_DIR
|
|
|
|
# isn't defined.
|
|
|
|
#
|
|
|
|
#LIBSSH_DIR=$(WIRESHARK_LIB_DIR)\libssh-0.7.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
|
2014-10-13 19:37:01 +00:00
|
|
|
COMERR_DLL=comerr32.dll
|
|
|
|
KRB5_DLL=krb5_32.dll
|
|
|
|
K5SPRT_DLL=k5sprt32.dll
|
2006-08-05 04:32:57 +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.
|
|
|
|
#
|
2015-05-29 08:33:58 +00:00
|
|
|
!IF "$(MSVC_VARIANT)" == "MSVC2015" || "$(MSVC_VARIANT)" == "MSVC2015CE"
|
2015-08-29 20:28:01 +00:00
|
|
|
LUA_DIST=-5.2.3_Win32_dll14
|
2015-05-29 08:33:58 +00:00
|
|
|
!ELSEIF "$(MSVC_VARIANT)" == "MSVC2013" || "$(MSVC_VARIANT)" == "MSVC2013EE"
|
2014-07-27 16:29:14 +00:00
|
|
|
LUA_DIST=-5.2.3_Win32_dll12
|
|
|
|
!ELSEIF "$(MSVC_VARIANT)" == "MSVC2012" || "$(MSVC_VARIANT)" == "MSVC2012EE"
|
2014-04-16 20:14:25 +00:00
|
|
|
LUA_DIST=-5.2.3_Win32_dll11
|
|
|
|
!ELSE
|
2014-04-06 20:01:03 +00:00
|
|
|
LUA_DIST=-5.2.3_Win32_dll10
|
2014-04-16 20:14:25 +00:00
|
|
|
!ENDIF
|
2014-04-01 02:34:47 +00:00
|
|
|
LUA_DIR=$(WIRESHARK_LIB_DIR)\lua5.2.3
|
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
|
2015-08-31 10:19:34 +00:00
|
|
|
GEOIP_PKG=1.6.6
|
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
|
2015-12-11 21:20:33 +00:00
|
|
|
DOWNLOAD_TAG=2015-12-11
|
2009-03-07 01:06:40 +00:00
|
|
|
##### 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
|
2014-10-13 19:01:11 +00:00
|
|
|
FFI_DLL=libffi-6.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
|
2014-10-13 19:01:11 +00:00
|
|
|
HARFBUZZ_DLL=libharfbuzz-0.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
|
2014-10-13 19:01:11 +00:00
|
|
|
PNG_DLL=libpng16-16.dll
|
2014-09-29 21:34:13 +00:00
|
|
|
#SEH_DLL=libgcc_s_seh-1.dll
|
2012-05-14 17:54:47 +00:00
|
|
|
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
|
2014-10-13 19:01:11 +00:00
|
|
|
GTK_PKG=2.24.23-3.39
|
2014-09-29 21:34:13 +00:00
|
|
|
#GTK_PKG=2.24.23-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
|
2014-07-25 00:27:33 +00:00
|
|
|
!ELSE IF EXIST(C:\Qt\5.3\msvc2013_64)
|
|
|
|
QT5_BASE_DIR=C:\Qt\5.3\msvc2013_64
|
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
|
2014-09-02 19:18:20 +00:00
|
|
|
# This macro is used by the NSIS installer script, PortableApps, 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.
|
|
|
|
#
|
2015-05-16 21:26:53 +00:00
|
|
|
ZLIB_DIR=$(WIRESHARK_LIB_DIR)\zlib-1.2.8-ws
|
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
|
2014-10-01 11:23:52 +00:00
|
|
|
GNUTLS_PKG=3.2.15-2.9
|
2014-06-04 17:17:44 +00:00
|
|
|
GPGERROR_DLL=libgpg-error6-0.dll
|
|
|
|
GCC_DLL=libgcc_s_seh-1.dll
|
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.
|
|
|
|
#
|
2014-10-13 19:37:01 +00:00
|
|
|
KFW_DIR=$(WIRESHARK_LIB_DIR)\kfw-3-2-2-x64-ws
|
|
|
|
COMERR_DLL=comerr64.dll
|
|
|
|
KRB5_DLL=krb5_64.dll
|
|
|
|
K5SPRT_DLL=k5sprt64.dll
|
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.
|
|
|
|
#
|
2015-05-29 08:33:58 +00:00
|
|
|
!IF "$(MSVC_VARIANT)" == "MSVC2015" || "$(MSVC_VARIANT)" == "MSVC2015CE"
|
2015-08-29 20:28:01 +00:00
|
|
|
LUA_DIST=-5.2.3_Win64_dll14
|
2015-05-29 08:33:58 +00:00
|
|
|
!ELSEIF "$(MSVC_VARIANT)" == "MSVC2013" || "$(MSVC_VARIANT)" == "MSVC2013EE"
|
2014-07-27 16:29:14 +00:00
|
|
|
LUA_DIST=-5.2.3_Win64_dll12
|
|
|
|
!ELSEIF "$(MSVC_VARIANT)" == "MSVC2012" || "$(MSVC_VARIANT)" == "MSVC2012EE"
|
2014-04-16 20:14:25 +00:00
|
|
|
LUA_DIST=-5.2.3_Win64_dll11
|
|
|
|
!ELSE
|
2014-04-06 20:01:03 +00:00
|
|
|
LUA_DIST=-5.2.3_Win64_dll10
|
2014-04-16 20:14:25 +00:00
|
|
|
!ENDIF
|
2014-04-01 02:34:47 +00:00
|
|
|
LUA_DIR=$(WIRESHARK_LIB_DIR)\lua5.2.3
|
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
|
|
|
|
#
|
2015-08-31 10:19:34 +00:00
|
|
|
GEOIP_PKG=1.6.6
|
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.
|
2014-07-01 20:18:06 +00:00
|
|
|
# The easiest way is to use the corresponding packages from Cygwin.
|
|
|
|
|
|
|
|
# Set up the path to the Cygwin binaries
|
|
|
|
# First check whether a 32-bit Cygwin installation exists
|
|
|
|
# If not, check for a 64-bit Cygwin installation
|
2015-02-12 09:03:37 +00:00
|
|
|
!IF EXIST($(CYGWIN_PATH))
|
|
|
|
# Do nothing
|
|
|
|
!ELSE IF EXIST(C:\cygwin\bin)
|
2014-07-01 20:18:06 +00:00
|
|
|
CYGWIN_PATH=C:\cygwin\bin
|
|
|
|
!ELSE IF EXIST(C:\cygwin64\bin)
|
2014-07-01 02:54:46 +00:00
|
|
|
CYGWIN_PATH=C:\cygwin64\bin
|
2015-01-30 18:54:12 +00:00
|
|
|
!ELSE IF EXIST(C:\tools\cygwin\bin)
|
|
|
|
# Chocolatey default
|
|
|
|
CYGWIN_PATH=C:\tools\cygwin\bin
|
2014-07-01 02:54:46 +00:00
|
|
|
!ELSE
|
|
|
|
!ERROR Could not locate Cygwin, please set CYGWIN_PATH explicitly in config.nmake
|
|
|
|
!ENDIF
|
|
|
|
|
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)
|
|
|
|
|
2014-08-08 00:30:45 +00:00
|
|
|
# PowerShell
|
2014-08-15 15:59:02 +00:00
|
|
|
# Compatibility testing (...or should we always force version 2?)
|
|
|
|
#POWERSHELL=powershell -Version 2.0 -executionpolicy bypass -File
|
|
|
|
# Normal
|
2014-08-08 00:30:45 +00:00
|
|
|
POWERSHELL=powershell -executionpolicy bypass -File
|
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-08-08 18:20:53 +00:00
|
|
|
# Command for Flex. Cygwin's flex or Chocolatey's win_flex
|
2014-01-16 01:28:02 +00:00
|
|
|
# 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-08-08 18:20:53 +00:00
|
|
|
#LEX=\custom\path\to\flex
|
|
|
|
|
|
|
|
# Find flex automatically
|
|
|
|
!IF !DEFINED(LEX)
|
|
|
|
!IF DEFINED(CHOCOLATEYINSTALL) && EXIST("$(CHOCOLATEYINSTALL)\bin\win_flex.exe")
|
|
|
|
LEX=$(CHOCOLATEYINSTALL)\bin\win_flex
|
|
|
|
!ELSE IF EXIST("$(CYGWIN_PATH)\flex.exe")
|
|
|
|
# We add Cygwin to PATH below.
|
2000-04-29 07:35:07 +00:00
|
|
|
LEX=flex
|
2014-08-08 18:20:53 +00:00
|
|
|
!ENDIF
|
|
|
|
!ENDIF
|
2004-09-02 18:23:23 +00:00
|
|
|
|
2014-08-08 18:20:53 +00:00
|
|
|
# Command for Bison. Cygwin's bison or Chocolatey's win_bison
|
2014-01-16 01:28:02 +00:00
|
|
|
# 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-08-08 18:20:53 +00:00
|
|
|
#YACC=\custom\path\to\bison
|
|
|
|
|
|
|
|
# Find bison automatically
|
|
|
|
!IF !DEFINED(YACC)
|
|
|
|
!IF DEFINED(CHOCOLATEYINSTALL) && EXIST("$(CHOCOLATEYINSTALL)\bin\win_bison.exe")
|
|
|
|
YACC=$(CHOCOLATEYINSTALL)\bin\win_bison
|
|
|
|
!ELSE IF EXIST("$(CYGWIN_PATH)\bison.exe")
|
|
|
|
# We add Cygwin to PATH below.
|
2000-04-29 07:35:07 +00:00
|
|
|
YACC=bison
|
2014-08-08 18:20:53 +00:00
|
|
|
!ENDIF
|
|
|
|
!ENDIF
|
2000-10-14 04:31:26 +00:00
|
|
|
|
2014-08-08 00:30:45 +00:00
|
|
|
# Make our text files Windows-native
|
|
|
|
TEXTIFY=$(POWERSHELL) $(TOOLS_DIR)/textify.ps1
|
2010-04-09 21:42:51 +00:00
|
|
|
|
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"
|
2015-01-19 14:24:47 +00:00
|
|
|
!ELSE IF EXIST("\Program Files (x86)\NSIS\makensis.exe")
|
|
|
|
MAKENSIS="\Program Files (x86)\NSIS\makensis.exe"
|
2013-08-23 22:18:49 +00:00
|
|
|
!ENDIF
|
|
|
|
!ENDIF
|
2010-12-29 20:41:53 +00:00
|
|
|
|
|
|
|
#
|
2014-09-02 19:18:20 +00:00
|
|
|
# Optional: Build the PortableApps package (WiresharkPortable).
|
2010-12-29 20:41:53 +00:00
|
|
|
#
|
2014-09-02 19:18:20 +00:00
|
|
|
# If you have the PortableApps.com Platform installed set this to the main
|
|
|
|
# PortableApps directory. In order to build packages you need to install
|
|
|
|
# "PortableApps.com Launcher" and "NSIS Portable (Unicode)" *within* the
|
|
|
|
# PortableApps environment.
|
2010-12-29 20:41:53 +00:00
|
|
|
#
|
2014-09-02 19:18:20 +00:00
|
|
|
# If you don't have the PortableApps.com Platform installed comment this line
|
|
|
|
# out.
|
2010-12-29 20:41:53 +00:00
|
|
|
#
|
2014-09-02 19:18:20 +00:00
|
|
|
PORTABLEAPPS_DIR="C:\PortableApps"
|
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
|
|
|
#
|
2014-09-02 19:18:20 +00:00
|
|
|
# Optional: To reduce the size of dlls and exes, which is especially useful for
|
|
|
|
# USB device distributions (PortableApps)
|
2007-11-18 10:20:26 +00:00
|
|
|
#
|
|
|
|
# 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 #####
|
|
|
|
|
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
|
2015-05-29 08:33:58 +00:00
|
|
|
!ELSEIF "$(MSVC_VARIANT)" == "MSVC2015" || "$(MSVC_VARIANT)" == "MSVC2015CE"
|
|
|
|
MSC_VER_REQUIRED=1900
|
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.
|
|
|
|
# /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
|
2014-09-27 08:37:11 +00:00
|
|
|
# /O2 http://msdn.microsoft.com/en-us/library/8f8h5cxt.aspx
|
2014-06-04 14:27:44 +00:00
|
|
|
# Specifying the /O2 compiler option is the same as using the following options:
|
2014-06-03 14:40:44 +00:00
|
|
|
# /Ob (Inline Function Expansion), where the option parameter is 2 (/Ob2)
|
|
|
|
# /Og (Global Optimizations)
|
|
|
|
# /Oi (Generate Intrinsic Functions)
|
|
|
|
# /Ot (Favor Fast Code)
|
|
|
|
# /Oy (Frame-Pointer Omission)
|
2014-07-28 15:50:49 +00:00
|
|
|
# /Gs (Control Stack Checking Calls))
|
2014-06-04 14:27:44 +00:00
|
|
|
# /GF (Eliminate Duplicate Strings)
|
|
|
|
# /Gy (Enable Function-Level Linking)
|
2014-09-27 08:37:11 +00:00
|
|
|
# /Zo Output debug info allowing debuggers to display local values and trace into inline
|
|
|
|
# functions. For VS2013 Update 3. Assume all VS2013 builds are at least Update 3.
|
|
|
|
# See http://msdn.microsoft.com/en-us/library/dn785163.aspx
|
2015-08-13 16:02:33 +00:00
|
|
|
# VS2015: On by default when /Zi or /Z7 used.
|
2014-06-03 14:40:44 +00:00
|
|
|
|
2015-11-11 12:57:49 +00:00
|
|
|
!IF DEFINED(DEBUG)
|
|
|
|
DEBUG_CFLAGS=/Od
|
|
|
|
!ELSE
|
|
|
|
DEBUG_CFLAGS=/O2
|
|
|
|
!ENDIF
|
|
|
|
|
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" || \
|
2015-05-29 08:33:58 +00:00
|
|
|
"$(MSVC_VARIANT)" == "MSVC2013EE" || \
|
|
|
|
"$(MSVC_VARIANT)" == "MSVC2015" || \
|
|
|
|
"$(MSVC_VARIANT)" == "MSVC2015CE"
|
2015-11-11 12:57:49 +00:00
|
|
|
LOCAL_CFLAGS=/Zi /W3 /MD $(DEBUG_CFLAGS) /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" || \
|
2015-05-29 08:33:58 +00:00
|
|
|
"$(MSVC_VARIANT)" == "MSVC2013EE" || \
|
|
|
|
"$(MSVC_VARIANT)" == "MSVC2015" || \
|
|
|
|
"$(MSVC_VARIANT)" == "MSVC2015CE"
|
2014-02-01 16:46:50 +00:00
|
|
|
LOCAL_CFLAGS=$(LOCAL_CFLAGS) /D_ALLOW_KEYWORD_MACROS
|
|
|
|
!ENDIF
|
|
|
|
|
2013-11-05 21:49:57 +00:00
|
|
|
!IF "$(MSVC_VARIANT)" == "MSVC2013" || \
|
2015-05-29 08:33:58 +00:00
|
|
|
"$(MSVC_VARIANT)" == "MSVC2013EE" || \
|
|
|
|
"$(MSVC_VARIANT)" == "MSVC2015" || \
|
|
|
|
"$(MSVC_VARIANT)" == "MSVC2015CE"
|
2014-09-27 08:37:11 +00:00
|
|
|
LOCAL_CFLAGS=$(LOCAL_CFLAGS) /DBUILD_WINDOWS /Zo
|
2013-11-05 21:49:57 +00:00
|
|
|
!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
|
2014-08-20 12:31:19 +00:00
|
|
|
## 4189: local variable is initialized but not referenced
|
|
|
|
WARNINGS_CFLAGS=/w34295 /w34189
|
2011-02-02 01:19:53 +00:00
|
|
|
|
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" || \
|
2015-05-29 08:33:58 +00:00
|
|
|
"$(MSVC_VARIANT)" == "MSVC2013EE" || \
|
|
|
|
"$(MSVC_VARIANT)" == "MSVC2015" || \
|
|
|
|
"$(MSVC_VARIANT)" == "MSVC2015CE"
|
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
|
|
|
|
2014-07-28 15:50:49 +00:00
|
|
|
## Do *not* redefine LOCAL_CFLAGS below this point !!
|
|
|
|
|
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
|
|
|
|
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
|
2014-09-27 08:37:11 +00:00
|
|
|
# /RELEASE set the checksum in the header, stops debugger complaints
|
2008-03-20 00:30:47 +00:00
|
|
|
#
|
2014-09-27 08:37:11 +00:00
|
|
|
LOCAL_LDFLAGS=/DEBUG /MACHINE:$(TARGET_MACHINE) /RELEASE
|
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
|
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
|
2014-07-28 15:50:49 +00:00
|
|
|
INSTALL_DIR_QT=wireshark-qt-release
|
2006-09-23 01:39:07 +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.
|
|
|
|
#
|
2015-02-27 05:31:32 +00:00
|
|
|
MSVCR_DLL=$(VCINSTALLDIR)\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.
|
|
|
|
#
|
2015-02-27 05:31:32 +00:00
|
|
|
MSVCR_DLL=$(VCINSTALLDIR)\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
|
2015-02-27 05:31:32 +00:00
|
|
|
|
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.
|
|
|
|
#
|
2015-02-27 05:31:32 +00:00
|
|
|
MSVCR_DLL=$(VCINSTALLDIR)\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.
|
|
|
|
#
|
2015-02-27 05:31:32 +00:00
|
|
|
MSVCR_DLL=$(VCINSTALLDIR)\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.
|
|
|
|
#
|
2015-02-27 05:31:32 +00:00
|
|
|
MSVCR_DLL=$(VCINSTALLDIR)\redist\$(TARGET_MACHINE)\Microsoft.VC120.CRT\*.*
|
2015-05-29 08:33:58 +00:00
|
|
|
!ELSEIF "$(MSVC_VARIANT)" == "MSVC2015" || "$(MSVC_VARIANT)" == "MSVC2015CE"
|
|
|
|
#
|
|
|
|
# For MSVC 2015, we "Install a particular Visual C++
|
|
|
|
# assembly as a private assembly for the application", by copying
|
|
|
|
# the contents of the Microsoft.VC140.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=$(VCINSTALLDIR)\redist\$(TARGET_MACHINE)\Microsoft.VC140.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
|
2014-08-24 18:06:56 +00:00
|
|
|
|
|
|
|
!IF EXIST(docbook\fop-1.1\fop.bat)
|
|
|
|
FOP=fop-1.1\fop.bat
|
|
|
|
!ELSE IF EXIST($(WIRESHARK_LIB_DIR)\fop-1.1\fop.bat)
|
|
|
|
FOP=$(WIRESHARK_LIB_DIR)\fop-1.1\fop.bat
|
|
|
|
!ELSE IF EXIST(docbook\fop-1.0\fop.bat)
|
2011-05-19 19:03:22 +00:00
|
|
|
FOP=fop-1.0\fop.bat
|
2014-08-24 18:06:56 +00:00
|
|
|
!ELSE IF EXIST($(WIRESHARK_LIB_DIR)\fop-1.0\fop.bat)
|
|
|
|
FOP=$(WIRESHARK_LIB_DIR)\fop-1.0\fop.bat
|
2007-02-03 04:06:43 +00:00
|
|
|
!ENDIF
|
|
|
|
|
2014-08-24 18:06:56 +00:00
|
|
|
!ENDIF FOP
|
|
|
|
|
2007-02-03 04:06:43 +00:00
|
|
|
# Additional options to fop.
|
|
|
|
FOP_OPTS=-Xmx256m
|
|
|
|
|
|
|
|
# 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
|
2003-08-04 08:10:33 +00:00
|
|
|
|
2014-08-28 23:48:53 +00:00
|
|
|
PROGRAM_NAME_GTK=$(PROGRAM_NAME)-gtk
|
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
|
|
|
|
2014-05-16 16:21:57 +00:00
|
|
|
!IFDEF HARFBUZZ_DLL
|
|
|
|
NEED_HARFBUZZ_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
|
2014-05-16 16:21:57 +00:00
|
|
|
!IFDEF PNG_DLL
|
|
|
|
NEED_PNG_DLL=USE
|
|
|
|
!ENDIF
|
|
|
|
!IFDEF SEH_DLL
|
|
|
|
NEED_SEH_DLL=USE
|
|
|
|
!ENDIF
|
|
|
|
!IFDEF SJLJ_DLL
|
|
|
|
NEED_SJLJ_DLL=USE
|
|
|
|
!ENDIF
|
2010-02-15 20:57:50 +00:00
|
|
|
!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:
|
2012-05-14 17:54:47 +00:00
|
|
|
#NEED_EXPAT_DLL=USE
|
|
|
|
NEED_FFI_DLL=USE
|
2014-05-16 16:21:57 +00:00
|
|
|
NEED_FONTCONFIG_DLL=USE
|
|
|
|
NEED_FREETYPE_DLL=USE
|
2012-05-14 17:54:47 +00:00
|
|
|
NEED_JASPER_DLL=USE
|
|
|
|
NEED_JPEG_DLL=USE
|
|
|
|
NEED_LZMA_DLL=USE
|
2014-05-16 16:21:57 +00:00
|
|
|
NEED_PIXMAN_DLL=USE
|
|
|
|
NEED_XML_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
|
2014-10-13 19:37:01 +00:00
|
|
|
## and -DGDK_DISABLE_DEPRECATION_WARNINGS must
|
2013-12-21 19:12:04 +00:00
|
|
|
## 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
|
2014-05-16 16:21:57 +00:00
|
|
|
!IFDEF HARFBUZZ_DLL
|
|
|
|
NEED_HARFBUZZ_DLL=USE
|
|
|
|
!ENDIF
|
2012-04-21 08:45:52 +00:00
|
|
|
!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
|
2014-05-16 16:21:57 +00:00
|
|
|
!IFDEF SEH_DLL
|
|
|
|
NEED_SEH_DLL=USE
|
|
|
|
!ENDIF
|
|
|
|
!IFDEF SJLJ_DLL
|
|
|
|
NEED_SJLJ_DLL=USE
|
|
|
|
!ENDIF
|
2012-04-21 08:45:52 +00:00
|
|
|
!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
|
2016-01-04 12:22:40 +00:00
|
|
|
#PCAP_OPEN_CONFIG=^#define HAVE_PCAP_OPEN 1
|
|
|
|
#Do not set, experimental. No interfaces shown if set. dumpcap.c needs changes.
|
|
|
|
PCAP_CREATE_CONFIG=^#define HAVE_PCAP_CREATE 1
|
2007-12-04 11:19:29 +00:00
|
|
|
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)
|
2015-04-06 17:31:51 +00:00
|
|
|
ZLIB_CFLAGS=/I$(ZLIB_DIR)
|
2003-12-01 17:17:51 +00:00
|
|
|
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
|
2014-10-13 19:37:01 +00:00
|
|
|
!IF "$(WIRESHARK_TARGET_PLATFORM)" == "win32"
|
2010-01-19 22:58:12 +00:00
|
|
|
KFW_LIBS=$(KFW_DIR)\lib\krb5_32.lib
|
2014-10-13 19:37:01 +00:00
|
|
|
!ELSE
|
|
|
|
KFW_LIBS=$(KFW_DIR)\lib\krb5_64.lib
|
|
|
|
!ENDIF
|
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
|
|
|
|
|
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
|
2014-06-04 17:17:44 +00:00
|
|
|
GCRYPT_LIBS = $(GNUTLS_DIR)\bin\libgcrypt-20.lib
|
2006-08-09 02:00:05 +00:00
|
|
|
GNUTLS_LIBS=\
|
2014-06-04 17:17:44 +00:00
|
|
|
$(GNUTLS_DIR)\bin\libtasn1-6.lib \
|
|
|
|
!IF "$(WIRESHARK_TARGET_PLATFORM)" == "win32"
|
2006-08-09 02:00:05 +00:00
|
|
|
$(GNUTLS_DIR)\bin\libgpg-error-0.lib \
|
2014-06-04 17:17:44 +00:00
|
|
|
!ELSE
|
|
|
|
$(GNUTLS_DIR)\bin\libgpg-error6-0.lib \
|
|
|
|
!ENDIF
|
2009-12-08 00:13:57 +00:00
|
|
|
$(GCRYPT_LIBS) \
|
2014-06-04 17:17:44 +00:00
|
|
|
$(GNUTLS_DIR)\bin\libgnutls-28.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
|
|
|
|
|
2015-11-19 10:30:44 +00:00
|
|
|
!IFDEF LIBSSH_DIR
|
|
|
|
LIBSSH_CFLAGS=/I$(LIBSSH_DIR)\include
|
|
|
|
LIBSSH_LIBS=$(LIBSSH_DIR)\lib\ssh.lib
|
|
|
|
# Nmake uses carets to escape special characters
|
|
|
|
LIBSSH_CONFIG=^#define HAVE_LIBSSH 1
|
|
|
|
LIBSSH_VERSION=^#define HAVE_LIBSSH 1
|
|
|
|
!else
|
|
|
|
LIBSSH_CFLAGS=
|
|
|
|
LIBSSH_LIBS=
|
|
|
|
LIBSSH_CONFIG=
|
|
|
|
!ENDIF
|
|
|
|
|
2006-02-07 09:12:43 +00:00
|
|
|
!IFDEF LUA_DIR
|
|
|
|
LUA_CFLAGS=/I$(LUA_DIR)\include
|
2014-03-29 09:00:33 +00:00
|
|
|
LUA_LIBS=$(LUA_DIR)\lua52.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
|
|
|
|
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
|
2014-07-25 02:28:48 +00:00
|
|
|
PATH=$(PATH);$(HHC_DIR)
|
|
|
|
HHC_EXE=hhc.exe
|
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
|
|
|
!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
|
|
|
!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
|
|
|
|
!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
|
|
|
|
2009-05-08 19:53:41 +00:00
|
|
|
NTDDNDIS_CONFIG=^#define HAVE_NTDDNDIS_H 1
|