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
144 # Mandatory: GTK (& related libs) settings
146 # Please note: Since Wireshark release 1.0.0, we no longer support GTK1.x
148 # If you want building with GTK+, set GTK_DIR to the pathname of the
149 # directory in which the "include" and "lib" directories reside.
151 GTK_DIR=$(WIRESHARK_LIBS)\gtk2
156 TIFF_PKG=libtiff-3.8.2
157 TIFF_DLL=libtiff3.dll
158 JPEG_PKG=jpeg-6b-4-bin
163 # Mandatory: Version numbers of GTK and pango.
165 # (MAJOR + MINOR Version number but without MICRO version number)
166 # These macros are used by the nsis installer script and by the setup target.
168 # GTK 2.12 is the mainline since Wireshark 0.99.7
169 GTK_INST_VERSION=2.16
170 PANGO_INST_VERSION=1.24
173 # Optional: WinPcap developer's pack to capture network traffic.
175 # If you have the WinPcap developer's pack (at least version 3.0),
176 # set this to the directory in which the WinPcap developer's pack resides.
178 # If you don't have the WPdpack, comment this line out, so that
179 # PCAP_DIR isn't defined.
181 PCAP_VERSION=4_1_beta5
182 PCAP_DIR=$(WIRESHARK_LIBS)\WPdpack
185 # Optional: WinPcap remote capture support and new API
186 # (pcap_open(), pcap_findalldevs_ex(), etc.)
191 # Optional: The ZLib enables unzipping of gzip compressed capture files
194 # If you have Zlib, set this to directory in which the Zlib headers
195 # and .lib file are stored.
197 # If you don't have Zlib, comment this line out, so that ZLIB_DIR isn't
200 ZLIB_DIR=$(WIRESHARK_LIBS)\zlib123
203 # Optional: the ADNS library enables asynchronous (nonblocking) DNS
206 # If you have GNU ADNS, set this to the directory in which the GNU ADNS
207 # .lib file is stored.
209 # If you don't have GNU ADNS, comment this line out, so that ADNS_DIR
212 # If C_ARES_DIR is defined below, it will override this setting.
214 #ADNS_DIR=$(WIRESHARK_LIBS)\adns-1.0-win32-05ws
217 # Optional: the c-ares library enables asynchronous (nonblocking) DNS
220 # If you have c-ares, set this to the directory in which the c-ares
221 # .lib file is stored. Setting this will override ADNS_DIR above. You
224 # If you're using Visual C++ 6.0, you'll have to use a platform SDK that
225 # defines socklen_t, such as Windows Server 2003 PSDK.
227 # If you don't have c-ares, comment this line out, so that C_ARES_DIR
230 C_ARES_DIR=$(WIRESHARK_LIBS)\c-ares-1.6.0ws
233 # Optional: the PCRE (Perl Compatible Regular Expressions) library
234 # enables regular expressions for display filters.
236 # If you have the PCRE library, set this to the directory in which
237 # the GNUWIN32 pcre-lib package is stored.
239 # If you don't have PCRE, comment this line out, so that PCRE_DIR
242 PCRE_DIR=$(WIRESHARK_LIBS)\pcre-7.0
245 # Optional: the GNUTLS library enables ssl decryption.
247 # If you have the GNUTLS library, set this to the directory where
248 # the lib and include files are stored.
250 # If you don't have GNUTLS, comment this line out, so that GNUTLS_DIR
253 # Platform SDK conflicts with openssl.h header
254 #GNUTLS_DIR=$(WIRESHARK_LIBS)\gnutls-2.6.3-1
255 GNUTLS_DIR=$(WIRESHARK_LIBS)\gnutls-2.6.4-1
258 # Optional: the KFW library enables kerberos/sasl/dcerpc decryption.
260 # If you have the kerberos for windows (mit) library, set this to the
261 # directory where the kfw package is stored.
263 # If you don't have KFW, comment this line out, so that KFW_DIR
266 KFW_DIR=$(WIRESHARK_LIBS)\kfw-3.2.2-ws1
269 # Optional: the Nettle library enables ??? decryption.
271 # If you have the Nettle encryption library, set this to the
272 # directory in which the nettle package is stored.
274 # If you don't have Nettle, comment this line out, so that NETTLE_DIR
277 # NETTLE_DIR=$(WIRESHARK_LIBS)\nettle-1.10
280 # Optional: the LUA library enables scripting support.
282 # If you have the LUA library, set this to the directory in which
283 # the LUA package is stored.
285 # If you don't have LUA, comment this line out, so that LUA_DIR
288 LUA_DIST=5_1_4_Win32_dll6
289 LUA_DIR=$(WIRESHARK_LIBS)\lua5.1.4
292 # Optional: the PORTAUDIO library enables audio output for RTP streams.
294 # If you have the PORTAUDIO library (used for rtp_player), set this to
295 # the directory in which the PORTAUDIO library is stored.
297 # If you don't have PORTAUDIO, comment this line out, so that
298 # PORTAUDIO_DIR isn't defined.
300 #PORTAUDIO_DIR=$(WIRESHARK_LIBS)\portaudio_v18_1
301 PORTAUDIO_DIR=$(WIRESHARK_LIBS)\portaudio_v19_2
304 # Version number of PortAudio
306 #PORTAUDIO_VERSION=18
310 # Iconv: Mandatory for Glib >= 2 and <= 2.14.4
311 # [win-iconv statically linked as part of Glib >= 2.14.5]
312 # Set ICONV_DIR to the directory in which the
313 # ICONV include files and library resides.
315 ##ICONV_DIR=$(WIRESHARK_LIBS)\libiconv-1.9.1.bin.woe32
318 # Mandatory for GTK >= 2: Gettext
320 # Set GETTEXT_DIR to the directory in which the
321 # GETTEXT include files and library resides.
323 #GETTEXT_DIR=$(WIRESHARK_LIBS)\gettext-0.14.5
324 GETTEXT_PKG=-runtime-0.17-1
325 GETTEXT_DIR=$(WIRESHARK_LIBS)\gettext-runtime-0.17-1
328 # Optional: AirPcap developer's pack to capture wireless network traffic
329 # incl. 802.11 management frames.
331 # If you have the AirPcap developer's pack, set this to the directory
332 # in which the AirPcap developer's pack resides.
334 # If you don't have the AirPcap developer's pack, comment this line out,
335 # so that AIRPCAP_DIR isn't defined.
337 AIRPCAP_DIR=$(WIRESHARK_LIBS)\AirPcap_Devpack_1_0_0_594\AirPcap_Devpack
340 # Optional: LIBSMI, System Management Interface
342 # Used for oid-name resolution for SNMP and other protocols
344 SMI_DIR=$(WIRESHARK_LIBS)\libsmi-0.4.8
347 # Optional: GeoIP, IP address database lookups
349 # Used to map IP addresses to MaxMind GeoIP database entries
351 # GeoIP requires IPv6 definitions that don't ship with Visual C++ 6.0.
352 # However, the Microsoft Platform SDK for Windows Server 2003 R2 provides
353 # these definitions. The SDK's SetEnv.bat script defines INETSDK.
354 !IF "$(MSVC_VARIANT)" != "MSVC6" || DEFINED(INETSDK)
355 GEOIP_DIR=$(WIRESHARK_LIBS)\GeoIP-1.4.5ws
359 ##### Win64 Libraries #####
361 # Mandatory: GLib settings
363 # Please note: Since Wireshark release 1.0.0, we no longer support GLib1.x
367 GLIB_DIR=$(WIRESHARK_LIBS)\glib
370 # Mandatory: GTK (& related libs) settings
372 # Please note: Since Wireshark release 1.0.0, we no longer support GTK1.x
374 # If you want building with GTK+, set GTK_DIR to the pathname of the
375 # directory in which the "include" and "lib" directories reside.
377 GTK_DIR=$(WIRESHARK_LIBS)\gtk2
382 TIFF_PKG=libtiff_3.8.2-1_win64
384 JPEG_PKG=jpeg_6b-2_win64
385 JPEG_DLL=libjpeg-62.dll
389 # Mandatory: Version numbers of GTK and pango.
391 # (MAJOR + MINOR Version number but without MICRO version number)
392 # These macros are used by the nsis installer script and by the setup target.
394 # GTK 2.12 is the mainline since Wireshark 0.99.7
395 GTK_INST_VERSION=2.14
396 PANGO_INST_VERSION=1.22
399 # Optional: WinPcap developer's pack to capture network traffic.
401 # If you have the WinPcap developer's pack (at least version 3.0),
402 # set this to the directory in which the WinPcap developer's pack resides.
404 # If you don't have the WPdpack, comment this line out, so that
405 # PCAP_DIR isn't defined.
407 PCAP_VERSION=4_1_beta5
408 PCAP_DIR=$(WIRESHARK_LIBS)\WPdpack
411 # Optional: WinPcap remote capture support and new API
412 # (pcap_open(), pcap_findalldevs_ex(), etc.)
417 # Optional: The ZLib enables unzipping of gzip compressed capture files
420 # If you have Zlib, set this to directory in which the Zlib headers
421 # and .lib file are stored.
423 # If you don't have Zlib, comment this line out, so that ZLIB_DIR isn't
426 ZLIB_DIR=$(WIRESHARK_LIBS)\zlib123
429 # Optional: the ADNS library enables asynchronous (nonblocking) DNS
432 # If you have GNU ADNS, set this to the directory in which the GNU ADNS
433 # .lib file is stored.
435 # If you don't have GNU ADNS, comment this line out, so that ADNS_DIR
438 # If C_ARES_DIR is defined below, it will override this setting.
440 #ADNS_DIR=$(WIRESHARK_LIBS)\adns-1.0-win32-05ws
443 # Optional: the c-ares library enables asynchronous (nonblocking) DNS
446 # If you have c-ares, set this to the directory in which the c-ares
447 # .lib file is stored. Setting this will override ADNS_DIR above. You
450 # If you're using Visual C++ 6.0, you'll have to use a platform SDK that
451 # defines socklen_t, such as Windows Server 2003 PSDK.
453 # If you don't have c-ares, comment this line out, so that C_ARES_DIR
456 #C_ARES_DIR=$(WIRESHARK_LIBS)\c-ares-1.5.2ws
459 # Optional: the PCRE (Perl Compatible Regular Expressions) library
460 # enables regular expressions for display filters.
462 # If you have the PCRE library, set this to the directory in which
463 # the GNUWIN32 pcre-lib package is stored.
465 # If you don't have PCRE, comment this line out, so that PCRE_DIR
468 #PCRE_DIR=$(WIRESHARK_LIBS)\pcre-7.0
471 # Optional: the GNUTLS library enables ssl decryption.
473 # If you have the GNUTLS library, set this to the directory where
474 # the lib and include files are stored.
476 # If you don't have GNUTLS, comment this line out, so that GNUTLS_DIR
479 # Platform SDK conflicts with openssl.h header
480 #GNUTLS_DIR=$(WIRESHARK_LIBS)\gnutls-1.6.1-1
481 #GNUTLS_DIR=$(WIRESHARK_LIBS)\gnutls-2.3.8-1
484 # Optional: the KFW library enables kerberos/sasl/dcerpc decryption.
486 # If you have the kerberos for windows (mit) library, set this to the
487 # directory where the kfw package is stored.
489 # If you don't have KFW, comment this line out, so that KFW_DIR
492 #KFW_DIR=$(WIRESHARK_LIBS)\kfw-3.2.2-ws1
495 # Optional: the Nettle library enables ??? decryption.
497 # If you have the Nettle encryption library, set this to the
498 # directory in which the nettle package is stored.
500 # If you don't have Nettle, comment this line out, so that NETTLE_DIR
503 # NETTLE_DIR=$(WIRESHARK_LIBS)\nettle-1.10
506 # Optional: the LUA library enables scripting support.
508 # If you have the LUA library, set this to the directory in which
509 # the LUA package is stored.
511 # If you don't have LUA, comment this line out, so that LUA_DIR
514 LUA_DIST=5_1_4_Win64_dll9
515 LUA_DIR=$(WIRESHARK_LIBS)\lua5.1.4
518 # Optional: the PORTAUDIO library enables audio output for RTP streams.
520 # If you have the PORTAUDIO library (used for rtp_player), set this to
521 # the directory in which the PORTAUDIO library is stored.
523 # If you don't have PORTAUDIO, comment this line out, so that
524 # PORTAUDIO_DIR isn't defined.
526 #PORTAUDIO_DIR=$(WIRESHARK_LIBS)\portaudio_v18_1
527 PORTAUDIO_DIR=$(WIRESHARK_LIBS)\portaudio_v19_2
530 # Version number of PortAudio
532 #PORTAUDIO_VERSION=18
536 # Iconv: Mandatory for Glib >= 2 and <= 2.14.4
537 # [win-iconv statically linked as part of Glib >= 2.14.5]
538 # Set ICONV_DIR to the directory in which the
539 # ICONV include files and library resides.
541 ##ICONV_DIR=$(WIRESHARK_LIBS)\libiconv-1.9.1.bin.woe32
544 # Mandatory for GTK >= 2: Gettext
546 # Set GETTEXT_DIR to the directory in which the
547 # GETTEXT include files and library resides.
549 #GETTEXT_DIR=$(WIRESHARK_LIBS)\gettext-0.14.5
550 GETTEXT_PKG=_0.17-1_win64
551 GETTEXT_DIR=$(WIRESHARK_LIBS)\gettext-0.17-1
552 GETTEXT_DLL=libintl-8.dll
554 # Optional: AirPcap developer's pack to capture wireless network traffic
555 # incl. 802.11 management frames.
557 # If you have the AirPcap developer's pack, set this to the directory
558 # in which the AirPcap developer's pack resides.
560 # If you don't have the AirPcap developer's pack, comment this line out,
561 # so that AIRPCAP_DIR isn't defined.
563 #AIRPCAP_DIR=$(WIRESHARK_LIBS)\AirPcap_Devpack_1_0_0_594\AirPcap_Devpack
566 # Optional: LIBSMI, System Management Interface
568 # Used for oid-name resolution for SNMP and other protocols
570 #SMI_DIR=$(WIRESHARK_LIBS)\libsmi-0.4.8
573 # Optional: GeoIP, IP address database lookups
575 # Used to map IP addresses to MaxMind GeoIP database entries
577 # GeoIP requires IPv6 definitions that don't ship with Visual C++ 6.0.
578 # However, the Microsoft Platform SDK for Windows Server 2003 R2 provides
579 # these definitions. The SDK's SetEnv.bat script defines INETSDK.
580 !IF "$(MSVC_VARIANT)" != "MSVC6" || DEFINED(INETSDK)
581 #GEOIP_DIR=$(WIRESHARK_LIBS)\GeoIP-1.4.5ws
588 # Set the following mandatory commands to find the tools.
589 # The easiest way is to use the corresponding packages from cygwin.
591 # Set up the path to the cygwin binaries
592 CYGWIN_PATH=c:\cygwin\bin
594 # command for a shell (cygwin's bash package recommended)
597 # bash versions after 3.1.6 need the 'igncr' shell option to be able to
598 # process scripts in windows 'native format' (dos crlf format).
599 # The following !IF results in the option being used only if it is available
600 # since using it on bash version 3.1.6 (or earlier) is not required and
601 # will cause an error message.
602 !if "$(SH_PROG)"=="bash" && [$(CYGWIN_PATH)\bash -c "set -o igncr" 2>nul: ] == 0
606 SH=$(SH_PROG) $(SH_FLAGS)
609 # command for perl (cygwin's perl package recommended)
612 # command for pod2man and pod2html
613 # (part of the perl package, usually leave these unchanged)
614 POD2MAN=$(SH) pod2man
615 POD2HTML=$(SH) pod2html
617 # Command for native Windows Python (recommended)
618 # V2.4 to V2.6 should work
620 # If you want to specify your Python settings, uncomment the lines below.
621 #PYTHON="C:\Python26\python.exe"
622 #PATH=c:\Python26;$(PATH)
624 # Command for Cygwin's Python (not recommended)
627 # Otherwise, find Python automatically.
629 !IF EXIST(c:\Python26\python.exe)
630 PYTHON="C:\Python26\python.exe"
631 PATH=c:\Python26;$(PATH)
632 !ELSE IF EXIST(c:\Python25\python.exe)
633 PYTHON="C:\Python25\python.exe"
634 PATH=c:\Python25;$(PATH)
635 !ELSE IF EXIST(c:\Python24\python.exe)
636 PYTHON="C:\Python24\python.exe"
637 PATH=c:\Python24;$(PATH)
641 # command for lex/flexx (cygwin's flex recommended)
644 # command for yacc/bison (cygwin's bison recommended)
648 # Optional: To build the NSIS installer.
650 # If you have the NSIS package, set this to the NSIS executable.
652 # If you don't have NSIS, comment this line out, so that MAKENSIS
655 MAKENSIS="$(PROGRAM_FILES)\nsis\makensis.exe"
658 # Optional: To build the developers API documentation with doxygen and dot.
659 # Currently experimental, outdated and incomplete.
661 # You will have to download and install:
662 # Doxygen from: http://www.doxygen.org
663 # Graphviz from: http://www.research.att.com/sw/tools/graphviz/
665 # If you have doxygen, set this to the doxygen executable.
667 # If you don't want the developers documentation (or don't have the tools),
668 # comment this line out, so that DOXYGEN isn't defined.
670 #DOXYGEN="$(PROGRAM_FILES)/doxygen/bin/doxygen.exe"
673 # Recommended: Use the compressed html help format .chm as the Wireshark integrated help.
675 # The required htmlhelp.h and htmlhelp.lib should be included in MSVC_VARIANT > MSVC6.
677 # For MSVC_VARIANT == MSVC6 you will have to download and install the html help workshop from:
679 # http://msdn.microsoft.com/library/default.asp?url=/library/en-us/htmlhelp/html
680 # /hwMicrosoftHTMLHelpDownloads.asp
682 # Then point HHC_DIR to the html help dir (where hhc.exe resides).
684 # If you don't want the online help (or don't have the tools),
685 # comment this line out, so that HHC_DIR isn't defined.
687 HHC_DIR=$(PROGRAM_FILES)/HTML Help Workshop
690 # Optional: To reduce the size of dlls and exes, which is especially useful for USB device distributions (U3, PortableApps)
692 # If you have the UPX package, set this to the upx.exe executable.
694 # UPX can be downloaded from:
695 # http://upx.sourceforge.net/
697 # If you don't have UPX, or don't want to pack exes and dlls,
698 # comment this line out, so that UPX isn't defined.
701 UPX=$(WIRESHARK_LIBS)\upx301w\upx.exe
703 ##### Flags, PATHs and Miscellaneous #####
705 # "convert" the MSVC variant into the required MSC compiler version
706 !IF "$(MSVC_VARIANT)" == "MSVC6"
707 MSC_VER_REQUIRED=1200
708 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2002" || "$(MSVC_VARIANT)" == "DOTNET10"
709 MSC_VER_REQUIRED=1300
710 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2003" || "$(MSVC_VARIANT)" == "DOTNET11"
711 MSC_VER_REQUIRED=1310
712 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2005" || "$(MSVC_VARIANT)" == "MSVC2005EE" || "$(MSVC_VARIANT)" == "DOTNET20"
713 MSC_VER_REQUIRED=1400
714 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2008" || "$(MSVC_VARIANT)" == "MSVC2008EE"
715 MSC_VER_REQUIRED=1500
717 !ERROR MSVC_VARIANT unknown
721 # /W3 warning level 3 (0 less - 4 most, 1 default)
722 # /Zi create .pdb file for debugging
723 # /MD use "Multithreading Debug" libraries
724 # /D_CRT_SECURE_NO_DEPRECATE Don't warn for "insecure" calls, see MSDN "Security Enhancements in the CRT"
725 # /D_CRT_NONSTDC_NO_DEPRECATE Don't warn for "Deprecated CRT Functions" as MSDN calls this
726 # /D_BIND_TO_CURRENT_CRT_VERSION=1 Make sure our CRT and manifest versions match (http://msdn.microsoft.com/en-us/library/cc664727.aspx)
727 # /DWIN32_LEAN_AND_MEAN Don't include unnecessary Windows include files (see windows.h)
728 # /MP [<number of processes>] [MSVC2008]: Compiles multiple source files by using multiple processes
729 # Add if desired for compile speedup on machines with 2 or more "effective processors"
730 # /MANIFEST:no Don't create a SxS manifest. Makes sure our plugins don't load a second copy of the CRT.
732 !IF "$(MSVC_VARIANT)" == "MSVC6" || "$(MSVC_VARIANT)" == "MSVC2002" || "$(MSVC_VARIANT)" == "DOTNET10" || "$(MSVC_VARIANT)" == "MSVC2003" || "$(MSVC_VARIANT)" == "DOTNET11"
733 LOCAL_CFLAGS=/Zi /W3 /MD /DWIN32_LEAN_AND_MEAN /DMSC_VER_REQUIRED=$(MSC_VER_REQUIRED)
734 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2005" || "$(MSVC_VARIANT)" == "MSVC2005EE" || "$(MSVC_VARIANT)" == "DOTNET20" || "$(MSVC_VARIANT)" == "MSVC2008" || "$(MSVC_VARIANT)" == "MSVC2008EE"
735 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
737 !ERROR MSVC_VARIANT unknown
741 # /DEBUG generate debug info
742 # /PROFILE generate map file(s) for profiling
743 # /DEFAULTLIB:xxx use xxx as the standard C library
744 # /NODEFAULTLIB:xxx don't use xxx as the standard C library
746 LOCAL_LDFLAGS=/DEBUG /MACHINE:$(TARGET_MACHINE)
748 !IF $(MSC_VER_REQUIRED) >= 1400
749 DLL_LDFLAGS = /MANIFEST:no
752 PLUGIN_LDFLAGS = /NOLOGO /INCREMENTAL:no $(LOCAL_LDFLAGS) $(DLL_LDFLAGS)
755 # According to http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=403
756 # XCOPY under Windows NT doesn't support the "/Y" flag. This works
758 # XXX - This apparently doesn't work for some versions of nmake:
759 # http://support.microsoft.com/default.aspx?scid=kb;en-us;86814
760 # It looks like we'll have to call "set copycmd=/y" before we run xcopy.
764 # If you don't want to build libwireshark.dll, you should comment out the
765 # following line. (Note: for plugin support this option must stay activated)
766 ENABLE_LIBWIRESHARK=USE
769 # install (debug) directory for Wireshark (relative to your source dir)
770 INSTALL_DIR=wireshark-gtk2
774 ##### C-Runtime Redistributable #####
776 # The C-Runtime since Version 7 must be shipped together with
777 # the program installer, to avoid missing msvcr*.dll files on
778 # the target machine.
780 # The location of these files differ on the various compiler
781 # packages, the following will use the default paths depending
782 # on the package version.
784 !IF "$(MSVC_VARIANT)" == "MSVC6"
785 # msvcrt.dll will already be available on target machines - nothing additional to install
787 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2002"
788 # you probably need to tweak this directory if you don't use the professional edition!
789 MSVCR_DLL=$(PROGRAM_FILES)\Microsoft Visual Studio .NET\Visual Studio .NET Professional - English\msvcr70.dll
791 !ELSEIF "$(MSVC_VARIANT)" == "DOTNET10"
792 # no redistributable available for this package!
794 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2003"
795 # you probably need to tweak this directory if you don't use the professional edition!
796 MSVCR_DLL=$(PROGRAM_FILES)\Microsoft Visual Studio .NET 2003\Visual Studio .NET Professional 2003 - English\msvcr71.dll
798 !ELSEIF "$(MSVC_VARIANT)" == "DOTNET11"
799 # no redistributable available for this package!
801 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2005"
802 MSVCR_DLL=$(PROGRAM_FILES)\Microsoft Visual Studio 8\VC\redist\$(VCREDIST_DLL)\Microsoft.VC80.CRT\*.*
804 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2005EE" || "$(MSVC_VARIANT)" == "DOTNET20" || "$(MSVC_VARIANT)" == "MSVC2008EE"
805 # you need to download the redistributable package vcredist_x86.exe from Microsoft first,
806 # and copy it to the lib folder!!!
807 VCREDIST_EXE=$(WIRESHARK_LIBS)\vcredist_$(TARGET_MACHINE).exe
809 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2008"
810 MSVCR_DLL=$(PROGRAM_FILES)\Microsoft Visual Studio 9.0\VC\redist\$(VCREDIST_DLL)\Microsoft.VC90.CRT\*.*
813 !ERROR MSVC_VARIANT unknown
818 ##### Advanced: Docbook/XML documentation generation #####
819 # If you want to generate the Docbook/XML based docs (User's and Developer's
820 # Guide, ...), you'll need some additional tools / libraries compared to the
821 # rest of the build process.
823 # FOR DETAILED INSTRUCTIONS TO GENERATE THE DOCS, SEE: docbook\readme.txt.
825 # If you don't call the Makefile.nmake in the docbook dir to generate the
826 # docs, the following settings in this section will have no effect.
828 # formatting objects processor executable
829 # Comment this out if you don't have fop installed or you don't want the docs
832 FOP=fop-0.20.5\fop.bat
835 # Additional options to fop.
839 # Comment this out if you don't have hhc.exe or you don't want the docs in
842 # Beware: hhc.exe is NOT part of the MSVC packages in HHC_DIR mentioned above,
843 # so you'll need to install the HTML Help Workshop for this.
844 HHC_EXE="$(HHC_DIR)\hhc.exe"
846 # html to text converter for text version of release notes, e.g. elinks.
847 # This could also be "lynx", or "true" if neither elinks nor lynx is installed
848 # (cygwin: lynx works, elinks not available, links and true doesn't produce output)
849 #HTML2TXT=elinks -dump -dump-width 72
850 #HTML2TXT=links -dump -width 72
851 #HTML2TXT=lynx -dump -width=72 -nolist -stdin
854 HTML2TXT=$(PYTHON) $(TOOLS_DIR)\html2text.py --width=72 --no-links
857 # the XSL processor (part of cygwin's libxslt package)
860 # the XML validator (part of cygwin's libxml2 package)
865 ##############################################################################
867 # You should not have to change anything below this comment.
868 # If you do, it's a deficiency in the Makefile.nmake files;
869 # either tell wireshark-dev@wireshark.org about it, including
870 # details of why you had to change it, or fix config.nmake
871 # and any Makefile.nmake files that need to be changed, and
872 # send us the patches, along with details of why the change
875 ##############################################################################
878 # The RC_VERSION should be comma-separated, not dot-separated,
879 # as per Graham Bloice's message in
881 # http://www.ethereal.com/lists/ethereal-dev/200303/msg00283.html
883 # "The RC_VERSION variable in config.nmake should be comma separated.
884 # This allows the resources to be built correctly and the version
885 # number to be correctly displayed in the explorer properties dialog
886 # for the executables, and XP's tooltip, rather than 0.0.0.0."
889 VERSION=$(VERSION_MAJOR).$(VERSION_MINOR).$(VERSION_MICRO)$(VERSION_EXTRA)
890 RC_VERSION=$(VERSION_MAJOR),$(VERSION_MINOR),$(VERSION_MICRO),$(VERSION_BUILD)
892 WTAP_VERSION=$(WTAP_VERSION_MAJOR).$(WTAP_VERSION_MINOR).$(WTAP_VERSION_MICRO)
893 RC_WTAP_VERSION=$(WTAP_VERSION_MAJOR),$(WTAP_VERSION_MINOR),$(WTAP_VERSION_MICRO)
896 GLIB_CFLAGS=/I$(GLIB_DIR)\include\glib-$(GLIB_VERSION) \
897 /I$(GLIB_DIR)\lib\glib-$(GLIB_VERSION)\include
898 GCC_GLIB_CFLAGS=-I$(GLIB_DIR)\include\glib-$(GLIB_VERSION) \
899 -I$(GLIB_DIR)\lib\glib-$(GLIB_VERSION)\include
900 GLIB_LIBS=$(GLIB_DIR)\lib\glib-$(GLIB_VERSION).lib \
901 $(GLIB_DIR)\lib\gmodule-$(GLIB_VERSION).lib \
902 $(GLIB_DIR)\lib\gobject-$(GLIB_VERSION).lib
905 GTK_CFLAGS=$(GLIB_CFLAGS) /I$(GTK_DIR)\include\gtk-2.0 \
906 /I$(GTK_DIR)\lib\gtk-2.0\include \
907 /I$(GTK_DIR)\include\atk-1.0 \
908 /I$(GTK_DIR)\include\cairo \
909 /I$(GTK_DIR)\include\pango-1.0
910 GTK_LIBS=$(GTK_DIR)\lib\gtk-win32-2.0.lib \
911 $(GTK_DIR)\lib\gdk-win32-2.0.lib \
912 $(GTK_DIR)\lib\gdk_pixbuf-2.0.lib \
913 $(GTK_DIR)\lib\pango-1.0.lib \
916 !IF "$(GTK_INST_VERSION)" == "2.16"
922 GTK_WIMP_DLLSRC_DIR=$(GTK_DIR)\lib\gtk-2.0\2.10.0\engines
923 GTK_WIMP_DLLDST_DIR=lib\gtk-2.0\2.10.0\engines
924 GTK_WIMP_RCSRC_DIR=$(GTK_DIR)\share\themes\MS-Windows\gtk-2.0
925 GTK_WIMP_RCDST_DIR=etc\gtk-2.0
926 !ELSEIF "$(GTK_INST_VERSION)" == "2.14"
932 GTK_WIMP_DLLSRC_DIR=$(GTK_DIR)\lib\gtk-2.0\2.10.0\engines
933 GTK_WIMP_DLLDST_DIR=lib\gtk-2.0\2.10.0\engines
934 GTK_WIMP_RCSRC_DIR=$(GTK_DIR)\share\themes\MS-Windows\gtk-2.0
935 GTK_WIMP_RCDST_DIR=etc\gtk-2.0
936 !ELSEIF "$(GTK_INST_VERSION)" == "2.12"
942 GTK_WIMP_DLLSRC_DIR=$(GTK_DIR)\lib\gtk-2.0\2.10.0\engines
943 GTK_WIMP_DLLDST_DIR=lib\gtk-2.0\2.10.0\engines
944 GTK_WIMP_RCSRC_DIR=$(GTK_DIR)\share\themes\MS-Windows\gtk-2.0
945 GTK_WIMP_RCDST_DIR=etc\gtk-2.0
947 !ERROR ? Unknown or invalid GTK_INST_VERSION
950 !IF "$(PANGO_INST_VERSION)" == "1.24"
952 !ELSEIF "$(PANGO_INST_VERSION)" == "1.22"
954 !ELSEIF "$(PANGO_INST_VERSION)" == "1.18"
956 !ELSEIF "$(PANGO_INST_VERSION)" == "1.16"
959 !ERROR ? Unknown or invalid PANGO_INST_VERSION
963 AIRPCAP_CONFIG=^#define HAVE_AIRPCAP 1
964 AIRPDCAP_CONFIG=^#define HAVE_AIRPDCAP 1
965 #AIRPCAP_CFLAGS=/I$(AIRPCAP_DIR)\include
972 # Nmake uses carets to escape special characters
973 WINPCAP_CONFIG=^#define HAVE_LIBPCAP 1
974 PCAP_FINDALLDEVS_CONFIG=^#define HAVE_PCAP_FINDALLDEVS 1
975 PCAP_DATALINK_NAME_TO_VAL_CONFIG=^#define HAVE_PCAP_DATALINK_NAME_TO_VAL 1
976 PCAP_DATALINK_VAL_TO_NAME_CONFIG=^#define HAVE_PCAP_DATALINK_VAL_TO_NAME 1
977 # PCAP_BREAKLOOP won't have any benefit on Win32, but breaks compatibility with 3.0
978 PCAP_BREAKLOOP_CONFIG=
979 WPCAP_CONSTIFIED_CONFIG=^#define WPCAP_CONSTIFIED 1
981 # no WpdPack installed
983 PCAP_FINDALLDEVS_CONFIG=
984 PCAP_DATALINK_NAME_TO_VAL_CONFIG=
985 PCAP_DATALINK_VAL_TO_NAME_CONFIG=
986 PCAP_BREAKLOOP_CONFIG=
990 PCAP_LIST_DATALINKS_CONFIG=^#define HAVE_PCAP_LIST_DATALINKS 1
991 PCAP_SET_DATALINK_CONFIG=^#define HAVE_PCAP_SET_DATALINK 1
993 !IF DEFINED(PCAP_DIR) && DEFINED(PCAP_REMOTE)
994 PCAP_HAVE_REMOTE_CONFIG=^#define HAVE_REMOTE 1
995 PCAP_REMOTE_CONFIG=^#define HAVE_PCAP_REMOTE 1
996 PCAP_OPEN_CONFIG=^#define HAVE_PCAP_OPEN 1
997 PCAP_FINDALLDEVS_EX_CONFIG=^#define HAVE_PCAP_FINDALLDEVS_EX 1
998 PCAP_CREATESRCSTR_CONFIG=^#define HAVE_PCAP_CREATESRCSTR 1
999 PCAP_SETSAMPLING_CONFIG=^#define HAVE_PCAP_SETSAMPLING 1
1001 PCAP_HAVE_REMOTE_CONFIG=
1004 PCAP_FINDALLDEVS_EX_CONFIG=
1005 PCAP_CREATESRCSTR_CONFIG=
1006 PCAP_SETSAMPLING_CONFIG=
1010 ZLIB_PATH=$(ZLIB_DIR)
1011 ZLIB_CFLAGS=/I$(ZLIB_DIR)\include
1012 ZLIB_LIBS=$(ZLIB_DIR)\lib\zdll.lib
1013 ZLIB_DLL=$(ZLIB_DIR)\zlib1.dll
1014 # Nmake uses carets to escape special characters
1015 ZLIB_CONFIG=^#define HAVE_LIBZ 1
1025 C_ARES_CFLAGS=/I$(C_ARES_DIR)
1026 C_ARES_LIBS=$(C_ARES_DIR)\cares.lib
1027 C_ARES_DLL=$(C_ARES_DIR)\cares.dll
1028 # Nmake uses carets to escape special characters
1029 C_ARES_CONFIG=^#define HAVE_C_ARES 1
1035 ADNS_PATH=$(ADNS_DIR)\adns_win32\lib
1036 ADNS_CFLAGS=/I$(ADNS_DIR)\src /I$(ADNS_DIR)\adns_win32
1037 ADNS_LIBS=$(WIRESHARK_LIBS)\$(MSVC_VARIANT)\adns\adns_dll.lib
1038 ADNS_DLL=$(WIRESHARK_LIBS)\$(MSVC_VARIANT)\adns\adns_dll.dll
1039 # Nmake uses carets to escape special characters
1040 ADNS_CONFIG=^#define HAVE_GNU_ADNS 1
1049 KFW_PATH=$(KFW_DIR)\bin
1050 KFW_CFLAGS=/I$(KFW_DIR)\include
1051 KFW_LIBS=$(KFW_DIR)\lib\krb5_32.lib
1052 # Nmake uses carets to escape special characters
1053 KFW_CONFIG=^#define HAVE_MIT_KERBEROS 1
1061 PCRE_PATH=$(PCRE_DIR)\bin
1062 PCRE_CFLAGS=/I$(PCRE_DIR)\include
1063 PCRE_LIBS=$(PCRE_DIR)\lib\pcre.lib
1064 # Nmake uses carets to escape special characters
1065 PCRE_CONFIG=^#define HAVE_LIBPCRE 1
1073 NETTLE_CFLAGS=/I$(NETTLE_DIR)
1074 NETTLE_LIBS=$(NETTLE_DIR)\libnettle.lib
1075 # Nmake uses carets to escape special characters
1076 NETTLE_CONFIG=^#define HAVE_LIBNETTLE 1
1084 GNUTLS_PATH=$(GNUTLS_DIR)
1085 # /DNOCRYPT avoids inclusion of Wincrypt.h, avoiding a X509_NAME define clash
1086 GNUTLS_CFLAGS=/I$(GNUTLS_DIR)\include /DNOCRYPT /DIMPORT_LIGNUTLSDLL
1088 $(GNUTLS_DIR)\bin\libtasn1-3.lib \
1089 $(GNUTLS_DIR)\bin\libgpg-error-0.lib \
1090 $(GNUTLS_DIR)\bin\libgcrypt-11.lib \
1091 $(GNUTLS_DIR)\bin\libgnutls-26.lib
1092 # Nmake uses carets to escape special characters
1093 GNUTLS_CONFIG=^#define HAVE_LIBGNUTLS 1
1094 LIBGCRYPT_CONFIG=^#define HAVE_LIBGCRYPT 1
1103 LUA_CFLAGS=/I$(LUA_DIR)\include
1104 LUA_LIBS=$(LUA_DIR)\lua5.1.lib
1105 # Nmake uses carets to escape special characters
1106 LUA_CONFIG=^#define HAVE_LUA 1
1107 LUA_VERSION=^#define HAVE_LUA_5_1 1
1114 !IFDEF PORTAUDIO_DIR
1115 # Nmake uses carets to escape special characters
1116 PORTAUDIO_CONFIG=^#define HAVE_LIBPORTAUDIO 1
1117 !IF "$(PORTAUDIO_VERSION)" == "18"
1118 # V18 uses API version 1 and v19 API version 2
1119 PORTAUDIO_CFLAGS=/I$(PORTAUDIO_DIR)\pa_common
1120 PORTAUDIO_API_CONFIG=^#define PORTAUDIO_API_1 1
1122 PORTAUDIO_CFLAGS=/I$(PORTAUDIO_DIR)\include /I$(PORTAUDIO_DIR)\src\common /I$(PORTAUDIO_DIR)\src\os\win /DPA_NO_DS /DPA_NO_ASIO
1130 !IF "$(MSVC_VARIANT)" == "MSVC6"
1131 HHC_CFLAGS=/I"$(HHC_DIR)\include" -DHHC_DIR
1132 HHC_LIBS="$(HHC_DIR)\lib\htmlhelp.lib"
1134 HHC_CFLAGS=-DHHC_DIR
1135 HHC_LIBS=htmlhelp.lib
1143 SMI_CONFIG=^#define HAVE_LIBSMI 1
1144 SMI_CFLAGS=/I$(SMI_DIR)\include
1145 SMI_LIBS=$(SMI_DIR)\lib\smi.lib
1153 GEOIP_CONFIG=^#define HAVE_GEOIP 1
1154 GEOIP_CFLAGS=/I$(GEOIP_DIR)\libGeoIP
1155 GEOIP_LIBS=$(GEOIP_DIR)\libGeoIP\GeoIP.lib
1162 !IFDEF ENABLE_LIBWIRESHARK
1163 LIBWIRESHARK_CONFIG=^#define HAVE_LIBWIRESHARKDLL 1
1164 # Link plugins with the import library of libwireshark.dll
1165 LINK_PLUGINS_WITH_LIBWIRESHARK=USE
1167 LIBWIRESHARK_CONFIG=
1170 # Construct the path
1172 PATH=$(PATH);$(CYGWIN_PATH);$(GLIB_DIR)\bin;$(GETTEXT_DIR)\bin;$(ICONV_DIR)\bin;$(ZLIB_PATH);$(ADNS_PATH)
1174 PATH=$(PATH);$(CYGWIN_PATH);$(GLIB_DIR)\bin;$(GETTEXT_DIR)\bin;$(ZLIB_PATH);$(ADNS_PATH)
1177 # We can't use a lot of IPv6 code with plain Visual C++ 6.0
1178 !IF "$(MSVC_VARIANT)" == "MSVC6" && !DEFINED(MSSDK)
1181 INET6_CONFIG=^#define INET6 1
1184 !IF "$(MSVC_VARIANT)" == "MSVC6" && !DEFINED(MSSDK)
1187 NTDDNDIS_CONFIG=^#define HAVE_NTDDNDIS_H 1