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" and "win64" are valid (for now).
8 # This can be defined in the system environment.
9 !IFNDEF WIRESHARK_TARGET_PLATFORM
10 WIRESHARK_TARGET_PLATFORM=win32
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-$(WIRESHARK_TARGET_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 "$(WIRESHARK_TARGET_PLATFORM)" == "win32"
62 !else if "$(WIRESHARK_TARGET_PLATFORM)" == "win64"
67 !error Your mysterious moon-man architecture "$(WIRESHARK_TARGET_PLATFORM)" frightens and confuses us.
71 ##### Microsoft Visual C / Studio Variant #####
72 # for the different Studios, see: http://en.wikipedia.org/wiki/Microsoft_Visual_Studio
73 # only one of the following MSVC_VARIANT settings should be used
74 # BTW: The "Microsoft Visual C++ Toolkit 2003" DOESN'T WORK for WS!
76 # "Microsoft Visual Studio 6.0"
77 # Visual C++ 6.0, _MSC_VER 1200, msvcrt.dll (version 6)
80 # "Microsoft Visual Studio .NET (2002)"
81 # Visual C++ 7.0, _MSC_VER 1300, msvcr70.dll
82 #MSVC_VARIANT=MSVC2002
84 # "Microsoft .Net Framework SDK Version 1.0"
85 # needs additional Platform SDK installation
86 # Visual C++ 7.0, _MSC_VER 1300, msvcr70.dll
87 #MSVC_VARIANT=DOTNET10
89 # "Microsoft Visual Studio .NET 2003"
90 # Visual C++ 7.1, _MSC_VER 1310, msvcr71.dll
91 #MSVC_VARIANT=MSVC2003
93 # "Microsoft .Net Framework SDK Version 1.1"
94 # needs additional Platform SDK installation
95 # Visual C++ 7.1, _MSC_VER 1310, msvcr71.dll
96 #MSVC_VARIANT=DOTNET11
98 # "Microsoft Visual Studio 2005"
99 # Visual C++ 8.0, _MSC_VER 1400, msvcr80.dll
100 #MSVC_VARIANT=MSVC2005
102 # "Microsoft Visual C++ 2005 Express Edition"
103 # needs additional Platform SDK installation
104 # Visual C++ 8.0, _MSC_VER 1400, msvcr80.dll
105 #MSVC_VARIANT=MSVC2005EE
107 # "Microsoft .Net Framework 2.0 SDK"
108 # needs additional Platform SDK installation
109 # Visual C++ 8.0, _MSC_VER 1400, msvcr80.dll
110 #MSVC_VARIANT=DOTNET20
112 # "Microsoft Visual Studio 2008"
113 # Visual C++ 9.0, _MSC_VER 1500, msvcr90.dll
114 MSVC_VARIANT=MSVC2008
116 # "Microsoft Visual C++ 2008 Express Edition"
117 # Visual C++ 9.0, _MSC_VER 1500, msvcr90.dll
118 #MSVC_VARIANT=MSVC2008EE
121 # Optional: To compile some time critical code from assembler instead of C
123 # If you have the NASM compiler, set this to the NASM executable.
124 # http://nasm.sourceforge.net/
126 # If you don't have NASM, comment this line out, so that NASM
129 NASM=$(WIRESHARK_LIBS)\nasm-2.02\nasm.exe
132 !if "$(WIRESHARK_TARGET_PLATFORM)" == "win32"
133 ##### Win32 Libraries #####
135 # Mandatory: GLib settings
137 # Please note: Since Wireshark release 1.0.0, we no longer support GLib1.x
140 GLIB_DIR=$(WIRESHARK_LIBS)\glib
141 # This macro is used by the setup target.
144 ##### To Use new packet list uncomment this line ####
145 ### Warning Experimental - work in progress
146 NEW_PACKET_LIST_CONFIG=^#define NEW_PACKET_LIST 1
149 # Mandatory: GTK (& related libs) settings
151 # Please note: Since Wireshark release 1.0.0, we no longer support GTK1.x
153 # If you want building with GTK+, set GTK_DIR to the pathname of the
154 # directory in which the "include" and "lib" directories reside.
156 GTK_DIR=$(WIRESHARK_LIBS)\gtk2
157 # These macros are used by the nsis installer script and by the install target.
158 TIFF_DLL=libtiff-3.dll
159 JPEG_DLL=libjpeg-7.dll
160 FREETYPE_DLL=freetype6.dll
161 FONTCONFIG_DLL=libfontconfig-1.dll
162 EXPAT_DLL=libexpat-1.dll
163 # These macros are used by the setup target.
168 TIFF_PKG=libtiff_3.9.1-1_win32
169 JPEG_PKG=jpeg_7-1_win32
172 FONTCONFIG_PKG=2.7.3-1
176 # Mandatory: Version numbers of GTK and pango.
178 # (MAJOR + MINOR Version number but without MICRO version number)
179 # These macros are used by the nsis installer script and by the setup target.
181 # GTK 2.12 is the mainline since Wireshark 0.99.7
182 GTK_INST_VERSION=2.16
183 PANGO_INST_VERSION=1.24
186 # Mandatory for GTK >= 2: Gettext
188 # Set GETTEXT_DIR to the directory in which the
189 # GETTEXT include files and library resides.
191 GETTEXT_DIR=$(WIRESHARK_LIBS)\gettext-runtime-0.17-1
192 # This macro is used by the nsis installer script and by the install target.
194 # This macro is used by the setup target.
195 GETTEXT_PKG=-runtime-0.17-1
198 # Optional: WinPcap developer's pack to capture network traffic.
200 # If you have the WinPcap developer's pack (at least version 3.0),
201 # set this to the directory in which the WinPcap developer's pack resides.
203 # If you don't have the WPdpack, comment this line out, so that
204 # PCAP_DIR isn't defined.
206 PCAP_DIR=$(WIRESHARK_LIBS)\WPdpack
207 # This macro is used by the nsis installer script, by the u3/portable apps and by the setup target.
208 PCAP_VERSION=4_1_beta5
211 # Optional: WinPcap remote capture support and new API
212 # (pcap_open(), pcap_findalldevs_ex(), etc.)
217 # Optional: The ZLib enables unzipping of gzip compressed capture files
220 # If you have Zlib, set this to directory in which the Zlib headers
221 # and .lib file are stored.
223 # If you don't have Zlib, comment this line out, so that ZLIB_DIR isn't
226 ZLIB_DIR=$(WIRESHARK_LIBS)\zlib123
229 # Optional: the ADNS library enables asynchronous (nonblocking) DNS
232 # If you have GNU ADNS, set this to the directory in which the GNU ADNS
233 # .lib file is stored.
235 # If you don't have GNU ADNS, comment this line out, so that ADNS_DIR
238 # If C_ARES_DIR is defined below, it will override this setting.
240 #ADNS_DIR=$(WIRESHARK_LIBS)\adns-1.0-win32-05ws
243 # Optional: the c-ares library enables asynchronous (nonblocking) DNS
246 # If you have c-ares, set this to the directory in which the c-ares
247 # .lib file is stored. Setting this will override ADNS_DIR above. You
250 # If you're using Visual C++ 6.0, you'll have to use a platform SDK that
251 # defines socklen_t, such as Windows Server 2003 PSDK.
253 # If you don't have c-ares, comment this line out, so that C_ARES_DIR
256 C_ARES_DIR=$(WIRESHARK_LIBS)\c-ares-1.6.0ws
259 # Optional: the PCRE (Perl Compatible Regular Expressions) library
260 # enables regular expressions for display filters.
262 # If you have the PCRE library, set this to the directory in which
263 # the GNUWIN32 pcre-lib package is stored.
265 # If you don't have PCRE, comment this line out, so that PCRE_DIR
268 PCRE_DIR=$(WIRESHARK_LIBS)\pcre-7.0
271 # Optional: the GNUTLS library enables ssl decryption.
273 # If you have the GNUTLS library, set this to the directory where
274 # the lib and include files are stored.
276 # If you don't have GNUTLS, comment this line out, so that GNUTLS_DIR
279 # Platform SDK conflicts with openssl.h header
280 GNUTLS_DIR=$(WIRESHARK_LIBS)\gnutls-2.8.1-1
283 # Optional: the KFW library enables kerberos/sasl/dcerpc decryption.
285 # If you have the kerberos for windows (mit) library, set this to the
286 # directory where the kfw package is stored.
288 # If you don't have KFW, comment this line out, so that KFW_DIR
291 KFW_DIR=$(WIRESHARK_LIBS)\kfw-3.2.2-ws1
294 # Optional: the Nettle library enables ??? decryption.
296 # If you have the Nettle encryption library, set this to the
297 # directory in which the nettle package is stored.
299 # If you don't have Nettle, comment this line out, so that NETTLE_DIR
302 # NETTLE_DIR=$(WIRESHARK_LIBS)\nettle-1.10
305 # Optional: the LUA library enables scripting support.
307 # If you have the LUA library, set this to the directory in which
308 # the LUA package is stored.
310 # If you don't have LUA, comment this line out, so that LUA_DIR
313 LUA_DIST=5_1_4_Win32_dll6
314 LUA_DIR=$(WIRESHARK_LIBS)\lua5.1.4
317 # Optional: the PORTAUDIO library enables audio output for RTP streams.
319 # If you have the PORTAUDIO library (used for rtp_player), set this to
320 # the directory in which the PORTAUDIO library is stored.
322 # If you don't have PORTAUDIO, comment this line out, so that
323 # PORTAUDIO_DIR isn't defined.
325 #PORTAUDIO_DIR=$(WIRESHARK_LIBS)\portaudio_v18_1
326 PORTAUDIO_DIR=$(WIRESHARK_LIBS)\portaudio_v19_2
329 # Version number of PortAudio
331 #PORTAUDIO_VERSION=18
335 # Optional: AirPcap developer's pack to capture wireless network traffic
336 # incl. 802.11 management frames.
338 # If you have the AirPcap developer's pack, set this to the directory
339 # in which the AirPcap developer's pack resides.
341 # If you don't have the AirPcap developer's pack, comment this line out,
342 # so that AIRPCAP_DIR isn't defined.
344 AIRPCAP_DIR=$(WIRESHARK_LIBS)\AirPcap_Devpack_1_0_0_594\AirPcap_Devpack
347 # Optional: LIBSMI, System Management Interface
349 # Used for oid-name resolution for SNMP and other protocols
351 SMI_DIR=$(WIRESHARK_LIBS)\libsmi-0.4.8
354 # Optional: GeoIP, IP address database lookups
356 # Used to map IP addresses to MaxMind GeoIP database entries
358 # GeoIP requires IPv6 definitions that don't ship with Visual C++ 6.0.
359 # However, the Microsoft Platform SDK for Windows Server 2003 R2 provides
360 # these definitions. The SDK's SetEnv.bat script defines INETSDK.
361 !IF "$(MSVC_VARIANT)" != "MSVC6" || DEFINED(INETSDK)
362 GEOIP_DIR=$(WIRESHARK_LIBS)\GeoIP-1.4.5ws
366 ##### Win64 Libraries #####
368 # Mandatory: GLib settings
370 # Please note: Since Wireshark release 1.0.0, we no longer support GLib1.x
373 GLIB_DIR=$(WIRESHARK_LIBS)\glib
374 # This macro is used by the setup target.
377 ##### To Use new packet list uncomment this line ####
378 ### Warning Experimental - work in progress
379 #NEW_PACKET_LIST_CONFIG=^#define NEW_PACKET_LIST 1
382 # Mandatory: GTK (& related libs) settings
384 # Please note: Since Wireshark release 1.0.0, we no longer support GTK1.x
386 # If you want building with GTK+, set GTK_DIR to the pathname of the
387 # directory in which the "include" and "lib" directories reside.
389 GTK_DIR=$(WIRESHARK_LIBS)\gtk2
390 # These macros are used by the nsis installer script and by the install target.
391 TIFF_DLL=libtiff-3.dll
392 JPEG_DLL=libjpeg-7.dll
393 FREETYPE_DLL=freetype6.dll
394 FONTCONFIG_DLL=libfontconfig-1.dll
395 EXPAT_DLL=libexpat-1.dll
396 # These macros are used by the setup target.
401 TIFF_PKG=libtiff_3.9.1-1_win64
402 JPEG_PKG=jpeg_7-1_win64
405 FONTCONFIG_PKG=2.7.3-1
409 # Mandatory: Version numbers of GTK and pango.
411 # (MAJOR + MINOR Version number but without MICRO version number)
412 # These macros are used by the nsis installer script and by the setup target.
414 GTK_INST_VERSION=2.16
415 PANGO_INST_VERSION=1.24
418 # Mandatory for GTK >= 2: Gettext
420 # Set GETTEXT_DIR to the directory in which the
421 # GETTEXT include files and library resides.
423 GETTEXT_DIR=$(WIRESHARK_LIBS)\gettext-0.17-1
424 # This macro is used by the nsis installer script and by the install target.
425 GETTEXT_DLL=libintl-8.dll
426 # This macro is used by the setup target.
427 GETTEXT_PKG=_0.17-1_win64
430 # Optional: WinPcap developer's pack to capture network traffic.
432 # If you have the WinPcap developer's pack (at least version 3.0),
433 # set this to the directory in which the WinPcap developer's pack resides.
435 # If you don't have the WPdpack, comment this line out, so that
436 # PCAP_DIR isn't defined.
438 PCAP_DIR=$(WIRESHARK_LIBS)\WPdpack
439 # This macro is used by the nsis installer script, by the u3/portable apps and by the setup target.
440 PCAP_VERSION=4_1_beta5
443 # Optional: WinPcap remote capture support and new API
444 # (pcap_open(), pcap_findalldevs_ex(), etc.)
449 # Optional: The ZLib enables unzipping of gzip compressed capture files
452 # If you have Zlib, set this to directory in which the Zlib headers
453 # and .lib file are stored.
455 # If you don't have Zlib, comment this line out, so that ZLIB_DIR isn't
458 ZLIB_DIR=$(WIRESHARK_LIBS)\zlib123
461 # Optional: the ADNS library enables asynchronous (nonblocking) DNS
464 # If you have GNU ADNS, set this to the directory in which the GNU ADNS
465 # .lib file is stored.
467 # If you don't have GNU ADNS, comment this line out, so that ADNS_DIR
470 # If C_ARES_DIR is defined below, it will override this setting.
472 #ADNS_DIR=$(WIRESHARK_LIBS)\adns-1.0-win32-05ws
475 # Optional: the c-ares library enables asynchronous (nonblocking) DNS
478 # If you have c-ares, set this to the directory in which the c-ares
479 # .lib file is stored. Setting this will override ADNS_DIR above. You
482 # If you're using Visual C++ 6.0, you'll have to use a platform SDK that
483 # defines socklen_t, such as Windows Server 2003 PSDK.
485 # If you don't have c-ares, comment this line out, so that C_ARES_DIR
488 #C_ARES_DIR=$(WIRESHARK_LIBS)\c-ares-1.5.2ws
491 # Optional: the PCRE (Perl Compatible Regular Expressions) library
492 # enables regular expressions for display filters.
494 # If you have the PCRE library, set this to the directory in which
495 # the GNUWIN32 pcre-lib package is stored.
497 # If you don't have PCRE, comment this line out, so that PCRE_DIR
500 #PCRE_DIR=$(WIRESHARK_LIBS)\pcre-7.0
503 # Optional: the GNUTLS library enables ssl decryption.
505 # If you have the GNUTLS library, set this to the directory where
506 # the lib and include files are stored.
508 # If you don't have GNUTLS, comment this line out, so that GNUTLS_DIR
511 # Platform SDK conflicts with openssl.h header
512 #GNUTLS_DIR=$(WIRESHARK_LIBS)\gnutls-2.8.1-1
515 # Optional: the KFW library enables kerberos/sasl/dcerpc decryption.
517 # If you have the kerberos for windows (mit) library, set this to the
518 # directory where the kfw package is stored.
520 # If you don't have KFW, comment this line out, so that KFW_DIR
523 #KFW_DIR=$(WIRESHARK_LIBS)\kfw-3.2.2-ws1
526 # Optional: the Nettle library enables ??? decryption.
528 # If you have the Nettle encryption library, set this to the
529 # directory in which the nettle package is stored.
531 # If you don't have Nettle, comment this line out, so that NETTLE_DIR
534 # NETTLE_DIR=$(WIRESHARK_LIBS)\nettle-1.10
537 # Optional: the LUA library enables scripting support.
539 # If you have the LUA library, set this to the directory in which
540 # the LUA package is stored.
542 # If you don't have LUA, comment this line out, so that LUA_DIR
545 LUA_DIST=5_1_4_Win64_dll9
546 LUA_DIR=$(WIRESHARK_LIBS)\lua5.1.4
549 # Optional: the PORTAUDIO library enables audio output for RTP streams.
551 # If you have the PORTAUDIO library (used for rtp_player), set this to
552 # the directory in which the PORTAUDIO library is stored.
554 # If you don't have PORTAUDIO, comment this line out, so that
555 # PORTAUDIO_DIR isn't defined.
557 #PORTAUDIO_DIR=$(WIRESHARK_LIBS)\portaudio_v18_1
558 PORTAUDIO_DIR=$(WIRESHARK_LIBS)\portaudio_v19_2
561 # Version number of PortAudio
563 #PORTAUDIO_VERSION=18
567 # Optional: AirPcap developer's pack to capture wireless network traffic
568 # incl. 802.11 management frames.
570 # If you have the AirPcap developer's pack, set this to the directory
571 # in which the AirPcap developer's pack resides.
573 # If you don't have the AirPcap developer's pack, comment this line out,
574 # so that AIRPCAP_DIR isn't defined.
576 #AIRPCAP_DIR=$(WIRESHARK_LIBS)\AirPcap_Devpack_1_0_0_594\AirPcap_Devpack
579 # Optional: LIBSMI, System Management Interface
581 # Used for oid-name resolution for SNMP and other protocols
583 #SMI_DIR=$(WIRESHARK_LIBS)\libsmi-0.4.8
586 # Optional: GeoIP, IP address database lookups
588 # Used to map IP addresses to MaxMind GeoIP database entries
590 # GeoIP requires IPv6 definitions that don't ship with Visual C++ 6.0.
591 # However, the Microsoft Platform SDK for Windows Server 2003 R2 provides
592 # these definitions. The SDK's SetEnv.bat script defines INETSDK.
593 !IF "$(MSVC_VARIANT)" != "MSVC6" || DEFINED(INETSDK)
594 #GEOIP_DIR=$(WIRESHARK_LIBS)\GeoIP-1.4.5ws
601 # Set the following mandatory commands to find the tools.
602 # The easiest way is to use the corresponding packages from cygwin.
604 # Set up the path to the cygwin binaries
605 CYGWIN_PATH=c:\cygwin\bin
607 # command for a shell (cygwin's bash package recommended)
610 # bash versions after 3.1.6 need the 'igncr' shell option to be able to
611 # process scripts in windows 'native format' (dos crlf format).
612 # The following !IF results in the option being used only if it is available
613 # since using it on bash version 3.1.6 (or earlier) is not required and
614 # will cause an error message.
615 !if "$(SH_PROG)"=="bash" && [$(CYGWIN_PATH)\bash -c "set -o igncr" 2>nul: ] == 0
619 SH=$(SH_PROG) $(SH_FLAGS)
622 # command for perl (cygwin's perl package recommended)
625 # command for pod2man and pod2html
626 # (part of the perl package, usually leave these unchanged)
627 POD2MAN=$(SH) pod2man
628 POD2HTML=$(SH) pod2html
630 # Command for native Windows Python (recommended)
631 # V2.4 to V2.6 should work
633 # If you want to specify your Python settings, uncomment the lines below.
634 #PYTHON="C:\Python26\python.exe"
635 #PATH=c:\Python26;$(PATH)
637 # Command for Cygwin's Python (not recommended)
640 # Otherwise, find Python automatically.
642 !IF EXIST(c:\Python26\python.exe)
643 PYTHON="C:\Python26\python.exe"
644 PATH=c:\Python26;$(PATH)
645 !ELSE IF EXIST(c:\Python25\python.exe)
646 PYTHON="C:\Python25\python.exe"
647 PATH=c:\Python25;$(PATH)
648 !ELSE IF EXIST(c:\Python24\python.exe)
649 PYTHON="C:\Python24\python.exe"
650 PATH=c:\Python24;$(PATH)
654 # command for lex/flexx (cygwin's flex recommended)
657 # command for yacc/bison (cygwin's bison recommended)
661 # Optional: To build the NSIS installer.
663 # If you have the NSIS package, set this to the NSIS executable.
665 # If you don't have NSIS, comment this line out, so that MAKENSIS
668 MAKENSIS="$(PROGRAM_FILES)\nsis\makensis.exe"
671 # Optional: To build the developers API documentation with doxygen and dot.
672 # Currently experimental, outdated and incomplete.
674 # You will have to download and install:
675 # Doxygen from: http://www.doxygen.org
676 # Graphviz from: http://www.research.att.com/sw/tools/graphviz/
678 # If you have doxygen, set this to the doxygen executable.
680 # If you don't want the developers documentation (or don't have the tools),
681 # comment this line out, so that DOXYGEN isn't defined.
683 #DOXYGEN="$(PROGRAM_FILES)/doxygen/bin/doxygen.exe"
686 # Recommended: Use the compressed html help format .chm as the Wireshark integrated help.
688 # The required htmlhelp.h and htmlhelp.lib should be included in MSVC_VARIANT > MSVC6.
690 # For MSVC_VARIANT == MSVC6 you will have to download and install the html help workshop from:
692 # http://msdn.microsoft.com/library/default.asp?url=/library/en-us/htmlhelp/html
693 # /hwMicrosoftHTMLHelpDownloads.asp
695 # Then point HHC_DIR to the html help dir (where hhc.exe resides).
697 # If you don't want the online help (or don't have the tools),
698 # comment this line out, so that HHC_DIR isn't defined.
700 HHC_DIR=$(PROGRAM_FILES)/HTML Help Workshop
703 # Optional: To reduce the size of dlls and exes, which is especially useful for USB device distributions (U3, PortableApps)
705 # If you have the UPX package, set this to the upx.exe executable.
707 # UPX can be downloaded from:
708 # http://upx.sourceforge.net/
710 # If you don't have UPX, or don't want to pack exes and dlls,
711 # comment this line out, so that UPX isn't defined.
714 UPX=$(WIRESHARK_LIBS)\upx303w\upx.exe
716 ##### Flags, PATHs and Miscellaneous #####
718 # "convert" the MSVC variant into the required MSC compiler version
719 !IF "$(MSVC_VARIANT)" == "MSVC6"
720 MSC_VER_REQUIRED=1200
721 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2002" || "$(MSVC_VARIANT)" == "DOTNET10"
722 MSC_VER_REQUIRED=1300
723 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2003" || "$(MSVC_VARIANT)" == "DOTNET11"
724 MSC_VER_REQUIRED=1310
725 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2005" || "$(MSVC_VARIANT)" == "MSVC2005EE" || "$(MSVC_VARIANT)" == "DOTNET20"
726 MSC_VER_REQUIRED=1400
727 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2008" || "$(MSVC_VARIANT)" == "MSVC2008EE"
728 MSC_VER_REQUIRED=1500
730 !ERROR MSVC_VARIANT unknown
734 # /W3 warning level 3 (0 less - 4 most, 1 default)
735 # /Zi create .pdb file for debugging
736 # /MD use "Multithreading Debug" libraries
737 # /D_CRT_SECURE_NO_DEPRECATE Don't warn for "insecure" calls, see MSDN "Security Enhancements in the CRT"
738 # /D_CRT_NONSTDC_NO_DEPRECATE Don't warn for "Deprecated CRT Functions" as MSDN calls this
739 # /D_BIND_TO_CURRENT_CRT_VERSION=1 Make sure our CRT and manifest versions match (http://msdn.microsoft.com/en-us/library/cc664727.aspx)
740 # /DWIN32_LEAN_AND_MEAN Don't include unnecessary Windows include files (see windows.h)
741 # /MP [<number of processes>] [MSVC2008]: Compiles multiple source files by using multiple processes
742 # Add if desired for compile speedup on machines with 2 or more "effective processors"
743 # /MANIFEST:no Don't create a SxS manifest. Makes sure our plugins don't load a second copy of the CRT.
745 !IF "$(MSVC_VARIANT)" == "MSVC6" || "$(MSVC_VARIANT)" == "MSVC2002" || "$(MSVC_VARIANT)" == "DOTNET10" || "$(MSVC_VARIANT)" == "MSVC2003" || "$(MSVC_VARIANT)" == "DOTNET11"
746 LOCAL_CFLAGS=/Zi /W3 /MD /DWIN32_LEAN_AND_MEAN /DMSC_VER_REQUIRED=$(MSC_VER_REQUIRED)
747 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2005" || "$(MSVC_VARIANT)" == "MSVC2005EE" || "$(MSVC_VARIANT)" == "DOTNET20" || "$(MSVC_VARIANT)" == "MSVC2008" || "$(MSVC_VARIANT)" == "MSVC2008EE"
748 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
750 !ERROR MSVC_VARIANT unknown
753 # http://msdn.microsoft.com/en-us/library/bb385193.aspx
754 # /MP (Build with Multiple Processes)
756 # If you omit the processMax argument, the compiler retrieves the number of effective processors
757 # on your computer from the operating system, and creates a process for each processor.
759 # The following compiler options and language features that are incompatible with the /MP option:
760 # #import preprocessor directive
766 !IF "$(MSVC_VARIANT)" == "MSVC2008" || "$(MSVC_VARIANT)" == "MSVC2008EE"
767 LOCAL_CFLAGS= $(LOCAL_CFLAGS) /MP
770 # /DEBUG generate debug info
771 # /PROFILE generate map file(s) for profiling
772 # /DEFAULTLIB:xxx use xxx as the standard C library
773 # /NODEFAULTLIB:xxx don't use xxx as the standard C library
775 LOCAL_LDFLAGS=/DEBUG /MACHINE:$(TARGET_MACHINE)
777 !IF $(MSC_VER_REQUIRED) >= 1400
778 DLL_LDFLAGS = /MANIFEST:no
781 PLUGIN_LDFLAGS = /NOLOGO /INCREMENTAL:no $(LOCAL_LDFLAGS) $(DLL_LDFLAGS)
784 # According to http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=403
785 # XCOPY under Windows NT doesn't support the "/Y" flag. This works
787 # XXX - This apparently doesn't work for some versions of nmake:
788 # http://support.microsoft.com/default.aspx?scid=kb;en-us;86814
789 # It looks like we'll have to call "set copycmd=/y" before we run xcopy.
793 # If you don't want to build libwireshark.dll, you should comment out the
794 # following line. (Note: for plugin support this option must stay activated)
795 ENABLE_LIBWIRESHARK=USE
798 # install (debug) directory for Wireshark (relative to your source dir)
799 INSTALL_DIR=wireshark-gtk2
803 ##### C-Runtime Redistributable #####
805 # The C-Runtime since Version 7 must be shipped together with
806 # the program installer, to avoid missing msvcr*.dll files on
807 # the target machine.
809 # The location of these files differ on the various compiler
810 # packages, the following will use the default paths depending
811 # on the package version.
813 !IF "$(MSVC_VARIANT)" == "MSVC6"
814 # msvcrt.dll will already be available on target machines - nothing additional to install
816 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2002"
817 # you probably need to tweak this directory if you don't use the professional edition!
818 MSVCR_DLL=$(PROGRAM_FILES)\Microsoft Visual Studio .NET\Visual Studio .NET Professional - English\msvcr70.dll
820 !ELSEIF "$(MSVC_VARIANT)" == "DOTNET10"
821 # no redistributable available for this package!
823 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2003"
824 # you probably need to tweak this directory if you don't use the professional edition!
825 MSVCR_DLL=$(PROGRAM_FILES)\Microsoft Visual Studio .NET 2003\Visual Studio .NET Professional 2003 - English\msvcr71.dll
827 !ELSEIF "$(MSVC_VARIANT)" == "DOTNET11"
828 # no redistributable available for this package!
830 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2005"
831 MSVCR_DLL=$(PROGRAM_FILES)\Microsoft Visual Studio 8\VC\redist\$(VCREDIST_DLL)\Microsoft.VC80.CRT\*.*
833 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2005EE" || "$(MSVC_VARIANT)" == "DOTNET20" || "$(MSVC_VARIANT)" == "MSVC2008EE"
834 # you need to download the redistributable package vcredist_x86.exe from Microsoft first,
835 # and copy it to the lib folder!!!
836 VCREDIST_EXE=$(WIRESHARK_LIBS)\vcredist_$(TARGET_MACHINE).exe
838 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2008"
839 MSVCR_DLL=$(PROGRAM_FILES)\Microsoft Visual Studio 9.0\VC\redist\$(VCREDIST_DLL)\Microsoft.VC90.CRT\*.*
842 !ERROR MSVC_VARIANT unknown
847 ##### Advanced: Docbook/XML documentation generation #####
848 # If you want to generate the Docbook/XML based docs (User's and Developer's
849 # Guide, ...), you'll need some additional tools / libraries compared to the
850 # rest of the build process.
852 # FOR DETAILED INSTRUCTIONS TO GENERATE THE DOCS, SEE: docbook\readme.txt.
854 # If you don't call the Makefile.nmake in the docbook dir to generate the
855 # docs, the following settings in this section will have no effect.
857 # formatting objects processor executable
858 # Comment this out if you don't have fop installed or you don't want the docs
861 FOP=fop-0.20.5\fop.bat
864 # Additional options to fop.
868 # Comment this out if you don't have hhc.exe or you don't want the docs in
871 # Beware: hhc.exe is NOT part of the MSVC packages in HHC_DIR mentioned above,
872 # so you'll need to install the HTML Help Workshop for this.
873 HHC_EXE="$(HHC_DIR)\hhc.exe"
875 # html to text converter for text version of release notes, e.g. elinks.
876 # This could also be "lynx", or "true" if neither elinks nor lynx is installed
877 # (cygwin: lynx works, elinks not available, links and true doesn't produce output)
878 #HTML2TXT=elinks -dump -dump-width 72
879 #HTML2TXT=links -dump -width 72
880 #HTML2TXT=lynx -dump -width=72 -nolist -stdin
883 HTML2TXT=$(PYTHON) $(TOOLS_DIR)\html2text.py --width=72 --no-links
886 # the XSL processor (part of cygwin's libxslt package)
889 # the XML validator (part of cygwin's libxml2 package)
894 ##############################################################################
896 # You should not have to change anything below this comment.
897 # If you do, it's a deficiency in the Makefile.nmake files;
898 # either tell wireshark-dev@wireshark.org about it, including
899 # details of why you had to change it, or fix config.nmake
900 # and any Makefile.nmake files that need to be changed, and
901 # send us the patches, along with details of why the change
904 ##############################################################################
907 # The RC_VERSION should be comma-separated, not dot-separated,
908 # as per Graham Bloice's message in
910 # http://www.ethereal.com/lists/ethereal-dev/200303/msg00283.html
912 # "The RC_VERSION variable in config.nmake should be comma separated.
913 # This allows the resources to be built correctly and the version
914 # number to be correctly displayed in the explorer properties dialog
915 # for the executables, and XP's tooltip, rather than 0.0.0.0."
918 VERSION=$(VERSION_MAJOR).$(VERSION_MINOR).$(VERSION_MICRO)$(VERSION_EXTRA)
919 RC_VERSION=$(VERSION_MAJOR),$(VERSION_MINOR),$(VERSION_MICRO),$(VERSION_BUILD)
921 WTAP_VERSION=$(WTAP_VERSION_MAJOR).$(WTAP_VERSION_MINOR).$(WTAP_VERSION_MICRO)
922 RC_WTAP_VERSION=$(WTAP_VERSION_MAJOR),$(WTAP_VERSION_MINOR),$(WTAP_VERSION_MICRO)
925 GLIB_CFLAGS=/I$(GLIB_DIR)\include\glib-$(GLIB_VERSION) \
926 /I$(GLIB_DIR)\lib\glib-$(GLIB_VERSION)\include
927 GLIB_LIBS=$(GLIB_DIR)\lib\glib-$(GLIB_VERSION).lib \
928 $(GLIB_DIR)\lib\gmodule-$(GLIB_VERSION).lib \
929 $(GLIB_DIR)\lib\gobject-$(GLIB_VERSION).lib
930 GTHREAD_LIBS=$(GLIB_DIR)\lib\gthread-$(GLIB_VERSION).lib \
933 GTK_CFLAGS=$(GLIB_CFLAGS) /I$(GTK_DIR)\include\gtk-2.0 \
934 /I$(GTK_DIR)\lib\gtk-2.0\include \
935 /I$(GTK_DIR)\include\atk-1.0 \
936 /I$(GTK_DIR)\include\cairo \
937 /I$(GTK_DIR)\include\pango-1.0
938 GTK_LIBS=$(GTK_DIR)\lib\gtk-win32-2.0.lib \
939 $(GTK_DIR)\lib\gdk-win32-2.0.lib \
940 $(GTK_DIR)\lib\gdk_pixbuf-2.0.lib \
941 $(GTK_DIR)\lib\pango-1.0.lib \
944 !IF "$(GTK_INST_VERSION)" == "2.16" || "$(GTK_INST_VERSION)" == "2.14" || "$(GTK_INST_VERSION)" == "2.12"
950 GTK_WIMP_DLLSRC_DIR=$(GTK_DIR)\lib\gtk-2.0\2.10.0\engines
951 GTK_WIMP_DLLDST_DIR=lib\gtk-2.0\2.10.0\engines
952 GTK_WIMP_RCSRC_DIR=$(GTK_DIR)\share\themes\MS-Windows\gtk-2.0
953 GTK_WIMP_RCDST_DIR=etc\gtk-2.0
955 !ERROR ? Unknown or invalid GTK_INST_VERSION
958 !IF "$(PANGO_INST_VERSION)" == "1.24" || "$(PANGO_INST_VERSION)" == "1.22" || "$(PANGO_INST_VERSION)" == "1.18" || "$(PANGO_INST_VERSION)" == "1.16"
961 !ERROR ? Unknown or invalid PANGO_INST_VERSION
964 !IF "$(PANGO_INST_VERSION)" == "1.24"
965 #PANGO 1.24.5 Needs these:
966 NEED_FREETYPE_DLL=USE
967 NEED_FONTCONFIG_DLL=USE
971 AIRPCAP_CONFIG=^#define HAVE_AIRPCAP 1
972 AIRPDCAP_CONFIG=^#define HAVE_AIRPDCAP 1
973 #AIRPCAP_CFLAGS=/I$(AIRPCAP_DIR)\include
980 # Nmake uses carets to escape special characters
981 WINPCAP_CONFIG=^#define HAVE_LIBPCAP 1
982 PCAP_FINDALLDEVS_CONFIG=^#define HAVE_PCAP_FINDALLDEVS 1
983 PCAP_DATALINK_NAME_TO_VAL_CONFIG=^#define HAVE_PCAP_DATALINK_NAME_TO_VAL 1
984 PCAP_DATALINK_VAL_TO_NAME_CONFIG=^#define HAVE_PCAP_DATALINK_VAL_TO_NAME 1
985 # PCAP_BREAKLOOP won't have any benefit on Win32, but breaks compatibility with 3.0
986 PCAP_BREAKLOOP_CONFIG=
988 # no WpdPack installed
990 PCAP_FINDALLDEVS_CONFIG=
991 PCAP_DATALINK_NAME_TO_VAL_CONFIG=
992 PCAP_DATALINK_VAL_TO_NAME_CONFIG=
993 PCAP_BREAKLOOP_CONFIG=
996 PCAP_LIST_DATALINKS_CONFIG=^#define HAVE_PCAP_LIST_DATALINKS 1
997 PCAP_SET_DATALINK_CONFIG=^#define HAVE_PCAP_SET_DATALINK 1
999 !IF DEFINED(PCAP_DIR) && DEFINED(PCAP_REMOTE)
1000 PCAP_HAVE_REMOTE_CONFIG=^#define HAVE_REMOTE 1
1001 PCAP_REMOTE_CONFIG=^#define HAVE_PCAP_REMOTE 1
1002 PCAP_OPEN_CONFIG=^#define HAVE_PCAP_OPEN 1
1003 PCAP_SETSAMPLING_CONFIG=^#define HAVE_PCAP_SETSAMPLING 1
1005 PCAP_HAVE_REMOTE_CONFIG=
1008 PCAP_SETSAMPLING_CONFIG=
1012 ZLIB_PATH=$(ZLIB_DIR)
1013 ZLIB_CFLAGS=/I$(ZLIB_DIR)\include
1014 ZLIB_LIBS=$(ZLIB_DIR)\lib\zdll.lib
1015 ZLIB_DLL=$(ZLIB_DIR)\zlib1.dll
1016 # Nmake uses carets to escape special characters
1017 ZLIB_CONFIG=^#define HAVE_LIBZ 1
1027 C_ARES_CFLAGS=/I$(C_ARES_DIR)
1028 C_ARES_LIBS=$(C_ARES_DIR)\cares.lib
1029 C_ARES_DLL=$(C_ARES_DIR)\cares.dll
1030 # Nmake uses carets to escape special characters
1031 C_ARES_CONFIG=^#define HAVE_C_ARES 1
1037 ADNS_PATH=$(ADNS_DIR)\adns_win32\lib
1038 ADNS_CFLAGS=/I$(ADNS_DIR)\src /I$(ADNS_DIR)\adns_win32
1039 ADNS_LIBS=$(WIRESHARK_LIBS)\$(MSVC_VARIANT)\adns\adns_dll.lib
1040 ADNS_DLL=$(WIRESHARK_LIBS)\$(MSVC_VARIANT)\adns\adns_dll.dll
1041 # Nmake uses carets to escape special characters
1042 ADNS_CONFIG=^#define HAVE_GNU_ADNS 1
1051 KFW_PATH=$(KFW_DIR)\bin
1052 KFW_CFLAGS=/I$(KFW_DIR)\include
1053 KFW_LIBS=$(KFW_DIR)\lib\krb5_32.lib
1054 # Nmake uses carets to escape special characters
1055 KFW_CONFIG=^#define HAVE_MIT_KERBEROS 1
1063 PCRE_PATH=$(PCRE_DIR)\bin
1064 PCRE_CFLAGS=/I$(PCRE_DIR)\include
1065 PCRE_LIBS=$(PCRE_DIR)\lib\pcre.lib
1066 # Nmake uses carets to escape special characters
1067 PCRE_CONFIG=^#define HAVE_LIBPCRE 1
1075 NETTLE_CFLAGS=/I$(NETTLE_DIR)
1076 NETTLE_LIBS=$(NETTLE_DIR)\libnettle.lib
1077 # Nmake uses carets to escape special characters
1078 NETTLE_CONFIG=^#define HAVE_LIBNETTLE 1
1086 GNUTLS_PATH=$(GNUTLS_DIR)
1087 # /DNOCRYPT avoids inclusion of Wincrypt.h, avoiding a X509_NAME define clash
1088 GNUTLS_CFLAGS=/I$(GNUTLS_DIR)\include /DNOCRYPT /DIMPORT_LIGNUTLSDLL
1090 $(GNUTLS_DIR)\bin\libtasn1-3.lib \
1091 $(GNUTLS_DIR)\bin\libgpg-error-0.lib \
1092 $(GNUTLS_DIR)\bin\libgcrypt-11.lib \
1093 $(GNUTLS_DIR)\bin\libgnutls-26.lib
1094 # Nmake uses carets to escape special characters
1095 GNUTLS_CONFIG=^#define HAVE_LIBGNUTLS 1
1096 LIBGCRYPT_CONFIG=^#define HAVE_LIBGCRYPT 1
1105 LUA_CFLAGS=/I$(LUA_DIR)\include
1106 LUA_LIBS=$(LUA_DIR)\lua5.1.lib
1107 # Nmake uses carets to escape special characters
1108 LUA_CONFIG=^#define HAVE_LUA 1
1109 LUA_VERSION=^#define HAVE_LUA_5_1 1
1116 !IFDEF PORTAUDIO_DIR
1117 # Nmake uses carets to escape special characters
1118 PORTAUDIO_CONFIG=^#define HAVE_LIBPORTAUDIO 1
1119 !IF "$(PORTAUDIO_VERSION)" == "18"
1120 # V18 uses API version 1 and v19 API version 2
1121 PORTAUDIO_CFLAGS=/I$(PORTAUDIO_DIR)\pa_common
1122 PORTAUDIO_API_CONFIG=^#define PORTAUDIO_API_1 1
1124 PORTAUDIO_CFLAGS=/I$(PORTAUDIO_DIR)\include /I$(PORTAUDIO_DIR)\src\common /I$(PORTAUDIO_DIR)\src\os\win /DPA_NO_DS /DPA_NO_ASIO
1132 !IF "$(MSVC_VARIANT)" == "MSVC6"
1133 HHC_CFLAGS=/I"$(HHC_DIR)\include" -DHHC_DIR
1134 HHC_LIBS="$(HHC_DIR)\lib\htmlhelp.lib"
1136 HHC_CFLAGS=-DHHC_DIR
1137 HHC_LIBS=htmlhelp.lib
1145 SMI_CONFIG=^#define HAVE_LIBSMI 1
1146 SMI_CFLAGS=/I$(SMI_DIR)\include
1147 SMI_LIBS=$(SMI_DIR)\lib\smi.lib
1155 GEOIP_CONFIG=^#define HAVE_GEOIP 1
1156 GEOIP_CFLAGS=/I$(GEOIP_DIR)\libGeoIP
1157 GEOIP_LIBS=$(GEOIP_DIR)\libGeoIP\GeoIP.lib
1164 !IFDEF ENABLE_LIBWIRESHARK
1165 LIBWIRESHARK_CONFIG=^#define HAVE_LIBWIRESHARKDLL 1
1166 # Link plugins with the import library of libwireshark.dll
1167 LINK_PLUGINS_WITH_LIBWIRESHARK=USE
1169 LIBWIRESHARK_CONFIG=
1172 # Construct the path
1173 PATH=$(PATH);$(CYGWIN_PATH);$(GLIB_DIR)\bin;$(GETTEXT_DIR)\bin;$(ZLIB_PATH);$(ADNS_PATH)
1175 # We can't use a lot of IPv6 code with plain Visual C++ 6.0
1176 !IF "$(MSVC_VARIANT)" == "MSVC6" && !DEFINED(MSSDK)
1179 INET6_CONFIG=^#define INET6 1
1182 !IF "$(MSVC_VARIANT)" == "MSVC6" && !DEFINED(MSSDK)
1185 NTDDNDIS_CONFIG=^#define HAVE_NTDDNDIS_H 1