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"
61 !else if "$(WIRESHARK_TARGET_PLATFORM)" == "win64"
65 !error Your mysterious moon-man architecture "$(WIRESHARK_TARGET_PLATFORM)" frightens and confuses us.
69 ##### Microsoft Visual C / Studio Variant #####
70 # for the different Studios, see: http://en.wikipedia.org/wiki/Microsoft_Visual_Studio
71 # only one of the following MSVC_VARIANT settings should be used
72 # BTW: The "Microsoft Visual C++ Toolkit 2003" DOESN'T WORK for WS!
74 # "Microsoft Visual Studio 6.0"
75 # Visual C++ 6.0, _MSC_VER 1200, msvcrt.dll (version 6)
78 # "Microsoft Visual Studio .NET (2002)"
79 # Visual C++ 7.0, _MSC_VER 1300, msvcr70.dll
80 #MSVC_VARIANT=MSVC2002
82 # "Microsoft .Net Framework SDK Version 1.0"
83 # needs additional Platform SDK installation
84 # Visual C++ 7.0, _MSC_VER 1300, msvcr70.dll
85 #MSVC_VARIANT=DOTNET10
87 # "Microsoft Visual Studio .NET 2003"
88 # Visual C++ 7.1, _MSC_VER 1310, msvcr71.dll
89 #MSVC_VARIANT=MSVC2003
91 # "Microsoft .Net Framework SDK Version 1.1"
92 # needs additional Platform SDK installation
93 # Visual C++ 7.1, _MSC_VER 1310, msvcr71.dll
94 #MSVC_VARIANT=DOTNET11
96 # "Microsoft Visual Studio 2005"
97 # Visual C++ 8.0, _MSC_VER 1400, msvcr80.dll
98 #MSVC_VARIANT=MSVC2005
100 # "Microsoft Visual C++ 2005 Express Edition"
101 # needs additional Platform SDK installation
102 # Visual C++ 8.0, _MSC_VER 1400, msvcr80.dll
103 #MSVC_VARIANT=MSVC2005EE
105 # "Microsoft .Net Framework 2.0 SDK"
106 # needs additional Platform SDK installation
107 # Visual C++ 8.0, _MSC_VER 1400, msvcr80.dll
108 #MSVC_VARIANT=DOTNET20
110 # "Microsoft Visual Studio 2008"
111 # Visual C++ 9.0, _MSC_VER 1500, msvcr90.dll
112 MSVC_VARIANT=MSVC2008
114 # "Microsoft Visual C++ 2008 Express Edition"
115 # Visual C++ 9.0, _MSC_VER 1500, msvcr90.dll
116 #MSVC_VARIANT=MSVC2008EE
119 # Optional: To compile some time critical code from assembler instead of C
121 # If you have the NASM compiler, set this to the NASM executable.
122 # http://nasm.sourceforge.net/
124 # If you don't have NASM, comment this line out, so that NASM
127 NASM=$(WIRESHARK_LIBS)\nasm-2.02\nasm.exe
130 !if "$(WIRESHARK_TARGET_PLATFORM)" == "win32"
131 ##### Win32 Libraries #####
133 # Mandatory: GLib settings
135 # Please note: Since Wireshark release 1.0.0, we no longer support GLib1.x
139 GLIB_DIR=$(WIRESHARK_LIBS)\glib
142 # Mandatory: GTK (& related libs) settings
144 # Please note: Since Wireshark release 1.0.0, we no longer support GTK1.x
146 # If you want building with GTK+, set GTK_DIR to the pathname of the
147 # directory in which the "include" and "lib" directories reside.
149 GTK_DIR=$(WIRESHARK_LIBS)\gtk2
154 TIFF_PKG=tiff-3.8.2-1-bin
155 JPEG_PKG=jpeg-6b-4-bin
159 # Mandatory: Version numbers of GTK and pango.
161 # (MAJOR + MINOR Version number but without MICRO version number)
162 # These macros are used by the nsis installer script and by the setup target.
164 # GTK 2.12 is the mainline since Wireshark 0.99.7
165 GTK_INST_VERSION=2.14
166 PANGO_INST_VERSION=1.22
169 # Optional: WinPcap developer's pack to capture network traffic.
171 # If you have the WinPcap developer's pack (at least version 3.0),
172 # set this to the directory in which the WinPcap developer's pack resides.
174 # If you don't have the WPdpack, comment this line out, so that
175 # PCAP_DIR isn't defined.
178 PCAP_DIR=$(WIRESHARK_LIBS)\WPdpack
181 # Optional: WinPcap remote capture support and new API
182 # (pcap_open(), pcap_findalldevs_ex(), etc.)
187 # Optional: The ZLib enables unzipping of gzip compressed capture files
190 # If you have Zlib, set this to directory in which the Zlib headers
191 # and .lib file are stored.
193 # If you don't have Zlib, comment this line out, so that ZLIB_DIR isn't
196 ZLIB_DIR=$(WIRESHARK_LIBS)\zlib123
199 # Optional: the ADNS library enables asynchronous (nonblocking) DNS
202 # If you have GNU ADNS, set this to the directory in which the GNU ADNS
203 # .lib file is stored.
205 # If you don't have GNU ADNS, comment this line out, so that ADNS_DIR
208 # If C_ARES_DIR is defined below, it will override this setting.
210 #ADNS_DIR=$(WIRESHARK_LIBS)\adns-1.0-win32-05ws
213 # Optional: the c-ares library enables asynchronous (nonblocking) DNS
216 # If you have c-ares, set this to the directory in which the c-ares
217 # .lib file is stored. Setting this will override ADNS_DIR above. You
220 # If you're using Visual C++ 6.0, you'll have to use a platform SDK that
221 # defines socklen_t, such as Windows Server 2003 PSDK.
223 # If you don't have c-ares, comment this line out, so that C_ARES_DIR
226 C_ARES_DIR=$(WIRESHARK_LIBS)\c-ares-1.6.0ws
229 # Optional: the PCRE (Perl Compatible Regular Expressions) library
230 # enables regular expressions for display filters.
232 # If you have the PCRE library, set this to the directory in which
233 # the GNUWIN32 pcre-lib package is stored.
235 # If you don't have PCRE, comment this line out, so that PCRE_DIR
238 PCRE_DIR=$(WIRESHARK_LIBS)\pcre-7.0
241 # Optional: the GNUTLS library enables ssl decryption.
243 # If you have the GNUTLS library, set this to the directory where
244 # the lib and include files are stored.
246 # If you don't have GNUTLS, comment this line out, so that GNUTLS_DIR
249 # Platform SDK conflicts with openssl.h header
250 #GNUTLS_DIR=$(WIRESHARK_LIBS)\gnutls-2.6.3-1
251 GNUTLS_DIR=$(WIRESHARK_LIBS)\gnutls-2.6.4-1
254 # Optional: the KFW library enables kerberos/sasl/dcerpc decryption.
256 # If you have the kerberos for windows (mit) library, set this to the
257 # directory where the kfw package is stored.
259 # If you don't have KFW, comment this line out, so that KFW_DIR
262 KFW_DIR=$(WIRESHARK_LIBS)\kfw-2.5
265 # Optional: the Nettle library enables ??? decryption.
267 # If you have the Nettle encryption library, set this to the
268 # directory in which the nettle package is stored.
270 # If you don't have Nettle, comment this line out, so that NETTLE_DIR
273 # NETTLE_DIR=$(WIRESHARK_LIBS)\nettle-1.10
276 # Optional: the LUA library enables scripting support.
278 # If you have the LUA library, set this to the directory in which
279 # the LUA package is stored.
281 # If you don't have LUA, comment this line out, so that LUA_DIR
284 LUA_DIST=5_1_4_Win32_dll6
285 LUA_DIR=$(WIRESHARK_LIBS)\lua5.1.4
288 # Optional: the PORTAUDIO library enables audio output for RTP streams.
290 # If you have the PORTAUDIO library (used for rtp_player), set this to
291 # the directory in which the PORTAUDIO library is stored.
293 # If you don't have PORTAUDIO, comment this line out, so that
294 # PORTAUDIO_DIR isn't defined.
296 #PORTAUDIO_DIR=$(WIRESHARK_LIBS)\portaudio_v18_1
297 PORTAUDIO_DIR=$(WIRESHARK_LIBS)\portaudio_v19_2
300 # Version number of PortAudio
302 #PORTAUDIO_VERSION=18
306 # Iconv: Mandatory for Glib >= 2 and <= 2.14.4
307 # [win-iconv statically linked as part of Glib >= 2.14.5]
308 # Set ICONV_DIR to the directory in which the
309 # ICONV include files and library resides.
311 ##ICONV_DIR=$(WIRESHARK_LIBS)\libiconv-1.9.1.bin.woe32
314 # Mandatory for GTK >= 2: Gettext
316 # Set GETTEXT_DIR to the directory in which the
317 # GETTEXT include files and library resides.
319 #GETTEXT_DIR=$(WIRESHARK_LIBS)\gettext-0.14.5
320 GETTEXT_PKG=-runtime-0.17-1
321 GETTEXT_DIR=$(WIRESHARK_LIBS)\gettext-runtime-0.17-1
323 # Optional: AirPcap developer's pack to capture wireless network traffic
324 # incl. 802.11 management frames.
326 # If you have the AirPcap developer's pack, set this to the directory
327 # in which the AirPcap developer's pack resides.
329 # If you don't have the AirPcap developer's pack, comment this line out,
330 # so that AIRPCAP_DIR isn't defined.
332 AIRPCAP_DIR=$(WIRESHARK_LIBS)\AirPcap_Devpack_1_0_0_594\AirPcap_Devpack
335 # Optional: LIBSMI, System Management Interface
337 # Used for oid-name resolution for SNMP and other protocols
339 SMI_DIR=$(WIRESHARK_LIBS)\libsmi-0.4.8
342 # Optional: GeoIP, IP address database lookups
344 # Used to map IP addresses to MaxMind GeoIP database entries
346 # GeoIP requires IPv6 definitions that don't ship with Visual C++ 6.0.
347 # However, the Microsoft Platform SDK for Windows Server 2003 R2 provides
348 # these definitions. The SDK's SetEnv.bat script defines INETSDK.
349 !IF "$(MSVC_VARIANT)" != "MSVC6" || DEFINED(INETSDK)
350 GEOIP_DIR=$(WIRESHARK_LIBS)\GeoIP-1.4.5ws
354 ##### Win64 Libraries #####
356 # Mandatory: GLib settings
358 # Please note: Since Wireshark release 1.0.0, we no longer support GLib1.x
362 GLIB_DIR=$(WIRESHARK_LIBS)\glib
365 # Mandatory: GTK (& related libs) settings
367 # Please note: Since Wireshark release 1.0.0, we no longer support GTK1.x
369 # If you want building with GTK+, set GTK_DIR to the pathname of the
370 # directory in which the "include" and "lib" directories reside.
372 GTK_DIR=$(WIRESHARK_LIBS)\gtk2
377 TIFF_PKG=libtiff_3.8.2-1_win64
378 JPEG_PKG=jpeg_6b-2_win64
382 # Mandatory: Version numbers of GTK and pango.
384 # (MAJOR + MINOR Version number but without MICRO version number)
385 # These macros are used by the nsis installer script and by the setup target.
387 # GTK 2.12 is the mainline since Wireshark 0.99.7
388 GTK_INST_VERSION=2.14
389 PANGO_INST_VERSION=1.22
392 # Optional: WinPcap developer's pack to capture network traffic.
394 # If you have the WinPcap developer's pack (at least version 3.0),
395 # set this to the directory in which the WinPcap developer's pack resides.
397 # If you don't have the WPdpack, comment this line out, so that
398 # PCAP_DIR isn't defined.
400 PCAP_VERSION=4_1_beta5
401 PCAP_DIR=$(WIRESHARK_LIBS)\WPdpack
404 # Optional: WinPcap remote capture support and new API
405 # (pcap_open(), pcap_findalldevs_ex(), etc.)
410 # Optional: The ZLib enables unzipping of gzip compressed capture files
413 # If you have Zlib, set this to directory in which the Zlib headers
414 # and .lib file are stored.
416 # If you don't have Zlib, comment this line out, so that ZLIB_DIR isn't
419 ZLIB_DIR=$(WIRESHARK_LIBS)\zlib123
422 # Optional: the ADNS library enables asynchronous (nonblocking) DNS
425 # If you have GNU ADNS, set this to the directory in which the GNU ADNS
426 # .lib file is stored.
428 # If you don't have GNU ADNS, comment this line out, so that ADNS_DIR
431 # If C_ARES_DIR is defined below, it will override this setting.
433 #ADNS_DIR=$(WIRESHARK_LIBS)\adns-1.0-win32-05ws
436 # Optional: the c-ares library enables asynchronous (nonblocking) DNS
439 # If you have c-ares, set this to the directory in which the c-ares
440 # .lib file is stored. Setting this will override ADNS_DIR above. You
443 # If you're using Visual C++ 6.0, you'll have to use a platform SDK that
444 # defines socklen_t, such as Windows Server 2003 PSDK.
446 # If you don't have c-ares, comment this line out, so that C_ARES_DIR
449 #C_ARES_DIR=$(WIRESHARK_LIBS)\c-ares-1.5.2ws
452 # Optional: the PCRE (Perl Compatible Regular Expressions) library
453 # enables regular expressions for display filters.
455 # If you have the PCRE library, set this to the directory in which
456 # the GNUWIN32 pcre-lib package is stored.
458 # If you don't have PCRE, comment this line out, so that PCRE_DIR
461 #PCRE_DIR=$(WIRESHARK_LIBS)\pcre-7.0
464 # Optional: the GNUTLS library enables ssl decryption.
466 # If you have the GNUTLS library, set this to the directory where
467 # the lib and include files are stored.
469 # If you don't have GNUTLS, comment this line out, so that GNUTLS_DIR
472 # Platform SDK conflicts with openssl.h header
473 #GNUTLS_DIR=$(WIRESHARK_LIBS)\gnutls-1.6.1-1
474 #GNUTLS_DIR=$(WIRESHARK_LIBS)\gnutls-2.3.8-1
477 # Optional: the KFW library enables kerberos/sasl/dcerpc decryption.
479 # If you have the kerberos for windows (mit) library, set this to the
480 # directory where the kfw package is stored.
482 # If you don't have KFW, comment this line out, so that KFW_DIR
485 #KFW_DIR=$(WIRESHARK_LIBS)\kfw-2.5
488 # Optional: the Nettle library enables ??? decryption.
490 # If you have the Nettle encryption library, set this to the
491 # directory in which the nettle package is stored.
493 # If you don't have Nettle, comment this line out, so that NETTLE_DIR
496 # NETTLE_DIR=$(WIRESHARK_LIBS)\nettle-1.10
499 # Optional: the LUA library enables scripting support.
501 # If you have the LUA library, set this to the directory in which
502 # the LUA package is stored.
504 # If you don't have LUA, comment this line out, so that LUA_DIR
507 LUA_DIST=5_1_4_Win64_dll9
508 LUA_DIR=$(WIRESHARK_LIBS)\lua5.1
511 # Optional: the PORTAUDIO library enables audio output for RTP streams.
513 # If you have the PORTAUDIO library (used for rtp_player), set this to
514 # the directory in which the PORTAUDIO library is stored.
516 # If you don't have PORTAUDIO, comment this line out, so that
517 # PORTAUDIO_DIR isn't defined.
519 #PORTAUDIO_DIR=$(WIRESHARK_LIBS)\portaudio_v18_1
520 PORTAUDIO_DIR=$(WIRESHARK_LIBS)\portaudio_v19_2
523 # Version number of PortAudio
525 #PORTAUDIO_VERSION=18
529 # Iconv: Mandatory for Glib >= 2 and <= 2.14.4
530 # [win-iconv statically linked as part of Glib >= 2.14.5]
531 # Set ICONV_DIR to the directory in which the
532 # ICONV include files and library resides.
534 ##ICONV_DIR=$(WIRESHARK_LIBS)\libiconv-1.9.1.bin.woe32
537 # Mandatory for GTK >= 2: Gettext
539 # Set GETTEXT_DIR to the directory in which the
540 # GETTEXT include files and library resides.
542 #GETTEXT_DIR=$(WIRESHARK_LIBS)\gettext-0.14.5
543 GETTEXT_PKG=_0.17-1_win64
544 GETTEXT_DIR=$(WIRESHARK_LIBS)\gettext-0.17-1
546 # Optional: AirPcap developer's pack to capture wireless network traffic
547 # incl. 802.11 management frames.
549 # If you have the AirPcap developer's pack, set this to the directory
550 # in which the AirPcap developer's pack resides.
552 # If you don't have the AirPcap developer's pack, comment this line out,
553 # so that AIRPCAP_DIR isn't defined.
555 #AIRPCAP_DIR=$(WIRESHARK_LIBS)\AirPcap_Devpack_1_0_0_594\AirPcap_Devpack
558 # Optional: LIBSMI, System Management Interface
560 # Used for oid-name resolution for SNMP and other protocols
562 #SMI_DIR=$(WIRESHARK_LIBS)\libsmi-0.4.8
565 # Optional: GeoIP, IP address database lookups
567 # Used to map IP addresses to MaxMind GeoIP database entries
569 # GeoIP requires IPv6 definitions that don't ship with Visual C++ 6.0.
570 # However, the Microsoft Platform SDK for Windows Server 2003 R2 provides
571 # these definitions. The SDK's SetEnv.bat script defines INETSDK.
572 !IF "$(MSVC_VARIANT)" != "MSVC6" || DEFINED(INETSDK)
573 #GEOIP_DIR=$(WIRESHARK_LIBS)\GeoIP-1.4.5ws
580 # Set the following mandatory commands to find the tools.
581 # The easiest way is to use the corresponding packages from cygwin.
583 # Set up the path to the cygwin binaries
584 CYGWIN_PATH=c:\cygwin\bin
586 # command for a shell (cygwin's bash package recommended)
589 # bash versions after 3.1.6 need the 'igncr' shell option to be able to
590 # process scripts in windows 'native format' (dos crlf format).
591 # The following !IF results in the option being used only if it is available
592 # since using it on bash version 3.1.6 (or earlier) is not required and
593 # will cause an error message.
594 !if "$(SH_PROG)"=="bash" && [$(CYGWIN_PATH)\bash -c "set -o igncr" 2>nul: ] == 0
598 SH=$(SH_PROG) $(SH_FLAGS)
601 # command for perl (cygwin's perl package recommended)
604 # command for pod2man and pod2html
605 # (part of the perl package, usually leave these unchanged)
606 POD2MAN=$(SH) pod2man
607 POD2HTML=$(SH) pod2html
609 # Command for native Windows Python (recommended)
610 # V2.4 to V2.6 should work
612 # If you want to specify your Python settings, uncomment the lines below.
613 #PYTHON="C:\Python26\python.exe"
614 #PATH=c:\Python26;$(PATH)
616 # Command for Cygwin's Python (not recommended)
619 # Otherwise, find Python automatically.
621 !IF EXIST(c:\Python26\python.exe)
622 PYTHON="C:\Python26\python.exe"
623 PATH=c:\Python26;$(PATH)
624 !ELSE IF EXIST(c:\Python25\python.exe)
625 PYTHON="C:\Python25\python.exe"
626 PATH=c:\Python25;$(PATH)
627 !ELSE IF EXIST(c:\Python24\python.exe)
628 PYTHON="C:\Python24\python.exe"
629 PATH=c:\Python24;$(PATH)
633 # command for lex/flexx (cygwin's flex recommended)
636 # command for yacc/bison (cygwin's bison recommended)
640 # Optional: To build the NSIS installer.
642 # If you have the NSIS package, set this to the NSIS executable.
644 # If you don't have NSIS, comment this line out, so that MAKENSIS
647 MAKENSIS="$(PROGRAM_FILES)\nsis\makensis.exe"
650 # Optional: To build the developers API documentation with doxygen and dot.
651 # Currently experimental, outdated and incomplete.
653 # You will have to download and install:
654 # Doxygen from: http://www.doxygen.org
655 # Graphviz from: http://www.research.att.com/sw/tools/graphviz/
657 # If you have doxygen, set this to the doxygen executable.
659 # If you don't want the developers documentation (or don't have the tools),
660 # comment this line out, so that DOXYGEN isn't defined.
662 #DOXYGEN="$(PROGRAM_FILES)/doxygen/bin/doxygen.exe"
665 # Recommended: Use the compressed html help format .chm as the Wireshark integrated help.
667 # The required htmlhelp.h and htmlhelp.lib should be included in MSVC_VARIANT > MSVC6.
669 # For MSVC_VARIANT == MSVC6 you will have to download and install the html help workshop from:
671 # http://msdn.microsoft.com/library/default.asp?url=/library/en-us/htmlhelp/html
672 # /hwMicrosoftHTMLHelpDownloads.asp
674 # Then point HHC_DIR to the html help dir (where hhc.exe resides).
676 # If you don't want the online help (or don't have the tools),
677 # comment this line out, so that HHC_DIR isn't defined.
679 HHC_DIR=$(PROGRAM_FILES)/HTML Help Workshop
682 # Optional: To reduce the size of dlls and exes, which is especially useful for USB device distributions (U3, PortableApps)
684 # If you have the UPX package, set this to the upx.exe executable.
686 # UPX can be downloaded from:
687 # http://upx.sourceforge.net/
689 # If you don't have UPX, or don't want to pack exes and dlls,
690 # comment this line out, so that UPX isn't defined.
693 UPX=$(WIRESHARK_LIBS)\upx301w\upx.exe
695 ##### Flags, PATHs and Miscellaneous #####
697 # "convert" the MSVC variant into the required MSC compiler version
698 !IF "$(MSVC_VARIANT)" == "MSVC6"
699 MSC_VER_REQUIRED=1200
700 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2002" || "$(MSVC_VARIANT)" == "DOTNET10"
701 MSC_VER_REQUIRED=1300
702 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2003" || "$(MSVC_VARIANT)" == "DOTNET11"
703 MSC_VER_REQUIRED=1310
704 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2005" || "$(MSVC_VARIANT)" == "MSVC2005EE" || "$(MSVC_VARIANT)" == "DOTNET20"
705 MSC_VER_REQUIRED=1400
706 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2008" || "$(MSVC_VARIANT)" == "MSVC2008EE"
707 MSC_VER_REQUIRED=1500
709 !ERROR MSVC_VARIANT unknown
713 # /W3 warning level 3 (0 less - 4 most, 1 default)
714 # /Zi create .pdb file for debugging
715 # /MD use "Multithreading Debug" libraries
716 # /D_CRT_SECURE_NO_DEPRECATE Don't warn for "insecure" calls, see MSDN "Security Enhancements in the CRT"
717 # /D_CRT_NONSTDC_NO_DEPRECATE Don't warn for "Deprecated CRT Functions" as MSDN calls this
718 # /D_BIND_TO_CURRENT_CRT_VERSION=1 Make sure our CRT and manifest versions match (http://msdn.microsoft.com/en-us/library/cc664727.aspx)
719 # /DWIN32_LEAN_AND_MEAN Don't include unnecessary Windows include files (see windows.h)
720 # /MP [<number of processes>] [MSVC2008]: Compiles multiple source files by using multiple processes
721 # Add if desired for compile speedup on machines with 2 or more "effective processors"
722 # /MANIFEST:no Don't create a SxS manifest. Makes sure our plugins don't load a second copy of the CRT.
724 !IF "$(MSVC_VARIANT)" == "MSVC6" || "$(MSVC_VARIANT)" == "MSVC2002" || "$(MSVC_VARIANT)" == "DOTNET10" || "$(MSVC_VARIANT)" == "MSVC2003" || "$(MSVC_VARIANT)" == "DOTNET11"
725 LOCAL_CFLAGS=/Zi /W3 /MD /DWIN32_LEAN_AND_MEAN /DMSC_VER_REQUIRED=$(MSC_VER_REQUIRED)
726 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2005" || "$(MSVC_VARIANT)" == "MSVC2005EE" || "$(MSVC_VARIANT)" == "DOTNET20" || "$(MSVC_VARIANT)" == "MSVC2008" || "$(MSVC_VARIANT)" == "MSVC2008EE"
727 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
729 !ERROR MSVC_VARIANT unknown
733 # /DEBUG generate debug info
734 # /PROFILE generate map file(s) for profiling
735 # /DEFAULTLIB:xxx use xxx as the standard C library
736 # /NODEFAULTLIB:xxx don't use xxx as the standard C library
738 LOCAL_LDFLAGS=/DEBUG /MACHINE:$(TARGET_MACHINE)
740 !IF $(MSC_VER_REQUIRED) >= 1400
741 DLL_LDFLAGS = /MANIFEST:no
744 PLUGIN_LDFLAGS = /NOLOGO /INCREMENTAL:no $(LOCAL_LDFLAGS) $(DLL_LDFLAGS)
747 # According to http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=403
748 # XCOPY under Windows NT doesn't support the "/Y" flag. This works
750 # XXX - This apparently doesn't work for some versions of nmake:
751 # http://support.microsoft.com/default.aspx?scid=kb;en-us;86814
752 # It looks like we'll have to call "set copycmd=/y" before we run xcopy.
756 # If you don't want to build libwireshark.dll, you should comment out the
757 # following line. (Note: for plugin support this option must stay activated)
758 ENABLE_LIBWIRESHARK=USE
761 # install (debug) directory for Wireshark (relative to your source dir)
762 INSTALL_DIR=wireshark-gtk2
766 ##### C-Runtime Redistributable #####
768 # The C-Runtime since Version 7 must be shipped together with
769 # the program installer, to avoid missing msvcr*.dll files on
770 # the target machine.
772 # The location of these files differ on the various compiler
773 # packages, the following will use the default paths depending
774 # on the package version.
776 !IF "$(MSVC_VARIANT)" == "MSVC6"
777 # msvcrt.dll will already be available on target machines - nothing additional to install
779 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2002"
780 # you probably need to tweak this directory if you don't use the professional edition!
781 MSVCR_DLL=$(PROGRAM_FILES)\Microsoft Visual Studio .NET\Visual Studio .NET Professional - English\msvcr70.dll
783 !ELSEIF "$(MSVC_VARIANT)" == "DOTNET10"
784 # no redistributable available for this package!
786 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2003"
787 # you probably need to tweak this directory if you don't use the professional edition!
788 MSVCR_DLL=$(PROGRAM_FILES)\Microsoft Visual Studio .NET 2003\Visual Studio .NET Professional 2003 - English\msvcr71.dll
790 !ELSEIF "$(MSVC_VARIANT)" == "DOTNET11"
791 # no redistributable available for this package!
793 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2005"
794 MSVCR_DLL=$(PROGRAM_FILES)\Microsoft Visual Studio 8\VC\redist\x86\Microsoft.VC80.CRT\*.*
796 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2005EE" || "$(MSVC_VARIANT)" == "DOTNET20" || "$(MSVC_VARIANT)" == "MSVC2008EE"
797 # you need to download the redistributable package vcredist_x86.exe from Microsoft first,
798 # and copy it to the lib folder!!!
799 VCREDIST_EXE=$(WIRESHARK_LIBS)\vcredist_x86.exe
801 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2008"
802 MSVCR_DLL=$(PROGRAM_FILES)\Microsoft Visual Studio 9.0\VC\redist\x86\Microsoft.VC90.CRT\*.*
805 !ERROR MSVC_VARIANT unknown
810 ##### Advanced: Docbook/XML documentation generation #####
811 # If you want to generate the Docbook/XML based docs (User's and Developer's
812 # Guide, ...), you'll need some additional tools / libraries compared to the
813 # rest of the build process.
815 # FOR DETAILED INSTRUCTIONS TO GENERATE THE DOCS, SEE: docbook\readme.txt.
817 # If you don't call the Makefile.nmake in the docbook dir to generate the
818 # docs, the following settings in this section will have no effect.
820 # formatting objects processor executable
821 # Comment this out if you don't have fop installed or you don't want the docs
824 FOP=fop-0.20.5\fop.bat
827 # Additional options to fop.
831 # Comment this out if you don't have hhc.exe or you don't want the docs in
834 # Beware: hhc.exe is NOT part of the MSVC packages in HHC_DIR mentioned above,
835 # so you'll need to install the HTML Help Workshop for this.
836 HHC_EXE="$(HHC_DIR)\hhc.exe"
838 # html to text converter for text version of release notes, e.g. elinks.
839 # This could also be "lynx", or "true" if neither elinks nor lynx is installed
840 # (cygwin: lynx works, elinks not available, links and true doesn't produce output)
841 #HTML2TXT=elinks -dump -dump-width 72
842 #HTML2TXT=links -dump -width 72
843 #HTML2TXT=lynx -dump -width=72 -nolist -stdin
846 HTML2TXT=$(PYTHON) $(TOOLS_DIR)\html2text.py --width=72 --no-links
849 # the XSL processor (part of cygwin's libxslt package)
852 # the XML validator (part of cygwin's libxml2 package)
857 ##############################################################################
859 # You should not have to change anything below this comment.
860 # If you do, it's a deficiency in the Makefile.nmake files;
861 # either tell wireshark-dev@wireshark.org about it, including
862 # details of why you had to change it, or fix config.nmake
863 # and any Makefile.nmake files that need to be changed, and
864 # send us the patches, along with details of why the change
867 ##############################################################################
870 # The RC_VERSION should be comma-separated, not dot-separated,
871 # as per Graham Bloice's message in
873 # http://www.ethereal.com/lists/ethereal-dev/200303/msg00283.html
875 # "The RC_VERSION variable in config.nmake should be comma separated.
876 # This allows the resources to be built correctly and the version
877 # number to be correctly displayed in the explorer properties dialog
878 # for the executables, and XP's tooltip, rather than 0.0.0.0."
881 VERSION=$(VERSION_MAJOR).$(VERSION_MINOR).$(VERSION_MICRO)$(VERSION_EXTRA)
882 RC_VERSION=$(VERSION_MAJOR),$(VERSION_MINOR),$(VERSION_MICRO),$(VERSION_BUILD)
884 WTAP_VERSION=$(WTAP_VERSION_MAJOR).$(WTAP_VERSION_MINOR).$(WTAP_VERSION_MICRO)
885 RC_WTAP_VERSION=$(WTAP_VERSION_MAJOR),$(WTAP_VERSION_MINOR),$(WTAP_VERSION_MICRO)
888 GLIB_CFLAGS=/I$(GLIB_DIR)\include\glib-$(GLIB_VERSION) \
889 /I$(GLIB_DIR)\lib\glib-$(GLIB_VERSION)\include
890 GCC_GLIB_CFLAGS=-I$(GLIB_DIR)\include\glib-$(GLIB_VERSION) \
891 -I$(GLIB_DIR)\lib\glib-$(GLIB_VERSION)\include
892 GLIB_LIBS=$(GLIB_DIR)\lib\glib-$(GLIB_VERSION).lib \
893 $(GLIB_DIR)\lib\gmodule-$(GLIB_VERSION).lib \
894 $(GLIB_DIR)\lib\gobject-$(GLIB_VERSION).lib
897 GTK_CFLAGS=$(GLIB_CFLAGS) /I$(GTK_DIR)\include\gtk-2.0 \
898 /I$(GTK_DIR)\lib\gtk-2.0\include \
899 /I$(GTK_DIR)\include\atk-1.0 \
900 /I$(GTK_DIR)\include\cairo \
901 /I$(GTK_DIR)\include\pango-1.0
902 GTK_LIBS=$(GTK_DIR)\lib\gtk-win32-2.0.lib \
903 $(GTK_DIR)\lib\gdk-win32-2.0.lib \
904 $(GTK_DIR)\lib\gdk_pixbuf-2.0.lib \
905 $(GTK_DIR)\lib\pango-1.0.lib \
908 !IF "$(GTK_INST_VERSION)" == "2.14"
914 GTK_WIMP_DLLSRC_DIR=$(GTK_DIR)\lib\gtk-2.0\2.10.0\engines
915 GTK_WIMP_DLLDST_DIR=lib\gtk-2.0\2.10.0\engines
916 GTK_WIMP_RCSRC_DIR=$(GTK_DIR)\share\themes\MS-Windows\gtk-2.0
917 GTK_WIMP_RCDST_DIR=etc\gtk-2.0
918 !ELSEIF "$(GTK_INST_VERSION)" == "2.12"
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
929 !ERROR ? Unknown or invalid GTK_INST_VERSION
932 !IF "$(PANGO_INST_VERSION)" == "1.22"
934 !ELSEIF "$(PANGO_INST_VERSION)" == "1.18"
936 !ELSEIF "$(PANGO_INST_VERSION)" == "1.16"
939 !ERROR ? Unknown or invalid PANGO_INST_VERSION
943 AIRPCAP_CONFIG=^#define HAVE_AIRPCAP 1
944 AIRPDCAP_CONFIG=^#define HAVE_AIRPDCAP 1
945 #AIRPCAP_CFLAGS=/I$(AIRPCAP_DIR)\include
952 # Nmake uses carets to escape special characters
953 WINPCAP_CONFIG=^#define HAVE_LIBPCAP 1
954 PCAP_FINDALLDEVS_CONFIG=^#define HAVE_PCAP_FINDALLDEVS 1
955 PCAP_DATALINK_NAME_TO_VAL_CONFIG=^#define HAVE_PCAP_DATALINK_NAME_TO_VAL 1
956 PCAP_DATALINK_VAL_TO_NAME_CONFIG=^#define HAVE_PCAP_DATALINK_VAL_TO_NAME 1
957 # PCAP_BREAKLOOP won't have any benefit on Win32, but breaks compatibility with 3.0
958 PCAP_BREAKLOOP_CONFIG=
959 WPCAP_CONSTIFIED_CONFIG=^#define WPCAP_CONSTIFIED 1
961 # no WpdPack installed
963 PCAP_FINDALLDEVS_CONFIG=
964 PCAP_DATALINK_NAME_TO_VAL_CONFIG=
965 PCAP_DATALINK_VAL_TO_NAME_CONFIG=
966 PCAP_BREAKLOOP_CONFIG=
970 PCAP_LIST_DATALINKS_CONFIG=^#define HAVE_PCAP_LIST_DATALINKS 1
971 PCAP_SET_DATALINK_CONFIG=^#define HAVE_PCAP_SET_DATALINK 1
973 !IF DEFINED(PCAP_DIR) && DEFINED(PCAP_REMOTE)
974 PCAP_HAVE_REMOTE_CONFIG=^#define HAVE_REMOTE 1
975 PCAP_REMOTE_CONFIG=^#define HAVE_PCAP_REMOTE 1
976 PCAP_OPEN_CONFIG=^#define HAVE_PCAP_OPEN 1
977 PCAP_FINDALLDEVS_EX_CONFIG=^#define HAVE_PCAP_FINDALLDEVS_EX 1
978 PCAP_CREATESRCSTR_CONFIG=^#define HAVE_PCAP_CREATESRCSTR 1
979 PCAP_SETSAMPLING_CONFIG=^#define HAVE_PCAP_SETSAMPLING 1
981 PCAP_HAVE_REMOTE_CONFIG=
984 PCAP_FINDALLDEVS_EX_CONFIG=
985 PCAP_CREATESRCSTR_CONFIG=
986 PCAP_SETSAMPLING_CONFIG=
990 ZLIB_PATH=$(ZLIB_DIR)
991 ZLIB_CFLAGS=/I$(ZLIB_DIR)\include
992 ZLIB_LIBS=$(ZLIB_DIR)\lib\zdll.lib
993 ZLIB_DLL=$(ZLIB_DIR)\zlib1.dll
994 # Nmake uses carets to escape special characters
995 ZLIB_CONFIG=^#define HAVE_LIBZ 1
1005 C_ARES_CFLAGS=/I$(C_ARES_DIR)
1006 C_ARES_LIBS=$(C_ARES_DIR)\cares.lib
1007 C_ARES_DLL=$(C_ARES_DIR)\cares.dll
1008 # Nmake uses carets to escape special characters
1009 C_ARES_CONFIG=^#define HAVE_C_ARES 1
1015 ADNS_PATH=$(ADNS_DIR)\adns_win32\lib
1016 ADNS_CFLAGS=/I$(ADNS_DIR)\src /I$(ADNS_DIR)\adns_win32
1017 ADNS_LIBS=$(WIRESHARK_LIBS)\$(MSVC_VARIANT)\adns\adns_dll.lib
1018 ADNS_DLL=$(WIRESHARK_LIBS)\$(MSVC_VARIANT)\adns\adns_dll.dll
1019 # Nmake uses carets to escape special characters
1020 ADNS_CONFIG=^#define HAVE_GNU_ADNS 1
1029 KFW_PATH=$(KFW_DIR)\bin
1030 KFW_CFLAGS=/I$(KFW_DIR)\inc
1031 KFW_LIBS=$(KFW_DIR)\lib\krb5_32.lib
1032 # Nmake uses carets to escape special characters
1033 KFW_CONFIG=^#define HAVE_MIT_KERBEROS 1
1041 PCRE_PATH=$(PCRE_DIR)\bin
1042 PCRE_CFLAGS=/I$(PCRE_DIR)\include
1043 PCRE_LIBS=$(PCRE_DIR)\lib\pcre.lib
1044 # Nmake uses carets to escape special characters
1045 PCRE_CONFIG=^#define HAVE_LIBPCRE 1
1053 NETTLE_CFLAGS=/I$(NETTLE_DIR)
1054 NETTLE_LIBS=$(NETTLE_DIR)\libnettle.lib
1055 # Nmake uses carets to escape special characters
1056 NETTLE_CONFIG=^#define HAVE_LIBNETTLE 1
1064 GNUTLS_PATH=$(GNUTLS_DIR)
1065 # /DNOCRYPT avoids inclusion of Wincrypt.h, avoiding a X509_NAME define clash
1066 GNUTLS_CFLAGS=/I$(GNUTLS_DIR)\include /DNOCRYPT /DIMPORT_LIGNUTLSDLL
1068 $(GNUTLS_DIR)\bin\libtasn1-3.lib \
1069 $(GNUTLS_DIR)\bin\libgpg-error-0.lib \
1070 $(GNUTLS_DIR)\bin\libgcrypt-11.lib \
1071 $(GNUTLS_DIR)\bin\libgnutls-26.lib
1072 # Nmake uses carets to escape special characters
1073 GNUTLS_CONFIG=^#define HAVE_LIBGNUTLS 1
1074 LIBGCRYPT_CONFIG=^#define HAVE_LIBGCRYPT 1
1083 LUA_CFLAGS=/I$(LUA_DIR)\include
1084 LUA_LIBS=$(LUA_DIR)\lua5.1.lib
1085 # Nmake uses carets to escape special characters
1086 LUA_CONFIG=^#define HAVE_LUA 1
1087 LUA_VERSION=^#define HAVE_LUA_5_1 1
1094 !IFDEF PORTAUDIO_DIR
1095 # Nmake uses carets to escape special characters
1096 PORTAUDIO_CONFIG=^#define HAVE_LIBPORTAUDIO 1
1097 !IF "$(PORTAUDIO_VERSION)" == "18"
1098 # V18 uses API version 1 and v19 API version 2
1099 PORTAUDIO_CFLAGS=/I$(PORTAUDIO_DIR)\pa_common
1100 PORTAUDIO_API_CONFIG=^#define PORTAUDIO_API_1 1
1102 PORTAUDIO_CFLAGS=/I$(PORTAUDIO_DIR)\include /I$(PORTAUDIO_DIR)\src\common /I$(PORTAUDIO_DIR)\src\os\win /DPA_NO_DS /DPA_NO_ASIO
1110 !IF "$(MSVC_VARIANT)" == "MSVC6"
1111 HHC_CFLAGS=/I"$(HHC_DIR)\include" -DHHC_DIR
1112 HHC_LIBS="$(HHC_DIR)\lib\htmlhelp.lib"
1114 HHC_CFLAGS=-DHHC_DIR
1115 HHC_LIBS=htmlhelp.lib
1123 SMI_CONFIG=^#define HAVE_LIBSMI 1
1124 SMI_CFLAGS=/I$(SMI_DIR)\include
1125 SMI_LIBS=$(SMI_DIR)\lib\smi.lib
1133 GEOIP_CONFIG=^#define HAVE_GEOIP 1
1134 GEOIP_CFLAGS=/I$(GEOIP_DIR)\libGeoIP
1135 GEOIP_LIBS=$(GEOIP_DIR)\libGeoIP\GeoIP.lib
1142 !IFDEF ENABLE_LIBWIRESHARK
1143 LIBWIRESHARK_CONFIG=^#define HAVE_LIBWIRESHARKDLL 1
1144 # Link plugins with the import library of libwireshark.dll
1145 LINK_PLUGINS_WITH_LIBWIRESHARK=USE
1147 LIBWIRESHARK_CONFIG=
1150 # Construct the path
1152 PATH=$(PATH);$(CYGWIN_PATH);$(GLIB_DIR)\bin;$(GETTEXT_DIR)\bin;$(ICONV_DIR)\bin;$(ZLIB_PATH);$(ADNS_PATH)
1154 PATH=$(PATH);$(CYGWIN_PATH);$(GLIB_DIR)\bin;$(GETTEXT_DIR)\bin;$(ZLIB_PATH);$(ADNS_PATH)
1157 # We can't use a lot of IPv6 code with plain Visual C++ 6.0
1158 !IF "$(MSVC_VARIANT)" == "MSVC6" && !DEFINED(MSSDK)
1161 INET6_CONFIG=^#define INET6 1