Add "proto_tree_add_XXX_format_value()" routines, which are like the
[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 Ethereal version
7 VERSION=0.10.14
8
9 #
10 # The RC_VERSION should be comma-separated, not dot-separated, 
11 # as per Graham Bloice's message in
12 #
13 #       http://www.ethereal.com/lists/ethereal-dev/200303/msg00283.html
14 #
15 # "The RC_VERSION variable in config.nmake should be comma separated. 
16 # This allows the resources to be built correctly and the version
17 # number to be correctly displayed in the explorer properties dialog
18 # for the executables, and XP's tooltip, rather than 0.0.0.0."
19 #
20 RC_VERSION=0,10,14
21
22 # The version of the wiretap library
23 WTAP_VERSION=0.3
24 RC_WTAP_VERSION=0,3
25
26 #
27 # If you're building with WinPcap 2.3, set WINPCAP_VERSION to 2.3; if
28 # you're building with WinPcap 3.0, set it to 3.0; if you're building
29 # with WinPcap 3.1, set it to 3.1.
30 #
31 # If you're not building with WinPcap at all, don't set it (comment
32 # out or remove the line that sets it).
33 #
34 WINPCAP_VERSION=3.1
35
36
37 # Directory, where your User's Guide reside, relative to the source dir.
38 # (currently unused)
39 #
40 # If you don't have the User's Guide, comment this line out, so that 
41 # ETHEREAL_EUG_DIR isn't defined.
42 #
43 #ETHEREAL_EUG_DIR=docbook/eug_html_chunked
44
45
46 # Base directory, where your libraries reside, which needs to be 
47 # compiling the sources. This is only inside this file.
48 #
49 ETHEREAL_LIBS=C:\ethereal-win32-libs
50
51 #
52 # Current versions of GTK+ 1.3 require GLib 2.0.  Earlier versions of
53 # GTK+ 1.3 are buggy; we don't recommend using them, and we don't
54 # support them.  Upgrade to the current version.
55 #
56 GLIB_VERSION=2.0
57 GLIB_DIR=$(ETHEREAL_LIBS)\glib
58
59 #
60 # This presumes that GTK+ 1.3 packages put header files and libraries
61 # directly in a "gtk+" directory, while GTK+ 2.x developer's packages
62 # put header files in an "include\gtk-{version}" directory and libraries
63 # in a "lib\gtk-{version}" directory.
64 #
65 # It's possible, to build both GTK version 1 and 2 at the same time,
66 # or only one of the versions. GTK version 1 is currently recommended.
67
68 # If you want building with GTK+ 1.3, set GTK1_DIR to the pathname of the 
69 # "gtk+" directory; if you want building with GTK+ 2.x, set GTK2_DIR to 
70 # the pathname of the directory in which the "include" and "lib" directories 
71 # reside.
72 #
73 GTK1_DIR=$(ETHEREAL_LIBS)\gtk+
74 GTK2_DIR=$(ETHEREAL_LIBS)\gtk2
75
76 #
77 # If you have gnutls set this to the pathname where the lib and include files
78 # are stored.
79 # This enable ssl decryption
80 #GNUTLS_DIR=$(ETHEREAL_LIBS)\gnutls-win32-msvc\gnutls
81
82 # Declare the version of your gtk2 and pango. (MAJOR + MINOR Version number
83 # but without MICRO version number) 
84 # These macros are used by the nsis installer script and by the setup target.
85 #
86 #GTK2_INST_VERSION=2.2
87 #PANGO_INST_VERSION=1.2
88 #GTK2_INST_VERSION=2.4
89 #PANGO_INST_VERSION=1.4
90 # GTK 2.6 is the mainline since Ethereal 0.10.14
91 GTK2_INST_VERSION=2.6
92 PANGO_INST_VERSION=1.8
93 # Support for GTK 2.8 is currently experimental ...
94 #GTK2_INST_VERSION=2.8
95 #PANGO_INST_VERSION=1.10
96
97 #
98 # If you have GTK-Wimp, set this to the pathname of the directory in
99 # which the files are stored.
100 #
101 # If you don't have GTK-Wimp, comment this line out, so that GTK-Wimp isn't
102 # defined.
103 #
104 # Please note: GTK 2.8 (and later?) includes GTK-Wimp
105 # (in this case these GTK-Wimp related settings will have no effect)
106 #
107 GTK_WIMP_DIR=$(ETHEREAL_LIBS)\gtk-wimp
108 GTK_THEME_DIR=$(GTK_WIMP_DIR)\Theme\gtk-2.0
109
110 #
111 # If you have Zlib, set this to the pathname of the directory in
112 # which the Zlib headers and .lib file are stored.
113 #
114 # If you don't have Zlib, comment this line out, so that Zlib isn't
115 # defined.
116 #
117 ZLIB_DIR=$(ETHEREAL_LIBS)\zlib123-dll
118
119 #
120 # Set PCAP_DIR to the pathname of the directory in which the WinPcap
121 # developer's pack resides
122 #
123 PCAP_DIR=$(ETHEREAL_LIBS)\WPdpack
124
125 #
126 # Set NET_SNMP_DIR to the pathname of the directory in which the
127 # Net-SNMP include files and library resides.
128 #
129 NET_SNMP_DIR=$(ETHEREAL_LIBS)\net-snmp-5.2.2
130
131 #
132 # If you have GNU ADNS, set this to the pathname of the directory in
133 # which the GNU ADNS .lib file is stored.
134 #
135 # If you don't have GNU ADNS, comment this line out, so that ADNS_DIR
136 # isn't defined.
137 #
138 ADNS_DIR=$(ETHEREAL_LIBS)\adns-1.0-win32-05
139
140 #
141 # If you have the PCRE (Perl Compatible Regular Expressions) library,
142 # set this to the pathname of the directory in which the GNUWIN32
143 # pcre-lib package has been extracted.
144 #
145 # If you don't have PCRE, comment this line out, so that PCRE_DIR
146 # isn't defined.
147 #
148 PCRE_DIR=$(ETHEREAL_LIBS)\pcre-6.4
149
150 #
151 # If you have the Nettle encryption library, set this to the pathname
152 # of the directory in which the nettle package has been extracted.
153 #
154 # If you don't have Nettle, comment this line out, so that NETTLE_DIR
155 # isn't defined.
156 #
157 # NETTLE_DIR=$(ETHEREAL_LIBS)\nettle-1.10
158
159 #
160 # If you have the LUA library, set this to the pathname
161 # of the directory in which the LUA package has been extracted.
162 #
163 # If you don't have LUA, comment this line out, so that LUA_DIR
164 # isn't defined.
165 #
166 # LUA_DIR=$(ETHEREAL_LIBS)\lua-5.0.2
167
168 #
169 # Set ICONV_DIR to the pathname of the directory in which the
170 # ICONV include files and library resides.
171 #
172 ICONV_DIR=$(ETHEREAL_LIBS)\libiconv-1.9.1.bin.woe32
173
174 #
175 # Set GETTEXT_DIR to the pathname of the directory in which the
176 # GETTEXT include files and library resides.
177 #
178 GETTEXT_DIR=$(ETHEREAL_LIBS)\gettext-runtime-0.13.1
179
180 # Compiler flags
181 # /W3  warning level 3 (0 less - 4 most, 1 default)
182 # /Zi  create .pdb file for debugging
183 LOCAL_CFLAGS=/Zi /W3
184
185 # Linker flags
186 # /DEBUG  generate debug info
187 # /PROFILE generate map file(s) for profiling
188 LOCAL_LDFLAGS=/DEBUG
189
190 # Set PDB_FILE according to your VC++ version 
191 PDB_FILE=vc*.pdb
192
193 # Set up the path to the cygwin binaries
194 CYGWIN_PATH=c:\cygwin\bin
195
196 # Set up the path to some required DLLs
197 DLL_PATH=$(GLIB_DIR)\bin;$(GETTEXT_DIR)\bin;$(ICONV_DIR)\bin
198
199
200 # Set the following commands to find the tools.
201 # The easiest way is to use the corresponding packages from cygwin.
202
203 # command for a shell (typically cygwin's bash package)
204 SH=bash
205
206 # command for perl (typically cygwin's perl package)
207 PERL=perl
208
209 # command for pod2man and pod2html (part of the perl package)
210 POD2MAN=$(SH) pod2man
211 POD2HTML=$(SH) pod2html
212
213 # command for python (native windows version)
214 #PYTHON="C:/python23/python.exe"
215 # add native python to the path (not needed if cygwin's python is used)
216 #PATH=c:\python23;$(PATH)
217
218 # command for python (typically cygwin's python package)
219 PYTHON=env python
220
221 # command for lex/flexx (typically cygwin's flex package)
222 LEX=flex
223
224 # command for yacc/bison (typically cygwin's bison package)
225 YACC=bison
226
227 # To build the installer
228 MAKENSIS="C:/program files/nsis/makensis.exe"
229
230 # Choose modern style user interface for the installer.
231 # When using this, make sure you have a supported NSIS
232 # version installed. See "packaging\nsis\ethereal.nsi" for details.
233 #
234 # If you don't want the modern UI (or don't have a recent NSIS version),
235 # comment this line out, so that MAKENSIS_MODERN_UI isn't defined.
236 #
237 MAKENSIS_MODERN_UI=USE
238
239 # To build the developers documentation with doxygen and dot.
240 # Currently experimental only.
241 # You will have to download and install:
242 #
243 # Doxygen from: www.doxygen.org
244 # Graphviz from: http://www.research.att.com/sw/tools/graphviz/
245 #
246 # If you don't want the developers documentation (or don't have the tools),
247 # comment this line out, so that DOXYGEN isn't defined.
248 #
249 #DOXYGEN="C:/program files/doxygen/bin/doxygen.exe"
250
251 # To build compressed html help format .chm from doxygen output.
252 # Currently experimental only.
253 # You will have to download and install the html help compiler from:
254 #
255 # http://msdn.microsoft.com/library/default.asp?url=/library/en-us/htmlhelp/html
256 # /hwMicrosoftHTMLHelpDownloads.asp 
257 #
258 # Then point HHC to the html help compiler exe.
259 #
260 # The .chm file(s) are not generated by default. You will have to generate the 
261 # file(s) by calling the Makefile.nmake's target doxygen.chm in the submodules (epan/gk/...).
262 #
263 #HHC="C:/Program Files/HTML Help Workshop/hhc.exe"
264
265 # According to http://bugs.ethereal.com/bugzilla/show_bug.cgi?id=403
266 # XCOPY under Windows NT doesn't support the "/Y" flag.  This works
267 # around that bug.
268 # XXX - This apparently doesn't work for some versions of nmake:
269 # http://support.microsoft.com/default.aspx?scid=kb;en-us;86814
270 # It looks like we'll have to call "set copycmd=/y" before we run xcopy.
271 COPYCMD=/y
272
273 # If you don't want to build libethereal.dll, you should comment out the
274 # following line. (Note: for plugin support this option must stay activated)
275 ENABLE_LIBETHEREAL=USE
276
277 !IFDEF ENABLE_LIBETHEREAL
278 # Uncomment next line to link plugins with the import library of libethereal.dll 
279 LINK_PLUGINS_WITH_LIBETHEREAL=USE
280 !ENDIF
281
282 #
283 # You should not have to change anything below this comment.
284 # If you do, it's a deficiency in the Makefile.nmake files;
285 # either tell ethereal-dev@ethereal.com about it, including
286 # details of why you had to change it, or fix config.nmake
287 # and any Makefile.nmake files that need to be changed, and
288 # send us the patches, along with details of why the change
289 # was necessary.
290 #
291 GLIB_CFLAGS=/I$(GLIB_DIR)\include\glib-$(GLIB_VERSION) \
292         /I$(GLIB_DIR)\lib\glib-$(GLIB_VERSION)\include
293 GCC_GLIB_CFLAGS=-I$(GLIB_DIR)\include\glib-$(GLIB_VERSION) \
294         -I$(GLIB_DIR)\lib\glib-$(GLIB_VERSION)\include
295 GLIB_LIBS=$(GLIB_DIR)\lib\glib-$(GLIB_VERSION).lib \
296         $(GLIB_DIR)\lib\gmodule-$(GLIB_VERSION).lib \
297         $(GLIB_DIR)\lib\gobject-$(GLIB_VERSION).lib
298
299 # GTK+ 1.3
300 GTK1_CFLAGS=$(GLIB_CFLAGS) /I$(GTK1_DIR)\include /I$(GTK1_DIR)\include\gdk \
301         /I$(GTK1_DIR)\lib\gtk+\include
302 GTK1_LIBS=$(GTK1_DIR)\lib\gtk.lib \
303         $(GTK1_DIR)\lib\gdk.lib \
304         $(GLIB_LIBS)
305
306 # GTK+ 2.x
307 GTK2_CFLAGS=$(GLIB_CFLAGS) /I$(GTK2_DIR)\include\gtk-2.0 \
308         /I$(GTK2_DIR)\lib\gtk-2.0\include \
309         /I$(GTK2_DIR)\include\atk-1.0 \
310         /I$(GTK2_DIR)\include\cairo \
311         /I$(GTK2_DIR)\include\pango-1.0
312 GTK2_LIBS=$(GTK2_DIR)\lib\gtk-win32-2.0.lib \
313         $(GTK2_DIR)\lib\gdk-win32-2.0.lib \
314         $(GTK2_DIR)\lib\gdk_pixbuf-2.0.lib \
315         $(GTK2_DIR)\lib\pango-1.0.lib \
316         $(GLIB_LIBS)
317
318 # the lib dir of GTK2.6 didn't changed since 2.4.0
319 !IF "$(GTK2_INST_VERSION)" == "2.8"
320 GTK2_LIB_DIR=2.4.0
321 NEED_LIBPNG_DLL=USE
322 NEED_CAIRO_DLL=USE
323 GTK_WIMP_DIR=$(GTK2_DIR)\lib\gtk-2.0\$(GTK2_LIB_DIR)\engines
324 GTK_THEME_DIR=$(GTK2_DIR)\share\themes\MS-Windows\gtk-2.0
325 !ELSEIF "$(GTK2_INST_VERSION)" == "2.6"
326 GTK2_LIB_DIR=2.4.0
327 !ELSEIF "$(GTK2_INST_VERSION)" == "2.4"
328 GTK2_LIB_DIR=2.4.0
329 !ELSEIF "$(GTK2_INST_VERSION)" == "2.2"
330 GTK2_LIB_DIR=2.2.0
331 !ENDIF
332
333 # the lib dir of PANGO1.8 didn't changed since 1.4.0
334 !IF "$(PANGO_INST_VERSION)" == "1.10"
335 PANGO_LIB_DIR=1.4.0
336 !ELSEIF "$(PANGO_INST_VERSION)" == "1.8"
337 PANGO_LIB_DIR=1.4.0
338 !ELSEIF "$(PANGO_INST_VERSION)" == "1.4"
339 PANGO_LIB_DIR=1.4.0
340 !ELSEIF "$(PANGO_INST_VERSION)" == "1.2"
341 PANGO_LIB_DIR=1.2.0
342 !ENDIF
343
344
345 !IFDEF WINPCAP_VERSION
346 # Nmake uses carets to escape special characters
347 WINPCAP_CONFIG=^#define HAVE_LIBPCAP 1
348 !IF "$(WINPCAP_VERSION)" == "3.0" || "$(WINPCAP_VERSION)" == "3.1"
349 PCAP_FINDALLDEVS_CONFIG=^#define HAVE_PCAP_FINDALLDEVS 1
350 PCAP_DATALINK_NAME_TO_VAL_CONFIG=^#define HAVE_PCAP_DATALINK_NAME_TO_VAL 1
351 PCAP_DATALINK_VAL_TO_NAME_CONFIG=^#define HAVE_PCAP_DATALINK_VAL_TO_NAME 1
352 WPCAP_CONSTIFIED_CONFIG=^#define WPCAP_CONSTIFIED 1
353 !ELSE
354 PCAP_FINDALLDEVS_CONFIG=
355 PCAP_DATALINK_VAL_TO_NAME_CONFIG=
356 WPCAP_CONSTIFIED=
357 !ENDIF
358 !ELSE
359 WINPCAP_CONFIG=
360 PCAP_FINDALLDEVS_CONFIG=
361 PCAP_DATALINK_NAME_TO_VAL_CONFIG=
362 PCAP_DATALINK_VAL_TO_NAME_CONFIG=
363 WPCAP_CONSTIFIED=
364 !ENDIF
365
366 !IFDEF ZLIB_DIR
367 ZLIB_PATH=$(ZLIB_DIR)
368 ZLIB_CFLAGS=/I$(ZLIB_DIR)\include
369 ZLIB_LIBS=$(ZLIB_DIR)\lib\zdll.lib
370 # Nmake uses carets to escape special characters
371 ZLIB_CONFIG=^#define HAVE_LIBZ 1
372 !else
373 ZLIB_CFLAGS=
374 ZLIB_LIBS=
375 ZLIB_CONFIG=
376 !ENDIF
377
378 !IFDEF ADNS_DIR
379 ADNS_PATH=$(ADNS_DIR)\adns_win32\lib
380 ADNS_CFLAGS=/I$(ADNS_DIR)\src /I$(ADNS_DIR)\adns_win32
381 ADNS_LIBS=$(ADNS_DIR)\adns_win32\lib\adns_dll.lib
382 # Nmake uses carets to escape special characters
383 ADNS_CONFIG=^#define HAVE_GNU_ADNS 1
384 !else
385 ADNS_CFLAGS=
386 ADNS_LIBS=
387 ADNS_CONFIG=
388 !ENDIF
389
390 !IFDEF PCRE_DIR
391 PCRE_PATH=$(PCRE_DIR)\bin
392 PCRE_CFLAGS=/I$(PCRE_DIR)\include
393 PCRE_LIBS=$(PCRE_DIR)\lib\pcre.lib
394 # Nmake uses carets to escape special characters
395 PCRE_CONFIG=^#define HAVE_LIBPCRE 1
396 !else
397 PCRE_CFLAGS=
398 PCRE_LIBS=
399 PCRE_CONFIG=
400 !ENDIF
401
402 !IFDEF NETTLE_DIR
403 NETTLE_CFLAGS=/I$(NETTLE_DIR)
404 NETTLE_LIBS=$(NETTLE_DIR)\libnettle.lib
405 # Nmake uses carets to escape special characters
406 NETTLE_CONFIG=^#define HAVE_LIBNETTLE 1
407 !else
408 NETTLE_CFLAGS=
409 NETTLE_LIBS=
410 NETTLE_CONFIG=
411 !ENDIF
412
413 !IFDEF ENABLE_LIBETHEREAL
414 LIBETHEREAL_CONFIG=^#define HAVE_LIBETHEREALDLL 1
415 !ELSE
416 LIBETHEREAL_CONFIG=
417 !ENDIF
418
419 !IFDEF GNUTLS_DIR
420 GNUTLS_PATH=$(GNUTLS_DIR)
421 GNUTLS_CFLAGS=/I$(GNUTLS_DIR)
422 GNUTLS_LIBS=$(GNUTLS_DIR)\gnutls.lib user32.lib
423 # Nmake uses carets to escape special characters
424 GNUTLS_CONFIG=^#define HAVE_LIBGNUTLS 1
425 !else
426 GNUTLS_CFLAGS=
427 GNUTLS_LIBS=
428 GNUTLS_CONFIG=
429 !ENDIF
430
431 !IFDEF LUA_DIR
432 LUA_CFLAGS=/I$(LUA_DIR)\include
433 LUA_LIBS=$(LUA_DIR)\bin\LibLua.lib $(LUA_DIR)\bin\LibLuaLib.lib
434 # Nmake uses carets to escape special characters
435 LUA_CONFIG=^#define HAVE_LUA 1
436 !else
437 LUA_CFLAGS=
438 LUA_LIBS=
439 LUA_CONFIG=
440 !ENDIF
441
442 # Construct the path
443 PATH=$(PATH);$(CYGWIN_PATH);$(DLL_PATH);$(ZLIB_PATH);$(ADNS_PATH)