3 # Some more informations about the settings in this file, can be found
4 # in the file README.win32 and the Developer's Guide (available online).
6 ##### Target platform #####
7 # Only "win32" is valid (for now).
8 # This can be defined in the system environment.
15 # The current Wireshark version
16 # It's highly recommended to leave MAJOR/MINOR/MICRO unchanged
21 # It's recommended to change VERSION_EXTRA for your own custom builds
25 # The version of the wiretap library (recommended: leave unchanged)
32 ##### Directories #####
35 # Base directory, where your libraries reside, which are needed to
36 # compile the sources. This setting is used only inside this file.
38 WIRESHARK_LIBS=C:\wireshark-$(PLATFORM)-libs
41 # Base directory, where your programs reside.
42 # This setting is used only inside this file.
44 PROGRAM_FILES=$(PROGRAMFILES)
47 # Machine type for the compiler and linker
48 # TARGET_MACHINE (Used for link /MACHINE) should be one of "X86" or "X64"
49 # (sorry ARM, Alpha, MIPS, and Itanium fans).
50 # CPU (Used by win32.mak) should be one of "i386" or "AMD64".
51 !if "$(PLATFORM)" == "win32"
54 !else if "$(PLATFORM)" == "win64"
60 ##### Microsoft Visual C / Studio Variant #####
61 # for the different Studios, see: http://en.wikipedia.org/wiki/Microsoft_Visual_Studio
62 # only one of the following MSVC_VARIANT settings should be used
63 # BTW: The "Microsoft Visual C++ Toolkit 2003" DOESN'T WORK for WS!
65 # "Microsoft Visual Studio 6.0"
66 # Visual C++ 6.0, _MSC_VER 1200, msvcrt.dll (version 6)
69 # "Microsoft Visual Studio .NET (2002)"
70 # Visual C++ 7.0, _MSC_VER 1300, msvcr70.dll
71 #MSVC_VARIANT=MSVC2002
73 # "Microsoft .Net Framework SDK Version 1.0"
74 # needs additional Platform SDK installation
75 # Visual C++ 7.0, _MSC_VER 1300, msvcr70.dll
76 #MSVC_VARIANT=DOTNET10
78 # "Microsoft Visual Studio .NET 2003"
79 # Visual C++ 7.1, _MSC_VER 1310, msvcr71.dll
80 #MSVC_VARIANT=MSVC2003
82 # "Microsoft .Net Framework SDK Version 1.1"
83 # needs additional Platform SDK installation
84 # Visual C++ 7.1, _MSC_VER 1310, msvcr71.dll
85 #MSVC_VARIANT=DOTNET11
87 # "Microsoft Visual Studio 2005"
88 # Visual C++ 8.0, _MSC_VER 1400, msvcr80.dll
89 #MSVC_VARIANT=MSVC2005
91 # "Microsoft Visual C++ 2005 Express Edition"
92 # needs additional Platform SDK installation
93 # Visual C++ 8.0, _MSC_VER 1400, msvcr80.dll
94 #MSVC_VARIANT=MSVC2005EE
96 # "Microsoft .Net Framework 2.0 SDK"
97 # needs additional Platform SDK installation
98 # Visual C++ 8.0, _MSC_VER 1400, msvcr80.dll
99 #MSVC_VARIANT=DOTNET20
101 # "Microsoft Visual Studio 2008"
102 # Visual C++ 9.0, _MSC_VER 1500, msvcr90.dll
103 MSVC_VARIANT=MSVC2008
105 # "Microsoft Visual C++ 2008 Express Edition"
106 # Visual C++ 9.0, _MSC_VER 1500, msvcr90.dll
107 #MSVC_VARIANT=MSVC2008EE
110 # Optional: To compile some time critical code from assembler instead of C
112 # If you have the NASM compiler, set this to the NASM executable.
113 # http://nasm.sourceforge.net/
115 # If you don't have NASM, comment this line out, so that NASM
118 NASM=$(WIRESHARK_LIBS)\nasm-2.02\nasm.exe
121 ##### Libraries #####
124 # Mandatory: GLib settings
126 # Please note: Since Wireshark release 1.0.0, we no longer support GLib1.x
129 GLIB_DIR=$(WIRESHARK_LIBS)\glib
132 # Mandatory: GTK (& related libs) settings
134 # Please note: Since Wireshark release 1.0.0, we no longer support GTK1.x
136 # If you want building with GTK+, set GTK_DIR to the pathname of the
137 # directory in which the "include" and "lib" directories reside.
139 GTK_DIR=$(WIRESHARK_LIBS)\gtk2
142 # Mandatory: Version numbers of GTK and pango.
144 # (MAJOR + MINOR Version number but without MICRO version number)
145 # These macros are used by the nsis installer script and by the setup target.
147 # GTK 2.12 is the mainline since Wireshark 0.99.7
148 GTK_INST_VERSION=2.14
149 PANGO_INST_VERSION=1.22
152 # Optional: WinPcap developer's pack to capture network traffic.
154 # If you have the WinPcap developer's pack (at least version 3.0),
155 # set this to the directory in which the WinPcap developer's pack resides.
157 # If you don't have the WPdpack, comment this line out, so that
158 # PCAP_DIR isn't defined.
160 PCAP_DIR=$(WIRESHARK_LIBS)\WPdpack
163 # Optional: WinPcap remote capture support and new API
164 # (pcap_open(), pcap_findalldevs_ex(), etc.)
169 # Optional: The ZLib enables unzipping of gzip compressed capture files
172 # If you have Zlib, set this to directory in which the Zlib headers
173 # and .lib file are stored.
175 # If you don't have Zlib, comment this line out, so that ZLIB_DIR isn't
178 ZLIB_DIR=$(WIRESHARK_LIBS)\zlib123
181 # Optional: the ADNS library enables asynchronous (nonblocking) DNS
184 # If you have GNU ADNS, set this to the directory in which the GNU ADNS
185 # .lib file is stored.
187 # If you don't have GNU ADNS, comment this line out, so that ADNS_DIR
190 # If C_ARES_DIR is defined below, it will override this setting.
192 #ADNS_DIR=$(WIRESHARK_LIBS)\adns-1.0-win32-05ws
195 # Optional: the c-ares library enables asynchronous (nonblocking) DNS
198 # If you have c-ares, set this to the directory in which the c-ares
199 # .lib file is stored. Setting this will override ADNS_DIR above. You
202 # If you're using Visual C++ 6.0, you'll have to use a platform SDK that
203 # defines socklen_t, such as Windows Server 2003 PSDK.
205 # If you don't have c-ares, comment this line out, so that C_ARES_DIR
208 C_ARES_DIR=$(WIRESHARK_LIBS)\c-ares-1.5.3ws
211 # Optional: the PCRE (Perl Compatible Regular Expressions) library
212 # enables regular expressions for display filters.
214 # If you have the PCRE library, set this to the directory in which
215 # the GNUWIN32 pcre-lib package is stored.
217 # If you don't have PCRE, comment this line out, so that PCRE_DIR
220 PCRE_DIR=$(WIRESHARK_LIBS)\pcre-7.0
223 # Optional: the GNUTLS library enables ssl decryption.
225 # If you have the GNUTLS library, set this to the directory where
226 # the lib and include files are stored.
228 # If you don't have GNUTLS, comment this line out, so that GNUTLS_DIR
231 # Platform SDK conflicts with openssl.h header
232 #GNUTLS_DIR=$(WIRESHARK_LIBS)\gnutls-1.6.1-1
233 GNUTLS_DIR=$(WIRESHARK_LIBS)\gnutls-2.3.8-1
236 # Optional: the KFW library enables kerberos/sasl/dcerpc decryption.
238 # If you have the kerberos for windows (mit) library, set this to the
239 # directory where the kfw package is stored.
241 # If you don't have KFW, comment this line out, so that KFW_DIR
244 KFW_DIR=$(WIRESHARK_LIBS)\kfw-2.5
247 # Optional: the Nettle library enables ??? decryption.
249 # If you have the Nettle encryption library, set this to the
250 # directory in which the nettle package is stored.
252 # If you don't have Nettle, comment this line out, so that NETTLE_DIR
255 # NETTLE_DIR=$(WIRESHARK_LIBS)\nettle-1.10
258 # Optional: the LUA library enables scripting support.
260 # If you have the LUA library, set this to the directory in which
261 # the LUA package is stored.
263 # If you don't have LUA, comment this line out, so that LUA_DIR
266 LUA_DIR=$(WIRESHARK_LIBS)\lua5.1.4
269 # Optional: the PORTAUDIO library enables audio output for RTP streams.
271 # If you have the PORTAUDIO library (used for rtp_player), set this to
272 # the directory in which the PORTAUDIO library is stored.
274 # If you don't have PORTAUDIO, comment this line out, so that
275 # PORTAUDIO_DIR isn't defined.
277 #PORTAUDIO_DIR=$(WIRESHARK_LIBS)\portaudio_v18_1
278 PORTAUDIO_DIR=$(WIRESHARK_LIBS)\portaudio_v19_2
281 # Version number of PortAudio
283 #PORTAUDIO_VERSION=18
287 # Iconv: Mandatory for Glib >= 2 and <= 2.14.4
288 # [win-iconv statically linked as part of Glib >= 2.14.5]
289 # Set ICONV_DIR to the directory in which the
290 # ICONV include files and library resides.
292 ##ICONV_DIR=$(WIRESHARK_LIBS)\libiconv-1.9.1.bin.woe32
295 # Mandatory for GTK >= 2: Gettext
297 # Set GETTEXT_DIR to the directory in which the
298 # GETTEXT include files and library resides.
300 #GETTEXT_DIR=$(WIRESHARK_LIBS)\gettext-0.14.5
301 GETTEXT_DIR=$(WIRESHARK_LIBS)\gettext-runtime-0.17-1
303 # Optional: AirPcap developer's pack to capture wireless network traffic
304 # incl. 802.11 management frames.
306 # If you have the AirPcap developer's pack, set this to the directory
307 # in which the AirPcap developer's pack resides.
309 # If you don't have the AirPcap developer's pack, comment this line out,
310 # so that AIRPCAP_DIR isn't defined.
312 AIRPCAP_DIR=$(WIRESHARK_LIBS)\AirPcap_Devpack_1_0_0_594\AirPcap_Devpack
315 # Optional: LIBSMI, System Management Interface
317 # Used for oid-name resolution for SNMP and other protocols
319 SMI_DIR=$(WIRESHARK_LIBS)\libsmi-0.4.8
324 # Set the following mandatory commands to find the tools.
325 # The easiest way is to use the corresponding packages from cygwin.
327 # Set up the path to the cygwin binaries
328 CYGWIN_PATH=c:\cygwin\bin
330 # command for a shell (cygwin's bash package recommended)
333 # bash versions after 3.1.6 need the 'igncr' shell option to be able to
334 # process scripts in windows 'native format' (dos crlf format).
335 # The following !IF results in the option being used only if it is available
336 # since using it on bash version 3.1.6 (or earlier) is not required and
337 # will cause an error message.
338 !if "$(SH_PROG)"=="bash" && [$(CYGWIN_PATH)\bash -c "set -o igncr" 2>nul: ] == 0
342 SH=$(SH_PROG) $(SH_FLAGS)
345 # command for perl (cygwin's perl package recommended)
348 # command for pod2man and pod2html
349 # (part of the perl package, usually leave these unchanged)
350 POD2MAN=$(SH) pod2man
351 POD2HTML=$(SH) pod2html
353 # Command for native Windows Python (recommended)
354 # V2.4 to V2.6 should work
356 # If you want to specify your Python settings, uncomment the lines below.
357 #PYTHON="C:\Python26\python.exe"
358 #PATH=c:\Python26;$(PATH)
360 # Command for Cygwin's Python (not recommended)
363 # Otherwise, find Python automatically.
365 !IF EXIST(c:\Python26\python.exe)
366 PYTHON="C:\Python26\python.exe"
367 PATH=c:\Python26;$(PATH)
368 !ELSE IF EXIST(c:\Python25\python.exe)
369 PYTHON="C:\Python25\python.exe"
370 PATH=c:\Python25;$(PATH)
371 !ELSE IF EXIST(c:\Python24\python.exe)
372 PYTHON="C:\Python24\python.exe"
373 PATH=c:\Python24;$(PATH)
377 # command for lex/flexx (cygwin's flex recommended)
380 # command for yacc/bison (cygwin's bison recommended)
384 # Optional: To build the NSIS installer.
386 # If you have the NSIS package, set this to the NSIS executable.
388 # If you don't have NSIS, comment this line out, so that MAKENSIS
391 MAKENSIS="$(PROGRAM_FILES)\nsis\makensis.exe"
394 # Optional: To build the developers API documentation with doxygen and dot.
395 # Currently experimental, outdated and incomplete.
397 # You will have to download and install:
398 # Doxygen from: http://www.doxygen.org
399 # Graphviz from: http://www.research.att.com/sw/tools/graphviz/
401 # If you have doxygen, set this to the doxygen executable.
403 # If you don't want the developers documentation (or don't have the tools),
404 # comment this line out, so that DOXYGEN isn't defined.
406 #DOXYGEN="$(PROGRAM_FILES)/doxygen/bin/doxygen.exe"
409 # Recommended: Use the compressed html help format .chm as the Wireshark integrated help.
411 # The required htmlhelp.h and htmlhelp.lib should be included in MSVC_VARIANT > MSVC6.
413 # For MSVC_VARIANT == MSVC6 you will have to download and install the html help workshop from:
415 # http://msdn.microsoft.com/library/default.asp?url=/library/en-us/htmlhelp/html
416 # /hwMicrosoftHTMLHelpDownloads.asp
418 # Then point HHC_DIR to the html help dir (where hhc.exe resides).
420 # If you don't want the online help (or don't have the tools),
421 # comment this line out, so that HHC_DIR isn't defined.
423 HHC_DIR=$(PROGRAM_FILES)/HTML Help Workshop
426 # Optional: To reduce the size of dlls and exes, which is especially useful for USB device distributions (U3, PortableApps)
428 # If you have the UPX package, set this to the upx.exe executable.
430 # UPX can be downloaded from:
431 # http://upx.sourceforge.net/
433 # If you don't have UPX, or don't want to pack exes and dlls,
434 # comment this line out, so that UPX isn't defined.
437 UPX=$(WIRESHARK_LIBS)\upx301w\upx.exe
439 ##### Flags, PATHs and Miscellaneous #####
441 # "convert" the MSVC variant into the required MSC compiler version
442 !IF "$(MSVC_VARIANT)" == "MSVC6"
443 MSC_VER_REQUIRED=1200
444 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2002" || "$(MSVC_VARIANT)" == "DOTNET10"
445 MSC_VER_REQUIRED=1300
446 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2003" || "$(MSVC_VARIANT)" == "DOTNET11"
447 MSC_VER_REQUIRED=1310
448 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2005" || "$(MSVC_VARIANT)" == "MSVC2005EE" || "$(MSVC_VARIANT)" == "DOTNET20"
449 MSC_VER_REQUIRED=1400
450 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2008" || "$(MSVC_VARIANT)" == "MSVC2008EE"
451 MSC_VER_REQUIRED=1500
453 !ERROR MSVC_VARIANT unknown
457 # /W3 warning level 3 (0 less - 4 most, 1 default)
458 # /Zi create .pdb file for debugging
459 # /MD use "Multithreading Debug" libraries
460 # /D_CRT_SECURE_NO_DEPRECATE don't warn for "insecure" calls, see MSDN "Security Enhancements in the CRT"
461 # /D_CRT_NONSTDC_NO_DEPRECATE don't warn for "Deprecated CRT Functions" as MSDN calls this
462 # /D_BIND_TO_CURRENT_CRT_VERSION=1 Make sure our CRT and manifest versions match (http://msdn.microsoft.com/en-us/library/cc664727.aspx)
464 !IF "$(MSVC_VARIANT)" == "MSVC6" || "$(MSVC_VARIANT)" == "MSVC2002" || "$(MSVC_VARIANT)" == "DOTNET10" || "$(MSVC_VARIANT)" == "MSVC2003" || "$(MSVC_VARIANT)" == "DOTNET11"
465 LOCAL_CFLAGS=/Zi /W3 /MD /DMSC_VER_REQUIRED=$(MSC_VER_REQUIRED)
466 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2005" || "$(MSVC_VARIANT)" == "MSVC2005EE" || "$(MSVC_VARIANT)" == "DOTNET20" || "$(MSVC_VARIANT)" == "MSVC2008" || "$(MSVC_VARIANT)" == "MSVC2008EE"
467 LOCAL_CFLAGS=/Zi /W3 /MD /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE /DMSC_VER_REQUIRED=$(MSC_VER_REQUIRED) /D_BIND_TO_CURRENT_CRT_VERSION=1
469 !ERROR MSVC_VARIANT unknown
473 # /DEBUG generate debug info
474 # /PROFILE generate map file(s) for profiling
475 # /DEFAULTLIB:xxx use xxx as the standard C library
476 # /NODEFAULTLIB:xxx don't use xxx as the standard C library
478 LOCAL_LDFLAGS=/DEBUG /MACHINE:$(TARGET_MACHINE)
480 PLUGIN_LDFLAGS = /NOLOGO /INCREMENTAL:no $(LOCAL_LDFLAGS)
483 # According to http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=403
484 # XCOPY under Windows NT doesn't support the "/Y" flag. This works
486 # XXX - This apparently doesn't work for some versions of nmake:
487 # http://support.microsoft.com/default.aspx?scid=kb;en-us;86814
488 # It looks like we'll have to call "set copycmd=/y" before we run xcopy.
492 # If you don't want to build libwireshark.dll, you should comment out the
493 # following line. (Note: for plugin support this option must stay activated)
494 ENABLE_LIBWIRESHARK=USE
497 # install (debug) directory for Wireshark (relative to your source dir)
498 INSTALL_DIR=wireshark-gtk2
502 ##### C-Runtime Redistributable #####
504 # The C-Runtime since Version 7 must be shipped together with
505 # the program installer, to avoid missing msvcr*.dll files on
506 # the target machine.
508 # The location of these files differ on the various compiler
509 # packages, the following will use the default paths depending
510 # on the package version.
512 !IF "$(MSVC_VARIANT)" == "MSVC6"
513 # msvcrt.dll will already be available on target machines - nothing additional to install
515 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2002"
516 # you probably need to tweak this directory if you don't use the professional edition!
517 MSVCR_DLL=$(PROGRAM_FILES)\Microsoft Visual Studio .NET\Visual Studio .NET Professional - English\msvcr70.dll
519 !ELSEIF "$(MSVC_VARIANT)" == "DOTNET10"
520 # no redistributable available for this package!
522 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2003"
523 # you probably need to tweak this directory if you don't use the professional edition!
524 MSVCR_DLL=$(PROGRAM_FILES)\Microsoft Visual Studio .NET 2003\Visual Studio .NET Professional 2003 - English\msvcr71.dll
526 !ELSEIF "$(MSVC_VARIANT)" == "DOTNET11"
527 # no redistributable available for this package!
529 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2005"
530 MSVCR_DLL=$(PROGRAM_FILES)\Microsoft Visual Studio 8\VC\redist\x86\Microsoft.VC80.CRT\*.*
532 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2005EE" || "$(MSVC_VARIANT)" == "DOTNET20" || "$(MSVC_VARIANT)" == "MSVC2008EE"
533 # you need to download the redistributable package vcredist_x86.exe from Microsoft first,
534 # and copy it to the lib folder!!!
535 VCREDIST_EXE=$(WIRESHARK_LIBS)\vcredist_x86.exe
537 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2008"
538 MSVCR_DLL=$(PROGRAM_FILES)\Microsoft Visual Studio 9.0\VC\redist\x86\Microsoft.VC90.CRT\*.*
541 !ERROR MSVC_VARIANT unknown
546 ##### Advanced: Docbook/XML documentation generation #####
547 # If you want to generate the Docbook/XML based docs (User's and Developer's
548 # Guide, ...), you'll need some additional tools / libraries compared to the
549 # rest of the build process.
551 # FOR DETAILED INSTRUCTIONS TO GENERATE THE DOCS, SEE: docbook\readme.txt.
553 # If you don't call the Makefile.nmake in the docbook dir to generate the
554 # docs, the following settings in this section will have no effect.
556 # formatting objects processor executable
557 # Comment this out if you don't have fop installed or you don't want the docs
560 FOP=fop-0.20.5\fop.bat
563 # Additional options to fop.
567 # Comment this out if you don't have hhc.exe or you don't want the docs in
570 # Beware: hhc.exe is NOT part of the MSVC packages in HHC_DIR mentioned above,
571 # so you'll need to install the HTML Help Workshop for this.
572 HHC_EXE="$(HHC_DIR)\hhc.exe"
574 # html to text converter for text version of release notes, e.g. elinks.
575 # This could also be "lynx", or "true" if neither elinks nor lynx is installed
576 # (cygwin: lynx works, elinks not available, links and true doesn't produce output)
577 #HTML2TXT=elinks -dump -dump-width 72
578 #HTML2TXT=links -dump -width 72
579 HTML2TXT=lynx -dump -width=72 -nolist -stdin
582 # the XSL processor (part of cygwin's libxslt package)
585 # the XML validator (part of cygwin's libxml2 package)
590 ##############################################################################
592 # You should not have to change anything below this comment.
593 # If you do, it's a deficiency in the Makefile.nmake files;
594 # either tell wireshark-dev@wireshark.org about it, including
595 # details of why you had to change it, or fix config.nmake
596 # and any Makefile.nmake files that need to be changed, and
597 # send us the patches, along with details of why the change
600 ##############################################################################
603 # The RC_VERSION should be comma-separated, not dot-separated,
604 # as per Graham Bloice's message in
606 # http://www.ethereal.com/lists/ethereal-dev/200303/msg00283.html
608 # "The RC_VERSION variable in config.nmake should be comma separated.
609 # This allows the resources to be built correctly and the version
610 # number to be correctly displayed in the explorer properties dialog
611 # for the executables, and XP's tooltip, rather than 0.0.0.0."
614 VERSION=$(VERSION_MAJOR).$(VERSION_MINOR).$(VERSION_MICRO)$(VERSION_EXTRA)
615 RC_VERSION=$(VERSION_MAJOR),$(VERSION_MINOR),$(VERSION_MICRO),$(VERSION_BUILD)
617 WTAP_VERSION=$(WTAP_VERSION_MAJOR).$(WTAP_VERSION_MINOR).$(WTAP_VERSION_MICRO)
618 RC_WTAP_VERSION=$(WTAP_VERSION_MAJOR),$(WTAP_VERSION_MINOR),$(WTAP_VERSION_MICRO)
621 GLIB_CFLAGS=/I$(GLIB_DIR)\include\glib-$(GLIB_VERSION) \
622 /I$(GLIB_DIR)\lib\glib-$(GLIB_VERSION)\include
623 GCC_GLIB_CFLAGS=-I$(GLIB_DIR)\include\glib-$(GLIB_VERSION) \
624 -I$(GLIB_DIR)\lib\glib-$(GLIB_VERSION)\include
625 GLIB_LIBS=$(GLIB_DIR)\lib\glib-$(GLIB_VERSION).lib \
626 $(GLIB_DIR)\lib\gmodule-$(GLIB_VERSION).lib \
627 $(GLIB_DIR)\lib\gobject-$(GLIB_VERSION).lib
630 GTK_CFLAGS=$(GLIB_CFLAGS) /I$(GTK_DIR)\include\gtk-2.0 \
631 /I$(GTK_DIR)\lib\gtk-2.0\include \
632 /I$(GTK_DIR)\include\atk-1.0 \
633 /I$(GTK_DIR)\include\cairo \
634 /I$(GTK_DIR)\include\pango-1.0
635 GTK_LIBS=$(GTK_DIR)\lib\gtk-win32-2.0.lib \
636 $(GTK_DIR)\lib\gdk-win32-2.0.lib \
637 $(GTK_DIR)\lib\gdk_pixbuf-2.0.lib \
638 $(GTK_DIR)\lib\pango-1.0.lib \
641 !IF "$(GTK_INST_VERSION)" == "2.14"
647 GTK_WIMP_DLLSRC_DIR=$(GTK_DIR)\lib\gtk-2.0\2.10.0\engines
648 GTK_WIMP_DLLDST_DIR=lib\gtk-2.0\2.10.0\engines
649 GTK_WIMP_RCSRC_DIR=$(GTK_DIR)\share\themes\MS-Windows\gtk-2.0
650 GTK_WIMP_RCDST_DIR=etc\gtk-2.0
651 !ELSEIF "$(GTK_INST_VERSION)" == "2.12"
657 GTK_WIMP_DLLSRC_DIR=$(GTK_DIR)\lib\gtk-2.0\2.10.0\engines
658 GTK_WIMP_DLLDST_DIR=lib\gtk-2.0\2.10.0\engines
659 GTK_WIMP_RCSRC_DIR=$(GTK_DIR)\share\themes\MS-Windows\gtk-2.0
660 GTK_WIMP_RCDST_DIR=etc\gtk-2.0
662 !ERROR ? Unknown or invalid GTK_INST_VERSION
665 !IF "$(PANGO_INST_VERSION)" == "1.22"
667 !ELSEIF "$(PANGO_INST_VERSION)" == "1.18"
669 !ELSEIF "$(PANGO_INST_VERSION)" == "1.16"
672 !ERROR ? Unknown or invalid PANGO_INST_VERSION
676 AIRPCAP_CONFIG=^#define HAVE_AIRPCAP 1
677 AIRPDCAP_CONFIG=^#define HAVE_AIRPDCAP 1
678 #AIRPCAP_CFLAGS=/I$(AIRPCAP_DIR)\include
685 # Nmake uses carets to escape special characters
686 WINPCAP_CONFIG=^#define HAVE_LIBPCAP 1
687 PCAP_FINDALLDEVS_CONFIG=^#define HAVE_PCAP_FINDALLDEVS 1
688 PCAP_DATALINK_NAME_TO_VAL_CONFIG=^#define HAVE_PCAP_DATALINK_NAME_TO_VAL 1
689 PCAP_DATALINK_VAL_TO_NAME_CONFIG=^#define HAVE_PCAP_DATALINK_VAL_TO_NAME 1
690 # PCAP_BREAKLOOP won't have any benefit on Win32, but breaks compatibility with 3.0
691 PCAP_BREAKLOOP_CONFIG=
692 WPCAP_CONSTIFIED_CONFIG=^#define WPCAP_CONSTIFIED 1
694 # no WpdPack installed
696 PCAP_FINDALLDEVS_CONFIG=
697 PCAP_DATALINK_NAME_TO_VAL_CONFIG=
698 PCAP_DATALINK_VAL_TO_NAME_CONFIG=
699 PCAP_BREAKLOOP_CONFIG=
703 PCAP_LIST_DATALINKS_CONFIG=^#define HAVE_PCAP_LIST_DATALINKS 1
704 PCAP_SET_DATALINK_CONFIG=^#define HAVE_PCAP_SET_DATALINK 1
706 !IF DEFINED(PCAP_DIR) && DEFINED(PCAP_REMOTE)
707 PCAP_HAVE_REMOTE_CONFIG=^#define HAVE_REMOTE 1
708 PCAP_REMOTE_CONFIG=^#define HAVE_PCAP_REMOTE 1
709 PCAP_OPEN_CONFIG=^#define HAVE_PCAP_OPEN 1
710 PCAP_FINDALLDEVS_EX_CONFIG=^#define HAVE_PCAP_FINDALLDEVS_EX 1
711 PCAP_CREATESRCSTR_CONFIG=^#define HAVE_PCAP_CREATESRCSTR 1
712 PCAP_SETSAMPLING_CONFIG=^#define HAVE_PCAP_SETSAMPLING 1
714 PCAP_HAVE_REMOTE_CONFIG=
717 PCAP_FINDALLDEVS_EX_CONFIG=
718 PCAP_CREATESRCSTR_CONFIG=
719 PCAP_SETSAMPLING_CONFIG=
723 ZLIB_PATH=$(ZLIB_DIR)
724 ZLIB_CFLAGS=/I$(ZLIB_DIR)\include
725 ZLIB_LIBS=$(ZLIB_DIR)\lib\zdll.lib
726 ZLIB_DLL=$(ZLIB_DIR)\zlib1.dll
727 # Nmake uses carets to escape special characters
728 ZLIB_CONFIG=^#define HAVE_LIBZ 1
738 C_ARES_CFLAGS=/I$(C_ARES_DIR)
739 C_ARES_LIBS=$(C_ARES_DIR)\cares.lib
740 C_ARES_DLL=$(C_ARES_DIR)\cares.dll
741 # Nmake uses carets to escape special characters
742 C_ARES_CONFIG=^#define HAVE_C_ARES 1
748 ADNS_PATH=$(ADNS_DIR)\adns_win32\lib
749 ADNS_CFLAGS=/I$(ADNS_DIR)\src /I$(ADNS_DIR)\adns_win32
750 ADNS_LIBS=$(WIRESHARK_LIBS)\$(MSVC_VARIANT)\adns\adns_dll.lib
751 ADNS_DLL=$(WIRESHARK_LIBS)\$(MSVC_VARIANT)\adns\adns_dll.dll
752 # Nmake uses carets to escape special characters
753 ADNS_CONFIG=^#define HAVE_GNU_ADNS 1
762 KFW_PATH=$(KFW_DIR)\bin
763 KFW_CFLAGS=/I$(KFW_DIR)\inc
764 KFW_LIBS=$(KFW_DIR)\lib\krb5_32.lib
765 # Nmake uses carets to escape special characters
766 KFW_CONFIG=^#define HAVE_MIT_KERBEROS 1
774 PCRE_PATH=$(PCRE_DIR)\bin
775 PCRE_CFLAGS=/I$(PCRE_DIR)\include
776 PCRE_LIBS=$(PCRE_DIR)\lib\pcre.lib
777 # Nmake uses carets to escape special characters
778 PCRE_CONFIG=^#define HAVE_LIBPCRE 1
786 NETTLE_CFLAGS=/I$(NETTLE_DIR)
787 NETTLE_LIBS=$(NETTLE_DIR)\libnettle.lib
788 # Nmake uses carets to escape special characters
789 NETTLE_CONFIG=^#define HAVE_LIBNETTLE 1
797 GNUTLS_PATH=$(GNUTLS_DIR)
798 # /DNOCRYPT avoids inclusion of Wincrypt.h, avoiding a X509_NAME define clash
799 GNUTLS_CFLAGS=/I$(GNUTLS_DIR)\include /DNOCRYPT
801 $(GNUTLS_DIR)\bin\libtasn1-3.lib \
802 $(GNUTLS_DIR)\bin\libgpg-error-0.lib \
803 $(GNUTLS_DIR)\bin\libgcrypt-11.lib \
804 $(GNUTLS_DIR)\bin\libgnutls-26.lib
805 # Nmake uses carets to escape special characters
806 GNUTLS_CONFIG=^#define HAVE_LIBGNUTLS 1
807 LIBGCRYPT_CONFIG=^#define HAVE_LIBGCRYPT 1
816 LUA_CFLAGS=/I$(LUA_DIR)\include
817 LUA_LIBS=$(LUA_DIR)\lua5.1.lib
818 # Nmake uses carets to escape special characters
819 LUA_CONFIG=^#define HAVE_LUA 1
820 LUA_VERSION=^#define HAVE_LUA_5_1 1
828 # Nmake uses carets to escape special characters
829 PORTAUDIO_CONFIG=^#define HAVE_LIBPORTAUDIO 1
830 !IF "$(PORTAUDIO_VERSION)" == "18"
831 # V18 uses API version 1 and v19 API version 2
832 PORTAUDIO_CFLAGS=/I$(PORTAUDIO_DIR)\pa_common
833 PORTAUDIO_API_CONFIG=^#define PORTAUDIO_API_1 1
835 PORTAUDIO_CFLAGS=/I$(PORTAUDIO_DIR)\include /I$(PORTAUDIO_DIR)\src\common /I$(PORTAUDIO_DIR)\src\os\win /DPA_NO_DS /DPA_NO_ASIO
843 !IF "$(MSVC_VARIANT)" == "MSVC6"
844 HHC_CFLAGS=/I"$(HHC_DIR)\include" -DHHC_DIR
845 HHC_LIBS="$(HHC_DIR)\lib\htmlhelp.lib"
848 HHC_LIBS=htmlhelp.lib
856 SMI_CONFIG=^#define HAVE_LIBSMI 1
857 SMI_CFLAGS=/I$(SMI_DIR)\include
858 SMI_LIBS=$(SMI_DIR)\lib\smi.lib
865 !IFDEF ENABLE_LIBWIRESHARK
866 LIBWIRESHARK_CONFIG=^#define HAVE_LIBWIRESHARKDLL 1
867 # Link plugins with the import library of libwireshark.dll
868 LINK_PLUGINS_WITH_LIBWIRESHARK=USE
875 PATH=$(PATH);$(CYGWIN_PATH);$(GLIB_DIR)\bin;$(GETTEXT_DIR)\bin;$(ICONV_DIR)\bin;$(ZLIB_PATH);$(ADNS_PATH)
877 PATH=$(PATH);$(CYGWIN_PATH);$(GLIB_DIR)\bin;$(GETTEXT_DIR)\bin;$(ZLIB_PATH);$(ADNS_PATH)
880 # We can't use a lot of IPv6 code with plain Visual C++ 6.0
881 !IF "$(MSVC_VARIANT)" == "MSVC6" && !DEFINED(MSSDK)
884 INET6_CONFIG=^#define INET6 1