3 # Some more information about the settings in this file can be found in
4 # the file README.windows 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 ##### To Use new packet list uncomment this line ####
142 ### Warning Experimental - work in progress
143 NEW_PACKET_LIST_CONFIG=^#define NEW_PACKET_LIST 1
146 # Mandatory: GLib, GTK & related library settings
148 # Please note: Since Wireshark release 1.0.0, we no longer support GTK1.x
150 # If you want building with GTK+, set GTK_DIR to the pathname of the
151 # directory in which the "include" and "lib" directories reside.
153 GTK_DIR=$(WIRESHARK_LIBS)\gtk2
154 # These macros are used by the nsis installer script and by the install target.
155 PNG_DLL=libpng14-14.dll
156 FREETYPE_DLL=freetype6.dll
157 FONTCONFIG_DLL=libfontconfig-1.dll
158 EXPAT_DLL=libexpat-1.dll
160 # This macro is used by the setup target.
161 GTK_PKG=2.16.6-20100207
164 # Mandatory: Version numbers of GTK and pango.
166 # (MAJOR + MINOR Version number but without MICRO version number)
167 # These macros are used by the nsis installer script and by the setup target.
169 GTK_INST_VERSION=2.16
172 # Optional: WinPcap developer's pack to capture network traffic.
174 # If you have the WinPcap developer's pack (at least version 3.0),
175 # set this to the directory in which the WinPcap developer's pack resides.
177 # If you don't have the WPdpack, comment this line out, so that
178 # PCAP_DIR isn't defined.
180 PCAP_DIR=$(WIRESHARK_LIBS)\WPdpack
181 # This macro is used by the nsis installer script, by the u3/portable apps and by the setup target.
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
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 package version.
249 # If you don't have GNUTLS, comment this line out, so that GNUTLS_PKG
252 # Platform SDK conflicts with openssl.h header
253 GNUTLS_PKG=2.8.5-4.12
256 # Optional: the KFW library enables kerberos/sasl/dcerpc decryption.
258 # If you have the kerberos for windows (mit) library, set this to the
259 # directory where the kfw package is stored.
261 # If you don't have KFW, comment this line out, so that KFW_DIR
264 KFW_DIR=$(WIRESHARK_LIBS)\kfw-3-2-2-i386-ws-vc6
267 # Optional: the Nettle library enables ??? decryption.
269 # If you have the Nettle encryption library, set this to the
270 # directory in which the nettle package is stored.
272 # If you don't have Nettle, comment this line out, so that NETTLE_DIR
275 # NETTLE_DIR=$(WIRESHARK_LIBS)\nettle-1.10
278 # Optional: the LUA library enables scripting support.
280 # If you have the LUA library, set this to the directory in which
281 # the LUA package is stored.
283 # If you don't have LUA, comment this line out, so that LUA_DIR
286 LUA_DIST=5_1_4_Win32_dll6
287 LUA_DIR=$(WIRESHARK_LIBS)\lua5.1.4
290 # Optional: the PORTAUDIO library enables audio output for RTP streams.
292 # If you have the PORTAUDIO library (used for rtp_player), set this to
293 # the directory in which the PORTAUDIO library is stored.
295 # If you don't have PORTAUDIO, comment this line out, so that
296 # PORTAUDIO_DIR isn't defined.
298 #PORTAUDIO_DIR=$(WIRESHARK_LIBS)\portaudio_v18_1
299 PORTAUDIO_DIR=$(WIRESHARK_LIBS)\portaudio_v19_2
302 # Version number of PortAudio
304 #PORTAUDIO_VERSION=18
308 # Optional: AirPcap developer's pack to capture wireless network traffic
309 # incl. 802.11 management frames.
311 # If you have the AirPcap developer's pack, set this to the directory
312 # in which the AirPcap developer's pack resides.
314 # If you don't have the AirPcap developer's pack, comment this line out,
315 # so that AIRPCAP_DIR isn't defined.
317 AIRPCAP_DIR=$(WIRESHARK_LIBS)\AirPcap_Devpack_4_1_0_1622\AirPcap_Devpack
320 # Optional: LIBSMI, System Management Interface
322 # Used for oid-name resolution for SNMP and other protocols
324 SMI_DIR=$(WIRESHARK_LIBS)\libsmi-0.4.8
327 # Optional: GeoIP, IP address database lookups
329 # Used to map IP addresses to MaxMind GeoIP database entries
331 # GeoIP requires IPv6 definitions that don't ship with Visual C++ 6.0.
332 # However, the Microsoft Platform SDK for Windows Server 2003 R2 provides
333 # these definitions. The SDK's SetEnv.bat script defines INETSDK.
334 !IF "$(MSVC_VARIANT)" != "MSVC6" || DEFINED(INETSDK)
335 GEOIP_DIR=$(WIRESHARK_LIBS)\GeoIP-1.4.6-win32ws\libGeoIP
339 ##### Win64 Libraries #####
341 # Mandatory: GLib settings
343 # Please note: Since Wireshark release 1.0.0, we no longer support GLib1.x
347 ##### To Use new packet list uncomment this line ####
348 ### Warning Experimental - work in progress
349 NEW_PACKET_LIST_CONFIG=^#define NEW_PACKET_LIST 1
352 # Mandatory: GLib, GTK & related library settings
354 # Please note: Since Wireshark release 1.0.0, we no longer support GTK1.x
356 # If you want building with GTK+, set GTK_DIR to the pathname of the
357 # directory in which the "include" and "lib" directories reside.
359 GTK_DIR=$(WIRESHARK_LIBS)\gtk2
360 # These macros are used by the nsis installer script and by the install target.
361 PNG_DLL=libpng14-14.dll
362 #TIFF_DLL=libtiff-3.dll
363 #JPEG_DLL=libjpeg-7.dll
364 FREETYPE_DLL=libfreetype-6.dll
365 FONTCONFIG_DLL=libfontconfig-1.dll
366 EXPAT_DLL=libexpat-1.dll
367 INTL_DLL=libintl-8.dll
369 # These macros are used by the setup target.
370 GTK_PKG=2.16.6-20100208
373 # Mandatory: Version numbers of GTK and pango.
375 # (MAJOR + MINOR Version number but without MICRO version number)
376 # These macros are used by the nsis installer script and by the setup target.
378 GTK_INST_VERSION=2.16
381 # Optional: WinPcap developer's pack to capture network traffic.
383 # If you have the WinPcap developer's pack (at least version 3.0),
384 # set this to the directory in which the WinPcap developer's pack resides.
386 # If you don't have the WPdpack, comment this line out, so that
387 # PCAP_DIR isn't defined.
389 PCAP_DIR=$(WIRESHARK_LIBS)\WPdpack
390 # This macro is used by the nsis installer script, by the u3/portable apps and by the setup target.
394 # Optional: WinPcap remote capture support and new API
395 # (pcap_open(), pcap_findalldevs_ex(), etc.)
400 # Optional: The ZLib enables unzipping of gzip compressed capture files
403 # If you have Zlib, set this to directory in which the Zlib headers
404 # and .lib file are stored.
406 # If you don't have Zlib, comment this line out, so that ZLIB_DIR isn't
409 ZLIB_DIR=$(WIRESHARK_LIBS)\zlib123
412 # Optional: the ADNS library enables asynchronous (nonblocking) DNS
415 # If you have GNU ADNS, set this to the directory in which the GNU ADNS
416 # .lib file is stored.
418 # If you don't have GNU ADNS, comment this line out, so that ADNS_DIR
421 # If C_ARES_DIR is defined below, it will override this setting.
423 #ADNS_DIR=$(WIRESHARK_LIBS)\adns-1.0-win32-05ws
426 # Optional: the c-ares library enables asynchronous (nonblocking) DNS
429 # If you have c-ares, set this to the directory in which the c-ares
430 # .lib file is stored. Setting this will override ADNS_DIR above. You
433 # If you're using Visual C++ 6.0, you'll have to use a platform SDK that
434 # defines socklen_t, such as Windows Server 2003 PSDK.
436 # If you don't have c-ares, comment this line out, so that C_ARES_DIR
442 # Optional: the PCRE (Perl Compatible Regular Expressions) library
443 # enables regular expressions for display filters.
445 # If you have the PCRE library, set this to the directory in which
446 # the GNUWIN32 pcre-lib package is stored.
448 # If you don't have PCRE, comment this line out, so that PCRE_DIR
451 #PCRE_DIR=$(WIRESHARK_LIBS)\pcre-7.0
454 # Optional: the GNUTLS library enables ssl decryption.
456 # If you have the GNUTLS library, set this to the package version.
458 # If you don't have GNUTLS, comment this line out, so that GNUTLS_PKG
461 # Platform SDK conflicts with openssl.h header
462 GNUTLS_PKG=2.8.5-3.16
465 # Optional: the KFW library enables kerberos/sasl/dcerpc decryption.
467 # If you have the kerberos for windows (mit) library, set this to the
468 # directory where the kfw package is stored.
470 # If you don't have KFW, comment this line out, so that KFW_DIR
473 #KFW_DIR=$(WIRESHARK_LIBS)\kfw-3.2.2-ws1
476 # Optional: the Nettle library enables ??? decryption.
478 # If you have the Nettle encryption library, set this to the
479 # directory in which the nettle package is stored.
481 # If you don't have Nettle, comment this line out, so that NETTLE_DIR
484 # NETTLE_DIR=$(WIRESHARK_LIBS)\nettle-1.10
487 # Optional: the LUA library enables scripting support.
489 # If you have the LUA library, set this to the directory in which
490 # the LUA package is stored.
492 # If you don't have LUA, comment this line out, so that LUA_DIR
495 LUA_DIST=5_1_4_Win64_dll9
496 LUA_DIR=$(WIRESHARK_LIBS)\lua5.1.4
499 # Optional: the PORTAUDIO library enables audio output for RTP streams.
501 # If you have the PORTAUDIO library (used for rtp_player), set this to
502 # the directory in which the PORTAUDIO library is stored.
504 # If you don't have PORTAUDIO, comment this line out, so that
505 # PORTAUDIO_DIR isn't defined.
507 #PORTAUDIO_DIR=$(WIRESHARK_LIBS)\portaudio_v18_1
508 PORTAUDIO_DIR=$(WIRESHARK_LIBS)\portaudio_v19_2
511 # Version number of PortAudio
513 #PORTAUDIO_VERSION=18
517 # Optional: AirPcap developer's pack to capture wireless network traffic
518 # incl. 802.11 management frames.
520 # If you have the AirPcap developer's pack, set this to the directory
521 # in which the AirPcap developer's pack resides.
523 # If you don't have the AirPcap developer's pack, comment this line out,
524 # so that AIRPCAP_DIR isn't defined.
526 AIRPCAP_DIR=$(WIRESHARK_LIBS)\AirPcap_Devpack_4_1_0_1622\AirPcap_Devpack
529 # Optional: LIBSMI, System Management Interface
531 # Used for oid-name resolution for SNMP and other protocols
533 #SMI_DIR=$(WIRESHARK_LIBS)\libsmi-0.4.8
536 # Optional: GeoIP, IP address database lookups
538 # Used to map IP addresses to MaxMind GeoIP database entries
540 GEOIP_DIR=$(WIRESHARK_LIBS)\GeoIP-1.4.6-win64ws\libGeoIP
546 # Set the following mandatory commands to find the tools.
547 # The easiest way is to use the corresponding packages from cygwin.
549 # Set up the path to the cygwin binaries
550 CYGWIN_PATH=c:\cygwin\bin
552 # command for a shell (cygwin's bash package recommended)
555 # bash versions after 3.1.6 need the 'igncr' shell option to be able to
556 # process scripts in windows 'native format' (dos crlf format).
557 # The following !IF results in the option being used only if it is available
558 # since using it on bash version 3.1.6 (or earlier) is not required and
559 # will cause an error message.
560 !if "$(SH_PROG)"=="bash" && [$(CYGWIN_PATH)\bash -c "set -o igncr" 2>nul: ] == 0
564 SH=$(SH_PROG) $(SH_FLAGS)
567 # command for perl (cygwin's perl package recommended)
570 # command for pod2man and pod2html
571 # (part of the perl package, usually leave these unchanged)
572 POD2MAN=$(SH) pod2man
573 POD2HTML=$(SH) pod2html
575 # Command for native Windows Python (recommended)
576 # V2.4 to V2.6 should work
578 # If you want to specify your Python settings, uncomment the lines below.
579 #PYTHON="C:\Python26\python.exe"
580 #PATH=c:\Python26;$(PATH)
582 # Command for Cygwin's Python (not recommended)
585 # Otherwise, find Python automatically.
587 !IF EXIST(c:\Python26\python.exe)
588 PYTHON="C:\Python26\python.exe"
589 PATH=c:\Python26;$(PATH)
590 !ELSE IF EXIST(c:\Python25\python.exe)
591 PYTHON="C:\Python25\python.exe"
592 PATH=c:\Python25;$(PATH)
593 !ELSE IF EXIST(c:\Python24\python.exe)
594 PYTHON="C:\Python24\python.exe"
595 PATH=c:\Python24;$(PATH)
599 # command for lex/flexx (cygwin's flex recommended)
602 # command for yacc/bison (cygwin's bison recommended)
605 # Commands to convert UNIX line endings to DOS/Windows
607 TEXTIFY=$(SH) $(TOOLS_DIR)/textify.sh
610 # Optional: To build the NSIS installer.
612 # If you have the NSIS package, set this to the NSIS executable.
614 # If you don't have NSIS, comment this line out, so that MAKENSIS
617 MAKENSIS="$(PROGRAM_FILES)\nsis\makensis.exe"
620 # Optional: To build the developers API documentation with doxygen and dot.
621 # Currently experimental, outdated and incomplete.
623 # You will have to download and install:
624 # Doxygen from: http://www.doxygen.org
625 # Graphviz from: http://www.research.att.com/sw/tools/graphviz/
627 # If you have doxygen, set this to the doxygen executable.
629 # If you don't want the developers documentation (or don't have the tools),
630 # comment this line out, so that DOXYGEN isn't defined.
632 #DOXYGEN="$(PROGRAM_FILES)/doxygen/bin/doxygen.exe"
635 # Recommended: Use the compressed html help format .chm as the Wireshark integrated help.
637 # The required htmlhelp.h and htmlhelp.lib should be included in MSVC_VARIANT > MSVC6.
639 # For MSVC_VARIANT == MSVC6 you will have to download and install the html help workshop from:
641 # http://msdn.microsoft.com/library/default.asp?url=/library/en-us/htmlhelp/html
642 # /hwMicrosoftHTMLHelpDownloads.asp
644 # Then point HHC_DIR to the html help dir (where hhc.exe resides).
646 # If you don't want the online help (or don't have the tools),
647 # comment this line out, so that HHC_DIR isn't defined.
649 HHC_DIR=$(PROGRAM_FILES)/HTML Help Workshop
652 # Optional: To reduce the size of dlls and exes, which is especially useful for USB device distributions (U3, PortableApps)
654 # If you have the UPX package, set this to the upx.exe executable.
656 # UPX can be downloaded from:
657 # http://upx.sourceforge.net/
659 # If you don't have UPX, or don't want to pack exes and dlls,
660 # comment this line out, so that UPX isn't defined.
663 UPX=$(WIRESHARK_LIBS)\upx303w\upx.exe
665 ##### Flags, PATHs and Miscellaneous #####
667 # "convert" the MSVC variant into the required MSC compiler version
668 !IF "$(MSVC_VARIANT)" == "MSVC6"
669 MSC_VER_REQUIRED=1200
670 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2002" || "$(MSVC_VARIANT)" == "DOTNET10"
671 MSC_VER_REQUIRED=1300
672 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2003" || "$(MSVC_VARIANT)" == "DOTNET11"
673 MSC_VER_REQUIRED=1310
674 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2005" || "$(MSVC_VARIANT)" == "MSVC2005EE" || "$(MSVC_VARIANT)" == "DOTNET20"
675 MSC_VER_REQUIRED=1400
676 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2008" || "$(MSVC_VARIANT)" == "MSVC2008EE"
677 MSC_VER_REQUIRED=1500
679 !ERROR MSVC_VARIANT unknown
683 # /W3 warning level 3 (0 less - 4 most, 1 default)
684 # /Zi create .pdb file for debugging
685 # /MD use "Multithreading Debug" libraries
686 # /D_CRT_SECURE_NO_DEPRECATE Don't warn for "insecure" calls, see MSDN "Security Enhancements in the CRT"
687 # /D_CRT_NONSTDC_NO_DEPRECATE Don't warn for "Deprecated CRT Functions" as MSDN calls this
688 # /D_BIND_TO_CURRENT_CRT_VERSION=1 Make sure our CRT and manifest versions match (http://msdn.microsoft.com/en-us/library/cc664727.aspx)
689 # /DWIN32_LEAN_AND_MEAN Don't include unnecessary Windows include files (see windows.h)
690 # /MANIFEST:no Don't create a SxS manifest. Makes sure our plugins don't load a second copy of the CRT.
692 !IF "$(MSVC_VARIANT)" == "MSVC6" || "$(MSVC_VARIANT)" == "MSVC2002" || "$(MSVC_VARIANT)" == "DOTNET10" || "$(MSVC_VARIANT)" == "MSVC2003" || "$(MSVC_VARIANT)" == "DOTNET11"
693 LOCAL_CFLAGS=/Zi /W3 /MD /DWIN32_LEAN_AND_MEAN /DMSC_VER_REQUIRED=$(MSC_VER_REQUIRED)
694 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2005" || "$(MSVC_VARIANT)" == "MSVC2005EE" || "$(MSVC_VARIANT)" == "DOTNET20" || "$(MSVC_VARIANT)" == "MSVC2008" || "$(MSVC_VARIANT)" == "MSVC2008EE"
695 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)
696 !IF "$(WIRESHARK_TARGET_PLATFORM)" != "win64"
697 LOCAL_CFLAGS=$(LOCAL_CFLAGS) /D_BIND_TO_CURRENT_CRT_VERSION=1
700 !ERROR MSVC_VARIANT unknown
703 # http://msdn.microsoft.com/en-us/library/bb385193.aspx
704 # /MP Compiles multiple source files by using multiple processes
705 # /MP[processMax] If you omit the processMax argument, the compiler retrieves the number of effective processors
706 # on your computer from the operating system, and creates a process for each processor.
708 # The following compiler options and language features that are incompatible with the /MP option:
710 # * #import preprocessor directive
716 !IF "$(MSVC_VARIANT)" == "MSVC2008" || "$(MSVC_VARIANT)" == "MSVC2008EE"
717 LOCAL_CFLAGS= $(LOCAL_CFLAGS) /MP
720 # /DEBUG generate debug info
721 # /PROFILE generate map file(s) for profiling
722 # /DEFAULTLIB:xxx use xxx as the standard C library
723 # /NODEFAULTLIB:xxx don't use xxx as the standard C library
725 LOCAL_LDFLAGS=/DEBUG /MACHINE:$(TARGET_MACHINE)
727 !IF $(MSC_VER_REQUIRED) >= 1400
728 DLL_LDFLAGS = /MANIFEST:no
731 PLUGIN_LDFLAGS = /NOLOGO /INCREMENTAL:no $(LOCAL_LDFLAGS) $(DLL_LDFLAGS)
734 # According to http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=403
735 # XCOPY under Windows NT doesn't support the "/Y" flag. This works
737 # XXX - This apparently doesn't work for some versions of nmake:
738 # http://support.microsoft.com/default.aspx?scid=kb;en-us;86814
739 # It looks like we'll have to call "set copycmd=/y" before we run xcopy.
743 # If you don't want to build libwireshark.dll, you should comment out the
744 # following line. (Note: for plugin support this option must stay activated)
745 ENABLE_LIBWIRESHARK=USE
748 # install (debug) directory for Wireshark (relative to your source dir)
749 INSTALL_DIR=wireshark-gtk2
753 ##### C-Runtime Redistributable #####
755 # The C-Runtime since Version 7 must be shipped together with
756 # the program installer, to avoid missing msvcr*.dll files on
757 # the target machine.
759 # The location of these files differ on the various compiler
760 # packages, the following will use the default paths depending
761 # on the package version.
763 !IF "$(MSVC_VARIANT)" == "MSVC6"
764 # msvcrt.dll will already be available on target machines - nothing additional to install
766 !ELSEIF "$(WIRESHARK_TARGET_PLATFORM)" == "win64"
767 # We're not creating portable packages and therefore don't have to worry about
768 # "deploying using xcopy"
769 VCREDIST_EXE=$(WIRESHARK_LIBS)\vcredist_$(TARGET_MACHINE).exe
771 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2002"
772 # you probably need to tweak this directory if you don't use the professional edition!
773 MSVCR_DLL=$(PROGRAM_FILES)\Microsoft Visual Studio .NET\Visual Studio .NET Professional - English\msvcr70.dll
775 !ELSEIF "$(MSVC_VARIANT)" == "DOTNET10"
776 # no redistributable available for this package!
778 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2003"
779 # you probably need to tweak this directory if you don't use the professional edition!
780 MSVCR_DLL=$(PROGRAM_FILES)\Microsoft Visual Studio .NET 2003\Visual Studio .NET Professional 2003 - English\msvcr71.dll
782 !ELSEIF "$(MSVC_VARIANT)" == "DOTNET11"
783 # no redistributable available for this package!
785 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2005"
786 MSVCR_DLL=$(PROGRAM_FILES)\Microsoft Visual Studio 8\VC\redist\$(VCREDIST_DLL)\Microsoft.VC80.CRT\*.*
788 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2005EE" || "$(MSVC_VARIANT)" == "DOTNET20" || "$(MSVC_VARIANT)" == "MSVC2008EE"
789 # you need to download the redistributable package vcredist_x86.exe from Microsoft first,
790 # and copy it to the lib folder!!!
791 VCREDIST_EXE=$(WIRESHARK_LIBS)\vcredist_$(TARGET_MACHINE).exe
793 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2008"
794 MSVCR_DLL=$(PROGRAM_FILES)\Microsoft Visual Studio 9.0\VC\redist\$(VCREDIST_DLL)\Microsoft.VC90.CRT\*.*
797 !ERROR MSVC_VARIANT unknown
800 !IF DEFINED(VCREDIST_EXE) && ! EXIST("$(VCREDIST_EXE)")
801 !ERROR Can't find $(VCREDIST_EXE). Have you downloaded it from Microsoft? \
802 See the developer's guide section "C-Runtime "Redistributable" files" for details how to get it
805 ##### Advanced: Docbook/XML documentation generation #####
806 # If you want to generate the Docbook/XML based docs (User's and Developer's
807 # Guide, ...), you'll need some additional tools / libraries compared to the
808 # rest of the build process.
810 # FOR DETAILED INSTRUCTIONS TO GENERATE THE DOCS, SEE: docbook\README.txt.
812 # If you don't call the Makefile.nmake in the docbook dir to generate the
813 # docs, the following settings in this section will have no effect.
815 # formatting objects processor executable
816 # Comment this out if you don't have fop installed or you don't want the docs
819 # You may want to install the FOP hyphenation patterns from
820 # http://offo.sourceforge.net/hyphenation/
825 # Additional options to fop.
829 # Comment this out if you don't have hhc.exe or you don't want the docs in
832 # Beware: hhc.exe is NOT part of the MSVC packages in HHC_DIR mentioned above,
833 # so you'll need to install the HTML Help Workshop for this.
834 HHC_EXE="$(HHC_DIR)\hhc.exe"
836 # html to text converter for text version of release notes, e.g. elinks.
837 # This could also be "lynx", or "true" if neither elinks nor lynx is installed
838 # (cygwin: lynx works, elinks not available, links and true doesn't produce output)
839 #HTML2TXT=elinks -dump -dump-width 72
840 ##HTML2TXT=links -dump -width 72 ## XXX: Fails: For links -dump requires 'url' (filename) arg.
841 #HTML2TXT=lynx -dump -width=72 -nolist -stdin
844 HTML2TXT=$(PYTHON) $(TOOLS_DIR)\html2text.py --width=72 --no-links
847 # the XSL processor (part of cygwin's libxslt package)
850 # the XML validator (part of cygwin's libxml2 package)
855 ##############################################################################
857 # You should not have to change anything below this comment.
858 # If you do, it's a deficiency in the Makefile.nmake files;
859 # either tell wireshark-dev@wireshark.org about it, including
860 # details of why you had to change it, or fix config.nmake
861 # and any Makefile.nmake files that need to be changed, and
862 # send us the patches, along with details of why the change
865 ##############################################################################
868 # The RC_VERSION should be comma-separated, not dot-separated,
869 # as per Graham Bloice's message in
871 # http://www.ethereal.com/lists/ethereal-dev/200303/msg00283.html
873 # "The RC_VERSION variable in config.nmake should be comma separated.
874 # This allows the resources to be built correctly and the version
875 # number to be correctly displayed in the explorer properties dialog
876 # for the executables, and XP's tooltip, rather than 0.0.0.0."
879 VERSION=$(VERSION_MAJOR).$(VERSION_MINOR).$(VERSION_MICRO)$(VERSION_EXTRA)
880 RC_VERSION=$(VERSION_MAJOR),$(VERSION_MINOR),$(VERSION_MICRO),$(VERSION_BUILD)
882 WTAP_VERSION=$(WTAP_VERSION_MAJOR).$(WTAP_VERSION_MINOR).$(WTAP_VERSION_MICRO)
883 RC_WTAP_VERSION=$(WTAP_VERSION_MAJOR),$(WTAP_VERSION_MINOR),$(WTAP_VERSION_MICRO)
886 GLIB_CFLAGS=/I$(GTK_DIR)\include\glib-$(GLIB_VERSION) \
887 /I$(GTK_DIR)\lib\glib-$(GLIB_VERSION)\include
888 GLIB_LIBS=$(GTK_DIR)\lib\glib-$(GLIB_VERSION).lib \
889 $(GTK_DIR)\lib\gmodule-$(GLIB_VERSION).lib \
890 $(GTK_DIR)\lib\gobject-$(GLIB_VERSION).lib
891 GTHREAD_LIBS=$(GTK_DIR)\lib\gthread-$(GLIB_VERSION).lib
894 GTK_CFLAGS=$(GLIB_CFLAGS) /I$(GTK_DIR)\include\gtk-2.0 \
895 /I$(GTK_DIR)\lib\gtk-2.0\include \
896 /I$(GTK_DIR)\include\atk-1.0 \
897 /I$(GTK_DIR)\include\cairo \
898 /I$(GTK_DIR)\include\pango-1.0
899 GTK_LIBS=$(GTK_DIR)\lib\gtk-win32-2.0.lib \
900 $(GTK_DIR)\lib\gdk-win32-2.0.lib \
901 $(GTK_DIR)\lib\gdk_pixbuf-2.0.lib \
902 $(GTK_DIR)\lib\pango-1.0.lib \
906 !IF "$(GTK_INST_VERSION)" == "2.18" || "$(GTK_INST_VERSION)" == "2.16" || "$(GTK_INST_VERSION)" == "2.14"
919 # Pango >=1.24.5 Needs these:
920 NEED_FREETYPE_DLL=USE
921 NEED_FONTCONFIG_DLL=USE
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
934 AIRPCAP_CONFIG=^#define HAVE_AIRPCAP 1
935 AIRPDCAP_CONFIG=^#define HAVE_AIRPDCAP 1
936 #AIRPCAP_CFLAGS=/I$(AIRPCAP_DIR)\include
943 # Nmake uses carets to escape special characters
944 WINPCAP_CONFIG=^#define HAVE_LIBPCAP 1
946 # This requires that, if you're *building* Wireshark, you have
947 # the most recent WinPcap's development package. If, at *run*
948 # time, an older version of WinPcap, missing some routines,
949 # is found, we work around that.
951 PCAP_FINDALLDEVS_CONFIG=^#define HAVE_PCAP_FINDALLDEVS 1
952 PCAP_DATALINK_NAME_TO_VAL_CONFIG=^#define HAVE_PCAP_DATALINK_NAME_TO_VAL 1
953 PCAP_DATALINK_VAL_TO_NAME_CONFIG=^#define HAVE_PCAP_DATALINK_VAL_TO_NAME 1
954 PCAP_DATALINK_VAL_TO_DESCRIPTION_CONFIG=^#define HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1
955 # PCAP_BREAKLOOP won't have any benefit on Win32, but breaks compatibility with 3.0
956 PCAP_BREAKLOOP_CONFIG=
957 PCAP_LIST_DATALINKS_CONFIG=^#define HAVE_PCAP_LIST_DATALINKS 1
958 PCAP_FREE_DATALINKS_CONFIG=^#define HAVE_PCAP_FREE_DATALINKS 1
959 PCAP_SET_DATALINK_CONFIG=^#define HAVE_PCAP_SET_DATALINK 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_DATALINK_VAL_TO_DESCRIPTION_CONFIG=
967 PCAP_BREAKLOOP_CONFIG=
968 PCAP_LIST_DATALINKS_CONFIG=
969 PCAP_FREE_DATALINKS_CONFIG=
970 PCAP_SET_DATALINK_CONFIG=
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_SETSAMPLING_CONFIG=^#define HAVE_PCAP_SETSAMPLING 1
979 PCAP_HAVE_REMOTE_CONFIG=
982 PCAP_SETSAMPLING_CONFIG=
986 ZLIB_PATH=$(ZLIB_DIR)
987 ZLIB_CFLAGS=/I$(ZLIB_DIR)\include
988 ZLIB_LIBS=$(ZLIB_DIR)\lib\zdll.lib
989 ZLIB_DLL=$(ZLIB_DIR)\zlib1.dll
990 # Nmake uses carets to escape special characters
991 ZLIB_CONFIG=^#define HAVE_LIBZ 1
1001 C_ARES_DIR=$(WIRESHARK_LIBS)\c-ares-$(C_ARES_PKG)-$(WIRESHARK_TARGET_PLATFORM)ws
1002 C_ARES_CFLAGS=/I$(C_ARES_DIR)/include
1003 C_ARES_LIBS=$(C_ARES_DIR)\lib\libcares-2.lib
1004 C_ARES_DLL=$(C_ARES_DIR)\bin\libcares-2.dll
1005 # Nmake uses carets to escape special characters
1006 C_ARES_CONFIG=^#define HAVE_C_ARES 1
1012 ADNS_PATH=$(ADNS_DIR)\adns_win32\lib
1013 ADNS_CFLAGS=/I$(ADNS_DIR)\src /I$(ADNS_DIR)\adns_win32
1014 ADNS_LIBS=$(WIRESHARK_LIBS)\$(MSVC_VARIANT)\adns\adns_dll.lib
1015 ADNS_DLL=$(WIRESHARK_LIBS)\$(MSVC_VARIANT)\adns\adns_dll.dll
1016 # Nmake uses carets to escape special characters
1017 ADNS_CONFIG=^#define HAVE_GNU_ADNS 1
1026 KFW_PATH=$(KFW_DIR)\bin
1027 KFW_CFLAGS=/I$(KFW_DIR)\include
1028 KFW_LIBS=$(KFW_DIR)\lib\krb5_32.lib
1029 # Nmake uses carets to escape special characters
1030 KFW_CONFIG=^#define HAVE_MIT_KERBEROS 1
1038 PCRE_PATH=$(PCRE_DIR)\bin
1039 PCRE_CFLAGS=/I$(PCRE_DIR)\include
1040 PCRE_LIBS=$(PCRE_DIR)\lib\pcre.lib
1041 # Nmake uses carets to escape special characters
1042 PCRE_CONFIG=^#define HAVE_LIBPCRE 1
1050 NETTLE_CFLAGS=/I$(NETTLE_DIR)
1051 NETTLE_LIBS=$(NETTLE_DIR)\libnettle.lib
1052 # Nmake uses carets to escape special characters
1053 NETTLE_CONFIG=^#define HAVE_LIBNETTLE 1
1061 GNUTLS_DIR=$(WIRESHARK_LIBS)\gnutls-$(GNUTLS_PKG)-$(WIRESHARK_TARGET_PLATFORM)ws
1062 GNUTLS_PATH=$(GNUTLS_DIR)
1063 # /DNOCRYPT avoids inclusion of Wincrypt.h, avoiding a X509_NAME define clash
1064 GNUTLS_CFLAGS=/I$(GNUTLS_DIR)\include /DNOCRYPT /DIMPORT_LIGNUTLSDLL
1065 GCRYPT_LIBS = $(GNUTLS_DIR)\bin\libgcrypt-11.lib
1067 $(GNUTLS_DIR)\bin\libtasn1-3.lib \
1068 $(GNUTLS_DIR)\bin\libgpg-error-0.lib \
1070 $(GNUTLS_DIR)\bin\libgnutls-26.lib
1071 # Nmake uses carets to escape special characters
1072 GNUTLS_CONFIG=^#define HAVE_LIBGNUTLS 1
1073 LIBGCRYPT_CONFIG=^#define HAVE_LIBGCRYPT 1
1082 LUA_CFLAGS=/I$(LUA_DIR)\include
1083 LUA_LIBS=$(LUA_DIR)\lua5.1.lib
1084 # Nmake uses carets to escape special characters
1085 LUA_CONFIG=^#define HAVE_LUA 1
1086 LUA_VERSION=^#define HAVE_LUA_5_1 1
1093 !IFDEF PORTAUDIO_DIR
1094 # Nmake uses carets to escape special characters
1095 PORTAUDIO_CONFIG=^#define HAVE_LIBPORTAUDIO 1
1096 !IF "$(PORTAUDIO_VERSION)" == "18"
1097 # V18 uses API version 1 and v19 API version 2
1098 PORTAUDIO_CFLAGS=/I$(PORTAUDIO_DIR)\pa_common
1099 PORTAUDIO_API_CONFIG=^#define PORTAUDIO_API_1 1
1101 PORTAUDIO_CFLAGS=/I$(PORTAUDIO_DIR)\include /I$(PORTAUDIO_DIR)\src\common /I$(PORTAUDIO_DIR)\src\os\win /DPA_NO_DS /DPA_NO_ASIO
1109 !IF "$(MSVC_VARIANT)" == "MSVC6"
1110 HHC_CFLAGS=/I"$(HHC_DIR)\include" -DHHC_DIR
1111 HHC_LIBS="$(HHC_DIR)\lib\htmlhelp.lib"
1113 HHC_CFLAGS=-DHHC_DIR
1114 HHC_LIBS=htmlhelp.lib
1122 SMI_CONFIG=^#define HAVE_LIBSMI 1
1123 SMI_CFLAGS=/I$(SMI_DIR)\include
1124 SMI_LIBS=$(SMI_DIR)\lib\smi.lib
1132 GEOIP_CONFIG=^#define HAVE_GEOIP 1
1133 GEOIP_CFLAGS=/I$(GEOIP_DIR)
1134 GEOIP_LIBS=$(GEOIP_DIR)\GeoIP.lib
1141 !IFDEF ENABLE_LIBWIRESHARK
1142 LIBWIRESHARK_CONFIG=^#define HAVE_LIBWIRESHARKDLL 1
1143 # Link plugins with the import library of libwireshark.dll
1144 LINK_PLUGINS_WITH_LIBWIRESHARK=USE
1146 LIBWIRESHARK_CONFIG=
1149 # Construct the path
1150 PATH=$(PATH);$(CYGWIN_PATH);$(GTK_DIR)\bin;$(GETTEXT_DIR)\bin;$(ZLIB_PATH);$(ADNS_PATH)
1152 # We can't use a lot of IPv6 code with plain Visual C++ 6.0
1153 !IF "$(MSVC_VARIANT)" == "MSVC6" && !DEFINED(MSSDK)
1156 INET6_CONFIG=^#define INET6 1
1159 !IF "$(MSVC_VARIANT)" == "MSVC6" && !DEFINED(MSSDK)
1162 NTDDNDIS_CONFIG=^#define HAVE_NTDDNDIS_H 1