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).
10 # The current Wireshark version
11 # It's highly recommended to leave MAJOR/MINOR/MICRO unchanged
15 # It's recommended to change VERSION_EXTRA for your own custom builds
19 # The version of the wiretap library (recommended: leave unchanged)
29 # Base directory, where your libraries reside, which needs to be
30 # compiling the sources. This setting is used only inside this file.
32 WIRESHARK_LIBS=C:\wireshark-win32-libs
35 # Mandatory: GLib settings
37 # Current versions of GTK+ 1.3 require GLib 2.0. Earlier versions of
38 # GTK+ 1.3 are buggy; we don't recommend using them, and we don't
39 # support them. Upgrade to at least GLib 2.0.
42 GLIB_DIR=$(WIRESHARK_LIBS)\glib
45 # Mandatory: GTK (& related) settings
47 # It's possible, to build both GTK version 1 and 2 at the same time,
48 # or only one of the versions. GTK version 2 is recommended.
50 # If you want building with GTK+ 1.3, set GTK1_DIR to the pathname of the
51 # "gtk+" directory; if you want building with GTK+ 2.x, set GTK2_DIR to
52 # the pathname of the directory in which the "include" and "lib" directories
55 GTK1_DIR=$(WIRESHARK_LIBS)\gtk+
56 GTK2_DIR=$(WIRESHARK_LIBS)\gtk2
59 # Mandatory for GTK >= 2: Version numbers of gtk2 and pango.
61 # (MAJOR + MINOR Version number but without MICRO version number)
62 # These macros are used by the nsis installer script and by the setup target.
64 # GTK 2.6 is the mainline since Ethereal 0.10.14
65 #GTK2_INST_VERSION=2.6
66 #PANGO_INST_VERSION=1.8
67 # Support for GTK 2.8 is currently experimental ...
69 PANGO_INST_VERSION=1.14
72 # If you have GTK-Wimp, set this to the pathname of the directory in
73 # which the files are stored.
75 # If you don't have GTK-Wimp, comment this line out, so that GTK-Wimp isn't
78 # Please note: GTK 2.8 (and later?) includes GTK-Wimp
79 # (in this case these GTK-Wimp related settings will have no effect)
81 GTK_WIMP_DIR=$(WIRESHARK_LIBS)\gtk-wimp\gtk-wimp-0.7.0-bin
84 # Optional: WinPcap developer's pack to capture network traffic.
86 # The WinPcap developer's pack version Wireshark is build with.
88 # If you don't have the WPdpack, comment this line out, so that
89 # WINPCAP_VERSION isn't defined.
93 # XXX - what to set for 4.0 beta 1?
95 # If you have the WinPcap developer's pack, set this to the directory
96 # in which the WinPcap developer's pack resides.
98 # If you don't have the WPdpack, comment this line out, so that
99 # PCAP_DIR isn't defined.
101 PCAP_DIR=$(WIRESHARK_LIBS)\WPdpack
104 # Optional: The ZLib enables unzipping of gzip compressed capture files
107 # If you have Zlib, set this to directory in which the Zlib headers
108 # and .lib file are stored.
110 # If you don't have Zlib, comment this line out, so that ZLIB_DIR isn't
113 ZLIB_DIR=$(WIRESHARK_LIBS)\zlib123-dll
116 # Optional: The Net-SNMP library enables SNMP OID to name resolvings
117 # for the MIBs available.
119 # If you have Net-SNMP, set this to the pathname of the directory in
120 # which the Net-SNMP headers and .lib file are stored.
122 # If you don't have Net-SNMP, comment this line out, so that NET_SNMP_DIR
125 NET_SNMP_DIR=$(WIRESHARK_LIBS)\net-snmp-5.3.1
128 # Optional: the ADNS library enables asynchronous (nonblocking) DNS
131 # If you have GNU ADNS, set this to the directory in which the GNU ADNS
132 # .lib file is stored.
134 # If you don't have GNU ADNS, comment this line out, so that ADNS_DIR
137 ADNS_DIR=$(WIRESHARK_LIBS)\adns-1.0-win32-05
140 # Optional: the PCRE (Perl Compatible Regular Expressions) library
141 # enables regular expressions for display filters.
143 # If you have the PCRE library, set this to the directory in which
144 # the GNUWIN32 pcre-lib package is stored.
146 # If you don't have PCRE, comment this line out, so that PCRE_DIR
149 PCRE_DIR=$(WIRESHARK_LIBS)\pcre-6.4
152 # Optional: the GNUTLS library enables ssl decryption.
154 # If you have the GNUTLS library, set this to the directory where
155 # the lib and include files are stored.
157 # If you don't have GNUTLS, comment this line out, so that GNUTLS_DIR
160 GNUTLS_DIR=$(WIRESHARK_LIBS)\gnutls-1.5.1-1
163 # Optional: the KFW library enables kerberos/sasl/dcerpc decryption.
165 # If you have the kerberos for windows (mit) library, set this to the
166 # directory where the kfw package is stored.
168 # If you don't have KFW, comment this line out, so that KFW_DIR
171 KFW_DIR=$(WIRESHARK_LIBS)\kfw-2.5
174 # Optional: the Nettle library enables ??? decryption.
176 # If you have the Nettle encryption library, set this to the
177 # directory in which the nettle package is stored.
179 # If you don't have Nettle, comment this line out, so that NETTLE_DIR
182 # NETTLE_DIR=$(WIRESHARK_LIBS)\nettle-1.10
185 # Optional: the LUA library enables scripting support.
187 # If you have the LUA library, set this to the directory in which
188 # the LUA package is stored.
190 # If you don't have LUA, comment this line out, so that LUA_DIR
193 LUA_DIR=$(WIRESHARK_LIBS)\lua5.1
196 # Optional: the PORTAUDIO library enables audio output for RTP streams.
198 # If you have the PORTAUDIO library (used for rtp_player), set this to
199 # the directory in which the PORTAUDIO library is stored.
201 # If you don't have PORTAUDIO, comment this line out, so that
202 # PORTAUDIO_DIR isn't defined.
204 PORTAUDIO_DIR=$(WIRESHARK_LIBS)\portaudio_v18_1
205 #PORTAUDIO_DIR=$(WIRESHARK_LIBS)\portaudio_v19
208 # Version number of PortAudio
211 #PORTAUDIO_VERSION=19
214 # Mandatory for GTK >= 2: Iconv
216 # Set ICONV_DIR to the directory in which the
217 # ICONV include files and library resides.
219 ICONV_DIR=$(WIRESHARK_LIBS)\libiconv-1.9.1.bin.woe32
222 # Mandatory for GTK >= 2: Gettext
224 # Set GETTEXT_DIR to the directory in which the
225 # GETTEXT include files and library resides.
227 #GETTEXT_DIR=$(WIRESHARK_LIBS)\gettext-runtime-0.13.1
228 GETTEXT_DIR=$(WIRESHARK_LIBS)\gettext-0.14.5
231 # Optional: AirPcap developer's pack to capture wireless network traffic
232 # incl. 802.11 management frames.
234 # If you have the AirPcap developer's pack, set this to the directory
235 # in which the AirPcap developer's pack resides.
237 # If you don't have the AirPcap developer's pack, comment this line out,
238 # so that AIRPCAP_DIR isn't defined.
240 #AIRPCAP_DIR=$(WIRESHARK_LIBS)\AirPcap
246 # Set the following mandatory commands to find the tools.
247 # The easiest way is to use the corresponding packages from cygwin.
249 # command for a shell (cygwin's bash package recommended)
252 # bash versions after 3.1.6 need the 'igncr' shell option to be able to
253 # process scripts in windows 'native format' (dos crlf format).
254 # The following !IF results in the option being used only if it is available
255 # since using it on bash version 3.1.6 (or earlier) is not required and
256 # will cause an error message.
257 !if "$(SH_PROG)"=="bash" && [bash -c "set -o igncr" 2>nul: ] == 0
261 SH=$(SH_PROG) $(SH_FLAGS)
264 # command for perl (cygwin's perl package recommended)
267 # command for pod2man and pod2html
268 # (part of the perl package, usually leave these unchanged)
269 POD2MAN=$(SH) pod2man
270 POD2HTML=$(SH) pod2html
272 # command for python (cygwin's python package recommended)
275 # command for native windows python (not recommended)
276 #PYTHON="C:/python24/python.exe"
277 # add native python to the path (not needed if cygwin's python is used)
278 #PATH=c:\python24;$(PATH)
280 # command for lex/flexx (cygwin's flex recommended)
283 # command for yacc/bison (cygwin's bison recommended)
287 # Optional: To build the NSIS installer.
289 # If you have the NSIS package, set this to the NSIS executable.
291 # If you don't have NSIS, comment this line out, so that MAKENSIS
294 MAKENSIS="C:/program files/nsis/makensis.exe"
297 # Optional: To build the developers documentation with doxygen and dot.
298 # Currently experimental only.
300 # You will have to download and install:
301 # Doxygen from: www.doxygen.org
302 # Graphviz from: http://www.research.att.com/sw/tools/graphviz/
304 # If you have doxygen, set this to the doxygen executable.
306 # If you don't want the developers documentation (or don't have the tools),
307 # comment this line out, so that DOXYGEN isn't defined.
309 #DOXYGEN="C:/program files/doxygen/bin/doxygen.exe"
312 # Optional: To build compressed html help format .chm and use it as online help format.
313 # You will have to download and install the html help compiler from:
315 # http://msdn.microsoft.com/library/default.asp?url=/library/en-us/htmlhelp/html
316 # /hwMicrosoftHTMLHelpDownloads.asp
318 # Then point HHC_DIR to the html help dir (where hhc.exe resides).
320 # If you don't want the online help (or don't have the tools),
321 # comment this line out, so that HHC_DIR isn't defined.
323 #HHC_DIR="C:/Program Files/HTML Help Workshop/"
327 ##### Flags, PATHs and Miscellaneous #####
330 # /W3 warning level 3 (0 less - 4 most, 1 default)
331 # /Zi create .pdb file for debugging
335 # /DEBUG generate debug info
336 # /PROFILE generate map file(s) for profiling
339 # Set PDB_FILE according to your VC++ version
342 # Set up the path to the cygwin binaries
343 CYGWIN_PATH=c:\cygwin\bin
346 # Optional: Use the User's Guide as the online help system
347 # (currently experimental).
349 # If you don't have the User's Guide, comment this line out, so that
350 # ENABLE_WSUG isn't defined.
355 # According to http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=403
356 # XCOPY under Windows NT doesn't support the "/Y" flag. This works
358 # XXX - This apparently doesn't work for some versions of nmake:
359 # http://support.microsoft.com/default.aspx?scid=kb;en-us;86814
360 # It looks like we'll have to call "set copycmd=/y" before we run xcopy.
364 # If you don't want to build libwireshark.dll, you should comment out the
365 # following line. (Note: for plugin support this option must stay activated)
366 ENABLE_LIBWIRESHARK=USE
369 # install (debug) directory for Wireshark GTK1 version (relative to your source dir)
370 INSTALL1_DIR=wireshark-gtk1
373 # install (debug) directory for Wireshark GTK2 version (relative to your source dir)
374 INSTALL2_DIR=wireshark-gtk2
378 ##############################################################################
380 # You should not have to change anything below this comment.
381 # If you do, it's a deficiency in the Makefile.nmake files;
382 # either tell wireshark-dev@wireshark.org about it, including
383 # details of why you had to change it, or fix config.nmake
384 # and any Makefile.nmake files that need to be changed, and
385 # send us the patches, along with details of why the change
388 ##############################################################################
390 !IFDEF ENABLE_LIBWIRESHARK
391 # Uncomment next line to link plugins with the import library of libwireshark.dll
392 LINK_PLUGINS_WITH_LIBWIRESHARK=USE
396 # The RC_VERSION should be comma-separated, not dot-separated,
397 # as per Graham Bloice's message in
399 # http://www.ethereal.com/lists/ethereal-dev/200303/msg00283.html
401 # "The RC_VERSION variable in config.nmake should be comma separated.
402 # This allows the resources to be built correctly and the version
403 # number to be correctly displayed in the explorer properties dialog
404 # for the executables, and XP's tooltip, rather than 0.0.0.0."
407 VERSION=$(VERSION_MAJOR).$(VERSION_MINOR).$(VERSION_MICRO)$(VERSION_EXTRA)
408 RC_VERSION=$(VERSION_MAJOR),$(VERSION_MINOR),$(VERSION_MICRO)
410 WTAP_VERSION=$(WTAP_VERSION_MAJOR).$(WTAP_VERSION_MINOR).$(WTAP_VERSION_MICRO)
411 RC_WTAP_VERSION=$(WTAP_VERSION_MAJOR),$(WTAP_VERSION_MINOR),$(WTAP_VERSION_MICRO)
414 GLIB_CFLAGS=/I$(GLIB_DIR)\include\glib-$(GLIB_VERSION) \
415 /I$(GLIB_DIR)\lib\glib-$(GLIB_VERSION)\include
416 GCC_GLIB_CFLAGS=-I$(GLIB_DIR)\include\glib-$(GLIB_VERSION) \
417 -I$(GLIB_DIR)\lib\glib-$(GLIB_VERSION)\include
418 GLIB_LIBS=$(GLIB_DIR)\lib\glib-$(GLIB_VERSION).lib \
419 $(GLIB_DIR)\lib\gmodule-$(GLIB_VERSION).lib \
420 $(GLIB_DIR)\lib\gobject-$(GLIB_VERSION).lib
423 GTK1_CFLAGS=$(GLIB_CFLAGS) /I$(GTK1_DIR)\include /I$(GTK1_DIR)\include\gdk \
424 /I$(GTK1_DIR)\lib\gtk+\include
425 GTK1_LIBS=$(GTK1_DIR)\lib\gtk.lib \
426 $(GTK1_DIR)\lib\gdk.lib \
430 GTK2_CFLAGS=$(GLIB_CFLAGS) /I$(GTK2_DIR)\include\gtk-2.0 \
431 /I$(GTK2_DIR)\lib\gtk-2.0\include \
432 /I$(GTK2_DIR)\include\atk-1.0 \
433 /I$(GTK2_DIR)\include\cairo \
434 /I$(GTK2_DIR)\include\pango-1.0
435 GTK2_LIBS=$(GTK2_DIR)\lib\gtk-win32-2.0.lib \
436 $(GTK2_DIR)\lib\gdk-win32-2.0.lib \
437 $(GTK2_DIR)\lib\gdk_pixbuf-2.0.lib \
438 $(GTK2_DIR)\lib\pango-1.0.lib \
441 # the lib dir of GTK2.6 didn't changed since 2.4.0
442 !IF "$(GTK2_INST_VERSION)" == "2.8"
446 GTK_WIMP_DIR=DUMMY_TO_USE_WIMP
447 GTK_WIMP_DLLSRC_DIR=$(GTK2_DIR)\lib\gtk-2.0\2.4.0\engines
448 GTK_WIMP_DLLDST_DIR=lib\gtk-2.0\2.4.0\engines
449 GTK_WIMP_RCSRC_DIR=$(GTK2_DIR)\share\themes\MS-Windows\gtk-2.0
450 GTK_WIMP_RCDST_DIR=etc\gtk-2.0
451 !ELSEIF "$(GTK2_INST_VERSION)" == "2.6"
453 GTK_WIMP_DLLSRC_DIR=$(GTK_WIMP_DIR)
454 GTK_WIMP_DLLDST_DIR=lib\gtk-2.0\2.4.0\engines
455 GTK_WIMP_RCSRC_DIR=$(GTK_WIMP_DIR)\Theme\gtk-2.0
456 GTK_WIMP_RCDST_DIR=share\themes\Default\gtk-2.0
457 GTK_THEME_DIR=$(GTK_WIMP_DIR)\Theme\gtk-2.0
460 # the lib dir of PANGO changed in 1.12
461 !IF "$(PANGO_INST_VERSION)" == "1.14"
463 !ELSEIF "$(PANGO_INST_VERSION)" == "1.10"
465 !ELSEIF "$(PANGO_INST_VERSION)" == "1.8"
467 !ELSEIF "$(PANGO_INST_VERSION)" == "1.4"
469 !ELSEIF "$(PANGO_INST_VERSION)" == "1.2"
474 AIRPCAP_CONFIG=^#define HAVE_AIRPCAP 1
475 AIRPDCAP_CONFIG=^#define HAVE_AIRPDCAP 1
482 # Nmake uses carets to escape special characters
483 WINPCAP_CONFIG=^#define HAVE_LIBPCAP 1
484 !IF "$(WINPCAP_VERSION)" == "3.0" || "$(WINPCAP_VERSION)" == "3.1"
485 PCAP_FINDALLDEVS_CONFIG=^#define HAVE_PCAP_FINDALLDEVS 1
486 PCAP_DATALINK_NAME_TO_VAL_CONFIG=^#define HAVE_PCAP_DATALINK_NAME_TO_VAL 1
487 PCAP_DATALINK_VAL_TO_NAME_CONFIG=^#define HAVE_PCAP_DATALINK_VAL_TO_NAME 1
488 # PCAP_BREAKLOOP won't have any benefit on Win32, but breaks compatibility with 3.0
489 #!IF "$(WINPCAP_VERSION)" == "3.1"
490 #PCAP_BREAKLOOP_CONFIG=^#define HAVE_PCAP_BREAKLOOP 1
492 PCAP_BREAKLOOP_CONFIG=
494 WPCAP_CONSTIFIED_CONFIG=^#define WPCAP_CONSTIFIED 1
496 PCAP_FINDALLDEVS_CONFIG=
497 PCAP_DATALINK_NAME_TO_VAL_CONFIG=
498 PCAP_DATALINK_VAL_TO_NAME_CONFIG=
499 PCAP_BREAKLOOP_CONFIG=
504 PCAP_FINDALLDEVS_CONFIG=
505 PCAP_DATALINK_NAME_TO_VAL_CONFIG=
506 PCAP_DATALINK_VAL_TO_NAME_CONFIG=
507 PCAP_BREAKLOOP_CONFIG=
512 ZLIB_PATH=$(ZLIB_DIR)
513 ZLIB_CFLAGS=/I$(ZLIB_DIR)\include
514 ZLIB_LIBS=$(ZLIB_DIR)\lib\zdll.lib
515 # Nmake uses carets to escape special characters
516 ZLIB_CONFIG=^#define HAVE_LIBZ 1
524 NET_SNMP_CFLAGS=/I$(NET_SNMP_DIR)\include /I$(NET_SNMP_DIR)\win32
525 NET_SNMP_LIBS=$(NET_SNMP_DIR)\win32\lib\release\netsnmp.lib
526 # Nmake uses carets to escape special characters
527 NET_SNMP_CONFIG=^#define HAVE_NET_SNMP 1
535 ADNS_PATH=$(ADNS_DIR)\adns_win32\lib
536 ADNS_CFLAGS=/I$(ADNS_DIR)\src /I$(ADNS_DIR)\adns_win32
537 ADNS_LIBS=$(ADNS_DIR)\adns_win32\lib\adns_dll.lib
538 # Nmake uses carets to escape special characters
539 ADNS_CONFIG=^#define HAVE_GNU_ADNS 1
547 KFW_PATH=$(KFW_DIR)\bin
548 KFW_CFLAGS=/I$(KFW_DIR)\inc
549 KFW_LIBS=$(KFW_DIR)\lib\krb5_32.lib
550 # Nmake uses carets to escape special characters
551 KFW_CONFIG=^#define HAVE_MIT_KERBEROS 1
559 PCRE_PATH=$(PCRE_DIR)\bin
560 PCRE_CFLAGS=/I$(PCRE_DIR)\include
561 PCRE_LIBS=$(PCRE_DIR)\lib\pcre.lib
562 # Nmake uses carets to escape special characters
563 PCRE_CONFIG=^#define HAVE_LIBPCRE 1
571 NETTLE_CFLAGS=/I$(NETTLE_DIR)
572 NETTLE_LIBS=$(NETTLE_DIR)\libnettle.lib
573 # Nmake uses carets to escape special characters
574 NETTLE_CONFIG=^#define HAVE_LIBNETTLE 1
582 GNUTLS_PATH=$(GNUTLS_DIR)
583 GNUTLS_CFLAGS=/I$(GNUTLS_DIR)\include
585 $(GNUTLS_DIR)\bin\libtasn1-3.lib \
586 $(GNUTLS_DIR)\bin\libgpg-error-0.lib \
587 $(GNUTLS_DIR)\bin\libgcrypt-11.lib \
588 $(GNUTLS_DIR)\bin\libgnutls-14.lib
589 # Nmake uses carets to escape special characters
590 GNUTLS_CONFIG=^#define HAVE_LIBGNUTLS 1
591 LIBGCRYPT_CONFIG=^#define HAVE_LIBGCRYPT 1
600 LUA_CFLAGS=/I$(LUA_DIR)\include
601 LUA_LIBS=$(LUA_DIR)\lib\dll\lua5.1.lib
602 # Nmake uses carets to escape special characters
603 LUA_CONFIG=^#define HAVE_LUA 1
604 LUA_VERSION=^#define HAVE_LUA_5_1 1
612 # Nmake uses carets to escape special characters
613 PORTAUDIO_CONFIG=^#define HAVE_LIBPORTAUDIO 1
614 !IF "$(PORTAUDIO_VERSION)" == "18"
615 # V18 uses API version 1 and v19 API version 2
616 PORTAUDIO_CFLAGS=/I$(PORTAUDIO_DIR)\pa_common
617 PORTAUDIO_API_CONFIG=^#define PORTAUDIO_API_1 1
619 PORTAUDIO_CFLAGS=/I$(PORTAUDIO_DIR)\include /I$(PORTAUDIO_DIR)\src\common
628 HHC_CFLAGS=/I$(HHC_DIR)\include -DHHC_DIR
629 HHC_LIBS=$(HHC_DIR)\lib\htmlhelp.lib
635 !IFDEF ENABLE_LIBWIRESHARK
636 LIBWIRESHARK_CONFIG=^#define HAVE_LIBWIRESHARKDLL 1
642 WSUG_CFLAGS=-DENABLE_WSUG
648 PATH=$(PATH);$(CYGWIN_PATH);$(GLIB_DIR)\bin;$(GETTEXT_DIR)\bin;$(ICONV_DIR)\bin;$(ZLIB_PATH);$(ADNS_PATH)