2004-07-18 00:24:25 +00:00
|
|
|
# $Id$
|
2001-03-09 03:43:58 +00:00
|
|
|
|
2010-04-09 21:42:51 +00:00
|
|
|
# Some more information about the settings in this file can be found in
|
|
|
|
# the file README.windows and the Developer's Guide (available online).
|
2006-08-31 01:50:11 +00:00
|
|
|
|
2008-08-14 23:56:57 +00:00
|
|
|
##### Target platform #####
|
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
|
2010-10-20 20:49:30 +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
|
|
|
|
2006-05-29 18:44:53 +00:00
|
|
|
# The current Wireshark version
|
2006-08-31 01:50:11 +00:00
|
|
|
# It's highly recommended to leave MAJOR/MINOR/MICRO unchanged
|
2008-03-17 23:01:20 +00:00
|
|
|
VERSION_MAJOR=1
|
2010-06-07 16:43:09 +00:00
|
|
|
VERSION_MINOR=5
|
|
|
|
VERSION_MICRO=0
|
2008-02-18 18:08:14 +00:00
|
|
|
VERSION_BUILD=0
|
2006-08-31 01:50:11 +00:00
|
|
|
# It's recommended to change VERSION_EXTRA for your own custom builds
|
|
|
|
# e.g. "-SVN-12345"
|
2006-12-26 20:20:52 +00:00
|
|
|
VERSION_EXTRA=
|
2004-09-02 18:23:23 +00:00
|
|
|
|
2006-08-31 01:50:11 +00:00
|
|
|
# The version of the wiretap library (recommended: leave unchanged)
|
|
|
|
WTAP_VERSION_MAJOR=0
|
|
|
|
WTAP_VERSION_MINOR=3
|
2006-11-05 22:46:44 +00:00
|
|
|
WTAP_VERSION_MICRO=1
|
2004-09-02 18:23:23 +00:00
|
|
|
|
2000-02-09 00:41:57 +00:00
|
|
|
|
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.
|
|
|
|
#
|
2009-03-11 16:13:17 +00:00
|
|
|
WIRESHARK_LIBS=C:\wireshark-$(WIRESHARK_TARGET_PLATFORM)-libs
|
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)
|
2007-01-05 04:58:52 +00:00
|
|
|
|
2008-12-17 21:11:20 +00:00
|
|
|
#
|
|
|
|
# Location of the "tools" directory. This affects HTML2TXT below and should
|
|
|
|
# be overridden by makefiles in any subdirectories that use HTML2TXT.
|
|
|
|
!IFNDEF TOOLS_DIR
|
|
|
|
TOOLS_DIR=tools
|
|
|
|
!ENDIF
|
|
|
|
|
2008-08-14 23:56:57 +00:00
|
|
|
#
|
|
|
|
# Machine type for the compiler and linker
|
|
|
|
# TARGET_MACHINE (Used for link /MACHINE) should be one of "X86" or "X64"
|
|
|
|
# (sorry ARM, Alpha, MIPS, and Itanium fans).
|
|
|
|
# CPU (Used by win32.mak) should be one of "i386" or "AMD64".
|
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
|
2009-04-17 19:02:56 +00:00
|
|
|
VCREDIST_DLL=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
|
2009-04-17 19:02:56 +00:00
|
|
|
VCREDIST_DLL=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 #####
|
|
|
|
# for the different Studios, see: http://en.wikipedia.org/wiki/Microsoft_Visual_Studio
|
|
|
|
# only one of the following MSVC_VARIANT settings should be used
|
2007-01-10 21:45:19 +00:00
|
|
|
# BTW: The "Microsoft Visual C++ Toolkit 2003" DOESN'T WORK for WS!
|
2007-01-03 02:53:30 +00:00
|
|
|
|
2007-09-05 23:03:58 +00:00
|
|
|
# "Microsoft Visual Studio 6.0"
|
2007-01-03 02:53:30 +00:00
|
|
|
# Visual C++ 6.0, _MSC_VER 1200, msvcrt.dll (version 6)
|
2008-08-05 17:02:30 +00:00
|
|
|
#MSVC_VARIANT=MSVC6
|
2007-01-03 02:53:30 +00:00
|
|
|
|
2007-09-05 23:03:58 +00:00
|
|
|
# "Microsoft Visual Studio .NET (2002)"
|
2007-01-03 02:53:30 +00:00
|
|
|
# Visual C++ 7.0, _MSC_VER 1300, msvcr70.dll
|
|
|
|
#MSVC_VARIANT=MSVC2002
|
|
|
|
|
2007-09-05 23:03:58 +00:00
|
|
|
# "Microsoft .Net Framework SDK Version 1.0"
|
2007-01-11 07:53:01 +00:00
|
|
|
# needs additional Platform SDK installation
|
|
|
|
# Visual C++ 7.0, _MSC_VER 1300, msvcr70.dll
|
|
|
|
#MSVC_VARIANT=DOTNET10
|
|
|
|
|
2007-09-05 23:03:58 +00:00
|
|
|
# "Microsoft Visual Studio .NET 2003"
|
2007-01-03 02:53:30 +00:00
|
|
|
# Visual C++ 7.1, _MSC_VER 1310, msvcr71.dll
|
|
|
|
#MSVC_VARIANT=MSVC2003
|
|
|
|
|
2007-09-05 23:03:58 +00:00
|
|
|
# "Microsoft .Net Framework SDK Version 1.1"
|
2007-01-03 02:53:30 +00:00
|
|
|
# needs additional Platform SDK installation
|
|
|
|
# Visual C++ 7.1, _MSC_VER 1310, msvcr71.dll
|
2007-01-10 21:45:19 +00:00
|
|
|
#MSVC_VARIANT=DOTNET11
|
2007-01-03 02:53:30 +00:00
|
|
|
|
2007-09-05 23:03:58 +00:00
|
|
|
# "Microsoft Visual Studio 2005"
|
2007-01-13 00:59:39 +00:00
|
|
|
# Visual C++ 8.0, _MSC_VER 1400, msvcr80.dll
|
2007-01-13 04:28:26 +00:00
|
|
|
#MSVC_VARIANT=MSVC2005
|
2007-01-13 00:59:39 +00:00
|
|
|
|
2007-09-05 23:03:58 +00:00
|
|
|
# "Microsoft Visual C++ 2005 Express Edition"
|
2007-01-13 00:59:39 +00:00
|
|
|
# needs additional Platform SDK installation
|
2007-01-03 02:53:30 +00:00
|
|
|
# Visual C++ 8.0, _MSC_VER 1400, msvcr80.dll
|
2007-01-13 00:59:39 +00:00
|
|
|
#MSVC_VARIANT=MSVC2005EE
|
2007-01-03 02:53:30 +00:00
|
|
|
|
2007-09-05 23:03:58 +00:00
|
|
|
# "Microsoft .Net Framework 2.0 SDK"
|
2007-01-06 01:05:59 +00:00
|
|
|
# needs additional Platform SDK installation
|
|
|
|
# Visual C++ 8.0, _MSC_VER 1400, msvcr80.dll
|
2007-01-10 21:45:19 +00:00
|
|
|
#MSVC_VARIANT=DOTNET20
|
2007-01-06 01:05:59 +00:00
|
|
|
|
2008-08-04 23:05:32 +00:00
|
|
|
# "Microsoft Visual Studio 2008"
|
|
|
|
# Visual C++ 9.0, _MSC_VER 1500, msvcr90.dll
|
2008-08-05 17:02:30 +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
|
|
|
|
#MSVC_VARIANT=MSVC2010
|
|
|
|
|
|
|
|
# "Microsoft Visual C++ 2010 Express Edition"
|
|
|
|
# Visual C++ 10.0, _MSC_VER 1600, msvcr100.dll
|
|
|
|
#MSVC_VARIANT=MSVC2010EE
|
|
|
|
|
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.
|
|
|
|
#
|
2008-05-12 19:13:55 +00:00
|
|
|
NASM=$(WIRESHARK_LIBS)\nasm-2.02\nasm.exe
|
2007-01-03 22:09:15 +00:00
|
|
|
|
2010-06-01 22:20:15 +00:00
|
|
|
#
|
|
|
|
# Optional: the Python library enables scripting support.
|
|
|
|
#
|
|
|
|
# If you don't have the Python library, comment this line out, so that
|
|
|
|
# PYTHON_EMBED isn't defined.
|
|
|
|
#
|
|
|
|
# NOTE: The Python library must have been compiled with the same
|
|
|
|
# compiler (MSVC_VARIANT) as Wireshark. Kown python.org Python
|
|
|
|
# CRT versions:
|
|
|
|
#
|
|
|
|
# Python version CRT (32-bit) CRT (64-bit)
|
|
|
|
# 2.4.4 7.1 ?
|
|
|
|
# 2.6.1 9.0 ?
|
|
|
|
# 2.6.2 9.0
|
|
|
|
#
|
|
|
|
# If you versions of Python and Visual C++ use different CRTs
|
|
|
|
# comment this out.
|
|
|
|
#
|
2010-08-25 20:30:59 +00:00
|
|
|
# XXX The DLL path in epan/wspython/wspy_libws.py likely needs to
|
|
|
|
# be fixed before this is enabled by default.
|
2010-06-01 22:20:15 +00:00
|
|
|
#PYTHON_EMBED=1
|
|
|
|
|
|
|
|
#
|
|
|
|
# Optional: the Python interpreter is used as part of the buildsystem
|
|
|
|
#
|
2010-09-24 23:50:38 +00:00
|
|
|
# This will override the automatic detection below.
|
|
|
|
#PYTHON_VER=27
|
|
|
|
#PYTHON_DIR=C:\Python$(PYTHON_VER)
|
|
|
|
|
2010-06-01 22:20:15 +00:00
|
|
|
#
|
2010-09-24 23:50:38 +00:00
|
|
|
# If you don't have the native Python package installed, you can use
|
|
|
|
# the Cygwin version (not recommended)
|
2010-06-01 22:20:15 +00:00
|
|
|
#
|
2010-09-24 23:50:38 +00:00
|
|
|
#PYTHON=env python
|
|
|
|
|
2010-10-28 16:29:39 +00:00
|
|
|
# Santity check: native vs Cygwin Python options
|
|
|
|
!IF DEFINED(PYTHON) && DEFINED(PYTHON_DIR)
|
|
|
|
!ERROR PYTHON and PYTHON_DIR cannot be specified at the same time
|
|
|
|
!ENDIF
|
|
|
|
|
2010-09-24 23:50:38 +00:00
|
|
|
# Find native Python automatically if PYTHON(_DIR) wasn't defined
|
|
|
|
!IF !DEFINED(PYTHON) && !DEFINED(PYTHON_DIR)
|
|
|
|
!IF EXIST(c:\Python27\python.exe)
|
|
|
|
PYTHON_VER=27
|
|
|
|
!ELSE IF EXIST(c:\Python26\python.exe)
|
|
|
|
PYTHON_VER=26
|
|
|
|
!ELSE IF EXIST(c:\Python25\python.exe)
|
|
|
|
PYTHON_VER=25
|
|
|
|
!ELSE IF EXIST(c:\Python24\python.exe)
|
|
|
|
PYTHON_VER=24
|
|
|
|
!ENDIF
|
2010-06-01 22:20:15 +00:00
|
|
|
|
2010-09-24 23:50:38 +00:00
|
|
|
!IF DEFINED(PYTHON_VER)
|
|
|
|
PYTHON_DIR=C:\Python$(PYTHON_VER)
|
|
|
|
!ENDIF
|
2010-10-28 16:29:39 +00:00
|
|
|
!ENDIF
|
2010-09-24 23:50:38 +00:00
|
|
|
|
|
|
|
!IF DEFINED(PYTHON_DIR)
|
|
|
|
PYTHON="$(PYTHON_DIR)\python.exe"
|
|
|
|
PATH=$(PYTHON_DIR);$(PATH)
|
|
|
|
!ENDIF
|
2007-11-30 22:01:05 +00:00
|
|
|
|
2009-03-11 16:13:17 +00:00
|
|
|
!if "$(WIRESHARK_TARGET_PLATFORM)" == "win32"
|
2009-03-07 01:06:40 +00:00
|
|
|
##### Win32 Libraries #####
|
2006-08-31 01:50:11 +00:00
|
|
|
#
|
|
|
|
# Mandatory: GLib settings
|
2003-11-11 18:25:04 +00:00
|
|
|
#
|
2008-04-09 03:48:16 +00:00
|
|
|
# Please note: Since Wireshark release 1.0.0, we no longer support GLib1.x
|
2003-11-11 18:25:04 +00:00
|
|
|
#
|
2003-08-04 14:34:17 +00:00
|
|
|
GLIB_VERSION=2.0
|
2000-02-09 00:41:57 +00:00
|
|
|
|
2010-08-05 19:11:35 +00:00
|
|
|
##### To use the old packet list comment out this line ####
|
2009-09-17 08:29:10 +00:00
|
|
|
NEW_PACKET_LIST_CONFIG=^#define NEW_PACKET_LIST 1
|
2009-07-01 08:23:32 +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
|
|
|
#
|
2008-04-09 03:48:16 +00:00
|
|
|
GTK_DIR=$(WIRESHARK_LIBS)\gtk2
|
2009-08-28 15:59:20 +00:00
|
|
|
# These macros are used by the nsis installer script and by the install target.
|
2010-02-15 20:57:50 +00:00
|
|
|
PNG_DLL=libpng14-14.dll
|
2009-09-16 13:34:37 +00:00
|
|
|
FREETYPE_DLL=freetype6.dll
|
|
|
|
FONTCONFIG_DLL=libfontconfig-1.dll
|
|
|
|
EXPAT_DLL=libexpat-1.dll
|
2009-11-19 20:27:08 +00:00
|
|
|
INTL_DLL=intl.dll
|
|
|
|
# This macro is used by the setup target.
|
2010-10-05 15:46:13 +00:00
|
|
|
GTK_PKG=2.16.6-20100912
|
2010-10-20 20:41:39 +00:00
|
|
|
#GTK_PKG=2.22.0-20101016
|
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
|
|
|
#
|
2010-02-24 21:08:09 +00:00
|
|
|
GTK_INST_VERSION=2.16
|
2010-10-20 20:41:39 +00:00
|
|
|
#GTK_INST_VERSION=2.22
|
2009-08-26 07:05:50 +00:00
|
|
|
|
2003-11-07 23:27:13 +00:00
|
|
|
#
|
2006-08-31 01:50:11 +00:00
|
|
|
# Optional: WinPcap developer's pack to capture network traffic.
|
|
|
|
#
|
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.
|
|
|
|
#
|
|
|
|
PCAP_DIR=$(WIRESHARK_LIBS)\WPdpack
|
2009-08-28 15:59:20 +00:00
|
|
|
# This macro is used by the nsis installer script, by the u3/portable apps and by the setup target.
|
2010-08-25 15:27:14 +00:00
|
|
|
PCAP_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.
|
|
|
|
#
|
2007-01-08 02:40:06 +00:00
|
|
|
ZLIB_DIR=$(WIRESHARK_LIBS)\zlib123
|
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.
|
|
|
|
#
|
|
|
|
#ADNS_DIR=$(WIRESHARK_LIBS)\adns-1.0-win32-05ws
|
|
|
|
|
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
#
|
2010-03-26 18:36:27 +00:00
|
|
|
C_ARES_PKG=1.7.1
|
2000-02-09 19:18:42 +00:00
|
|
|
|
2003-12-07 00:04:32 +00:00
|
|
|
#
|
2008-03-20 00:30:47 +00:00
|
|
|
# Optional: the PCRE (Perl Compatible Regular Expressions) library
|
2006-08-31 01:50:11 +00:00
|
|
|
# enables regular expressions for display filters.
|
|
|
|
#
|
2008-03-20 00:30:47 +00:00
|
|
|
# If you have the PCRE library, set this to the directory in which
|
2006-08-31 01:50:11 +00:00
|
|
|
# the GNUWIN32 pcre-lib package is stored.
|
2003-12-07 00:04:32 +00:00
|
|
|
#
|
|
|
|
# If you don't have PCRE, comment this line out, so that PCRE_DIR
|
|
|
|
# isn't defined.
|
|
|
|
#
|
2009-12-18 01:29:56 +00:00
|
|
|
#PCRE_DIR=$(WIRESHARK_LIBS)\pcre-7.0
|
2003-12-07 00:04:32 +00:00
|
|
|
|
2006-08-31 01:50:11 +00:00
|
|
|
#
|
|
|
|
# Optional: the GNUTLS library enables ssl decryption.
|
|
|
|
#
|
2009-12-21 21:06:01 +00:00
|
|
|
# If you have the GNUTLS library, set this to the package version.
|
2006-08-31 01:50:11 +00:00
|
|
|
#
|
2009-12-21 21:06:01 +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
|
2009-12-21 21:06:01 +00:00
|
|
|
GNUTLS_PKG=2.8.5-4.12
|
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.
|
|
|
|
#
|
2010-01-19 22:58:12 +00:00
|
|
|
KFW_DIR=$(WIRESHARK_LIBS)\kfw-3-2-2-i386-ws-vc6
|
2006-08-05 04:32:57 +00:00
|
|
|
|
2004-10-15 15:36:12 +00:00
|
|
|
#
|
2006-08-31 01:50:11 +00:00
|
|
|
# Optional: the Nettle library enables ??? decryption.
|
|
|
|
#
|
2008-03-20 00:30:47 +00:00
|
|
|
# If you have the Nettle encryption library, set this to the
|
2006-08-31 01:50:11 +00:00
|
|
|
# directory in which the nettle package is stored.
|
2004-10-15 15:36:12 +00:00
|
|
|
#
|
|
|
|
# If you don't have Nettle, comment this line out, so that NETTLE_DIR
|
|
|
|
# isn't defined.
|
|
|
|
#
|
2006-05-29 18:44:53 +00:00
|
|
|
# NETTLE_DIR=$(WIRESHARK_LIBS)\nettle-1.10
|
2004-10-15 15:36:12 +00:00
|
|
|
|
2006-02-07 09:12:43 +00:00
|
|
|
#
|
2006-08-31 01:50:11 +00:00
|
|
|
# Optional: the LUA library enables scripting support.
|
|
|
|
#
|
2008-03-20 00:30:47 +00:00
|
|
|
# If you have the LUA library, set this to the directory in which
|
2006-08-31 01:50:11 +00:00
|
|
|
# the LUA package is stored.
|
2006-02-07 09:12:43 +00:00
|
|
|
#
|
|
|
|
# If you don't have LUA, comment this line out, so that LUA_DIR
|
|
|
|
# isn't defined.
|
|
|
|
#
|
2009-03-07 01:06:40 +00:00
|
|
|
LUA_DIST=5_1_4_Win32_dll6
|
2008-10-01 19:38:27 +00:00
|
|
|
LUA_DIR=$(WIRESHARK_LIBS)\lua5.1.4
|
2006-02-07 09:12:43 +00:00
|
|
|
|
2006-08-30 21:51:31 +00:00
|
|
|
#
|
2006-08-31 01:50:11 +00:00
|
|
|
# Optional: the PORTAUDIO library enables audio output for RTP streams.
|
|
|
|
#
|
2008-03-20 00:30:47 +00:00
|
|
|
# If you have the PORTAUDIO library (used for rtp_player), set this to
|
2006-08-31 01:50:11 +00:00
|
|
|
# the directory in which the PORTAUDIO library is stored.
|
2006-08-30 21:51:31 +00:00
|
|
|
#
|
2008-03-20 00:30:47 +00:00
|
|
|
# If you don't have PORTAUDIO, comment this line out, so that
|
2006-08-30 21:51:31 +00:00
|
|
|
# PORTAUDIO_DIR isn't defined.
|
|
|
|
#
|
2006-12-27 22:21:46 +00:00
|
|
|
#PORTAUDIO_DIR=$(WIRESHARK_LIBS)\portaudio_v18_1
|
2008-05-13 07:39:23 +00:00
|
|
|
PORTAUDIO_DIR=$(WIRESHARK_LIBS)\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.
|
|
|
|
#
|
2009-11-12 23:48:11 +00:00
|
|
|
AIRPCAP_DIR=$(WIRESHARK_LIBS)\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
|
|
|
|
#
|
2008-04-22 19:28:44 +00:00
|
|
|
SMI_DIR=$(WIRESHARK_LIBS)\libsmi-0.4.8
|
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
|
|
|
|
#
|
2008-12-30 20:05:58 +00:00
|
|
|
# GeoIP requires IPv6 definitions that don't ship with Visual C++ 6.0.
|
|
|
|
# However, the Microsoft Platform SDK for Windows Server 2003 R2 provides
|
|
|
|
# these definitions. The SDK's SetEnv.bat script defines INETSDK.
|
|
|
|
!IF "$(MSVC_VARIANT)" != "MSVC6" || DEFINED(INETSDK)
|
2009-12-17 22:01:13 +00:00
|
|
|
GEOIP_DIR=$(WIRESHARK_LIBS)\GeoIP-1.4.6-win32ws\libGeoIP
|
2008-12-30 18:27:34 +00:00
|
|
|
!ENDIF
|
2000-10-14 04:31:26 +00:00
|
|
|
|
2009-03-07 01:06:40 +00:00
|
|
|
!else
|
|
|
|
##### Win64 Libraries #####
|
|
|
|
#
|
|
|
|
# Mandatory: GLib settings
|
|
|
|
#
|
|
|
|
# Please note: Since Wireshark release 1.0.0, we no longer support GLib1.x
|
|
|
|
#
|
|
|
|
GLIB_VERSION=2.0
|
|
|
|
|
2010-08-05 19:11:35 +00:00
|
|
|
##### To use the old packet list comment out this line ####
|
2009-10-23 00:16:34 +00:00
|
|
|
NEW_PACKET_LIST_CONFIG=^#define NEW_PACKET_LIST 1
|
2009-07-01 11:40:24 +00:00
|
|
|
|
2009-03-07 01:06:40 +00:00
|
|
|
#
|
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.
|
|
|
|
#
|
|
|
|
GTK_DIR=$(WIRESHARK_LIBS)\gtk2
|
2009-08-28 15:59:20 +00:00
|
|
|
# These macros are used by the nsis installer script and by the install target.
|
2010-02-24 21:08:09 +00:00
|
|
|
PNG_DLL=libpng14-14.dll
|
|
|
|
#TIFF_DLL=libtiff-3.dll
|
|
|
|
#JPEG_DLL=libjpeg-7.dll
|
2009-09-17 15:33:34 +00:00
|
|
|
FREETYPE_DLL=libfreetype-6.dll
|
2009-09-17 01:18:51 +00:00
|
|
|
FONTCONFIG_DLL=libfontconfig-1.dll
|
|
|
|
EXPAT_DLL=libexpat-1.dll
|
2009-11-19 20:27:08 +00:00
|
|
|
INTL_DLL=libintl-8.dll
|
|
|
|
|
2009-08-28 15:59:20 +00:00
|
|
|
# These macros are used by the setup target.
|
2010-10-05 15:46:13 +00:00
|
|
|
GTK_PKG=2.16.6-20100912
|
2010-10-20 20:41:39 +00:00
|
|
|
#GTK_PKG=2.22.0-20101016
|
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.
|
|
|
|
#
|
2010-02-24 21:08:09 +00:00
|
|
|
GTK_INST_VERSION=2.16
|
2010-10-20 20:41:39 +00:00
|
|
|
#GTK_INST_VERSION=2.22
|
2009-08-26 07:05:50 +00:00
|
|
|
|
2009-03-07 01:06:40 +00:00
|
|
|
#
|
|
|
|
# Optional: WinPcap developer's pack to capture network traffic.
|
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
#
|
|
|
|
PCAP_DIR=$(WIRESHARK_LIBS)\WPdpack
|
2009-08-28 15:59:20 +00:00
|
|
|
# This macro is used by the nsis installer script, by the u3/portable apps and by the setup target.
|
2010-08-25 18:20:56 +00:00
|
|
|
PCAP_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.
|
|
|
|
#
|
|
|
|
ZLIB_DIR=$(WIRESHARK_LIBS)\zlib123
|
|
|
|
|
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
#
|
|
|
|
#ADNS_DIR=$(WIRESHARK_LIBS)\adns-1.0-win32-05ws
|
|
|
|
|
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
#
|
2010-03-26 18:36:27 +00:00
|
|
|
C_ARES_PKG=1.7.1
|
2009-03-07 01:06:40 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Optional: the PCRE (Perl Compatible Regular Expressions) library
|
|
|
|
# enables regular expressions for display filters.
|
|
|
|
#
|
|
|
|
# If you have the PCRE library, set this to the directory in which
|
|
|
|
# the GNUWIN32 pcre-lib package is stored.
|
|
|
|
#
|
|
|
|
# If you don't have PCRE, comment this line out, so that PCRE_DIR
|
|
|
|
# isn't defined.
|
|
|
|
#
|
|
|
|
#PCRE_DIR=$(WIRESHARK_LIBS)\pcre-7.0
|
|
|
|
|
|
|
|
#
|
|
|
|
# Optional: the GNUTLS library enables ssl decryption.
|
|
|
|
#
|
2009-12-21 21:06:01 +00:00
|
|
|
# If you have the GNUTLS library, set this to the package version.
|
2009-03-07 01:06:40 +00:00
|
|
|
#
|
2009-12-21 21:06:01 +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
|
2009-12-21 21:06:01 +00:00
|
|
|
GNUTLS_PKG=2.8.5-3.16
|
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.
|
|
|
|
#
|
2009-06-10 01:30:49 +00:00
|
|
|
#KFW_DIR=$(WIRESHARK_LIBS)\kfw-3.2.2-ws1
|
2009-03-07 01:06:40 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Optional: the Nettle library enables ??? decryption.
|
|
|
|
#
|
|
|
|
# If you have the Nettle encryption library, set this to the
|
|
|
|
# directory in which the nettle package is stored.
|
|
|
|
#
|
|
|
|
# If you don't have Nettle, comment this line out, so that NETTLE_DIR
|
|
|
|
# isn't defined.
|
|
|
|
#
|
|
|
|
# NETTLE_DIR=$(WIRESHARK_LIBS)\nettle-1.10
|
|
|
|
|
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
#
|
|
|
|
LUA_DIST=5_1_4_Win64_dll9
|
2009-03-18 17:05:41 +00:00
|
|
|
LUA_DIR=$(WIRESHARK_LIBS)\lua5.1.4
|
2009-03-07 01:06:40 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Optional: the PORTAUDIO library enables audio output for RTP streams.
|
|
|
|
#
|
|
|
|
# If you have the PORTAUDIO library (used for rtp_player), set this to
|
|
|
|
# the directory in which the PORTAUDIO library is stored.
|
|
|
|
#
|
|
|
|
# If you don't have PORTAUDIO, comment this line out, so that
|
|
|
|
# PORTAUDIO_DIR isn't defined.
|
|
|
|
#
|
|
|
|
#PORTAUDIO_DIR=$(WIRESHARK_LIBS)\portaudio_v18_1
|
|
|
|
PORTAUDIO_DIR=$(WIRESHARK_LIBS)\portaudio_v19_2
|
|
|
|
|
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
#
|
2009-11-12 23:48:11 +00:00
|
|
|
AIRPCAP_DIR=$(WIRESHARK_LIBS)\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
|
|
|
|
#
|
|
|
|
#SMI_DIR=$(WIRESHARK_LIBS)\libsmi-0.4.8
|
|
|
|
|
|
|
|
#
|
|
|
|
# Optional: GeoIP, IP address database lookups
|
|
|
|
#
|
|
|
|
# Used to map IP addresses to MaxMind GeoIP database entries
|
|
|
|
#
|
2009-12-17 22:01:13 +00:00
|
|
|
GEOIP_DIR=$(WIRESHARK_LIBS)\GeoIP-1.4.6-win64ws\libGeoIP
|
2009-03-07 01:06:40 +00:00
|
|
|
|
|
|
|
!endif
|
|
|
|
|
2006-08-31 01:50:11 +00:00
|
|
|
##### Tools #####
|
2004-09-02 18:23:23 +00:00
|
|
|
|
2006-08-31 01:50:11 +00:00
|
|
|
# Set the following mandatory commands to find the tools.
|
2004-09-02 18:23:23 +00:00
|
|
|
# The easiest way is to use the corresponding packages from cygwin.
|
|
|
|
|
2006-12-26 22:40:49 +00:00
|
|
|
# Set up the path to the cygwin binaries
|
|
|
|
CYGWIN_PATH=c:\cygwin\bin
|
|
|
|
|
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
|
2008-03-20 00:30:47 +00:00
|
|
|
# process scripts in windows 'native format' (dos crlf format).
|
2006-12-04 05:41:53 +00:00
|
|
|
# The following !IF results in the option being used only if it is available
|
|
|
|
# since using it on bash version 3.1.6 (or earlier) is not required and
|
|
|
|
# will cause an error message.
|
2006-12-26 22:40:49 +00:00
|
|
|
!if "$(SH_PROG)"=="bash" && [$(CYGWIN_PATH)\bash -c "set -o igncr" 2>nul: ] == 0
|
2006-12-04 05:41:53 +00:00
|
|
|
SH_FLAGS=-o igncr
|
|
|
|
!endif
|
|
|
|
|
|
|
|
SH=$(SH_PROG) $(SH_FLAGS)
|
|
|
|
|
2004-09-02 18:23:23 +00:00
|
|
|
|
2006-08-31 01:50:11 +00:00
|
|
|
# command for perl (cygwin's perl package recommended)
|
2000-07-28 20:03:59 +00:00
|
|
|
PERL=perl
|
2004-09-02 18:23:23 +00:00
|
|
|
|
2008-03-20 00:30:47 +00:00
|
|
|
# command for pod2man and pod2html
|
2006-08-31 01:50:11 +00:00
|
|
|
# (part of the perl package, usually leave these unchanged)
|
2003-12-22 21:34:13 +00:00
|
|
|
POD2MAN=$(SH) pod2man
|
|
|
|
POD2HTML=$(SH) pod2html
|
2004-09-02 18:23:23 +00:00
|
|
|
|
2006-08-31 01:50:11 +00:00
|
|
|
# command for lex/flexx (cygwin's flex recommended)
|
2000-04-29 07:35:07 +00:00
|
|
|
LEX=flex
|
2004-09-02 18:23:23 +00:00
|
|
|
|
2006-08-31 01:50:11 +00:00
|
|
|
# command for yacc/bison (cygwin's bison recommended)
|
2000-04-29 07:35:07 +00:00
|
|
|
YACC=bison
|
2000-10-14 04:31:26 +00:00
|
|
|
|
2010-04-09 21:42:51 +00:00
|
|
|
# Commands to convert UNIX line endings to DOS/Windows
|
|
|
|
UNIX2DOS=u2d
|
|
|
|
TEXTIFY=$(SH) $(TOOLS_DIR)/textify.sh
|
|
|
|
|
2006-08-31 01:50:11 +00:00
|
|
|
#
|
|
|
|
# Optional: To build the NSIS installer.
|
|
|
|
#
|
|
|
|
# If you have the NSIS package, set this to the NSIS executable.
|
|
|
|
#
|
|
|
|
# If you don't have NSIS, comment this line out, so that MAKENSIS
|
|
|
|
# isn't defined.
|
|
|
|
#
|
2007-09-27 08:33:53 +00:00
|
|
|
MAKENSIS="$(PROGRAM_FILES)\nsis\makensis.exe"
|
2003-06-14 20:36:04 +00:00
|
|
|
|
2006-08-31 01:50:11 +00:00
|
|
|
#
|
2007-02-03 20:57:24 +00:00
|
|
|
# Optional: To build the developers API documentation with doxygen and dot.
|
|
|
|
# Currently experimental, outdated and incomplete.
|
2004-05-11 01:05:13 +00:00
|
|
|
#
|
2006-08-31 01:50:11 +00:00
|
|
|
# You will have to download and install:
|
2007-02-03 20:57:24 +00:00
|
|
|
# Doxygen from: http://www.doxygen.org
|
2004-06-04 17:31:11 +00:00
|
|
|
# Graphviz from: http://www.research.att.com/sw/tools/graphviz/
|
|
|
|
#
|
2006-08-31 01:50:11 +00:00
|
|
|
# If you have doxygen, set this to the doxygen executable.
|
|
|
|
#
|
2004-06-04 17:31:11 +00:00
|
|
|
# If you don't want the developers documentation (or don't have the tools),
|
2004-05-11 01:05:13 +00:00
|
|
|
# comment this line out, so that DOXYGEN isn't defined.
|
|
|
|
#
|
2010-08-26 23:40:27 +00:00
|
|
|
#DOXYGEN="$(PROGRAM_FILES)/doxygen/bin/doxygen.exe"
|
2004-05-11 01:05:13 +00:00
|
|
|
|
2006-08-31 01:50:11 +00:00
|
|
|
#
|
2007-02-03 04:06:43 +00:00
|
|
|
# Recommended: Use the compressed html help format .chm as the Wireshark integrated help.
|
|
|
|
#
|
|
|
|
# The required htmlhelp.h and htmlhelp.lib should be included in MSVC_VARIANT > MSVC6.
|
|
|
|
#
|
|
|
|
# For MSVC_VARIANT == MSVC6 you will have to download and install the html help workshop from:
|
2004-06-04 17:31:11 +00:00
|
|
|
#
|
|
|
|
# http://msdn.microsoft.com/library/default.asp?url=/library/en-us/htmlhelp/html
|
2008-03-20 00:30:47 +00:00
|
|
|
# /hwMicrosoftHTMLHelpDownloads.asp
|
2004-06-04 17:31:11 +00:00
|
|
|
#
|
2006-04-21 22:47:19 +00:00
|
|
|
# Then point HHC_DIR to the html help dir (where hhc.exe resides).
|
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
|
|
|
#
|
2007-09-27 08:33:53 +00:00
|
|
|
HHC_DIR=$(PROGRAM_FILES)/HTML Help Workshop
|
2004-06-04 17:31:11 +00:00
|
|
|
|
2007-11-18 10:20:26 +00:00
|
|
|
#
|
|
|
|
# Optional: To reduce the size of dlls and exes, which is especially useful for USB device distributions (U3, PortableApps)
|
|
|
|
#
|
|
|
|
# If you have the UPX package, set this to the upx.exe executable.
|
|
|
|
#
|
|
|
|
# UPX can be downloaded from:
|
|
|
|
# http://upx.sourceforge.net/
|
|
|
|
#
|
2008-03-20 00:30:47 +00:00
|
|
|
# If you don't have UPX, or don't want to pack exes and dlls,
|
2007-11-24 11:45:51 +00:00
|
|
|
# comment this line out, so that UPX isn't defined.
|
2007-11-18 10:20:26 +00:00
|
|
|
#
|
|
|
|
|
2009-06-13 08:26:11 +00:00
|
|
|
UPX=$(WIRESHARK_LIBS)\upx303w\upx.exe
|
2006-08-31 01:50:11 +00:00
|
|
|
|
|
|
|
##### Flags, PATHs and Miscellaneous #####
|
|
|
|
|
2010-06-01 22:20:15 +00:00
|
|
|
# Santity check: Python embedding requires a valid PYTHON_DIR
|
|
|
|
!IF DEFINED(PYTHON_EMBED) && !DEFINED(PYTHON_DIR)
|
|
|
|
!ERROR PYTHON_EMBED requires that PYTHON_DIR is defined
|
|
|
|
!ENDIF
|
|
|
|
|
2007-12-07 23:58:46 +00:00
|
|
|
# "convert" the MSVC variant into the required MSC compiler version
|
|
|
|
!IF "$(MSVC_VARIANT)" == "MSVC6"
|
|
|
|
MSC_VER_REQUIRED=1200
|
|
|
|
!ELSEIF "$(MSVC_VARIANT)" == "MSVC2002" || "$(MSVC_VARIANT)" == "DOTNET10"
|
|
|
|
MSC_VER_REQUIRED=1300
|
|
|
|
!ELSEIF "$(MSVC_VARIANT)" == "MSVC2003" || "$(MSVC_VARIANT)" == "DOTNET11"
|
|
|
|
MSC_VER_REQUIRED=1310
|
|
|
|
!ELSEIF "$(MSVC_VARIANT)" == "MSVC2005" || "$(MSVC_VARIANT)" == "MSVC2005EE" || "$(MSVC_VARIANT)" == "DOTNET20"
|
|
|
|
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
|
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
|
|
|
|
|
2007-01-02 01:19:40 +00:00
|
|
|
# Compiler flags:
|
2006-08-31 01:50:11 +00:00
|
|
|
# /W3 warning level 3 (0 less - 4 most, 1 default)
|
|
|
|
# /Zi create .pdb file for debugging
|
2007-01-10 21:45:19 +00:00
|
|
|
# /MD use "Multithreading Debug" libraries
|
2008-10-25 14:33:34 +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 (http://msdn.microsoft.com/en-us/library/cc664727.aspx)
|
|
|
|
# /DWIN32_LEAN_AND_MEAN Don't include unnecessary Windows include files (see windows.h)
|
2009-03-02 18:57:35 +00:00
|
|
|
# /MANIFEST:no Don't create a SxS manifest. Makes sure our plugins don't load a second copy of the CRT.
|
2007-01-02 01:19:40 +00:00
|
|
|
#
|
2007-01-11 07:53:01 +00:00
|
|
|
!IF "$(MSVC_VARIANT)" == "MSVC6" || "$(MSVC_VARIANT)" == "MSVC2002" || "$(MSVC_VARIANT)" == "DOTNET10" || "$(MSVC_VARIANT)" == "MSVC2003" || "$(MSVC_VARIANT)" == "DOTNET11"
|
2008-10-25 14:33:34 +00:00
|
|
|
LOCAL_CFLAGS=/Zi /W3 /MD /DWIN32_LEAN_AND_MEAN /DMSC_VER_REQUIRED=$(MSC_VER_REQUIRED)
|
2010-04-21 05:23:29 +00:00
|
|
|
!ELSEIF "$(MSVC_VARIANT)" == "MSVC2005" || "$(MSVC_VARIANT)" == "MSVC2005EE" || "$(MSVC_VARIANT)" == "DOTNET20" || "$(MSVC_VARIANT)" == "MSVC2008" || "$(MSVC_VARIANT)" == "MSVC2008EE" || "$(MSVC_VARIANT)" == "MSVC2010" || "$(MSVC_VARIANT)" == "MSVC2010EE"
|
2009-09-17 21:54:52 +00:00
|
|
|
LOCAL_CFLAGS=/Zi /W3 /MD /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE /DWIN32_LEAN_AND_MEAN /DMSC_VER_REQUIRED=$(MSC_VER_REQUIRED)
|
|
|
|
!IF "$(WIRESHARK_TARGET_PLATFORM)" != "win64"
|
|
|
|
LOCAL_CFLAGS=$(LOCAL_CFLAGS) /D_BIND_TO_CURRENT_CRT_VERSION=1
|
|
|
|
!ENDIF
|
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
|
|
|
|
#
|
2010-04-21 05:23:29 +00:00
|
|
|
!IF "$(MSVC_VARIANT)" == "MSVC2008" || "$(MSVC_VARIANT)" == "MSVC2008EE" || "$(MSVC_VARIANT)" == "MSVC2010" || "$(MSVC_VARIANT)" == "MSVC2010EE"
|
2009-07-16 08:27:18 +00:00
|
|
|
LOCAL_CFLAGS= $(LOCAL_CFLAGS) /MP
|
|
|
|
!ENDIF
|
2010-09-16 19:20:06 +00:00
|
|
|
|
2007-01-02 01:19:40 +00:00
|
|
|
# Linker flags:
|
2006-08-31 01:50:11 +00:00
|
|
|
# /DEBUG generate debug info
|
|
|
|
# /PROFILE generate map file(s) for profiling
|
2007-01-02 01:19:40 +00:00
|
|
|
# /DEFAULTLIB:xxx use xxx as the standard C library
|
|
|
|
# /NODEFAULTLIB:xxx don't use xxx as the standard C library
|
2008-03-20 00:30:47 +00:00
|
|
|
#
|
2008-08-14 23:56:57 +00:00
|
|
|
LOCAL_LDFLAGS=/DEBUG /MACHINE:$(TARGET_MACHINE)
|
2009-07-16 12:39:50 +00:00
|
|
|
DLL_LDFLAGS =
|
2010-04-22 19:35:47 +00:00
|
|
|
!IFDEF MANIFEST_INFO_REQUIRED
|
2009-03-02 21:33:11 +00:00
|
|
|
DLL_LDFLAGS = /MANIFEST:no
|
2009-03-02 18:57:35 +00:00
|
|
|
!ENDIF
|
2006-08-31 01:50:11 +00:00
|
|
|
|
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
|
|
|
|
# DEP is handled in init_process_policies()
|
|
|
|
|
|
|
|
# ASLR http://msdn.microsoft.com/en-us/library/bb384887.aspx
|
|
|
|
!IF $(MSC_VER_REQUIRED) >= 1500
|
|
|
|
LOCAL_LDFLAGS= $(LOCAL_LDFLAGS) /DYNAMICBASE
|
|
|
|
!ENDIF
|
|
|
|
|
2009-03-02 21:33:11 +00:00
|
|
|
PLUGIN_LDFLAGS = /NOLOGO /INCREMENTAL:no $(LOCAL_LDFLAGS) $(DLL_LDFLAGS)
|
|
|
|
|
2006-08-31 01:50:11 +00:00
|
|
|
#
|
2006-05-31 22:34:21 +00:00
|
|
|
# According to http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=403
|
2005-09-07 13:26:23 +00:00
|
|
|
# XCOPY under Windows NT doesn't support the "/Y" flag. This works
|
|
|
|
# around that bug.
|
2005-09-16 16:25:53 +00:00
|
|
|
# XXX - This apparently doesn't work for some versions of nmake:
|
|
|
|
# http://support.microsoft.com/default.aspx?scid=kb;en-us;86814
|
|
|
|
# It looks like we'll have to call "set copycmd=/y" before we run xcopy.
|
|
|
|
COPYCMD=/y
|
2005-09-07 13:26:23 +00:00
|
|
|
|
2006-08-31 01:50:11 +00:00
|
|
|
#
|
2006-05-31 00:23:01 +00:00
|
|
|
# If you don't want to build libwireshark.dll, you should comment out the
|
2005-05-31 21:34:14 +00:00
|
|
|
# following line. (Note: for plugin support this option must stay activated)
|
2006-05-31 00:23:01 +00:00
|
|
|
ENABLE_LIBWIRESHARK=USE
|
2004-05-09 10:03:41 +00:00
|
|
|
|
2006-09-23 01:39:07 +00:00
|
|
|
#
|
2008-04-09 03:48:16 +00:00
|
|
|
# install (debug) directory for Wireshark (relative to your source dir)
|
|
|
|
INSTALL_DIR=wireshark-gtk2
|
2006-09-23 01:39:07 +00:00
|
|
|
|
2004-09-29 19:30:10 +00:00
|
|
|
|
2006-08-31 01:50:11 +00:00
|
|
|
|
2007-01-13 00:59:39 +00:00
|
|
|
##### C-Runtime Redistributable #####
|
|
|
|
#
|
2008-03-20 00:30:47 +00:00
|
|
|
# The C-Runtime since Version 7 must be shipped together with
|
2007-01-13 00:59:39 +00:00
|
|
|
# the program installer, to avoid missing msvcr*.dll files on
|
|
|
|
# the target machine.
|
|
|
|
#
|
2008-03-20 00:30:47 +00:00
|
|
|
# The location of these files differ on the various compiler
|
2007-01-13 00:59:39 +00:00
|
|
|
# packages, the following will use the default paths depending
|
|
|
|
# on the package version.
|
|
|
|
#
|
|
|
|
!IF "$(MSVC_VARIANT)" == "MSVC6"
|
|
|
|
# msvcrt.dll will already be available on target machines - nothing additional to install
|
|
|
|
|
2009-09-17 21:54:52 +00:00
|
|
|
!ELSEIF "$(WIRESHARK_TARGET_PLATFORM)" == "win64"
|
|
|
|
# We're not creating portable packages and therefore don't have to worry about
|
|
|
|
# "deploying using xcopy"
|
|
|
|
VCREDIST_EXE=$(WIRESHARK_LIBS)\vcredist_$(TARGET_MACHINE).exe
|
|
|
|
|
2007-01-13 00:59:39 +00:00
|
|
|
!ELSEIF "$(MSVC_VARIANT)" == "MSVC2002"
|
|
|
|
# you probably need to tweak this directory if you don't use the professional edition!
|
|
|
|
MSVCR_DLL=$(PROGRAM_FILES)\Microsoft Visual Studio .NET\Visual Studio .NET Professional - English\msvcr70.dll
|
|
|
|
|
|
|
|
!ELSEIF "$(MSVC_VARIANT)" == "DOTNET10"
|
|
|
|
# no redistributable available for this package!
|
|
|
|
|
|
|
|
!ELSEIF "$(MSVC_VARIANT)" == "MSVC2003"
|
|
|
|
# you probably need to tweak this directory if you don't use the professional edition!
|
|
|
|
MSVCR_DLL=$(PROGRAM_FILES)\Microsoft Visual Studio .NET 2003\Visual Studio .NET Professional 2003 - English\msvcr71.dll
|
|
|
|
|
|
|
|
!ELSEIF "$(MSVC_VARIANT)" == "DOTNET11"
|
|
|
|
# no redistributable available for this package!
|
|
|
|
|
|
|
|
!ELSEIF "$(MSVC_VARIANT)" == "MSVC2005"
|
2009-04-17 19:02:56 +00:00
|
|
|
MSVCR_DLL=$(PROGRAM_FILES)\Microsoft Visual Studio 8\VC\redist\$(VCREDIST_DLL)\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"
|
2007-01-13 00:59:39 +00:00
|
|
|
# you need to download the redistributable package vcredist_x86.exe from Microsoft first,
|
|
|
|
# and copy it to the lib folder!!!
|
2009-04-17 19:02:56 +00:00
|
|
|
VCREDIST_EXE=$(WIRESHARK_LIBS)\vcredist_$(TARGET_MACHINE).exe
|
2007-01-13 00:59:39 +00:00
|
|
|
|
2008-08-04 23:05:32 +00:00
|
|
|
!ELSEIF "$(MSVC_VARIANT)" == "MSVC2008"
|
2009-04-17 19:02:56 +00:00
|
|
|
MSVCR_DLL=$(PROGRAM_FILES)\Microsoft Visual Studio 9.0\VC\redist\$(VCREDIST_DLL)\Microsoft.VC90.CRT\*.*
|
2007-11-30 22:01:05 +00:00
|
|
|
|
2010-04-21 05:23:29 +00:00
|
|
|
!ELSEIF "$(MSVC_VARIANT)" == "MSVC2010EE"
|
|
|
|
# you need to download the redistributable package vcredist_x86.exe from Microsoft first,
|
|
|
|
# and copy it to the lib folder!!!
|
|
|
|
VCREDIST_EXE=$(WIRESHARK_LIBS)\vcredist_$(TARGET_MACHINE).exe
|
|
|
|
!ELSEIF "$(MSVC_VARIANT)" == "MSVC2010"
|
2010-11-09 23:03:47 +00:00
|
|
|
MSVCR_DLL=$(PROGRAM_FILES)\Microsoft Visual Studio 10.0\VC\redist\$(TARGET_MACHINE)\Microsoft.VC100.CRT\*.*
|
2010-04-21 05:23:29 +00:00
|
|
|
|
2007-01-13 00:59:39 +00:00
|
|
|
!ELSE
|
|
|
|
!ERROR MSVC_VARIANT unknown
|
|
|
|
!ENDIF
|
|
|
|
|
2009-09-17 21:54:52 +00:00
|
|
|
!IF DEFINED(VCREDIST_EXE) && ! EXIST("$(VCREDIST_EXE)")
|
2009-10-02 09:26:52 +00:00
|
|
|
!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
|
2009-09-17 21:54:52 +00:00
|
|
|
!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
|
2009-11-09 18:41:21 +00:00
|
|
|
FOP=fop-0.95\fop.bat
|
2007-02-03 04:06:43 +00:00
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
# Additional options to fop.
|
|
|
|
FOP_OPTS=-Xmx256m
|
|
|
|
|
|
|
|
# html help compiler
|
2008-03-20 00:30:47 +00:00
|
|
|
# Comment this out if you don't have hhc.exe or you don't want the docs in
|
2007-02-03 05:13:39 +00:00
|
|
|
# .chm format.
|
2007-02-03 04:06:43 +00:00
|
|
|
#
|
2007-02-03 05:13:39 +00:00
|
|
|
# Beware: hhc.exe is NOT part of the MSVC packages in HHC_DIR mentioned above,
|
2007-02-03 04:06:43 +00:00
|
|
|
# so you'll need to install the HTML Help Workshop for this.
|
2007-02-03 07:54:18 +00:00
|
|
|
HHC_EXE="$(HHC_DIR)\hhc.exe"
|
2007-02-03 04:06:43 +00:00
|
|
|
|
|
|
|
# html to text converter for text version of release notes, e.g. elinks.
|
|
|
|
# This could also be "lynx", or "true" if neither elinks nor lynx is installed
|
|
|
|
# (cygwin: lynx works, elinks not available, links and true doesn't produce output)
|
|
|
|
#HTML2TXT=elinks -dump -dump-width 72
|
2010-04-05 19:42:07 +00:00
|
|
|
##HTML2TXT=links -dump -width 72 ## XXX: Fails: For links -dump requires 'url' (filename) arg.
|
2008-12-17 21:11:20 +00:00
|
|
|
#HTML2TXT=lynx -dump -width=72 -nolist -stdin
|
|
|
|
|
|
|
|
!IFNDEF HTML2TXT
|
|
|
|
HTML2TXT=$(PYTHON) $(TOOLS_DIR)\html2text.py --width=72 --no-links
|
|
|
|
!ENDIF
|
2007-02-03 04:06:43 +00:00
|
|
|
|
|
|
|
# the XSL processor (part of cygwin's libxslt package)
|
|
|
|
XSLTPROC="xsltproc"
|
|
|
|
|
|
|
|
# the XML validator (part of cygwin's libxml2 package)
|
|
|
|
XMLLINT="xmllint"
|
|
|
|
|
|
|
|
|
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
|
|
|
|
#
|
|
|
|
# http://www.ethereal.com/lists/ethereal-dev/200303/msg00283.html
|
|
|
|
#
|
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)
|
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)
|
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) \
|
|
|
|
/I$(GTK_DIR)\lib\glib-$(GLIB_VERSION)\include
|
|
|
|
GLIB_LIBS=$(GTK_DIR)\lib\glib-$(GLIB_VERSION).lib \
|
|
|
|
$(GTK_DIR)\lib\gmodule-$(GLIB_VERSION).lib \
|
|
|
|
$(GTK_DIR)\lib\gobject-$(GLIB_VERSION).lib
|
|
|
|
GTHREAD_LIBS=$(GTK_DIR)\lib\gthread-$(GLIB_VERSION).lib
|
2003-08-04 08:10:33 +00:00
|
|
|
|
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 \
|
|
|
|
/I$(GTK_DIR)\include\pango-1.0
|
|
|
|
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 \
|
|
|
|
$(GTK_DIR)\lib\pango-1.0.lib \
|
2003-06-17 05:38:24 +00:00
|
|
|
$(GLIB_LIBS)
|
2004-01-24 20:01:36 +00:00
|
|
|
|
2010-10-20 20:41:39 +00:00
|
|
|
# 2.18 was no good(Theming problem)
|
|
|
|
!IF "$(GTK_INST_VERSION)" == "2.22" || "$(GTK_INST_VERSION)" == "2.16" || "$(GTK_INST_VERSION)" == "2.14"
|
2008-04-09 03:48:16 +00:00
|
|
|
GTK_LIB_DIR=2.10.0
|
2009-11-19 20:27:08 +00:00
|
|
|
|
2010-02-15 20:57:50 +00:00
|
|
|
!IFDEF PNG_DLL
|
2006-12-21 22:15:34 +00:00
|
|
|
NEED_LIBPNG_DLL=USE
|
2010-02-15 20:57:50 +00:00
|
|
|
!ENDIF
|
|
|
|
!IFDEF JPEG_DLL
|
Use GTK+ 2.14.1
What's new in GTK+ 2.14
=======================
GTK+ 2.14 adds new functionality while maintaining source and binary
compatibility with GTK+ 2.12. Highlights of new features and
improvements in GTK+ 2.14 are:
New widgets and objects
* GdkAppLaunchContext, provides startup notification with
g_app_info_launch()
* GtkMountOperation, can ask for passwords when mounting
volumes with g_volume_mount()
* GtkToolShell, an interface for containers of GtkToolItems
Noteworthy new APIs
* gtk_show_uri(), a replacement for gnome_vfs_url_show() and
gnome_url_show()
* gtk_widget_get_snapshot(), using pixmap redirection to render
snapshots of widgets
Changes in the file chooser
The file chooser uses GIO directly, loadable backends are no longer
supported. Autocompletion in the file chooser entry has been improved.
Changes in printing support
The print dialog displays printer status information. Support for
rearranging pages when printing multiple pages per sheet has been
added to the cups backend.
Accessibility support
The gail module is shipped with GTK+, GtkBuilder supports
accessibility attributes and GtkStatusIcon supports keyboard
navigation.
Internationalization support
The compose sequences understood by GTK+'s builtin input method
have been synchronized with recent X.org compose sequences, adding
a large number of new sequences. GTK+ no longer uses translations
when an application is not translated to the current locale.
gdk-pixbuf changes
* Support loading OS X icns format
* Support loading JPEG 2000 images
* Support loading and saving to GIO streams
* Use GIO for mime information
GDK changes
GDK uses Xrandr instead of Xinerama to provide more (and dynamic)
monitor information. Font configuration changes are now picked up
at runtime, without an application restart.
For more details and lists of fixed bugs, see the
announcements for the 2.13.x development releases:
http://mail.gnome.org/archives/gtk-devel-list/2008-February/msg00079.html
http://mail.gnome.org/archives/gtk-devel-list/2008-May/msg00112.html
http://mail.gnome.org/archives/gtk-devel-list/2008-June/msg00033.html
http://mail.gnome.org/archives/gtk-devel-list/2008-June/msg00158.html
http://mail.gnome.org/archives/gtk-devel-list/2008-July/msg00044.html
http://mail.gnome.org/archives/gtk-devel-list/2008-July/msg00182.html
http://mail.gnome.org/archives/gtk-devel-list/2008-August/msg00023.html
http://mail.gnome.org/archives/gtk-devel-list/2008-August/msg00153.html
svn path=/trunk/; revision=26148
2008-09-06 15:25:23 +00:00
|
|
|
NEED_LIBJPEG_DLL=USE
|
2010-02-15 20:57:50 +00:00
|
|
|
!ENDIF
|
|
|
|
!IFDEF TIFF_DLL
|
Use GTK+ 2.14.1
What's new in GTK+ 2.14
=======================
GTK+ 2.14 adds new functionality while maintaining source and binary
compatibility with GTK+ 2.12. Highlights of new features and
improvements in GTK+ 2.14 are:
New widgets and objects
* GdkAppLaunchContext, provides startup notification with
g_app_info_launch()
* GtkMountOperation, can ask for passwords when mounting
volumes with g_volume_mount()
* GtkToolShell, an interface for containers of GtkToolItems
Noteworthy new APIs
* gtk_show_uri(), a replacement for gnome_vfs_url_show() and
gnome_url_show()
* gtk_widget_get_snapshot(), using pixmap redirection to render
snapshots of widgets
Changes in the file chooser
The file chooser uses GIO directly, loadable backends are no longer
supported. Autocompletion in the file chooser entry has been improved.
Changes in printing support
The print dialog displays printer status information. Support for
rearranging pages when printing multiple pages per sheet has been
added to the cups backend.
Accessibility support
The gail module is shipped with GTK+, GtkBuilder supports
accessibility attributes and GtkStatusIcon supports keyboard
navigation.
Internationalization support
The compose sequences understood by GTK+'s builtin input method
have been synchronized with recent X.org compose sequences, adding
a large number of new sequences. GTK+ no longer uses translations
when an application is not translated to the current locale.
gdk-pixbuf changes
* Support loading OS X icns format
* Support loading JPEG 2000 images
* Support loading and saving to GIO streams
* Use GIO for mime information
GDK changes
GDK uses Xrandr instead of Xinerama to provide more (and dynamic)
monitor information. Font configuration changes are now picked up
at runtime, without an application restart.
For more details and lists of fixed bugs, see the
announcements for the 2.13.x development releases:
http://mail.gnome.org/archives/gtk-devel-list/2008-February/msg00079.html
http://mail.gnome.org/archives/gtk-devel-list/2008-May/msg00112.html
http://mail.gnome.org/archives/gtk-devel-list/2008-June/msg00033.html
http://mail.gnome.org/archives/gtk-devel-list/2008-June/msg00158.html
http://mail.gnome.org/archives/gtk-devel-list/2008-July/msg00044.html
http://mail.gnome.org/archives/gtk-devel-list/2008-July/msg00182.html
http://mail.gnome.org/archives/gtk-devel-list/2008-August/msg00023.html
http://mail.gnome.org/archives/gtk-devel-list/2008-August/msg00153.html
svn path=/trunk/; revision=26148
2008-09-06 15:25:23 +00:00
|
|
|
NEED_LIBTIFF_DLL=USE
|
2010-02-15 20:57:50 +00:00
|
|
|
!ENDIF
|
2006-12-21 22:15:34 +00:00
|
|
|
NEED_CAIRO_DLL=USE
|
2009-11-19 20:27:08 +00:00
|
|
|
# Pango >=1.24.5 Needs these:
|
|
|
|
NEED_FREETYPE_DLL=USE
|
|
|
|
NEED_FONTCONFIG_DLL=USE
|
|
|
|
NEED_EXPAT_DLL=USE
|
|
|
|
|
2008-04-09 03:48:16 +00:00
|
|
|
GTK_WIMP_DLLSRC_DIR=$(GTK_DIR)\lib\gtk-2.0\2.10.0\engines
|
2006-12-21 22:15:34 +00:00
|
|
|
GTK_WIMP_DLLDST_DIR=lib\gtk-2.0\2.10.0\engines
|
2008-04-09 03:48:16 +00:00
|
|
|
GTK_WIMP_RCSRC_DIR=$(GTK_DIR)\share\themes\MS-Windows\gtk-2.0
|
2006-12-21 22:15:34 +00:00
|
|
|
GTK_WIMP_RCDST_DIR=etc\gtk-2.0
|
2008-02-16 21:07:19 +00:00
|
|
|
!ELSE
|
2008-04-09 03:48:16 +00:00
|
|
|
!ERROR ? Unknown or invalid 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
|
2006-12-06 20:29:54 +00:00
|
|
|
AIRPDCAP_CONFIG=^#define HAVE_AIRPDCAP 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=
|
2006-12-06 20:29:54 +00:00
|
|
|
AIRPDCAP_CONFIG=
|
2006-09-12 00:27:03 +00:00
|
|
|
!ENDIF
|
2005-10-21 18:47:04 +00:00
|
|
|
|
2006-09-12 00:27:03 +00:00
|
|
|
!IFDEF PCAP_DIR
|
2003-10-10 09:48:54 +00:00
|
|
|
# Nmake uses carets to escape special characters
|
|
|
|
WINPCAP_CONFIG=^#define HAVE_LIBPCAP 1
|
2010-03-17 22:09:19 +00:00
|
|
|
#
|
|
|
|
# This requires that, if you're *building* Wireshark, you have
|
|
|
|
# the most recent WinPcap's development package. If, at *run*
|
|
|
|
# time, an older version of WinPcap, missing some routines,
|
|
|
|
# is found, we work around that.
|
|
|
|
#
|
2003-10-10 09:48:54 +00:00
|
|
|
PCAP_FINDALLDEVS_CONFIG=^#define HAVE_PCAP_FINDALLDEVS 1
|
2004-09-23 17:54:49 +00:00
|
|
|
PCAP_DATALINK_NAME_TO_VAL_CONFIG=^#define HAVE_PCAP_DATALINK_NAME_TO_VAL 1
|
|
|
|
PCAP_DATALINK_VAL_TO_NAME_CONFIG=^#define HAVE_PCAP_DATALINK_VAL_TO_NAME 1
|
2009-12-18 20:36:36 +00:00
|
|
|
PCAP_DATALINK_VAL_TO_DESCRIPTION_CONFIG=^#define HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1
|
2006-08-13 01:07:46 +00:00
|
|
|
# PCAP_BREAKLOOP won't have any benefit on Win32, but breaks compatibility with 3.0
|
2006-05-21 21:32:04 +00:00
|
|
|
PCAP_BREAKLOOP_CONFIG=
|
2010-03-17 22:09:19 +00:00
|
|
|
PCAP_LIST_DATALINKS_CONFIG=^#define HAVE_PCAP_LIST_DATALINKS 1
|
|
|
|
PCAP_FREE_DATALINKS_CONFIG=^#define HAVE_PCAP_FREE_DATALINKS 1
|
|
|
|
PCAP_SET_DATALINK_CONFIG=^#define HAVE_PCAP_SET_DATALINK 1
|
2010-10-03 12:04:18 +00:00
|
|
|
PCAP_OPEN_DEAD_CONFIG=^#define HAVE_PCAP_OPEN_DEAD 1
|
2010-10-03 22:42:27 +00:00
|
|
|
BPF_IMAGE_CONFIG=^#define HAVE_BPF_IMAGE 1
|
2003-10-10 09:48:54 +00:00
|
|
|
!ELSE
|
2007-02-03 20:40:11 +00:00
|
|
|
# no WpdPack installed
|
2003-10-10 09:48:54 +00:00
|
|
|
WINPCAP_CONFIG=
|
|
|
|
PCAP_FINDALLDEVS_CONFIG=
|
2004-09-23 17:54:49 +00:00
|
|
|
PCAP_DATALINK_NAME_TO_VAL_CONFIG=
|
|
|
|
PCAP_DATALINK_VAL_TO_NAME_CONFIG=
|
2009-12-18 20:36:36 +00:00
|
|
|
PCAP_DATALINK_VAL_TO_DESCRIPTION_CONFIG=
|
2006-05-21 21:32:04 +00:00
|
|
|
PCAP_BREAKLOOP_CONFIG=
|
2010-03-17 22:09:19 +00:00
|
|
|
PCAP_LIST_DATALINKS_CONFIG=
|
|
|
|
PCAP_FREE_DATALINKS_CONFIG=
|
|
|
|
PCAP_SET_DATALINK_CONFIG=
|
2010-10-03 12:04:18 +00:00
|
|
|
PCAP_OPEN_DEAD_CONFIG=
|
2010-10-03 22:42:27 +00:00
|
|
|
BPF_IMAGE_CONFIG=
|
2003-10-10 09:48:54 +00:00
|
|
|
!ENDIF
|
|
|
|
|
2007-12-04 11:19:29 +00:00
|
|
|
!IF DEFINED(PCAP_DIR) && DEFINED(PCAP_REMOTE)
|
|
|
|
PCAP_HAVE_REMOTE_CONFIG=^#define HAVE_REMOTE 1
|
|
|
|
PCAP_REMOTE_CONFIG=^#define HAVE_PCAP_REMOTE 1
|
|
|
|
PCAP_OPEN_CONFIG=^#define HAVE_PCAP_OPEN 1
|
|
|
|
PCAP_SETSAMPLING_CONFIG=^#define HAVE_PCAP_SETSAMPLING 1
|
|
|
|
!ELSE
|
|
|
|
PCAP_HAVE_REMOTE_CONFIG=
|
|
|
|
PCAP_REMOTE_CONFIG=
|
|
|
|
PCAP_OPEN_CONFIG=
|
|
|
|
PCAP_SETSAMPLING_CONFIG=
|
|
|
|
!ENDIF
|
|
|
|
|
2003-11-07 23:27:13 +00:00
|
|
|
!IFDEF ZLIB_DIR
|
2005-09-13 16:48:13 +00:00
|
|
|
ZLIB_PATH=$(ZLIB_DIR)
|
2003-12-01 17:17:51 +00:00
|
|
|
ZLIB_CFLAGS=/I$(ZLIB_DIR)\include
|
|
|
|
ZLIB_LIBS=$(ZLIB_DIR)\lib\zdll.lib
|
2007-11-28 20:06:21 +00:00
|
|
|
ZLIB_DLL=$(ZLIB_DIR)\zlib1.dll
|
2003-11-07 23:27:13 +00:00
|
|
|
# Nmake uses carets to escape special characters
|
|
|
|
ZLIB_CONFIG=^#define HAVE_LIBZ 1
|
2010-09-23 05:50:10 +00:00
|
|
|
ZLIB_GZCLEARERR_CONFIG=^#define HAVE_GZCLEARERR 1
|
2003-11-07 23:27:13 +00:00
|
|
|
!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
|
2009-12-17 22:01:13 +00:00
|
|
|
C_ARES_DIR=$(WIRESHARK_LIBS)\c-ares-$(C_ARES_PKG)-$(WIRESHARK_TARGET_PLATFORM)ws
|
|
|
|
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
|
2008-04-13 21:21:25 +00:00
|
|
|
ADNS_LIBS=$(WIRESHARK_LIBS)\$(MSVC_VARIANT)\adns\adns_dll.lib
|
|
|
|
ADNS_DLL=$(WIRESHARK_LIBS)\$(MSVC_VARIANT)\adns\adns_dll.dll
|
2003-06-24 18:51:21 +00:00
|
|
|
# Nmake uses carets to escape special characters
|
|
|
|
ADNS_CONFIG=^#define HAVE_GNU_ADNS 1
|
2003-06-15 23:04:47 +00:00
|
|
|
!else
|
2003-06-26 08:41:33 +00:00
|
|
|
ADNS_CFLAGS=
|
2003-06-15 23:04:47 +00:00
|
|
|
ADNS_LIBS=
|
2003-06-16 07:58:26 +00:00
|
|
|
ADNS_CONFIG=
|
2008-08-07 21:41:48 +00:00
|
|
|
!ENDIF # ADNS
|
|
|
|
!ENDIF # C_ARES
|
2003-12-07 00:04:32 +00:00
|
|
|
|
2006-08-05 04:32:57 +00:00
|
|
|
!IFDEF KFW_DIR
|
2010-01-19 22:58:12 +00:00
|
|
|
KFW_PATH=$(KFW_DIR)\bin
|
|
|
|
KFW_CFLAGS=/I$(KFW_DIR)\include
|
|
|
|
KFW_LIBS=$(KFW_DIR)\lib\krb5_32.lib
|
2006-08-05 04:32:57 +00:00
|
|
|
# Nmake uses carets to escape special characters
|
|
|
|
KFW_CONFIG=^#define HAVE_MIT_KERBEROS 1
|
|
|
|
!else
|
|
|
|
KFW_CFLAGS=
|
|
|
|
KFW_LIBS=
|
|
|
|
KFW_CONFIG=
|
|
|
|
!ENDIF
|
|
|
|
|
2003-12-07 00:04:32 +00:00
|
|
|
!IFDEF PCRE_DIR
|
2005-09-13 16:48:13 +00:00
|
|
|
PCRE_PATH=$(PCRE_DIR)\bin
|
2003-12-07 00:04:32 +00:00
|
|
|
PCRE_CFLAGS=/I$(PCRE_DIR)\include
|
|
|
|
PCRE_LIBS=$(PCRE_DIR)\lib\pcre.lib
|
|
|
|
# Nmake uses carets to escape special characters
|
|
|
|
PCRE_CONFIG=^#define HAVE_LIBPCRE 1
|
|
|
|
!else
|
|
|
|
PCRE_CFLAGS=
|
|
|
|
PCRE_LIBS=
|
|
|
|
PCRE_CONFIG=
|
|
|
|
!ENDIF
|
|
|
|
|
2004-10-15 15:36:12 +00:00
|
|
|
!IFDEF NETTLE_DIR
|
|
|
|
NETTLE_CFLAGS=/I$(NETTLE_DIR)
|
|
|
|
NETTLE_LIBS=$(NETTLE_DIR)\libnettle.lib
|
|
|
|
# Nmake uses carets to escape special characters
|
|
|
|
NETTLE_CONFIG=^#define HAVE_LIBNETTLE 1
|
|
|
|
!else
|
|
|
|
NETTLE_CFLAGS=
|
|
|
|
NETTLE_LIBS=
|
|
|
|
NETTLE_CONFIG=
|
|
|
|
!ENDIF
|
|
|
|
|
2009-12-21 21:06:01 +00:00
|
|
|
!IFDEF GNUTLS_PKG
|
|
|
|
GNUTLS_DIR=$(WIRESHARK_LIBS)\gnutls-$(GNUTLS_PKG)-$(WIRESHARK_TARGET_PLATFORM)ws
|
2006-02-06 09:09:06 +00:00
|
|
|
GNUTLS_PATH=$(GNUTLS_DIR)
|
2007-01-07 19:50:16 +00:00
|
|
|
# /DNOCRYPT avoids inclusion of Wincrypt.h, avoiding a X509_NAME define clash
|
2009-02-09 09:38:58 +00:00
|
|
|
GNUTLS_CFLAGS=/I$(GNUTLS_DIR)\include /DNOCRYPT /DIMPORT_LIGNUTLSDLL
|
2009-12-08 00:13:57 +00:00
|
|
|
GCRYPT_LIBS = $(GNUTLS_DIR)\bin\libgcrypt-11.lib
|
2006-08-09 02:00:05 +00:00
|
|
|
GNUTLS_LIBS=\
|
|
|
|
$(GNUTLS_DIR)\bin\libtasn1-3.lib \
|
|
|
|
$(GNUTLS_DIR)\bin\libgpg-error-0.lib \
|
2009-12-08 00:13:57 +00:00
|
|
|
$(GCRYPT_LIBS) \
|
2008-05-16 06:53:15 +00:00
|
|
|
$(GNUTLS_DIR)\bin\libgnutls-26.lib
|
2006-02-06 09:09:06 +00:00
|
|
|
# Nmake uses carets to escape special characters
|
2006-02-07 10:26:20 +00:00
|
|
|
GNUTLS_CONFIG=^#define HAVE_LIBGNUTLS 1
|
2006-08-09 02:00:05 +00:00
|
|
|
LIBGCRYPT_CONFIG=^#define HAVE_LIBGCRYPT 1
|
2006-02-06 09:09:06 +00:00
|
|
|
!else
|
|
|
|
GNUTLS_CFLAGS=
|
|
|
|
GNUTLS_LIBS=
|
|
|
|
GNUTLS_CONFIG=
|
2006-08-09 02:00:05 +00:00
|
|
|
LIBGCRYPT_CONFIG=
|
2006-02-06 09:09:06 +00:00
|
|
|
!ENDIF
|
|
|
|
|
2006-02-07 09:12:43 +00:00
|
|
|
!IFDEF LUA_DIR
|
|
|
|
LUA_CFLAGS=/I$(LUA_DIR)\include
|
2008-10-01 19:38:27 +00:00
|
|
|
LUA_LIBS=$(LUA_DIR)\lua5.1.lib
|
2006-02-07 09:12:43 +00:00
|
|
|
# Nmake uses carets to escape special characters
|
|
|
|
LUA_CONFIG=^#define HAVE_LUA 1
|
2006-03-15 22:58:40 +00:00
|
|
|
LUA_VERSION=^#define HAVE_LUA_5_1 1
|
2006-02-07 09:12:43 +00:00
|
|
|
!else
|
|
|
|
LUA_CFLAGS=
|
|
|
|
LUA_LIBS=
|
|
|
|
LUA_CONFIG=
|
|
|
|
!ENDIF
|
2006-02-06 09:09:06 +00:00
|
|
|
|
2010-06-01 22:20:15 +00:00
|
|
|
!IF DEFINED(PYTHON_EMBED)
|
|
|
|
PYTHON_CFLAGS=/I$(PYTHON_DIR)\include
|
|
|
|
PYTHON_LIBS=$(PYTHON_DIR)\libs\python$(PYTHON_VER).lib
|
|
|
|
# Nmake uses carets to escape special characters
|
|
|
|
PYTHON_CONFIG=^#define HAVE_PYTHON 1
|
|
|
|
!else
|
|
|
|
PYTHON_CFLAGS=
|
|
|
|
PYTHON_LIBS=
|
|
|
|
PYTHON_CONFIG=
|
|
|
|
!ENDIF
|
|
|
|
|
2006-08-30 21:51:31 +00:00
|
|
|
!IFDEF PORTAUDIO_DIR
|
|
|
|
# Nmake uses carets to escape special characters
|
2006-09-13 11:28:36 +00:00
|
|
|
PORTAUDIO_CONFIG=^#define HAVE_LIBPORTAUDIO 1
|
2006-09-11 22:43:00 +00:00
|
|
|
!IF "$(PORTAUDIO_VERSION)" == "18"
|
|
|
|
# V18 uses API version 1 and v19 API version 2
|
2006-10-07 14:24:32 +00:00
|
|
|
PORTAUDIO_CFLAGS=/I$(PORTAUDIO_DIR)\pa_common
|
2006-09-11 22:43:00 +00:00
|
|
|
PORTAUDIO_API_CONFIG=^#define PORTAUDIO_API_1 1
|
2006-10-07 14:24:32 +00:00
|
|
|
!ELSE
|
2008-05-13 07:39:23 +00:00
|
|
|
PORTAUDIO_CFLAGS=/I$(PORTAUDIO_DIR)\include /I$(PORTAUDIO_DIR)\src\common /I$(PORTAUDIO_DIR)\src\os\win /DPA_NO_DS /DPA_NO_ASIO
|
2006-09-11 22:43:00 +00:00
|
|
|
!ENDIF
|
2007-02-03 20:57:24 +00:00
|
|
|
!ELSE
|
2006-09-12 00:27:03 +00:00
|
|
|
PORTAUDIO_CFLAGS=
|
2006-08-30 21:51:31 +00:00
|
|
|
PORTAUDIO_CONFIG=
|
|
|
|
!ENDIF
|
|
|
|
|
2006-09-12 00:27:03 +00:00
|
|
|
!IFDEF HHC_DIR
|
2007-01-10 09:56:39 +00:00
|
|
|
!IF "$(MSVC_VARIANT)" == "MSVC6"
|
2007-02-03 19:37:59 +00:00
|
|
|
HHC_CFLAGS=/I"$(HHC_DIR)\include" -DHHC_DIR
|
|
|
|
HHC_LIBS="$(HHC_DIR)\lib\htmlhelp.lib"
|
2006-09-12 00:27:03 +00:00
|
|
|
!ELSE
|
2007-01-10 09:56:39 +00:00
|
|
|
HHC_CFLAGS=-DHHC_DIR
|
|
|
|
HHC_LIBS=htmlhelp.lib
|
|
|
|
!ENDIF
|
|
|
|
!ELSE
|
2006-09-12 00:27:03 +00:00
|
|
|
HHC_CFLAGS=
|
|
|
|
HHC_LIBS=
|
|
|
|
!ENDIF
|
|
|
|
|
2007-08-26 20:03:23 +00:00
|
|
|
!IFDEF SMI_DIR
|
|
|
|
SMI_CONFIG=^#define HAVE_LIBSMI 1
|
|
|
|
SMI_CFLAGS=/I$(SMI_DIR)\include
|
|
|
|
SMI_LIBS=$(SMI_DIR)\lib\smi.lib
|
|
|
|
!ELSE
|
|
|
|
SMI_LIBS=
|
|
|
|
SMI_CFLAGS=
|
|
|
|
SMI_CONFIG=
|
|
|
|
!ENDIF
|
|
|
|
|
2008-12-23 18:56:31 +00:00
|
|
|
!IFDEF GEOIP_DIR
|
|
|
|
GEOIP_CONFIG=^#define HAVE_GEOIP 1
|
2009-12-17 22:01:13 +00:00
|
|
|
GEOIP_CFLAGS=/I$(GEOIP_DIR)
|
|
|
|
GEOIP_LIBS=$(GEOIP_DIR)\GeoIP.lib
|
2008-12-23 18:56:31 +00:00
|
|
|
!ELSE
|
|
|
|
GeoIP_LIBS=
|
|
|
|
GeoIP_CFLAGS=
|
|
|
|
GeoIP_CONFIG=
|
|
|
|
!ENDIF
|
|
|
|
|
2006-09-12 00:27:03 +00:00
|
|
|
!IFDEF ENABLE_LIBWIRESHARK
|
|
|
|
LIBWIRESHARK_CONFIG=^#define HAVE_LIBWIRESHARKDLL 1
|
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
|
|
|
|
|
|
|
# We can't use a lot of IPv6 code with plain Visual C++ 6.0
|
|
|
|
!IF "$(MSVC_VARIANT)" == "MSVC6" && !DEFINED(MSSDK)
|
|
|
|
INET6_CONFIG=
|
|
|
|
!ELSE
|
|
|
|
INET6_CONFIG=^#define INET6 1
|
|
|
|
!ENDIF
|
2009-05-08 19:53:41 +00:00
|
|
|
|
|
|
|
!IF "$(MSVC_VARIANT)" == "MSVC6" && !DEFINED(MSSDK)
|
|
|
|
NTDDNDIS_CONFIG=
|
|
|
|
!ELSE
|
|
|
|
NTDDNDIS_CONFIG=^#define HAVE_NTDDNDIS_H 1
|
|
|
|
!ENDIF
|