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
141 GLIB_DIR=$(WIRESHARK_LIBS)\glib
143 ##### To Use new packet list uncomment this line ####
144 ### Warning Experimental - work in progress
145 #NEW_PACKET_LIST_CONFIG=^#define NEW_PACKET_LIST 1
146 NEW_PACKET_LIST_CONFIG=
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
161 TIFF_PKG=libtiff-3.8.2
162 TIFF_DLL=libtiff3.dll
163 JPEG_PKG=jpeg-6b-4-bin
168 # Mandatory: Version numbers of GTK and pango.
170 # (MAJOR + MINOR Version number but without MICRO version number)
171 # These macros are used by the nsis installer script and by the setup target.
173 # GTK 2.12 is the mainline since Wireshark 0.99.7
174 GTK_INST_VERSION=2.16
175 PANGO_INST_VERSION=1.24
178 # Optional: WinPcap developer's pack to capture network traffic.
180 # If you have the WinPcap developer's pack (at least version 3.0),
181 # set this to the directory in which the WinPcap developer's pack resides.
183 # If you don't have the WPdpack, comment this line out, so that
184 # PCAP_DIR isn't defined.
186 PCAP_VERSION=4_1_beta5
187 PCAP_DIR=$(WIRESHARK_LIBS)\WPdpack
190 # Optional: WinPcap remote capture support and new API
191 # (pcap_open(), pcap_findalldevs_ex(), etc.)
196 # Optional: The ZLib enables unzipping of gzip compressed capture files
199 # If you have Zlib, set this to directory in which the Zlib headers
200 # and .lib file are stored.
202 # If you don't have Zlib, comment this line out, so that ZLIB_DIR isn't
205 ZLIB_DIR=$(WIRESHARK_LIBS)\zlib123
208 # Optional: the ADNS library enables asynchronous (nonblocking) DNS
211 # If you have GNU ADNS, set this to the directory in which the GNU ADNS
212 # .lib file is stored.
214 # If you don't have GNU ADNS, comment this line out, so that ADNS_DIR
217 # If C_ARES_DIR is defined below, it will override this setting.
219 #ADNS_DIR=$(WIRESHARK_LIBS)\adns-1.0-win32-05ws
222 # Optional: the c-ares library enables asynchronous (nonblocking) DNS
225 # If you have c-ares, set this to the directory in which the c-ares
226 # .lib file is stored. Setting this will override ADNS_DIR above. You
229 # If you're using Visual C++ 6.0, you'll have to use a platform SDK that
230 # defines socklen_t, such as Windows Server 2003 PSDK.
232 # If you don't have c-ares, comment this line out, so that C_ARES_DIR
235 C_ARES_DIR=$(WIRESHARK_LIBS)\c-ares-1.6.0ws
238 # Optional: the PCRE (Perl Compatible Regular Expressions) library
239 # enables regular expressions for display filters.
241 # If you have the PCRE library, set this to the directory in which
242 # the GNUWIN32 pcre-lib package is stored.
244 # If you don't have PCRE, comment this line out, so that PCRE_DIR
247 PCRE_DIR=$(WIRESHARK_LIBS)\pcre-7.0
250 # Optional: the GNUTLS library enables ssl decryption.
252 # If you have the GNUTLS library, set this to the directory where
253 # the lib and include files are stored.
255 # If you don't have GNUTLS, comment this line out, so that GNUTLS_DIR
258 # Platform SDK conflicts with openssl.h header
259 GNUTLS_DIR=$(WIRESHARK_LIBS)\gnutls-2.8.1-1
262 # Optional: the KFW library enables kerberos/sasl/dcerpc decryption.
264 # If you have the kerberos for windows (mit) library, set this to the
265 # directory where the kfw package is stored.
267 # If you don't have KFW, comment this line out, so that KFW_DIR
270 KFW_DIR=$(WIRESHARK_LIBS)\kfw-3.2.2-ws1
273 # Optional: the Nettle library enables ??? decryption.
275 # If you have the Nettle encryption library, set this to the
276 # directory in which the nettle package is stored.
278 # If you don't have Nettle, comment this line out, so that NETTLE_DIR
281 # NETTLE_DIR=$(WIRESHARK_LIBS)\nettle-1.10
284 # Optional: the LUA library enables scripting support.
286 # If you have the LUA library, set this to the directory in which
287 # the LUA package is stored.
289 # If you don't have LUA, comment this line out, so that LUA_DIR
292 LUA_DIST=5_1_4_Win32_dll6
293 LUA_DIR=$(WIRESHARK_LIBS)\lua5.1.4
296 # Optional: the PORTAUDIO library enables audio output for RTP streams.
298 # If you have the PORTAUDIO library (used for rtp_player), set this to
299 # the directory in which the PORTAUDIO library is stored.
301 # If you don't have PORTAUDIO, comment this line out, so that
302 # PORTAUDIO_DIR isn't defined.
304 #PORTAUDIO_DIR=$(WIRESHARK_LIBS)\portaudio_v18_1
305 PORTAUDIO_DIR=$(WIRESHARK_LIBS)\portaudio_v19_2
308 # Version number of PortAudio
310 #PORTAUDIO_VERSION=18
314 # Iconv: Mandatory for Glib >= 2 and <= 2.14.4
315 # [win-iconv statically linked as part of Glib >= 2.14.5]
316 # Set ICONV_DIR to the directory in which the
317 # ICONV include files and library resides.
319 ##ICONV_DIR=$(WIRESHARK_LIBS)\libiconv-1.9.1.bin.woe32
322 # Mandatory for GTK >= 2: Gettext
324 # Set GETTEXT_DIR to the directory in which the
325 # GETTEXT include files and library resides.
327 #GETTEXT_DIR=$(WIRESHARK_LIBS)\gettext-0.14.5
328 GETTEXT_PKG=-runtime-0.17-1
329 GETTEXT_DIR=$(WIRESHARK_LIBS)\gettext-runtime-0.17-1
332 # Optional: AirPcap developer's pack to capture wireless network traffic
333 # incl. 802.11 management frames.
335 # If you have the AirPcap developer's pack, set this to the directory
336 # in which the AirPcap developer's pack resides.
338 # If you don't have the AirPcap developer's pack, comment this line out,
339 # so that AIRPCAP_DIR isn't defined.
341 AIRPCAP_DIR=$(WIRESHARK_LIBS)\AirPcap_Devpack_1_0_0_594\AirPcap_Devpack
344 # Optional: LIBSMI, System Management Interface
346 # Used for oid-name resolution for SNMP and other protocols
348 SMI_DIR=$(WIRESHARK_LIBS)\libsmi-0.4.8
351 # Optional: GeoIP, IP address database lookups
353 # Used to map IP addresses to MaxMind GeoIP database entries
355 # GeoIP requires IPv6 definitions that don't ship with Visual C++ 6.0.
356 # However, the Microsoft Platform SDK for Windows Server 2003 R2 provides
357 # these definitions. The SDK's SetEnv.bat script defines INETSDK.
358 !IF "$(MSVC_VARIANT)" != "MSVC6" || DEFINED(INETSDK)
359 GEOIP_DIR=$(WIRESHARK_LIBS)\GeoIP-1.4.5ws
363 ##### Win64 Libraries #####
365 # Mandatory: GLib settings
367 # Please note: Since Wireshark release 1.0.0, we no longer support GLib1.x
371 GLIB_DIR=$(WIRESHARK_LIBS)\glib
374 # Mandatory: GTK (& related libs) settings
376 # Please note: Since Wireshark release 1.0.0, we no longer support GTK1.x
378 # If you want building with GTK+, set GTK_DIR to the pathname of the
379 # directory in which the "include" and "lib" directories reside.
381 GTK_DIR=$(WIRESHARK_LIBS)\gtk2
386 TIFF_PKG=libtiff_3.8.2-1_win64
388 JPEG_PKG=jpeg_6b-2_win64
389 JPEG_DLL=libjpeg-62.dll
393 # Mandatory: Version numbers of GTK and pango.
395 # (MAJOR + MINOR Version number but without MICRO version number)
396 # These macros are used by the nsis installer script and by the setup target.
398 GTK_INST_VERSION=2.16
399 PANGO_INST_VERSION=1.24
402 # Optional: WinPcap developer's pack to capture network traffic.
404 # If you have the WinPcap developer's pack (at least version 3.0),
405 # set this to the directory in which the WinPcap developer's pack resides.
407 # If you don't have the WPdpack, comment this line out, so that
408 # PCAP_DIR isn't defined.
410 PCAP_VERSION=4_1_beta5
411 PCAP_DIR=$(WIRESHARK_LIBS)\WPdpack
414 # Optional: WinPcap remote capture support and new API
415 # (pcap_open(), pcap_findalldevs_ex(), etc.)
420 # Optional: The ZLib enables unzipping of gzip compressed capture files
423 # If you have Zlib, set this to directory in which the Zlib headers
424 # and .lib file are stored.
426 # If you don't have Zlib, comment this line out, so that ZLIB_DIR isn't
429 ZLIB_DIR=$(WIRESHARK_LIBS)\zlib123
432 # Optional: the ADNS library enables asynchronous (nonblocking) DNS
435 # If you have GNU ADNS, set this to the directory in which the GNU ADNS
436 # .lib file is stored.
438 # If you don't have GNU ADNS, comment this line out, so that ADNS_DIR
441 # If C_ARES_DIR is defined below, it will override this setting.
443 #ADNS_DIR=$(WIRESHARK_LIBS)\adns-1.0-win32-05ws
446 # Optional: the c-ares library enables asynchronous (nonblocking) DNS
449 # If you have c-ares, set this to the directory in which the c-ares
450 # .lib file is stored. Setting this will override ADNS_DIR above. You
453 # If you're using Visual C++ 6.0, you'll have to use a platform SDK that
454 # defines socklen_t, such as Windows Server 2003 PSDK.
456 # If you don't have c-ares, comment this line out, so that C_ARES_DIR
459 #C_ARES_DIR=$(WIRESHARK_LIBS)\c-ares-1.5.2ws
462 # Optional: the PCRE (Perl Compatible Regular Expressions) library
463 # enables regular expressions for display filters.
465 # If you have the PCRE library, set this to the directory in which
466 # the GNUWIN32 pcre-lib package is stored.
468 # If you don't have PCRE, comment this line out, so that PCRE_DIR
471 #PCRE_DIR=$(WIRESHARK_LIBS)\pcre-7.0
474 # Optional: the GNUTLS library enables ssl decryption.
476 # If you have the GNUTLS library, set this to the directory where
477 # the lib and include files are stored.
479 # If you don't have GNUTLS, comment this line out, so that GNUTLS_DIR
482 # Platform SDK conflicts with openssl.h header
483 #GNUTLS_DIR=$(WIRESHARK_LIBS)\gnutls-2.8.1-1
486 # Optional: the KFW library enables kerberos/sasl/dcerpc decryption.
488 # If you have the kerberos for windows (mit) library, set this to the
489 # directory where the kfw package is stored.
491 # If you don't have KFW, comment this line out, so that KFW_DIR
494 #KFW_DIR=$(WIRESHARK_LIBS)\kfw-3.2.2-ws1
497 # Optional: the Nettle library enables ??? decryption.
499 # If you have the Nettle encryption library, set this to the
500 # directory in which the nettle package is stored.
502 # If you don't have Nettle, comment this line out, so that NETTLE_DIR
505 # NETTLE_DIR=$(WIRESHARK_LIBS)\nettle-1.10
508 # Optional: the LUA library enables scripting support.
510 # If you have the LUA library, set this to the directory in which
511 # the LUA package is stored.
513 # If you don't have LUA, comment this line out, so that LUA_DIR
516 LUA_DIST=5_1_4_Win64_dll9
517 LUA_DIR=$(WIRESHARK_LIBS)\lua5.1.4
520 # Optional: the PORTAUDIO library enables audio output for RTP streams.
522 # If you have the PORTAUDIO library (used for rtp_player), set this to
523 # the directory in which the PORTAUDIO library is stored.
525 # If you don't have PORTAUDIO, comment this line out, so that
526 # PORTAUDIO_DIR isn't defined.
528 #PORTAUDIO_DIR=$(WIRESHARK_LIBS)\portaudio_v18_1
529 PORTAUDIO_DIR=$(WIRESHARK_LIBS)\portaudio_v19_2
532 # Version number of PortAudio
534 #PORTAUDIO_VERSION=18
538 # Iconv: Mandatory for Glib >= 2 and <= 2.14.4
539 # [win-iconv statically linked as part of Glib >= 2.14.5]
540 # Set ICONV_DIR to the directory in which the
541 # ICONV include files and library resides.
543 ##ICONV_DIR=$(WIRESHARK_LIBS)\libiconv-1.9.1.bin.woe32
546 # Mandatory for GTK >= 2: Gettext
548 # Set GETTEXT_DIR to the directory in which the
549 # GETTEXT include files and library resides.
551 #GETTEXT_DIR=$(WIRESHARK_LIBS)\gettext-0.14.5
552 GETTEXT_PKG=_0.17-1_win64
553 GETTEXT_DIR=$(WIRESHARK_LIBS)\gettext-0.17-1
554 GETTEXT_DLL=libintl-8.dll
556 # Optional: AirPcap developer's pack to capture wireless network traffic
557 # incl. 802.11 management frames.
559 # If you have the AirPcap developer's pack, set this to the directory
560 # in which the AirPcap developer's pack resides.
562 # If you don't have the AirPcap developer's pack, comment this line out,
563 # so that AIRPCAP_DIR isn't defined.
565 #AIRPCAP_DIR=$(WIRESHARK_LIBS)\AirPcap_Devpack_1_0_0_594\AirPcap_Devpack
568 # Optional: LIBSMI, System Management Interface
570 # Used for oid-name resolution for SNMP and other protocols
572 #SMI_DIR=$(WIRESHARK_LIBS)\libsmi-0.4.8
575 # Optional: GeoIP, IP address database lookups
577 # Used to map IP addresses to MaxMind GeoIP database entries
579 # GeoIP requires IPv6 definitions that don't ship with Visual C++ 6.0.
580 # However, the Microsoft Platform SDK for Windows Server 2003 R2 provides
581 # these definitions. The SDK's SetEnv.bat script defines INETSDK.
582 !IF "$(MSVC_VARIANT)" != "MSVC6" || DEFINED(INETSDK)
583 #GEOIP_DIR=$(WIRESHARK_LIBS)\GeoIP-1.4.5ws
590 # Set the following mandatory commands to find the tools.
591 # The easiest way is to use the corresponding packages from cygwin.
593 # Set up the path to the cygwin binaries
594 CYGWIN_PATH=c:\cygwin\bin
596 # command for a shell (cygwin's bash package recommended)
599 # bash versions after 3.1.6 need the 'igncr' shell option to be able to
600 # process scripts in windows 'native format' (dos crlf format).
601 # The following !IF results in the option being used only if it is available
602 # since using it on bash version 3.1.6 (or earlier) is not required and
603 # will cause an error message.
604 !if "$(SH_PROG)"=="bash" && [$(CYGWIN_PATH)\bash -c "set -o igncr" 2>nul: ] == 0
608 SH=$(SH_PROG) $(SH_FLAGS)
611 # command for perl (cygwin's perl package recommended)
614 # command for pod2man and pod2html
615 # (part of the perl package, usually leave these unchanged)
616 POD2MAN=$(SH) pod2man
617 POD2HTML=$(SH) pod2html
619 # Command for native Windows Python (recommended)
620 # V2.4 to V2.6 should work
622 # If you want to specify your Python settings, uncomment the lines below.
623 #PYTHON="C:\Python26\python.exe"
624 #PATH=c:\Python26;$(PATH)
626 # Command for Cygwin's Python (not recommended)
629 # Otherwise, find Python automatically.
631 !IF EXIST(c:\Python26\python.exe)
632 PYTHON="C:\Python26\python.exe"
633 PATH=c:\Python26;$(PATH)
634 !ELSE IF EXIST(c:\Python25\python.exe)
635 PYTHON="C:\Python25\python.exe"
636 PATH=c:\Python25;$(PATH)
637 !ELSE IF EXIST(c:\Python24\python.exe)
638 PYTHON="C:\Python24\python.exe"
639 PATH=c:\Python24;$(PATH)
643 # command for lex/flexx (cygwin's flex recommended)
646 # command for yacc/bison (cygwin's bison recommended)
650 # Optional: To build the NSIS installer.
652 # If you have the NSIS package, set this to the NSIS executable.
654 # If you don't have NSIS, comment this line out, so that MAKENSIS
657 MAKENSIS="$(PROGRAM_FILES)\nsis\makensis.exe"
660 # Optional: To build the developers API documentation with doxygen and dot.
661 # Currently experimental, outdated and incomplete.
663 # You will have to download and install:
664 # Doxygen from: http://www.doxygen.org
665 # Graphviz from: http://www.research.att.com/sw/tools/graphviz/
667 # If you have doxygen, set this to the doxygen executable.
669 # If you don't want the developers documentation (or don't have the tools),
670 # comment this line out, so that DOXYGEN isn't defined.
672 #DOXYGEN="$(PROGRAM_FILES)/doxygen/bin/doxygen.exe"
675 # Recommended: Use the compressed html help format .chm as the Wireshark integrated help.
677 # The required htmlhelp.h and htmlhelp.lib should be included in MSVC_VARIANT > MSVC6.
679 # For MSVC_VARIANT == MSVC6 you will have to download and install the html help workshop from:
681 # http://msdn.microsoft.com/library/default.asp?url=/library/en-us/htmlhelp/html
682 # /hwMicrosoftHTMLHelpDownloads.asp
684 # Then point HHC_DIR to the html help dir (where hhc.exe resides).
686 # If you don't want the online help (or don't have the tools),
687 # comment this line out, so that HHC_DIR isn't defined.
689 HHC_DIR=$(PROGRAM_FILES)/HTML Help Workshop
692 # Optional: To reduce the size of dlls and exes, which is especially useful for USB device distributions (U3, PortableApps)
694 # If you have the UPX package, set this to the upx.exe executable.
696 # UPX can be downloaded from:
697 # http://upx.sourceforge.net/
699 # If you don't have UPX, or don't want to pack exes and dlls,
700 # comment this line out, so that UPX isn't defined.
703 UPX=$(WIRESHARK_LIBS)\upx303w\upx.exe
705 ##### Flags, PATHs and Miscellaneous #####
707 # "convert" the MSVC variant into the required MSC compiler version
708 !IF "$(MSVC_VARIANT)" == "MSVC6"
709 MSC_VER_REQUIRED=1200
710 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2002" || "$(MSVC_VARIANT)" == "DOTNET10"
711 MSC_VER_REQUIRED=1300
712 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2003" || "$(MSVC_VARIANT)" == "DOTNET11"
713 MSC_VER_REQUIRED=1310
714 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2005" || "$(MSVC_VARIANT)" == "MSVC2005EE" || "$(MSVC_VARIANT)" == "DOTNET20"
715 MSC_VER_REQUIRED=1400
716 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2008" || "$(MSVC_VARIANT)" == "MSVC2008EE"
717 MSC_VER_REQUIRED=1500
719 !ERROR MSVC_VARIANT unknown
723 # /W3 warning level 3 (0 less - 4 most, 1 default)
724 # /Zi create .pdb file for debugging
725 # /MD use "Multithreading Debug" libraries
726 # /D_CRT_SECURE_NO_DEPRECATE Don't warn for "insecure" calls, see MSDN "Security Enhancements in the CRT"
727 # /D_CRT_NONSTDC_NO_DEPRECATE Don't warn for "Deprecated CRT Functions" as MSDN calls this
728 # /D_BIND_TO_CURRENT_CRT_VERSION=1 Make sure our CRT and manifest versions match (http://msdn.microsoft.com/en-us/library/cc664727.aspx)
729 # /DWIN32_LEAN_AND_MEAN Don't include unnecessary Windows include files (see windows.h)
730 # /MP [<number of processes>] [MSVC2008]: Compiles multiple source files by using multiple processes
731 # Add if desired for compile speedup on machines with 2 or more "effective processors"
732 # /MANIFEST:no Don't create a SxS manifest. Makes sure our plugins don't load a second copy of the CRT.
734 !IF "$(MSVC_VARIANT)" == "MSVC6" || "$(MSVC_VARIANT)" == "MSVC2002" || "$(MSVC_VARIANT)" == "DOTNET10" || "$(MSVC_VARIANT)" == "MSVC2003" || "$(MSVC_VARIANT)" == "DOTNET11"
735 LOCAL_CFLAGS=/Zi /W3 /MD /DWIN32_LEAN_AND_MEAN /DMSC_VER_REQUIRED=$(MSC_VER_REQUIRED)
736 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2005" || "$(MSVC_VARIANT)" == "MSVC2005EE" || "$(MSVC_VARIANT)" == "DOTNET20" || "$(MSVC_VARIANT)" == "MSVC2008" || "$(MSVC_VARIANT)" == "MSVC2008EE"
737 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
739 !ERROR MSVC_VARIANT unknown
743 # /DEBUG generate debug info
744 # /PROFILE generate map file(s) for profiling
745 # /DEFAULTLIB:xxx use xxx as the standard C library
746 # /NODEFAULTLIB:xxx don't use xxx as the standard C library
748 LOCAL_LDFLAGS=/DEBUG /MACHINE:$(TARGET_MACHINE)
750 !IF $(MSC_VER_REQUIRED) >= 1400
751 DLL_LDFLAGS = /MANIFEST:no
754 PLUGIN_LDFLAGS = /NOLOGO /INCREMENTAL:no $(LOCAL_LDFLAGS) $(DLL_LDFLAGS)
757 # According to http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=403
758 # XCOPY under Windows NT doesn't support the "/Y" flag. This works
760 # XXX - This apparently doesn't work for some versions of nmake:
761 # http://support.microsoft.com/default.aspx?scid=kb;en-us;86814
762 # It looks like we'll have to call "set copycmd=/y" before we run xcopy.
766 # If you don't want to build libwireshark.dll, you should comment out the
767 # following line. (Note: for plugin support this option must stay activated)
768 ENABLE_LIBWIRESHARK=USE
771 # install (debug) directory for Wireshark (relative to your source dir)
772 INSTALL_DIR=wireshark-gtk2
776 ##### C-Runtime Redistributable #####
778 # The C-Runtime since Version 7 must be shipped together with
779 # the program installer, to avoid missing msvcr*.dll files on
780 # the target machine.
782 # The location of these files differ on the various compiler
783 # packages, the following will use the default paths depending
784 # on the package version.
786 !IF "$(MSVC_VARIANT)" == "MSVC6"
787 # msvcrt.dll will already be available on target machines - nothing additional to install
789 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2002"
790 # you probably need to tweak this directory if you don't use the professional edition!
791 MSVCR_DLL=$(PROGRAM_FILES)\Microsoft Visual Studio .NET\Visual Studio .NET Professional - English\msvcr70.dll
793 !ELSEIF "$(MSVC_VARIANT)" == "DOTNET10"
794 # no redistributable available for this package!
796 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2003"
797 # you probably need to tweak this directory if you don't use the professional edition!
798 MSVCR_DLL=$(PROGRAM_FILES)\Microsoft Visual Studio .NET 2003\Visual Studio .NET Professional 2003 - English\msvcr71.dll
800 !ELSEIF "$(MSVC_VARIANT)" == "DOTNET11"
801 # no redistributable available for this package!
803 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2005"
804 MSVCR_DLL=$(PROGRAM_FILES)\Microsoft Visual Studio 8\VC\redist\$(VCREDIST_DLL)\Microsoft.VC80.CRT\*.*
806 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2005EE" || "$(MSVC_VARIANT)" == "DOTNET20" || "$(MSVC_VARIANT)" == "MSVC2008EE"
807 # you need to download the redistributable package vcredist_x86.exe from Microsoft first,
808 # and copy it to the lib folder!!!
809 VCREDIST_EXE=$(WIRESHARK_LIBS)\vcredist_$(TARGET_MACHINE).exe
811 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2008"
812 MSVCR_DLL=$(PROGRAM_FILES)\Microsoft Visual Studio 9.0\VC\redist\$(VCREDIST_DLL)\Microsoft.VC90.CRT\*.*
815 !ERROR MSVC_VARIANT unknown
820 ##### Advanced: Docbook/XML documentation generation #####
821 # If you want to generate the Docbook/XML based docs (User's and Developer's
822 # Guide, ...), you'll need some additional tools / libraries compared to the
823 # rest of the build process.
825 # FOR DETAILED INSTRUCTIONS TO GENERATE THE DOCS, SEE: docbook\readme.txt.
827 # If you don't call the Makefile.nmake in the docbook dir to generate the
828 # docs, the following settings in this section will have no effect.
830 # formatting objects processor executable
831 # Comment this out if you don't have fop installed or you don't want the docs
834 FOP=fop-0.20.5\fop.bat
837 # Additional options to fop.
841 # Comment this out if you don't have hhc.exe or you don't want the docs in
844 # Beware: hhc.exe is NOT part of the MSVC packages in HHC_DIR mentioned above,
845 # so you'll need to install the HTML Help Workshop for this.
846 HHC_EXE="$(HHC_DIR)\hhc.exe"
848 # html to text converter for text version of release notes, e.g. elinks.
849 # This could also be "lynx", or "true" if neither elinks nor lynx is installed
850 # (cygwin: lynx works, elinks not available, links and true doesn't produce output)
851 #HTML2TXT=elinks -dump -dump-width 72
852 #HTML2TXT=links -dump -width 72
853 #HTML2TXT=lynx -dump -width=72 -nolist -stdin
856 HTML2TXT=$(PYTHON) $(TOOLS_DIR)\html2text.py --width=72 --no-links
859 # the XSL processor (part of cygwin's libxslt package)
862 # the XML validator (part of cygwin's libxml2 package)
867 ##############################################################################
869 # You should not have to change anything below this comment.
870 # If you do, it's a deficiency in the Makefile.nmake files;
871 # either tell wireshark-dev@wireshark.org about it, including
872 # details of why you had to change it, or fix config.nmake
873 # and any Makefile.nmake files that need to be changed, and
874 # send us the patches, along with details of why the change
877 ##############################################################################
880 # The RC_VERSION should be comma-separated, not dot-separated,
881 # as per Graham Bloice's message in
883 # http://www.ethereal.com/lists/ethereal-dev/200303/msg00283.html
885 # "The RC_VERSION variable in config.nmake should be comma separated.
886 # This allows the resources to be built correctly and the version
887 # number to be correctly displayed in the explorer properties dialog
888 # for the executables, and XP's tooltip, rather than 0.0.0.0."
891 VERSION=$(VERSION_MAJOR).$(VERSION_MINOR).$(VERSION_MICRO)$(VERSION_EXTRA)
892 RC_VERSION=$(VERSION_MAJOR),$(VERSION_MINOR),$(VERSION_MICRO),$(VERSION_BUILD)
894 WTAP_VERSION=$(WTAP_VERSION_MAJOR).$(WTAP_VERSION_MINOR).$(WTAP_VERSION_MICRO)
895 RC_WTAP_VERSION=$(WTAP_VERSION_MAJOR),$(WTAP_VERSION_MINOR),$(WTAP_VERSION_MICRO)
898 GLIB_CFLAGS=/I$(GLIB_DIR)\include\glib-$(GLIB_VERSION) \
899 /I$(GLIB_DIR)\lib\glib-$(GLIB_VERSION)\include
900 GCC_GLIB_CFLAGS=-I$(GLIB_DIR)\include\glib-$(GLIB_VERSION) \
901 -I$(GLIB_DIR)\lib\glib-$(GLIB_VERSION)\include
902 GLIB_LIBS=$(GLIB_DIR)\lib\glib-$(GLIB_VERSION).lib \
903 $(GLIB_DIR)\lib\gmodule-$(GLIB_VERSION).lib \
904 $(GLIB_DIR)\lib\gobject-$(GLIB_VERSION).lib
907 GTK_CFLAGS=$(GLIB_CFLAGS) /I$(GTK_DIR)\include\gtk-2.0 \
908 /I$(GTK_DIR)\lib\gtk-2.0\include \
909 /I$(GTK_DIR)\include\atk-1.0 \
910 /I$(GTK_DIR)\include\cairo \
911 /I$(GTK_DIR)\include\pango-1.0
912 GTK_LIBS=$(GTK_DIR)\lib\gtk-win32-2.0.lib \
913 $(GTK_DIR)\lib\gdk-win32-2.0.lib \
914 $(GTK_DIR)\lib\gdk_pixbuf-2.0.lib \
915 $(GTK_DIR)\lib\pango-1.0.lib \
918 !IF "$(GTK_INST_VERSION)" == "2.16"
924 GTK_WIMP_DLLSRC_DIR=$(GTK_DIR)\lib\gtk-2.0\2.10.0\engines
925 GTK_WIMP_DLLDST_DIR=lib\gtk-2.0\2.10.0\engines
926 GTK_WIMP_RCSRC_DIR=$(GTK_DIR)\share\themes\MS-Windows\gtk-2.0
927 GTK_WIMP_RCDST_DIR=etc\gtk-2.0
928 !ELSEIF "$(GTK_INST_VERSION)" == "2.14"
934 GTK_WIMP_DLLSRC_DIR=$(GTK_DIR)\lib\gtk-2.0\2.10.0\engines
935 GTK_WIMP_DLLDST_DIR=lib\gtk-2.0\2.10.0\engines
936 GTK_WIMP_RCSRC_DIR=$(GTK_DIR)\share\themes\MS-Windows\gtk-2.0
937 GTK_WIMP_RCDST_DIR=etc\gtk-2.0
938 !ELSEIF "$(GTK_INST_VERSION)" == "2.12"
944 GTK_WIMP_DLLSRC_DIR=$(GTK_DIR)\lib\gtk-2.0\2.10.0\engines
945 GTK_WIMP_DLLDST_DIR=lib\gtk-2.0\2.10.0\engines
946 GTK_WIMP_RCSRC_DIR=$(GTK_DIR)\share\themes\MS-Windows\gtk-2.0
947 GTK_WIMP_RCDST_DIR=etc\gtk-2.0
949 !ERROR ? Unknown or invalid GTK_INST_VERSION
952 !IF "$(PANGO_INST_VERSION)" == "1.24"
954 !ELSEIF "$(PANGO_INST_VERSION)" == "1.22"
956 !ELSEIF "$(PANGO_INST_VERSION)" == "1.18"
958 !ELSEIF "$(PANGO_INST_VERSION)" == "1.16"
961 !ERROR ? Unknown or invalid PANGO_INST_VERSION
965 AIRPCAP_CONFIG=^#define HAVE_AIRPCAP 1
966 AIRPDCAP_CONFIG=^#define HAVE_AIRPDCAP 1
967 #AIRPCAP_CFLAGS=/I$(AIRPCAP_DIR)\include
974 # Nmake uses carets to escape special characters
975 WINPCAP_CONFIG=^#define HAVE_LIBPCAP 1
976 PCAP_FINDALLDEVS_CONFIG=^#define HAVE_PCAP_FINDALLDEVS 1
977 PCAP_DATALINK_NAME_TO_VAL_CONFIG=^#define HAVE_PCAP_DATALINK_NAME_TO_VAL 1
978 PCAP_DATALINK_VAL_TO_NAME_CONFIG=^#define HAVE_PCAP_DATALINK_VAL_TO_NAME 1
979 # PCAP_BREAKLOOP won't have any benefit on Win32, but breaks compatibility with 3.0
980 PCAP_BREAKLOOP_CONFIG=
981 WPCAP_CONSTIFIED_CONFIG=^#define WPCAP_CONSTIFIED 1
983 # no WpdPack installed
985 PCAP_FINDALLDEVS_CONFIG=
986 PCAP_DATALINK_NAME_TO_VAL_CONFIG=
987 PCAP_DATALINK_VAL_TO_NAME_CONFIG=
988 PCAP_BREAKLOOP_CONFIG=
992 PCAP_LIST_DATALINKS_CONFIG=^#define HAVE_PCAP_LIST_DATALINKS 1
993 PCAP_SET_DATALINK_CONFIG=^#define HAVE_PCAP_SET_DATALINK 1
995 !IF DEFINED(PCAP_DIR) && DEFINED(PCAP_REMOTE)
996 PCAP_HAVE_REMOTE_CONFIG=^#define HAVE_REMOTE 1
997 PCAP_REMOTE_CONFIG=^#define HAVE_PCAP_REMOTE 1
998 PCAP_OPEN_CONFIG=^#define HAVE_PCAP_OPEN 1
999 PCAP_FINDALLDEVS_EX_CONFIG=^#define HAVE_PCAP_FINDALLDEVS_EX 1
1000 PCAP_CREATESRCSTR_CONFIG=^#define HAVE_PCAP_CREATESRCSTR 1
1001 PCAP_SETSAMPLING_CONFIG=^#define HAVE_PCAP_SETSAMPLING 1
1003 PCAP_HAVE_REMOTE_CONFIG=
1006 PCAP_FINDALLDEVS_EX_CONFIG=
1007 PCAP_CREATESRCSTR_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
1174 PATH=$(PATH);$(CYGWIN_PATH);$(GLIB_DIR)\bin;$(GETTEXT_DIR)\bin;$(ICONV_DIR)\bin;$(ZLIB_PATH);$(ADNS_PATH)
1176 PATH=$(PATH);$(CYGWIN_PATH);$(GLIB_DIR)\bin;$(GETTEXT_DIR)\bin;$(ZLIB_PATH);$(ADNS_PATH)
1179 # We can't use a lot of IPv6 code with plain Visual C++ 6.0
1180 !IF "$(MSVC_VARIANT)" == "MSVC6" && !DEFINED(MSSDK)
1183 INET6_CONFIG=^#define INET6 1
1186 !IF "$(MSVC_VARIANT)" == "MSVC6" && !DEFINED(MSSDK)
1189 NTDDNDIS_CONFIG=^#define HAVE_NTDDNDIS_H 1