Support for X.500 strong authentication - used by DAP, DISP, DSP and DOP.
[obnox/wireshark/wip.git] / config.nmake
1 # $Id$
2
3 # Some more informations about the settings in this file, can be found 
4 # in the file README.win32.
5
6 # The current Wireshark version
7 # VERSION_EXTRA can be used for custom builds, e.g. "-SVN-12345"
8 VERSION_MAJOR=0
9 VERSION_MINOR=99
10 VERSION_MICRO=4
11 VERSION_EXTRA=
12 VERSION=$(VERSION_MAJOR).$(VERSION_MINOR).$(VERSION_MICRO)$(VERSION_EXTRA)
13
14 #
15 # The RC_VERSION should be comma-separated, not dot-separated, 
16 # as per Graham Bloice's message in
17 #
18 #       http://www.ethereal.com/lists/ethereal-dev/200303/msg00283.html
19 #
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."
24 #
25 RC_VERSION=$(VERSION_MAJOR),$(VERSION_MINOR),$(VERSION_MICRO)
26
27 # The version of the wiretap library
28 WTAP_VERSION=0.3
29 RC_WTAP_VERSION=0,3
30
31 #
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.
35 #
36 # If you're not building with WinPcap at all, don't set it (comment
37 # out or remove the line that sets it).
38 #
39 WINPCAP_VERSION=3.1
40
41
42 # Directory, where your User's Guide reside, relative to the source dir.
43 # (currently unused)
44 #
45 # If you don't have the User's Guide, comment this line out, so that 
46 # WIRESHARK_EUG_DIR isn't defined.
47 #
48 #WIRESHARK_EUG_DIR=docbook/eug_html_chunked
49
50
51 # Base directory, where your libraries reside, which needs to be 
52 # compiling the sources. This is only inside this file.
53 #
54 WIRESHARK_LIBS=C:\wireshark-win32-libs
55
56 #
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.
60 #
61 GLIB_VERSION=2.0
62 GLIB_DIR=$(WIRESHARK_LIBS)\glib
63
64 #
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.
69 #
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.
72
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 
76 # reside.
77 #
78 GTK1_DIR=$(WIRESHARK_LIBS)\gtk+
79 GTK2_DIR=$(WIRESHARK_LIBS)\gtk2
80
81 #
82 # If you have gnutls set this to the pathname where the lib and include files
83 # are stored.
84 # This enable ssl decryption
85 GNUTLS_DIR=$(WIRESHARK_LIBS)\gnutls-1.5.0-1
86
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.
90 #
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
96 GTK2_INST_VERSION=2.6
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
101
102 #
103 # If you have GTK-Wimp, set this to the pathname of the directory in
104 # which the files are stored.
105 #
106 # If you don't have GTK-Wimp, comment this line out, so that GTK-Wimp isn't
107 # defined.
108 #
109 # Please note: GTK 2.8 (and later?) includes GTK-Wimp
110 # (in this case these GTK-Wimp related settings will have no effect)
111 #
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
114
115 #
116 # If you have Zlib, set this to the pathname of the directory in
117 # which the Zlib headers and .lib file are stored.
118 #
119 # If you don't have Zlib, comment this line out, so that Zlib isn't
120 # defined.
121 #
122 ZLIB_DIR=$(WIRESHARK_LIBS)\zlib123-dll
123
124 #
125 # Set PCAP_DIR to the pathname of the directory in which the WinPcap
126 # developer's pack resides
127 #
128 PCAP_DIR=$(WIRESHARK_LIBS)\WPdpack
129
130 #
131 # Set NET_SNMP_DIR to the pathname of the directory in which the
132 # Net-SNMP include files and library resides.
133 #
134 NET_SNMP_DIR=$(WIRESHARK_LIBS)\net-snmp-5.3.1
135
136 #
137 # If you have GNU ADNS, set this to the pathname of the directory in
138 # which the GNU ADNS .lib file is stored.
139 #
140 # If you don't have GNU ADNS, comment this line out, so that ADNS_DIR
141 # isn't defined.
142 #
143 ADNS_DIR=$(WIRESHARK_LIBS)\adns-1.0-win32-05
144
145 #
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.
149 #
150 # If you don't have PCRE, comment this line out, so that PCRE_DIR
151 # isn't defined.
152 #
153 PCRE_DIR=$(WIRESHARK_LIBS)\pcre-6.4
154
155 # If you have kerberos for windows (mit),
156 # set this pathname to the directory where the kfw package has been
157 # extracted
158 # to enable kerberos/sasl/dcerpc decryption support
159 KFW_DIR=$(WIRESHARK_LIBS)\kfw-2.5
160
161 #
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.
164 #
165 # If you don't have Nettle, comment this line out, so that NETTLE_DIR
166 # isn't defined.
167 #
168 # NETTLE_DIR=$(WIRESHARK_LIBS)\nettle-1.10
169
170 #
171 # If you have the LUA library, set this to the pathname
172 # of the directory in which the LUA package has been extracted.
173 #
174 # If you don't have LUA, comment this line out, so that LUA_DIR
175 # isn't defined.
176 #
177 LUA_DIR=$(WIRESHARK_LIBS)\lua5.1
178
179 #
180 # Set ICONV_DIR to the pathname of the directory in which the
181 # ICONV include files and library resides.
182 #
183 ICONV_DIR=$(WIRESHARK_LIBS)\libiconv-1.9.1.bin.woe32
184
185 #
186 # Set GETTEXT_DIR to the pathname of the directory in which the
187 # GETTEXT include files and library resides.
188 #
189 GETTEXT_DIR=$(WIRESHARK_LIBS)\gettext-runtime-0.13.1
190
191 # Compiler flags
192 # /W3  warning level 3 (0 less - 4 most, 1 default)
193 # /Zi  create .pdb file for debugging
194 LOCAL_CFLAGS=/Zi /W3
195
196 # Linker flags
197 # /DEBUG  generate debug info
198 # /PROFILE generate map file(s) for profiling
199 LOCAL_LDFLAGS=/DEBUG
200
201 # Set PDB_FILE according to your VC++ version 
202 PDB_FILE=vc*.pdb
203
204 # Set up the path to the cygwin binaries
205 CYGWIN_PATH=c:\cygwin\bin
206
207 # Set up the path to some required DLLs
208 DLL_PATH=$(GLIB_DIR)\bin;$(GETTEXT_DIR)\bin;$(ICONV_DIR)\bin
209
210
211 # Set the following commands to find the tools.
212 # The easiest way is to use the corresponding packages from cygwin.
213
214 # command for a shell (typically cygwin's bash package)
215 SH=bash
216
217 # command for perl (typically cygwin's perl package)
218 PERL=perl
219
220 # command for pod2man and pod2html (part of the perl package)
221 POD2MAN=$(SH) pod2man
222 POD2HTML=$(SH) pod2html
223
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)
228
229 # command for python (typically cygwin's python package)
230 PYTHON=env python
231
232 # command for lex/flexx (typically cygwin's flex package)
233 LEX=flex
234
235 # command for yacc/bison (typically cygwin's bison package)
236 YACC=bison
237
238 # To build the installer
239 MAKENSIS="C:/program files/nsis/makensis.exe"
240
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.
244 #
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.
247 #
248 MAKENSIS_MODERN_UI=USE
249
250 # To build the developers documentation with doxygen and dot.
251 # Currently experimental only.
252 # You will have to download and install:
253 #
254 # Doxygen from: www.doxygen.org
255 # Graphviz from: http://www.research.att.com/sw/tools/graphviz/
256 #
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.
259 #
260 #DOXYGEN="C:/program files/doxygen/bin/doxygen.exe"
261
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:
265 #
266 # http://msdn.microsoft.com/library/default.asp?url=/library/en-us/htmlhelp/html
267 # /hwMicrosoftHTMLHelpDownloads.asp 
268 #
269 # Then point HHC_DIR to the html help dir (where hhc.exe resides).
270 #
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.
273 #
274 #HHC_DIR="C:/Program Files/HTML Help Workshop/"
275
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
278 # around that bug.
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.
282 COPYCMD=/y
283
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
287
288 !IFDEF ENABLE_LIBWIRESHARK
289 # Uncomment next line to link plugins with the import library of libwireshark.dll 
290 LINK_PLUGINS_WITH_LIBWIRESHARK=USE
291 !ENDIF
292
293 #
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
300 # was necessary.
301 #
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
309
310 # GTK+ 1.3
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 \
315         $(GLIB_LIBS)
316
317 # GTK+ 2.x
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 \
327         $(GLIB_LIBS)
328
329 # the lib dir of GTK2.6 didn't changed since 2.4.0
330 !IF "$(GTK2_INST_VERSION)" == "2.8"
331 GTK2_LIB_DIR=2.4.0
332 NEED_LIBPNG_DLL=USE
333 NEED_CAIRO_DLL=USE
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"
337 GTK2_LIB_DIR=2.4.0
338 !ELSEIF "$(GTK2_INST_VERSION)" == "2.4"
339 GTK2_LIB_DIR=2.4.0
340 !ELSEIF "$(GTK2_INST_VERSION)" == "2.2"
341 GTK2_LIB_DIR=2.2.0
342 !ENDIF
343
344 # the lib dir of PANGO1.8 didn't changed since 1.4.0
345 !IF "$(PANGO_INST_VERSION)" == "1.10"
346 PANGO_LIB_DIR=1.4.0
347 !ELSEIF "$(PANGO_INST_VERSION)" == "1.8"
348 PANGO_LIB_DIR=1.4.0
349 !ELSEIF "$(PANGO_INST_VERSION)" == "1.4"
350 PANGO_LIB_DIR=1.4.0
351 !ELSEIF "$(PANGO_INST_VERSION)" == "1.2"
352 PANGO_LIB_DIR=1.2.0
353 !ENDIF
354
355 # Enable / disable AirPcap support
356
357 # AIRPCAP_CONFIG=^#define HAVE_AIRPCAP 1
358 AIRPCAP_CONFIG=
359
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
370 #!ELSE
371 PCAP_BREAKLOOP_CONFIG=
372 #!ENDIF
373 WPCAP_CONSTIFIED_CONFIG=^#define WPCAP_CONSTIFIED 1
374 !ELSE
375 PCAP_FINDALLDEVS_CONFIG=
376 PCAP_DATALINK_VAL_TO_NAME_CONFIG=
377 PCAP_BREAKLOOP_CONFIG=
378 WPCAP_CONSTIFIED=
379 !ENDIF
380 !ELSE
381 WINPCAP_CONFIG=
382 PCAP_FINDALLDEVS_CONFIG=
383 PCAP_DATALINK_NAME_TO_VAL_CONFIG=
384 PCAP_DATALINK_VAL_TO_NAME_CONFIG=
385 PCAP_BREAKLOOP_CONFIG=
386 WPCAP_CONSTIFIED=
387 !ENDIF
388
389 !IFDEF ZLIB_DIR
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
395 !else
396 ZLIB_CFLAGS=
397 ZLIB_LIBS=
398 ZLIB_CONFIG=
399 !ENDIF
400
401 !IFDEF ADNS_DIR
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
407 !else
408 ADNS_CFLAGS=
409 ADNS_LIBS=
410 ADNS_CONFIG=
411 !ENDIF
412
413 !IFDEF KFW_DIR
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
419 !else
420 KFW_CFLAGS=
421 KFW_LIBS=
422 KFW_CONFIG=
423 !ENDIF
424
425 !IFDEF PCRE_DIR
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
431 !else
432 PCRE_CFLAGS=
433 PCRE_LIBS=
434 PCRE_CONFIG=
435 !ENDIF
436
437 !IFDEF NETTLE_DIR
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
442 !else
443 NETTLE_CFLAGS=
444 NETTLE_LIBS=
445 NETTLE_CONFIG=
446 !ENDIF
447
448 !IFDEF ENABLE_LIBWIRESHARK
449 LIBWIRESHARK_CONFIG=^#define HAVE_LIBWIRESHARKDLL 1
450 !ELSE
451 LIBWIRESHARK_CONFIG=
452 !ENDIF
453
454 !IFDEF GNUTLS_DIR
455 GNUTLS_PATH=$(GNUTLS_DIR)
456 GNUTLS_CFLAGS=/I$(GNUTLS_DIR)\include
457 GNUTLS_LIBS=\
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
465 !else
466 GNUTLS_CFLAGS=
467 GNUTLS_LIBS=
468 GNUTLS_CONFIG=
469 LIBGCRYPT_CONFIG=
470 !ENDIF
471
472 !IFDEF LUA_DIR
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
478 !else
479 LUA_CFLAGS=
480 LUA_LIBS=
481 LUA_CONFIG=
482 !ENDIF
483
484 # Construct the path
485 PATH=$(PATH);$(CYGWIN_PATH);$(DLL_PATH);$(ZLIB_PATH);$(ADNS_PATH)