3 # Some more informations about the settings in this file, can be found
4 # in the file README.win32.
6 # The current Ethereal 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 # ETHEREAL_EUG_DIR isn't defined.
48 #ETHEREAL_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 ETHEREAL_LIBS=C:\ethereal-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=$(ETHEREAL_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=$(ETHEREAL_LIBS)\gtk+
79 GTK2_DIR=$(ETHEREAL_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=$(ETHEREAL_LIBS)\gnutls-win32-msvc\gnutls
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=$(ETHEREAL_LIBS)\gtk-wimp
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=$(ETHEREAL_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=$(ETHEREAL_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=$(ETHEREAL_LIBS)\net-snmp-5.2.2
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=$(ETHEREAL_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=$(ETHEREAL_LIBS)\pcre-6.4
156 # If you have the Nettle encryption library, set this to the pathname
157 # of the directory in which the nettle package has been extracted.
159 # If you don't have Nettle, comment this line out, so that NETTLE_DIR
162 # NETTLE_DIR=$(ETHEREAL_LIBS)\nettle-1.10
165 # If you have the LUA library, set this to the pathname
166 # of the directory in which the LUA package has been extracted.
168 # If you don't have LUA, comment this line out, so that LUA_DIR
171 LUA_DIR=$(ETHEREAL_LIBS)\lua5.1
174 # Set ICONV_DIR to the pathname of the directory in which the
175 # ICONV include files and library resides.
177 ICONV_DIR=$(ETHEREAL_LIBS)\libiconv-1.9.1.bin.woe32
180 # Set GETTEXT_DIR to the pathname of the directory in which the
181 # GETTEXT include files and library resides.
183 GETTEXT_DIR=$(ETHEREAL_LIBS)\gettext-runtime-0.13.1
186 # /W3 warning level 3 (0 less - 4 most, 1 default)
187 # /Zi create .pdb file for debugging
191 # /DEBUG generate debug info
192 # /PROFILE generate map file(s) for profiling
195 # Set PDB_FILE according to your VC++ version
198 # Set up the path to the cygwin binaries
199 CYGWIN_PATH=c:\cygwin\bin
201 # Set up the path to some required DLLs
202 DLL_PATH=$(GLIB_DIR)\bin;$(GETTEXT_DIR)\bin;$(ICONV_DIR)\bin
205 # Set the following commands to find the tools.
206 # The easiest way is to use the corresponding packages from cygwin.
208 # command for a shell (typically cygwin's bash package)
211 # command for perl (typically cygwin's perl package)
214 # command for pod2man and pod2html (part of the perl package)
215 POD2MAN=$(SH) pod2man
216 POD2HTML=$(SH) pod2html
218 # command for python (native windows version)
219 #PYTHON="C:/python23/python.exe"
220 # add native python to the path (not needed if cygwin's python is used)
221 #PATH=c:\python23;$(PATH)
223 # command for python (typically cygwin's python package)
226 # command for lex/flexx (typically cygwin's flex package)
229 # command for yacc/bison (typically cygwin's bison package)
232 # To build the installer
233 MAKENSIS="C:/program files/nsis/makensis.exe"
235 # Choose modern style user interface for the installer.
236 # When using this, make sure you have a supported NSIS
237 # version installed. See "packaging\nsis\ethereal.nsi" for details.
239 # If you don't want the modern UI (or don't have a recent NSIS version),
240 # comment this line out, so that MAKENSIS_MODERN_UI isn't defined.
242 MAKENSIS_MODERN_UI=USE
244 # To build the developers documentation with doxygen and dot.
245 # Currently experimental only.
246 # You will have to download and install:
248 # Doxygen from: www.doxygen.org
249 # Graphviz from: http://www.research.att.com/sw/tools/graphviz/
251 # If you don't want the developers documentation (or don't have the tools),
252 # comment this line out, so that DOXYGEN isn't defined.
254 #DOXYGEN="C:/program files/doxygen/bin/doxygen.exe"
256 # To build compressed html help format .chm from doxygen output.
257 # Currently experimental only.
258 # You will have to download and install the html help compiler from:
260 # http://msdn.microsoft.com/library/default.asp?url=/library/en-us/htmlhelp/html
261 # /hwMicrosoftHTMLHelpDownloads.asp
263 # Then point HHC to the html help compiler exe.
265 # The .chm file(s) are not generated by default. You will have to generate the
266 # file(s) by calling the Makefile.nmake's target doxygen.chm in the submodules (epan/gk/...).
268 #HHC="C:/Program Files/HTML Help Workshop/hhc.exe"
270 # According to http://bugs.ethereal.com/bugzilla/show_bug.cgi?id=403
271 # XCOPY under Windows NT doesn't support the "/Y" flag. This works
273 # XXX - This apparently doesn't work for some versions of nmake:
274 # http://support.microsoft.com/default.aspx?scid=kb;en-us;86814
275 # It looks like we'll have to call "set copycmd=/y" before we run xcopy.
278 # If you don't want to build libethereal.dll, you should comment out the
279 # following line. (Note: for plugin support this option must stay activated)
280 ENABLE_LIBETHEREAL=USE
282 !IFDEF ENABLE_LIBETHEREAL
283 # Uncomment next line to link plugins with the import library of libethereal.dll
284 LINK_PLUGINS_WITH_LIBETHEREAL=USE
288 # You should not have to change anything below this comment.
289 # If you do, it's a deficiency in the Makefile.nmake files;
290 # either tell ethereal-dev@ethereal.com about it, including
291 # details of why you had to change it, or fix config.nmake
292 # and any Makefile.nmake files that need to be changed, and
293 # send us the patches, along with details of why the change
296 GLIB_CFLAGS=/I$(GLIB_DIR)\include\glib-$(GLIB_VERSION) \
297 /I$(GLIB_DIR)\lib\glib-$(GLIB_VERSION)\include
298 GCC_GLIB_CFLAGS=-I$(GLIB_DIR)\include\glib-$(GLIB_VERSION) \
299 -I$(GLIB_DIR)\lib\glib-$(GLIB_VERSION)\include
300 GLIB_LIBS=$(GLIB_DIR)\lib\glib-$(GLIB_VERSION).lib \
301 $(GLIB_DIR)\lib\gmodule-$(GLIB_VERSION).lib \
302 $(GLIB_DIR)\lib\gobject-$(GLIB_VERSION).lib
305 GTK1_CFLAGS=$(GLIB_CFLAGS) /I$(GTK1_DIR)\include /I$(GTK1_DIR)\include\gdk \
306 /I$(GTK1_DIR)\lib\gtk+\include
307 GTK1_LIBS=$(GTK1_DIR)\lib\gtk.lib \
308 $(GTK1_DIR)\lib\gdk.lib \
312 GTK2_CFLAGS=$(GLIB_CFLAGS) /I$(GTK2_DIR)\include\gtk-2.0 \
313 /I$(GTK2_DIR)\lib\gtk-2.0\include \
314 /I$(GTK2_DIR)\include\atk-1.0 \
315 /I$(GTK2_DIR)\include\cairo \
316 /I$(GTK2_DIR)\include\pango-1.0
317 GTK2_LIBS=$(GTK2_DIR)\lib\gtk-win32-2.0.lib \
318 $(GTK2_DIR)\lib\gdk-win32-2.0.lib \
319 $(GTK2_DIR)\lib\gdk_pixbuf-2.0.lib \
320 $(GTK2_DIR)\lib\pango-1.0.lib \
323 # the lib dir of GTK2.6 didn't changed since 2.4.0
324 !IF "$(GTK2_INST_VERSION)" == "2.8"
328 GTK_WIMP_DIR=$(GTK2_DIR)\lib\gtk-2.0\$(GTK2_LIB_DIR)\engines
329 GTK_THEME_DIR=$(GTK2_DIR)\share\themes\MS-Windows\gtk-2.0
330 !ELSEIF "$(GTK2_INST_VERSION)" == "2.6"
332 !ELSEIF "$(GTK2_INST_VERSION)" == "2.4"
334 !ELSEIF "$(GTK2_INST_VERSION)" == "2.2"
338 # the lib dir of PANGO1.8 didn't changed since 1.4.0
339 !IF "$(PANGO_INST_VERSION)" == "1.10"
341 !ELSEIF "$(PANGO_INST_VERSION)" == "1.8"
343 !ELSEIF "$(PANGO_INST_VERSION)" == "1.4"
345 !ELSEIF "$(PANGO_INST_VERSION)" == "1.2"
350 !IFDEF WINPCAP_VERSION
351 # Nmake uses carets to escape special characters
352 WINPCAP_CONFIG=^#define HAVE_LIBPCAP 1
353 !IF "$(WINPCAP_VERSION)" == "3.0" || "$(WINPCAP_VERSION)" == "3.1"
354 PCAP_FINDALLDEVS_CONFIG=^#define HAVE_PCAP_FINDALLDEVS 1
355 PCAP_DATALINK_NAME_TO_VAL_CONFIG=^#define HAVE_PCAP_DATALINK_NAME_TO_VAL 1
356 PCAP_DATALINK_VAL_TO_NAME_CONFIG=^#define HAVE_PCAP_DATALINK_VAL_TO_NAME 1
357 WPCAP_CONSTIFIED_CONFIG=^#define WPCAP_CONSTIFIED 1
359 PCAP_FINDALLDEVS_CONFIG=
360 PCAP_DATALINK_VAL_TO_NAME_CONFIG=
365 PCAP_FINDALLDEVS_CONFIG=
366 PCAP_DATALINK_NAME_TO_VAL_CONFIG=
367 PCAP_DATALINK_VAL_TO_NAME_CONFIG=
372 ZLIB_PATH=$(ZLIB_DIR)
373 ZLIB_CFLAGS=/I$(ZLIB_DIR)\include
374 ZLIB_LIBS=$(ZLIB_DIR)\lib\zdll.lib
375 # Nmake uses carets to escape special characters
376 ZLIB_CONFIG=^#define HAVE_LIBZ 1
384 ADNS_PATH=$(ADNS_DIR)\adns_win32\lib
385 ADNS_CFLAGS=/I$(ADNS_DIR)\src /I$(ADNS_DIR)\adns_win32
386 ADNS_LIBS=$(ADNS_DIR)\adns_win32\lib\adns_dll.lib
387 # Nmake uses carets to escape special characters
388 ADNS_CONFIG=^#define HAVE_GNU_ADNS 1
396 PCRE_PATH=$(PCRE_DIR)\bin
397 PCRE_CFLAGS=/I$(PCRE_DIR)\include
398 PCRE_LIBS=$(PCRE_DIR)\lib\pcre.lib
399 # Nmake uses carets to escape special characters
400 PCRE_CONFIG=^#define HAVE_LIBPCRE 1
408 NETTLE_CFLAGS=/I$(NETTLE_DIR)
409 NETTLE_LIBS=$(NETTLE_DIR)\libnettle.lib
410 # Nmake uses carets to escape special characters
411 NETTLE_CONFIG=^#define HAVE_LIBNETTLE 1
418 !IFDEF ENABLE_LIBETHEREAL
419 LIBETHEREAL_CONFIG=^#define HAVE_LIBETHEREALDLL 1
425 GNUTLS_PATH=$(GNUTLS_DIR)
426 GNUTLS_CFLAGS=/I$(GNUTLS_DIR)
427 GNUTLS_LIBS=$(GNUTLS_DIR)\gnutls.lib user32.lib
428 # Nmake uses carets to escape special characters
429 GNUTLS_CONFIG=^#define HAVE_LIBGNUTLS 1
437 LUA_CFLAGS=/I$(LUA_DIR)\include
438 LUA_LIBS=$(LUA_DIR)\lib\vc6\lua5.1.lib
439 # Nmake uses carets to escape special characters
440 LUA_CONFIG=^#define HAVE_LUA 1
441 LUA_VERSION=^#define HAVE_LUA_5_1 1
449 PATH=$(PATH);$(CYGWIN_PATH);$(DLL_PATH);$(ZLIB_PATH);$(ADNS_PATH)