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 # Location of the "tools" directory. This affects HTML2TXT below and should
48 # be overridden by makefiles in any subdirectories that use HTML2TXT.
54 # Machine type for the compiler and linker
55 # TARGET_MACHINE (Used for link /MACHINE) should be one of "X86" or "X64"
56 # (sorry ARM, Alpha, MIPS, and Itanium fans).
57 # CPU (Used by win32.mak) should be one of "i386" or "AMD64".
58 !if "$(PLATFORM)" == "win32"
61 !else if "$(PLATFORM)" == "win64"
67 ##### Microsoft Visual C / Studio Variant #####
68 # for the different Studios, see: http://en.wikipedia.org/wiki/Microsoft_Visual_Studio
69 # only one of the following MSVC_VARIANT settings should be used
70 # BTW: The "Microsoft Visual C++ Toolkit 2003" DOESN'T WORK for WS!
72 # "Microsoft Visual Studio 6.0"
73 # Visual C++ 6.0, _MSC_VER 1200, msvcrt.dll (version 6)
76 # "Microsoft Visual Studio .NET (2002)"
77 # Visual C++ 7.0, _MSC_VER 1300, msvcr70.dll
78 #MSVC_VARIANT=MSVC2002
80 # "Microsoft .Net Framework SDK Version 1.0"
81 # needs additional Platform SDK installation
82 # Visual C++ 7.0, _MSC_VER 1300, msvcr70.dll
83 #MSVC_VARIANT=DOTNET10
85 # "Microsoft Visual Studio .NET 2003"
86 # Visual C++ 7.1, _MSC_VER 1310, msvcr71.dll
87 #MSVC_VARIANT=MSVC2003
89 # "Microsoft .Net Framework SDK Version 1.1"
90 # needs additional Platform SDK installation
91 # Visual C++ 7.1, _MSC_VER 1310, msvcr71.dll
92 #MSVC_VARIANT=DOTNET11
94 # "Microsoft Visual Studio 2005"
95 # Visual C++ 8.0, _MSC_VER 1400, msvcr80.dll
96 #MSVC_VARIANT=MSVC2005
98 # "Microsoft Visual C++ 2005 Express Edition"
99 # needs additional Platform SDK installation
100 # Visual C++ 8.0, _MSC_VER 1400, msvcr80.dll
101 #MSVC_VARIANT=MSVC2005EE
103 # "Microsoft .Net Framework 2.0 SDK"
104 # needs additional Platform SDK installation
105 # Visual C++ 8.0, _MSC_VER 1400, msvcr80.dll
106 #MSVC_VARIANT=DOTNET20
108 # "Microsoft Visual Studio 2008"
109 # Visual C++ 9.0, _MSC_VER 1500, msvcr90.dll
110 MSVC_VARIANT=MSVC2008
112 # "Microsoft Visual C++ 2008 Express Edition"
113 # Visual C++ 9.0, _MSC_VER 1500, msvcr90.dll
114 #MSVC_VARIANT=MSVC2008EE
117 # Optional: To compile some time critical code from assembler instead of C
119 # If you have the NASM compiler, set this to the NASM executable.
120 # http://nasm.sourceforge.net/
122 # If you don't have NASM, comment this line out, so that NASM
125 NASM=$(WIRESHARK_LIBS)\nasm-2.02\nasm.exe
128 ##### Libraries #####
131 # Mandatory: GLib settings
133 # Please note: Since Wireshark release 1.0.0, we no longer support GLib1.x
136 GLIB_DIR=$(WIRESHARK_LIBS)\glib
139 # Mandatory: GTK (& related libs) settings
141 # Please note: Since Wireshark release 1.0.0, we no longer support GTK1.x
143 # If you want building with GTK+, set GTK_DIR to the pathname of the
144 # directory in which the "include" and "lib" directories reside.
146 GTK_DIR=$(WIRESHARK_LIBS)\gtk2
149 # Mandatory: Version numbers of GTK and pango.
151 # (MAJOR + MINOR Version number but without MICRO version number)
152 # These macros are used by the nsis installer script and by the setup target.
154 # GTK 2.12 is the mainline since Wireshark 0.99.7
155 GTK_INST_VERSION=2.14
156 PANGO_INST_VERSION=1.22
159 # Optional: WinPcap developer's pack to capture network traffic.
161 # If you have the WinPcap developer's pack (at least version 3.0),
162 # set this to the directory in which the WinPcap developer's pack resides.
164 # If you don't have the WPdpack, comment this line out, so that
165 # PCAP_DIR isn't defined.
167 PCAP_DIR=$(WIRESHARK_LIBS)\WPdpack
170 # Optional: WinPcap remote capture support and new API
171 # (pcap_open(), pcap_findalldevs_ex(), etc.)
176 # Optional: The ZLib enables unzipping of gzip compressed capture files
179 # If you have Zlib, set this to directory in which the Zlib headers
180 # and .lib file are stored.
182 # If you don't have Zlib, comment this line out, so that ZLIB_DIR isn't
185 ZLIB_DIR=$(WIRESHARK_LIBS)\zlib123
188 # Optional: the ADNS library enables asynchronous (nonblocking) DNS
191 # If you have GNU ADNS, set this to the directory in which the GNU ADNS
192 # .lib file is stored.
194 # If you don't have GNU ADNS, comment this line out, so that ADNS_DIR
197 # If C_ARES_DIR is defined below, it will override this setting.
199 #ADNS_DIR=$(WIRESHARK_LIBS)\adns-1.0-win32-05ws
202 # Optional: the c-ares library enables asynchronous (nonblocking) DNS
205 # If you have c-ares, set this to the directory in which the c-ares
206 # .lib file is stored. Setting this will override ADNS_DIR above. You
209 # If you're using Visual C++ 6.0, you'll have to use a platform SDK that
210 # defines socklen_t, such as Windows Server 2003 PSDK.
212 # If you don't have c-ares, comment this line out, so that C_ARES_DIR
215 C_ARES_DIR=$(WIRESHARK_LIBS)\c-ares-1.6.0ws
218 # Optional: the PCRE (Perl Compatible Regular Expressions) library
219 # enables regular expressions for display filters.
221 # If you have the PCRE library, set this to the directory in which
222 # the GNUWIN32 pcre-lib package is stored.
224 # If you don't have PCRE, comment this line out, so that PCRE_DIR
227 PCRE_DIR=$(WIRESHARK_LIBS)\pcre-7.0
230 # Optional: the GNUTLS library enables ssl decryption.
232 # If you have the GNUTLS library, set this to the directory where
233 # the lib and include files are stored.
235 # If you don't have GNUTLS, comment this line out, so that GNUTLS_DIR
238 # Platform SDK conflicts with openssl.h header
239 #GNUTLS_DIR=$(WIRESHARK_LIBS)\gnutls-2.6.3-1
240 GNUTLS_DIR=$(WIRESHARK_LIBS)\gnutls-2.6.4-1
243 # Optional: the KFW library enables kerberos/sasl/dcerpc decryption.
245 # If you have the kerberos for windows (mit) library, set this to the
246 # directory where the kfw package is stored.
248 # If you don't have KFW, comment this line out, so that KFW_DIR
251 KFW_DIR=$(WIRESHARK_LIBS)\kfw-2.5
254 # Optional: the Nettle library enables ??? decryption.
256 # If you have the Nettle encryption library, set this to the
257 # directory in which the nettle package is stored.
259 # If you don't have Nettle, comment this line out, so that NETTLE_DIR
262 # NETTLE_DIR=$(WIRESHARK_LIBS)\nettle-1.10
265 # Optional: the LUA library enables scripting support.
267 # If you have the LUA library, set this to the directory in which
268 # the LUA package is stored.
270 # If you don't have LUA, comment this line out, so that LUA_DIR
273 LUA_DIR=$(WIRESHARK_LIBS)\lua5.1.4
276 # Optional: the PORTAUDIO library enables audio output for RTP streams.
278 # If you have the PORTAUDIO library (used for rtp_player), set this to
279 # the directory in which the PORTAUDIO library is stored.
281 # If you don't have PORTAUDIO, comment this line out, so that
282 # PORTAUDIO_DIR isn't defined.
284 #PORTAUDIO_DIR=$(WIRESHARK_LIBS)\portaudio_v18_1
285 PORTAUDIO_DIR=$(WIRESHARK_LIBS)\portaudio_v19_2
288 # Version number of PortAudio
290 #PORTAUDIO_VERSION=18
294 # Iconv: Mandatory for Glib >= 2 and <= 2.14.4
295 # [win-iconv statically linked as part of Glib >= 2.14.5]
296 # Set ICONV_DIR to the directory in which the
297 # ICONV include files and library resides.
299 ##ICONV_DIR=$(WIRESHARK_LIBS)\libiconv-1.9.1.bin.woe32
302 # Mandatory for GTK >= 2: Gettext
304 # Set GETTEXT_DIR to the directory in which the
305 # GETTEXT include files and library resides.
307 #GETTEXT_DIR=$(WIRESHARK_LIBS)\gettext-0.14.5
308 GETTEXT_DIR=$(WIRESHARK_LIBS)\gettext-runtime-0.17-1
310 # Optional: AirPcap developer's pack to capture wireless network traffic
311 # incl. 802.11 management frames.
313 # If you have the AirPcap developer's pack, set this to the directory
314 # in which the AirPcap developer's pack resides.
316 # If you don't have the AirPcap developer's pack, comment this line out,
317 # so that AIRPCAP_DIR isn't defined.
319 AIRPCAP_DIR=$(WIRESHARK_LIBS)\AirPcap_Devpack_1_0_0_594\AirPcap_Devpack
322 # Optional: LIBSMI, System Management Interface
324 # Used for oid-name resolution for SNMP and other protocols
326 SMI_DIR=$(WIRESHARK_LIBS)\libsmi-0.4.8
329 # Optional: GeoIP, IP address database lookups
331 # Used to map IP addresses to MaxMind GeoIP database entries
333 # GeoIP requires IPv6 definitions that don't ship with Visual C++ 6.0.
334 # However, the Microsoft Platform SDK for Windows Server 2003 R2 provides
335 # these definitions. The SDK's SetEnv.bat script defines INETSDK.
336 !IF "$(MSVC_VARIANT)" != "MSVC6" || DEFINED(INETSDK)
337 GEOIP_DIR=$(WIRESHARK_LIBS)\GeoIP-1.4.5ws
342 # Set the following mandatory commands to find the tools.
343 # The easiest way is to use the corresponding packages from cygwin.
345 # Set up the path to the cygwin binaries
346 CYGWIN_PATH=c:\cygwin\bin
348 # command for a shell (cygwin's bash package recommended)
351 # bash versions after 3.1.6 need the 'igncr' shell option to be able to
352 # process scripts in windows 'native format' (dos crlf format).
353 # The following !IF results in the option being used only if it is available
354 # since using it on bash version 3.1.6 (or earlier) is not required and
355 # will cause an error message.
356 !if "$(SH_PROG)"=="bash" && [$(CYGWIN_PATH)\bash -c "set -o igncr" 2>nul: ] == 0
360 SH=$(SH_PROG) $(SH_FLAGS)
363 # command for perl (cygwin's perl package recommended)
366 # command for pod2man and pod2html
367 # (part of the perl package, usually leave these unchanged)
368 POD2MAN=$(SH) pod2man
369 POD2HTML=$(SH) pod2html
371 # Command for native Windows Python (recommended)
372 # V2.4 to V2.6 should work
374 # If you want to specify your Python settings, uncomment the lines below.
375 #PYTHON="C:\Python26\python.exe"
376 #PATH=c:\Python26;$(PATH)
378 # Command for Cygwin's Python (not recommended)
381 # Otherwise, find Python automatically.
383 !IF EXIST(c:\Python26\python.exe)
384 PYTHON="C:\Python26\python.exe"
385 PATH=c:\Python26;$(PATH)
386 !ELSE IF EXIST(c:\Python25\python.exe)
387 PYTHON="C:\Python25\python.exe"
388 PATH=c:\Python25;$(PATH)
389 !ELSE IF EXIST(c:\Python24\python.exe)
390 PYTHON="C:\Python24\python.exe"
391 PATH=c:\Python24;$(PATH)
395 # command for lex/flexx (cygwin's flex recommended)
398 # command for yacc/bison (cygwin's bison recommended)
402 # Optional: To build the NSIS installer.
404 # If you have the NSIS package, set this to the NSIS executable.
406 # If you don't have NSIS, comment this line out, so that MAKENSIS
409 MAKENSIS="$(PROGRAM_FILES)\nsis\makensis.exe"
412 # Optional: To build the developers API documentation with doxygen and dot.
413 # Currently experimental, outdated and incomplete.
415 # You will have to download and install:
416 # Doxygen from: http://www.doxygen.org
417 # Graphviz from: http://www.research.att.com/sw/tools/graphviz/
419 # If you have doxygen, set this to the doxygen executable.
421 # If you don't want the developers documentation (or don't have the tools),
422 # comment this line out, so that DOXYGEN isn't defined.
424 #DOXYGEN="$(PROGRAM_FILES)/doxygen/bin/doxygen.exe"
427 # Recommended: Use the compressed html help format .chm as the Wireshark integrated help.
429 # The required htmlhelp.h and htmlhelp.lib should be included in MSVC_VARIANT > MSVC6.
431 # For MSVC_VARIANT == MSVC6 you will have to download and install the html help workshop from:
433 # http://msdn.microsoft.com/library/default.asp?url=/library/en-us/htmlhelp/html
434 # /hwMicrosoftHTMLHelpDownloads.asp
436 # Then point HHC_DIR to the html help dir (where hhc.exe resides).
438 # If you don't want the online help (or don't have the tools),
439 # comment this line out, so that HHC_DIR isn't defined.
441 HHC_DIR=$(PROGRAM_FILES)/HTML Help Workshop
444 # Optional: To reduce the size of dlls and exes, which is especially useful for USB device distributions (U3, PortableApps)
446 # If you have the UPX package, set this to the upx.exe executable.
448 # UPX can be downloaded from:
449 # http://upx.sourceforge.net/
451 # If you don't have UPX, or don't want to pack exes and dlls,
452 # comment this line out, so that UPX isn't defined.
455 UPX=$(WIRESHARK_LIBS)\upx301w\upx.exe
457 ##### Flags, PATHs and Miscellaneous #####
459 # "convert" the MSVC variant into the required MSC compiler version
460 !IF "$(MSVC_VARIANT)" == "MSVC6"
461 MSC_VER_REQUIRED=1200
462 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2002" || "$(MSVC_VARIANT)" == "DOTNET10"
463 MSC_VER_REQUIRED=1300
464 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2003" || "$(MSVC_VARIANT)" == "DOTNET11"
465 MSC_VER_REQUIRED=1310
466 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2005" || "$(MSVC_VARIANT)" == "MSVC2005EE" || "$(MSVC_VARIANT)" == "DOTNET20"
467 MSC_VER_REQUIRED=1400
468 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2008" || "$(MSVC_VARIANT)" == "MSVC2008EE"
469 MSC_VER_REQUIRED=1500
471 !ERROR MSVC_VARIANT unknown
475 # /W3 warning level 3 (0 less - 4 most, 1 default)
476 # /Zi create .pdb file for debugging
477 # /MD use "Multithreading Debug" libraries
478 # /D_CRT_SECURE_NO_DEPRECATE Don't warn for "insecure" calls, see MSDN "Security Enhancements in the CRT"
479 # /D_CRT_NONSTDC_NO_DEPRECATE Don't warn for "Deprecated CRT Functions" as MSDN calls this
480 # /D_BIND_TO_CURRENT_CRT_VERSION=1 Make sure our CRT and manifest versions match (http://msdn.microsoft.com/en-us/library/cc664727.aspx)
481 # /DWIN32_LEAN_AND_MEAN Don't include unnecessary Windows include files (see windows.h)
482 # /MP [<number of processes>] [MSVC2008]: Compiles multiple source files by using multiple processes
483 # Add if desired for compile speedup on machines with 2 or more "effective processors"
484 # /MANIFEST:no Don't create a SxS manifest. Makes sure our plugins don't load a second copy of the CRT.
486 !IF "$(MSVC_VARIANT)" == "MSVC6" || "$(MSVC_VARIANT)" == "MSVC2002" || "$(MSVC_VARIANT)" == "DOTNET10" || "$(MSVC_VARIANT)" == "MSVC2003" || "$(MSVC_VARIANT)" == "DOTNET11"
487 LOCAL_CFLAGS=/Zi /W3 /MD /DWIN32_LEAN_AND_MEAN /DMSC_VER_REQUIRED=$(MSC_VER_REQUIRED)
488 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2005" || "$(MSVC_VARIANT)" == "MSVC2005EE" || "$(MSVC_VARIANT)" == "DOTNET20" || "$(MSVC_VARIANT)" == "MSVC2008" || "$(MSVC_VARIANT)" == "MSVC2008EE"
489 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) /D_BIND_TO_CURRENT_CRT_VERSION=1
491 !ERROR MSVC_VARIANT unknown
495 # /DEBUG generate debug info
496 # /PROFILE generate map file(s) for profiling
497 # /DEFAULTLIB:xxx use xxx as the standard C library
498 # /NODEFAULTLIB:xxx don't use xxx as the standard C library
500 LOCAL_LDFLAGS=/DEBUG /MACHINE:$(TARGET_MACHINE)
502 !IF $(MSC_VER_REQUIRED) >= 1400
503 DLL_LDFLAGS = /MANIFEST:no
506 PLUGIN_LDFLAGS = /NOLOGO /INCREMENTAL:no $(LOCAL_LDFLAGS) $(DLL_LDFLAGS)
509 # According to http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=403
510 # XCOPY under Windows NT doesn't support the "/Y" flag. This works
512 # XXX - This apparently doesn't work for some versions of nmake:
513 # http://support.microsoft.com/default.aspx?scid=kb;en-us;86814
514 # It looks like we'll have to call "set copycmd=/y" before we run xcopy.
518 # If you don't want to build libwireshark.dll, you should comment out the
519 # following line. (Note: for plugin support this option must stay activated)
520 ENABLE_LIBWIRESHARK=USE
523 # install (debug) directory for Wireshark (relative to your source dir)
524 INSTALL_DIR=wireshark-gtk2
528 ##### C-Runtime Redistributable #####
530 # The C-Runtime since Version 7 must be shipped together with
531 # the program installer, to avoid missing msvcr*.dll files on
532 # the target machine.
534 # The location of these files differ on the various compiler
535 # packages, the following will use the default paths depending
536 # on the package version.
538 !IF "$(MSVC_VARIANT)" == "MSVC6"
539 # msvcrt.dll will already be available on target machines - nothing additional to install
541 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2002"
542 # you probably need to tweak this directory if you don't use the professional edition!
543 MSVCR_DLL=$(PROGRAM_FILES)\Microsoft Visual Studio .NET\Visual Studio .NET Professional - English\msvcr70.dll
545 !ELSEIF "$(MSVC_VARIANT)" == "DOTNET10"
546 # no redistributable available for this package!
548 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2003"
549 # you probably need to tweak this directory if you don't use the professional edition!
550 MSVCR_DLL=$(PROGRAM_FILES)\Microsoft Visual Studio .NET 2003\Visual Studio .NET Professional 2003 - English\msvcr71.dll
552 !ELSEIF "$(MSVC_VARIANT)" == "DOTNET11"
553 # no redistributable available for this package!
555 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2005"
556 MSVCR_DLL=$(PROGRAM_FILES)\Microsoft Visual Studio 8\VC\redist\x86\Microsoft.VC80.CRT\*.*
558 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2005EE" || "$(MSVC_VARIANT)" == "DOTNET20" || "$(MSVC_VARIANT)" == "MSVC2008EE"
559 # you need to download the redistributable package vcredist_x86.exe from Microsoft first,
560 # and copy it to the lib folder!!!
561 VCREDIST_EXE=$(WIRESHARK_LIBS)\vcredist_x86.exe
563 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2008"
564 MSVCR_DLL=$(PROGRAM_FILES)\Microsoft Visual Studio 9.0\VC\redist\x86\Microsoft.VC90.CRT\*.*
567 !ERROR MSVC_VARIANT unknown
572 ##### Advanced: Docbook/XML documentation generation #####
573 # If you want to generate the Docbook/XML based docs (User's and Developer's
574 # Guide, ...), you'll need some additional tools / libraries compared to the
575 # rest of the build process.
577 # FOR DETAILED INSTRUCTIONS TO GENERATE THE DOCS, SEE: docbook\readme.txt.
579 # If you don't call the Makefile.nmake in the docbook dir to generate the
580 # docs, the following settings in this section will have no effect.
582 # formatting objects processor executable
583 # Comment this out if you don't have fop installed or you don't want the docs
586 FOP=fop-0.20.5\fop.bat
589 # Additional options to fop.
593 # Comment this out if you don't have hhc.exe or you don't want the docs in
596 # Beware: hhc.exe is NOT part of the MSVC packages in HHC_DIR mentioned above,
597 # so you'll need to install the HTML Help Workshop for this.
598 HHC_EXE="$(HHC_DIR)\hhc.exe"
600 # html to text converter for text version of release notes, e.g. elinks.
601 # This could also be "lynx", or "true" if neither elinks nor lynx is installed
602 # (cygwin: lynx works, elinks not available, links and true doesn't produce output)
603 #HTML2TXT=elinks -dump -dump-width 72
604 #HTML2TXT=links -dump -width 72
605 #HTML2TXT=lynx -dump -width=72 -nolist -stdin
608 HTML2TXT=$(PYTHON) $(TOOLS_DIR)\html2text.py --width=72 --no-links
611 # the XSL processor (part of cygwin's libxslt package)
614 # the XML validator (part of cygwin's libxml2 package)
619 ##############################################################################
621 # You should not have to change anything below this comment.
622 # If you do, it's a deficiency in the Makefile.nmake files;
623 # either tell wireshark-dev@wireshark.org about it, including
624 # details of why you had to change it, or fix config.nmake
625 # and any Makefile.nmake files that need to be changed, and
626 # send us the patches, along with details of why the change
629 ##############################################################################
632 # The RC_VERSION should be comma-separated, not dot-separated,
633 # as per Graham Bloice's message in
635 # http://www.ethereal.com/lists/ethereal-dev/200303/msg00283.html
637 # "The RC_VERSION variable in config.nmake should be comma separated.
638 # This allows the resources to be built correctly and the version
639 # number to be correctly displayed in the explorer properties dialog
640 # for the executables, and XP's tooltip, rather than 0.0.0.0."
643 VERSION=$(VERSION_MAJOR).$(VERSION_MINOR).$(VERSION_MICRO)$(VERSION_EXTRA)
644 RC_VERSION=$(VERSION_MAJOR),$(VERSION_MINOR),$(VERSION_MICRO),$(VERSION_BUILD)
646 WTAP_VERSION=$(WTAP_VERSION_MAJOR).$(WTAP_VERSION_MINOR).$(WTAP_VERSION_MICRO)
647 RC_WTAP_VERSION=$(WTAP_VERSION_MAJOR),$(WTAP_VERSION_MINOR),$(WTAP_VERSION_MICRO)
650 GLIB_CFLAGS=/I$(GLIB_DIR)\include\glib-$(GLIB_VERSION) \
651 /I$(GLIB_DIR)\lib\glib-$(GLIB_VERSION)\include
652 GCC_GLIB_CFLAGS=-I$(GLIB_DIR)\include\glib-$(GLIB_VERSION) \
653 -I$(GLIB_DIR)\lib\glib-$(GLIB_VERSION)\include
654 GLIB_LIBS=$(GLIB_DIR)\lib\glib-$(GLIB_VERSION).lib \
655 $(GLIB_DIR)\lib\gmodule-$(GLIB_VERSION).lib \
656 $(GLIB_DIR)\lib\gobject-$(GLIB_VERSION).lib
659 GTK_CFLAGS=$(GLIB_CFLAGS) /I$(GTK_DIR)\include\gtk-2.0 \
660 /I$(GTK_DIR)\lib\gtk-2.0\include \
661 /I$(GTK_DIR)\include\atk-1.0 \
662 /I$(GTK_DIR)\include\cairo \
663 /I$(GTK_DIR)\include\pango-1.0
664 GTK_LIBS=$(GTK_DIR)\lib\gtk-win32-2.0.lib \
665 $(GTK_DIR)\lib\gdk-win32-2.0.lib \
666 $(GTK_DIR)\lib\gdk_pixbuf-2.0.lib \
667 $(GTK_DIR)\lib\pango-1.0.lib \
670 !IF "$(GTK_INST_VERSION)" == "2.14"
676 GTK_WIMP_DLLSRC_DIR=$(GTK_DIR)\lib\gtk-2.0\2.10.0\engines
677 GTK_WIMP_DLLDST_DIR=lib\gtk-2.0\2.10.0\engines
678 GTK_WIMP_RCSRC_DIR=$(GTK_DIR)\share\themes\MS-Windows\gtk-2.0
679 GTK_WIMP_RCDST_DIR=etc\gtk-2.0
680 !ELSEIF "$(GTK_INST_VERSION)" == "2.12"
686 GTK_WIMP_DLLSRC_DIR=$(GTK_DIR)\lib\gtk-2.0\2.10.0\engines
687 GTK_WIMP_DLLDST_DIR=lib\gtk-2.0\2.10.0\engines
688 GTK_WIMP_RCSRC_DIR=$(GTK_DIR)\share\themes\MS-Windows\gtk-2.0
689 GTK_WIMP_RCDST_DIR=etc\gtk-2.0
691 !ERROR ? Unknown or invalid GTK_INST_VERSION
694 !IF "$(PANGO_INST_VERSION)" == "1.22"
696 !ELSEIF "$(PANGO_INST_VERSION)" == "1.18"
698 !ELSEIF "$(PANGO_INST_VERSION)" == "1.16"
701 !ERROR ? Unknown or invalid PANGO_INST_VERSION
705 AIRPCAP_CONFIG=^#define HAVE_AIRPCAP 1
706 AIRPDCAP_CONFIG=^#define HAVE_AIRPDCAP 1
707 #AIRPCAP_CFLAGS=/I$(AIRPCAP_DIR)\include
714 # Nmake uses carets to escape special characters
715 WINPCAP_CONFIG=^#define HAVE_LIBPCAP 1
716 PCAP_FINDALLDEVS_CONFIG=^#define HAVE_PCAP_FINDALLDEVS 1
717 PCAP_DATALINK_NAME_TO_VAL_CONFIG=^#define HAVE_PCAP_DATALINK_NAME_TO_VAL 1
718 PCAP_DATALINK_VAL_TO_NAME_CONFIG=^#define HAVE_PCAP_DATALINK_VAL_TO_NAME 1
719 # PCAP_BREAKLOOP won't have any benefit on Win32, but breaks compatibility with 3.0
720 PCAP_BREAKLOOP_CONFIG=
721 WPCAP_CONSTIFIED_CONFIG=^#define WPCAP_CONSTIFIED 1
723 # no WpdPack installed
725 PCAP_FINDALLDEVS_CONFIG=
726 PCAP_DATALINK_NAME_TO_VAL_CONFIG=
727 PCAP_DATALINK_VAL_TO_NAME_CONFIG=
728 PCAP_BREAKLOOP_CONFIG=
732 PCAP_LIST_DATALINKS_CONFIG=^#define HAVE_PCAP_LIST_DATALINKS 1
733 PCAP_SET_DATALINK_CONFIG=^#define HAVE_PCAP_SET_DATALINK 1
735 !IF DEFINED(PCAP_DIR) && DEFINED(PCAP_REMOTE)
736 PCAP_HAVE_REMOTE_CONFIG=^#define HAVE_REMOTE 1
737 PCAP_REMOTE_CONFIG=^#define HAVE_PCAP_REMOTE 1
738 PCAP_OPEN_CONFIG=^#define HAVE_PCAP_OPEN 1
739 PCAP_FINDALLDEVS_EX_CONFIG=^#define HAVE_PCAP_FINDALLDEVS_EX 1
740 PCAP_CREATESRCSTR_CONFIG=^#define HAVE_PCAP_CREATESRCSTR 1
741 PCAP_SETSAMPLING_CONFIG=^#define HAVE_PCAP_SETSAMPLING 1
743 PCAP_HAVE_REMOTE_CONFIG=
746 PCAP_FINDALLDEVS_EX_CONFIG=
747 PCAP_CREATESRCSTR_CONFIG=
748 PCAP_SETSAMPLING_CONFIG=
752 ZLIB_PATH=$(ZLIB_DIR)
753 ZLIB_CFLAGS=/I$(ZLIB_DIR)\include
754 ZLIB_LIBS=$(ZLIB_DIR)\lib\zdll.lib
755 ZLIB_DLL=$(ZLIB_DIR)\zlib1.dll
756 # Nmake uses carets to escape special characters
757 ZLIB_CONFIG=^#define HAVE_LIBZ 1
767 C_ARES_CFLAGS=/I$(C_ARES_DIR)
768 C_ARES_LIBS=$(C_ARES_DIR)\cares.lib
769 C_ARES_DLL=$(C_ARES_DIR)\cares.dll
770 # Nmake uses carets to escape special characters
771 C_ARES_CONFIG=^#define HAVE_C_ARES 1
777 ADNS_PATH=$(ADNS_DIR)\adns_win32\lib
778 ADNS_CFLAGS=/I$(ADNS_DIR)\src /I$(ADNS_DIR)\adns_win32
779 ADNS_LIBS=$(WIRESHARK_LIBS)\$(MSVC_VARIANT)\adns\adns_dll.lib
780 ADNS_DLL=$(WIRESHARK_LIBS)\$(MSVC_VARIANT)\adns\adns_dll.dll
781 # Nmake uses carets to escape special characters
782 ADNS_CONFIG=^#define HAVE_GNU_ADNS 1
791 KFW_PATH=$(KFW_DIR)\bin
792 KFW_CFLAGS=/I$(KFW_DIR)\inc
793 KFW_LIBS=$(KFW_DIR)\lib\krb5_32.lib
794 # Nmake uses carets to escape special characters
795 KFW_CONFIG=^#define HAVE_MIT_KERBEROS 1
803 PCRE_PATH=$(PCRE_DIR)\bin
804 PCRE_CFLAGS=/I$(PCRE_DIR)\include
805 PCRE_LIBS=$(PCRE_DIR)\lib\pcre.lib
806 # Nmake uses carets to escape special characters
807 PCRE_CONFIG=^#define HAVE_LIBPCRE 1
815 NETTLE_CFLAGS=/I$(NETTLE_DIR)
816 NETTLE_LIBS=$(NETTLE_DIR)\libnettle.lib
817 # Nmake uses carets to escape special characters
818 NETTLE_CONFIG=^#define HAVE_LIBNETTLE 1
826 GNUTLS_PATH=$(GNUTLS_DIR)
827 # /DNOCRYPT avoids inclusion of Wincrypt.h, avoiding a X509_NAME define clash
828 GNUTLS_CFLAGS=/I$(GNUTLS_DIR)\include /DNOCRYPT /DIMPORT_LIGNUTLSDLL
830 $(GNUTLS_DIR)\bin\libtasn1-3.lib \
831 $(GNUTLS_DIR)\bin\libgpg-error-0.lib \
832 $(GNUTLS_DIR)\bin\libgcrypt-11.lib \
833 $(GNUTLS_DIR)\bin\libgnutls-26.lib
834 # Nmake uses carets to escape special characters
835 GNUTLS_CONFIG=^#define HAVE_LIBGNUTLS 1
836 LIBGCRYPT_CONFIG=^#define HAVE_LIBGCRYPT 1
845 LUA_CFLAGS=/I$(LUA_DIR)\include
846 LUA_LIBS=$(LUA_DIR)\lua5.1.lib
847 # Nmake uses carets to escape special characters
848 LUA_CONFIG=^#define HAVE_LUA 1
849 LUA_VERSION=^#define HAVE_LUA_5_1 1
857 # Nmake uses carets to escape special characters
858 PORTAUDIO_CONFIG=^#define HAVE_LIBPORTAUDIO 1
859 !IF "$(PORTAUDIO_VERSION)" == "18"
860 # V18 uses API version 1 and v19 API version 2
861 PORTAUDIO_CFLAGS=/I$(PORTAUDIO_DIR)\pa_common
862 PORTAUDIO_API_CONFIG=^#define PORTAUDIO_API_1 1
864 PORTAUDIO_CFLAGS=/I$(PORTAUDIO_DIR)\include /I$(PORTAUDIO_DIR)\src\common /I$(PORTAUDIO_DIR)\src\os\win /DPA_NO_DS /DPA_NO_ASIO
872 !IF "$(MSVC_VARIANT)" == "MSVC6"
873 HHC_CFLAGS=/I"$(HHC_DIR)\include" -DHHC_DIR
874 HHC_LIBS="$(HHC_DIR)\lib\htmlhelp.lib"
877 HHC_LIBS=htmlhelp.lib
885 SMI_CONFIG=^#define HAVE_LIBSMI 1
886 SMI_CFLAGS=/I$(SMI_DIR)\include
887 SMI_LIBS=$(SMI_DIR)\lib\smi.lib
895 GEOIP_CONFIG=^#define HAVE_GEOIP 1
896 GEOIP_CFLAGS=/I$(GEOIP_DIR)\libGeoIP
897 GEOIP_LIBS=$(GEOIP_DIR)\libGeoIP\GeoIP.lib
904 !IFDEF ENABLE_LIBWIRESHARK
905 LIBWIRESHARK_CONFIG=^#define HAVE_LIBWIRESHARKDLL 1
906 # Link plugins with the import library of libwireshark.dll
907 LINK_PLUGINS_WITH_LIBWIRESHARK=USE
914 PATH=$(PATH);$(CYGWIN_PATH);$(GLIB_DIR)\bin;$(GETTEXT_DIR)\bin;$(ICONV_DIR)\bin;$(ZLIB_PATH);$(ADNS_PATH)
916 PATH=$(PATH);$(CYGWIN_PATH);$(GLIB_DIR)\bin;$(GETTEXT_DIR)\bin;$(ZLIB_PATH);$(ADNS_PATH)
919 # We can't use a lot of IPv6 code with plain Visual C++ 6.0
920 !IF "$(MSVC_VARIANT)" == "MSVC6" && !DEFINED(MSSDK)
923 INET6_CONFIG=^#define INET6 1