3 # Some more informations about the settings in this file, can be found
4 # in the file README.win32.
6 # The current Wireshark version
7 # VERSION_EXTRA can be used for custom builds, e.g. "-SVN-12345"
12 VERSION=$(VERSION_MAJOR).$(VERSION_MINOR).$(VERSION_MICRO)$(VERSION_EXTRA)
15 # The RC_VERSION should be comma-separated, not dot-separated,
16 # as per Graham Bloice's message in
18 # http://www.ethereal.com/lists/ethereal-dev/200303/msg00283.html
20 # "The RC_VERSION variable in config.nmake should be comma separated.
21 # This allows the resources to be built correctly and the version
22 # number to be correctly displayed in the explorer properties dialog
23 # for the executables, and XP's tooltip, rather than 0.0.0.0."
25 RC_VERSION=$(VERSION_MAJOR),$(VERSION_MINOR),$(VERSION_MICRO)
27 # The version of the wiretap library
32 # If you're building with WinPcap 2.3, set WINPCAP_VERSION to 2.3; if
33 # you're building with WinPcap 3.0, set it to 3.0; if you're building
34 # with WinPcap 3.1, set it to 3.1.
36 # If you're not building with WinPcap at all, don't set it (comment
37 # out or remove the line that sets it).
42 # Directory, where your User's Guide reside, relative to the source dir.
45 # If you don't have the User's Guide, comment this line out, so that
46 # WIRESHARK_EUG_DIR isn't defined.
48 #WIRESHARK_EUG_DIR=docbook/eug_html_chunked
51 # Base directory, where your libraries reside, which needs to be
52 # compiling the sources. This is only inside this file.
54 WIRESHARK_LIBS=C:\wireshark-win32-libs
57 # Current versions of GTK+ 1.3 require GLib 2.0. Earlier versions of
58 # GTK+ 1.3 are buggy; we don't recommend using them, and we don't
59 # support them. Upgrade to the current version.
62 GLIB_DIR=$(WIRESHARK_LIBS)\glib
65 # This presumes that GTK+ 1.3 packages put header files and libraries
66 # directly in a "gtk+" directory, while GTK+ 2.x developer's packages
67 # put header files in an "include\gtk-{version}" directory and libraries
68 # in a "lib\gtk-{version}" directory.
70 # It's possible, to build both GTK version 1 and 2 at the same time,
71 # or only one of the versions. GTK version 1 is currently recommended.
73 # If you want building with GTK+ 1.3, set GTK1_DIR to the pathname of the
74 # "gtk+" directory; if you want building with GTK+ 2.x, set GTK2_DIR to
75 # the pathname of the directory in which the "include" and "lib" directories
78 GTK1_DIR=$(WIRESHARK_LIBS)\gtk+
79 GTK2_DIR=$(WIRESHARK_LIBS)\gtk2
82 # If you have gnutls set this to the pathname where the lib and include files
84 # This enable ssl decryption
85 GNUTLS_DIR=$(WIRESHARK_LIBS)\gnutls-1.5.0-1
87 # Declare the version of your gtk2 and pango. (MAJOR + MINOR Version number
88 # but without MICRO version number)
89 # These macros are used by the nsis installer script and by the setup target.
91 #GTK2_INST_VERSION=2.2
92 #PANGO_INST_VERSION=1.2
93 #GTK2_INST_VERSION=2.4
94 #PANGO_INST_VERSION=1.4
95 # GTK 2.6 is the mainline since Ethereal 0.10.14
97 PANGO_INST_VERSION=1.8
98 # Support for GTK 2.8 is currently experimental ...
99 #GTK2_INST_VERSION=2.8
100 #PANGO_INST_VERSION=1.10
103 # If you have GTK-Wimp, set this to the pathname of the directory in
104 # which the files are stored.
106 # If you don't have GTK-Wimp, comment this line out, so that GTK-Wimp isn't
109 # Please note: GTK 2.8 (and later?) includes GTK-Wimp
110 # (in this case these GTK-Wimp related settings will have no effect)
112 GTK_WIMP_DIR=$(WIRESHARK_LIBS)\gtk-wimp\gtk-wimp-0.7.0-bin
113 GTK_THEME_DIR=$(GTK_WIMP_DIR)\Theme\gtk-2.0
116 # If you have Zlib, set this to the pathname of the directory in
117 # which the Zlib headers and .lib file are stored.
119 # If you don't have Zlib, comment this line out, so that Zlib isn't
122 ZLIB_DIR=$(WIRESHARK_LIBS)\zlib123-dll
125 # Set PCAP_DIR to the pathname of the directory in which the WinPcap
126 # developer's pack resides
128 PCAP_DIR=$(WIRESHARK_LIBS)\WPdpack
131 # Set NET_SNMP_DIR to the pathname of the directory in which the
132 # Net-SNMP include files and library resides.
134 NET_SNMP_DIR=$(WIRESHARK_LIBS)\net-snmp-5.3.1
137 # If you have GNU ADNS, set this to the pathname of the directory in
138 # which the GNU ADNS .lib file is stored.
140 # If you don't have GNU ADNS, comment this line out, so that ADNS_DIR
143 ADNS_DIR=$(WIRESHARK_LIBS)\adns-1.0-win32-05
146 # If you have the PCRE (Perl Compatible Regular Expressions) library,
147 # set this to the pathname of the directory in which the GNUWIN32
148 # pcre-lib package has been extracted.
150 # If you don't have PCRE, comment this line out, so that PCRE_DIR
153 PCRE_DIR=$(WIRESHARK_LIBS)\pcre-6.4
155 # If you have kerberos for windows (mit),
156 # set this pathname to the directory where the kfw package has been
158 # to enable kerberos/sasl/dcerpc decryption support
159 KFW_DIR=$(WIRESHARK_LIBS)\kfw-2.5
162 # If you have the Nettle encryption library, set this to the pathname
163 # of the directory in which the nettle package has been extracted.
165 # If you don't have Nettle, comment this line out, so that NETTLE_DIR
168 # NETTLE_DIR=$(WIRESHARK_LIBS)\nettle-1.10
171 # If you have the LUA library, set this to the pathname
172 # of the directory in which the LUA package has been extracted.
174 # If you don't have LUA, comment this line out, so that LUA_DIR
177 LUA_DIR=$(WIRESHARK_LIBS)\lua5.1
180 # Set ICONV_DIR to the pathname of the directory in which the
181 # ICONV include files and library resides.
183 ICONV_DIR=$(WIRESHARK_LIBS)\libiconv-1.9.1.bin.woe32
186 # Set GETTEXT_DIR to the pathname of the directory in which the
187 # GETTEXT include files and library resides.
189 GETTEXT_DIR=$(WIRESHARK_LIBS)\gettext-runtime-0.13.1
192 # /W3 warning level 3 (0 less - 4 most, 1 default)
193 # /Zi create .pdb file for debugging
197 # /DEBUG generate debug info
198 # /PROFILE generate map file(s) for profiling
201 # Set PDB_FILE according to your VC++ version
204 # Set up the path to the cygwin binaries
205 CYGWIN_PATH=c:\cygwin\bin
207 # Set up the path to some required DLLs
208 DLL_PATH=$(GLIB_DIR)\bin;$(GETTEXT_DIR)\bin;$(ICONV_DIR)\bin
211 # Set the following commands to find the tools.
212 # The easiest way is to use the corresponding packages from cygwin.
214 # command for a shell (typically cygwin's bash package)
217 # command for perl (typically cygwin's perl package)
220 # command for pod2man and pod2html (part of the perl package)
221 POD2MAN=$(SH) pod2man
222 POD2HTML=$(SH) pod2html
224 # command for python (native windows version)
225 #PYTHON="C:/python24/python.exe"
226 # add native python to the path (not needed if cygwin's python is used)
227 #PATH=c:\python24;$(PATH)
229 # command for python (typically cygwin's python package)
232 # command for lex/flexx (typically cygwin's flex package)
235 # command for yacc/bison (typically cygwin's bison package)
238 # To build the installer
239 MAKENSIS="C:/program files/nsis/makensis.exe"
241 # Choose modern style user interface for the installer.
242 # When using this, make sure you have a supported NSIS
243 # version installed. See "packaging\nsis\wireshark.nsi" for details.
245 # If you don't want the modern UI (or don't have a recent NSIS version),
246 # comment this line out, so that MAKENSIS_MODERN_UI isn't defined.
248 MAKENSIS_MODERN_UI=USE
250 # To build the developers documentation with doxygen and dot.
251 # Currently experimental only.
252 # You will have to download and install:
254 # Doxygen from: www.doxygen.org
255 # Graphviz from: http://www.research.att.com/sw/tools/graphviz/
257 # If you don't want the developers documentation (or don't have the tools),
258 # comment this line out, so that DOXYGEN isn't defined.
260 #DOXYGEN="C:/program files/doxygen/bin/doxygen.exe"
262 # To build compressed html help format .chm and use it as online help format.
263 # Currently experimental only.
264 # You will have to download and install the html help compiler from:
266 # http://msdn.microsoft.com/library/default.asp?url=/library/en-us/htmlhelp/html
267 # /hwMicrosoftHTMLHelpDownloads.asp
269 # Then point HHC_DIR to the html help dir (where hhc.exe resides).
271 # If you don't want the online help (or don't have the tools),
272 # comment this line out, so that HHC_DIR isn't defined.
274 #HHC_DIR="C:/Program Files/HTML Help Workshop/"
276 # According to http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=403
277 # XCOPY under Windows NT doesn't support the "/Y" flag. This works
279 # XXX - This apparently doesn't work for some versions of nmake:
280 # http://support.microsoft.com/default.aspx?scid=kb;en-us;86814
281 # It looks like we'll have to call "set copycmd=/y" before we run xcopy.
284 # If you don't want to build libwireshark.dll, you should comment out the
285 # following line. (Note: for plugin support this option must stay activated)
286 ENABLE_LIBWIRESHARK=USE
288 !IFDEF ENABLE_LIBWIRESHARK
289 # Uncomment next line to link plugins with the import library of libwireshark.dll
290 LINK_PLUGINS_WITH_LIBWIRESHARK=USE
294 # You should not have to change anything below this comment.
295 # If you do, it's a deficiency in the Makefile.nmake files;
296 # either tell wireshark-dev@wireshark.org about it, including
297 # details of why you had to change it, or fix config.nmake
298 # and any Makefile.nmake files that need to be changed, and
299 # send us the patches, along with details of why the change
302 GLIB_CFLAGS=/I$(GLIB_DIR)\include\glib-$(GLIB_VERSION) \
303 /I$(GLIB_DIR)\lib\glib-$(GLIB_VERSION)\include
304 GCC_GLIB_CFLAGS=-I$(GLIB_DIR)\include\glib-$(GLIB_VERSION) \
305 -I$(GLIB_DIR)\lib\glib-$(GLIB_VERSION)\include
306 GLIB_LIBS=$(GLIB_DIR)\lib\glib-$(GLIB_VERSION).lib \
307 $(GLIB_DIR)\lib\gmodule-$(GLIB_VERSION).lib \
308 $(GLIB_DIR)\lib\gobject-$(GLIB_VERSION).lib
311 GTK1_CFLAGS=$(GLIB_CFLAGS) /I$(GTK1_DIR)\include /I$(GTK1_DIR)\include\gdk \
312 /I$(GTK1_DIR)\lib\gtk+\include
313 GTK1_LIBS=$(GTK1_DIR)\lib\gtk.lib \
314 $(GTK1_DIR)\lib\gdk.lib \
318 GTK2_CFLAGS=$(GLIB_CFLAGS) /I$(GTK2_DIR)\include\gtk-2.0 \
319 /I$(GTK2_DIR)\lib\gtk-2.0\include \
320 /I$(GTK2_DIR)\include\atk-1.0 \
321 /I$(GTK2_DIR)\include\cairo \
322 /I$(GTK2_DIR)\include\pango-1.0
323 GTK2_LIBS=$(GTK2_DIR)\lib\gtk-win32-2.0.lib \
324 $(GTK2_DIR)\lib\gdk-win32-2.0.lib \
325 $(GTK2_DIR)\lib\gdk_pixbuf-2.0.lib \
326 $(GTK2_DIR)\lib\pango-1.0.lib \
329 # the lib dir of GTK2.6 didn't changed since 2.4.0
330 !IF "$(GTK2_INST_VERSION)" == "2.8"
334 GTK_WIMP_DIR=$(GTK2_DIR)\lib\gtk-2.0\$(GTK2_LIB_DIR)\engines
335 GTK_THEME_DIR=$(GTK2_DIR)\share\themes\MS-Windows\gtk-2.0
336 !ELSEIF "$(GTK2_INST_VERSION)" == "2.6"
338 !ELSEIF "$(GTK2_INST_VERSION)" == "2.4"
340 !ELSEIF "$(GTK2_INST_VERSION)" == "2.2"
344 # the lib dir of PANGO1.8 didn't changed since 1.4.0
345 !IF "$(PANGO_INST_VERSION)" == "1.10"
347 !ELSEIF "$(PANGO_INST_VERSION)" == "1.8"
349 !ELSEIF "$(PANGO_INST_VERSION)" == "1.4"
351 !ELSEIF "$(PANGO_INST_VERSION)" == "1.2"
355 # Enable / disable AirPcap support
357 # AIRPCAP_CONFIG=^#define HAVE_AIRPCAP 1
360 !IFDEF WINPCAP_VERSION
361 # Nmake uses carets to escape special characters
362 WINPCAP_CONFIG=^#define HAVE_LIBPCAP 1
363 !IF "$(WINPCAP_VERSION)" == "3.0" || "$(WINPCAP_VERSION)" == "3.1"
364 PCAP_FINDALLDEVS_CONFIG=^#define HAVE_PCAP_FINDALLDEVS 1
365 PCAP_DATALINK_NAME_TO_VAL_CONFIG=^#define HAVE_PCAP_DATALINK_NAME_TO_VAL 1
366 PCAP_DATALINK_VAL_TO_NAME_CONFIG=^#define HAVE_PCAP_DATALINK_VAL_TO_NAME 1
367 # PCAP_BREAKLOOP won't have any benefit on Win32, but breaks compatibility with 3.0
368 #!IF "$(WINPCAP_VERSION)" == "3.1"
369 #PCAP_BREAKLOOP_CONFIG=^#define HAVE_PCAP_BREAKLOOP 1
371 PCAP_BREAKLOOP_CONFIG=
373 WPCAP_CONSTIFIED_CONFIG=^#define WPCAP_CONSTIFIED 1
375 PCAP_FINDALLDEVS_CONFIG=
376 PCAP_DATALINK_VAL_TO_NAME_CONFIG=
377 PCAP_BREAKLOOP_CONFIG=
382 PCAP_FINDALLDEVS_CONFIG=
383 PCAP_DATALINK_NAME_TO_VAL_CONFIG=
384 PCAP_DATALINK_VAL_TO_NAME_CONFIG=
385 PCAP_BREAKLOOP_CONFIG=
390 ZLIB_PATH=$(ZLIB_DIR)
391 ZLIB_CFLAGS=/I$(ZLIB_DIR)\include
392 ZLIB_LIBS=$(ZLIB_DIR)\lib\zdll.lib
393 # Nmake uses carets to escape special characters
394 ZLIB_CONFIG=^#define HAVE_LIBZ 1
402 ADNS_PATH=$(ADNS_DIR)\adns_win32\lib
403 ADNS_CFLAGS=/I$(ADNS_DIR)\src /I$(ADNS_DIR)\adns_win32
404 ADNS_LIBS=$(ADNS_DIR)\adns_win32\lib\adns_dll.lib
405 # Nmake uses carets to escape special characters
406 ADNS_CONFIG=^#define HAVE_GNU_ADNS 1
414 KFW_PATH=$(KFW_DIR)\bin
415 KFW_CFLAGS=/I$(KFW_DIR)\inc
416 KFW_LIBS=$(KFW_DIR)\lib\krb5_32.lib
417 # Nmake uses carets to escape special characters
418 KFW_CONFIG=^#define HAVE_MIT_KERBEROS 1
426 PCRE_PATH=$(PCRE_DIR)\bin
427 PCRE_CFLAGS=/I$(PCRE_DIR)\include
428 PCRE_LIBS=$(PCRE_DIR)\lib\pcre.lib
429 # Nmake uses carets to escape special characters
430 PCRE_CONFIG=^#define HAVE_LIBPCRE 1
438 NETTLE_CFLAGS=/I$(NETTLE_DIR)
439 NETTLE_LIBS=$(NETTLE_DIR)\libnettle.lib
440 # Nmake uses carets to escape special characters
441 NETTLE_CONFIG=^#define HAVE_LIBNETTLE 1
448 !IFDEF ENABLE_LIBWIRESHARK
449 LIBWIRESHARK_CONFIG=^#define HAVE_LIBWIRESHARKDLL 1
455 GNUTLS_PATH=$(GNUTLS_DIR)
456 GNUTLS_CFLAGS=/I$(GNUTLS_DIR)\include
458 $(GNUTLS_DIR)\bin\libtasn1-3.lib \
459 $(GNUTLS_DIR)\bin\libgpg-error-0.lib \
460 $(GNUTLS_DIR)\bin\libgcrypt-11.lib \
461 $(GNUTLS_DIR)\bin\libgnutls-14.lib
462 # Nmake uses carets to escape special characters
463 GNUTLS_CONFIG=^#define HAVE_LIBGNUTLS 1
464 LIBGCRYPT_CONFIG=^#define HAVE_LIBGCRYPT 1
473 LUA_CFLAGS=/I$(LUA_DIR)\include
474 LUA_LIBS=$(LUA_DIR)\lib\vc6\lua5.1.lib
475 # Nmake uses carets to escape special characters
476 LUA_CONFIG=^#define HAVE_LUA 1
477 LUA_VERSION=^#define HAVE_LUA_5_1 1
485 PATH=$(PATH);$(CYGWIN_PATH);$(DLL_PATH);$(ZLIB_PATH);$(ADNS_PATH)