Make SSRC display (among others) unsigned. Fixes Ethereal bug 1002.
[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=1
9 VERSION_MINOR=1
10 VERSION_MICRO=0
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-win32-msvc\gnutls
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.2.2
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 #
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.
158 #
159 # If you don't have Nettle, comment this line out, so that NETTLE_DIR
160 # isn't defined.
161 #
162 # NETTLE_DIR=$(WIRESHARK_LIBS)\nettle-1.10
163
164 #
165 # If you have the LUA library, set this to the pathname
166 # of the directory in which the LUA package has been extracted.
167 #
168 # If you don't have LUA, comment this line out, so that LUA_DIR
169 # isn't defined.
170 #
171 LUA_DIR=$(WIRESHARK_LIBS)\lua5.1
172
173 #
174 # Set ICONV_DIR to the pathname of the directory in which the
175 # ICONV include files and library resides.
176 #
177 ICONV_DIR=$(WIRESHARK_LIBS)\libiconv-1.9.1.bin.woe32
178
179 #
180 # Set GETTEXT_DIR to the pathname of the directory in which the
181 # GETTEXT include files and library resides.
182 #
183 GETTEXT_DIR=$(WIRESHARK_LIBS)\gettext-runtime-0.13.1
184
185 # Compiler flags
186 # /W3  warning level 3 (0 less - 4 most, 1 default)
187 # /Zi  create .pdb file for debugging
188 LOCAL_CFLAGS=/Zi /W3
189
190 # Linker flags
191 # /DEBUG  generate debug info
192 # /PROFILE generate map file(s) for profiling
193 LOCAL_LDFLAGS=/DEBUG
194
195 # Set PDB_FILE according to your VC++ version 
196 PDB_FILE=vc*.pdb
197
198 # Set up the path to the cygwin binaries
199 CYGWIN_PATH=c:\cygwin\bin
200
201 # Set up the path to some required DLLs
202 DLL_PATH=$(GLIB_DIR)\bin;$(GETTEXT_DIR)\bin;$(ICONV_DIR)\bin
203
204
205 # Set the following commands to find the tools.
206 # The easiest way is to use the corresponding packages from cygwin.
207
208 # command for a shell (typically cygwin's bash package)
209 SH=bash
210
211 # command for perl (typically cygwin's perl package)
212 PERL=perl
213
214 # command for pod2man and pod2html (part of the perl package)
215 POD2MAN=$(SH) pod2man
216 POD2HTML=$(SH) pod2html
217
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)
222
223 # command for python (typically cygwin's python package)
224 PYTHON=env python
225
226 # command for lex/flexx (typically cygwin's flex package)
227 LEX=flex
228
229 # command for yacc/bison (typically cygwin's bison package)
230 YACC=bison
231
232 # To build the installer
233 MAKENSIS="C:/program files/nsis/makensis.exe"
234
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\wireshark.nsi" for details.
238 #
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.
241 #
242 MAKENSIS_MODERN_UI=USE
243
244 # To build the developers documentation with doxygen and dot.
245 # Currently experimental only.
246 # You will have to download and install:
247 #
248 # Doxygen from: www.doxygen.org
249 # Graphviz from: http://www.research.att.com/sw/tools/graphviz/
250 #
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.
253 #
254 #DOXYGEN="C:/program files/doxygen/bin/doxygen.exe"
255
256 # To build compressed html help format .chm and use it as online help format.
257 # Currently experimental only.
258 # You will have to download and install the html help compiler from:
259 #
260 # http://msdn.microsoft.com/library/default.asp?url=/library/en-us/htmlhelp/html
261 # /hwMicrosoftHTMLHelpDownloads.asp 
262 #
263 # Then point HHC_DIR to the html help dir (where hhc.exe resides).
264 #
265 # If you don't want the online help (or don't have the tools),
266 # comment this line out, so that HHC_DIR isn't defined.
267 #
268 #HHC_DIR="C:/Program Files/HTML Help Workshop/"
269
270 # According to http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=403
271 # XCOPY under Windows NT doesn't support the "/Y" flag.  This works
272 # around that bug.
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.
276 COPYCMD=/y
277
278 # If you don't want to build libwireshark.dll, you should comment out the
279 # following line. (Note: for plugin support this option must stay activated)
280 ENABLE_LIBWIRESHARK=USE
281
282 !IFDEF ENABLE_LIBWIRESHARK
283 # Uncomment next line to link plugins with the import library of libwireshark.dll 
284 LINK_PLUGINS_WITH_LIBWIRESHARK=USE
285 !ENDIF
286
287 #
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 wireshark-dev@wireshark.org 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
294 # was necessary.
295 #
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
303
304 # GTK+ 1.3
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 \
309         $(GLIB_LIBS)
310
311 # GTK+ 2.x
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 \
321         $(GLIB_LIBS)
322
323 # the lib dir of GTK2.6 didn't changed since 2.4.0
324 !IF "$(GTK2_INST_VERSION)" == "2.8"
325 GTK2_LIB_DIR=2.4.0
326 NEED_LIBPNG_DLL=USE
327 NEED_CAIRO_DLL=USE
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"
331 GTK2_LIB_DIR=2.4.0
332 !ELSEIF "$(GTK2_INST_VERSION)" == "2.4"
333 GTK2_LIB_DIR=2.4.0
334 !ELSEIF "$(GTK2_INST_VERSION)" == "2.2"
335 GTK2_LIB_DIR=2.2.0
336 !ENDIF
337
338 # the lib dir of PANGO1.8 didn't changed since 1.4.0
339 !IF "$(PANGO_INST_VERSION)" == "1.10"
340 PANGO_LIB_DIR=1.4.0
341 !ELSEIF "$(PANGO_INST_VERSION)" == "1.8"
342 PANGO_LIB_DIR=1.4.0
343 !ELSEIF "$(PANGO_INST_VERSION)" == "1.4"
344 PANGO_LIB_DIR=1.4.0
345 !ELSEIF "$(PANGO_INST_VERSION)" == "1.2"
346 PANGO_LIB_DIR=1.2.0
347 !ENDIF
348
349
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 !IF "$(WINPCAP_VERSION)" == "3.1"
358 PCAP_BREAKLOOP_CONFIG=^#define HAVE_PCAP_BREAKLOOP 1
359 !ELSE
360 PCAP_BREAKLOOP_CONFIG=
361 !ENDIF
362 WPCAP_CONSTIFIED_CONFIG=^#define WPCAP_CONSTIFIED 1
363 !ELSE
364 PCAP_FINDALLDEVS_CONFIG=
365 PCAP_DATALINK_VAL_TO_NAME_CONFIG=
366 PCAP_BREAKLOOP_CONFIG=
367 WPCAP_CONSTIFIED=
368 !ENDIF
369 !ELSE
370 WINPCAP_CONFIG=
371 PCAP_FINDALLDEVS_CONFIG=
372 PCAP_DATALINK_NAME_TO_VAL_CONFIG=
373 PCAP_DATALINK_VAL_TO_NAME_CONFIG=
374 PCAP_BREAKLOOP_CONFIG=
375 WPCAP_CONSTIFIED=
376 !ENDIF
377
378 !IFDEF ZLIB_DIR
379 ZLIB_PATH=$(ZLIB_DIR)
380 ZLIB_CFLAGS=/I$(ZLIB_DIR)\include
381 ZLIB_LIBS=$(ZLIB_DIR)\lib\zdll.lib
382 # Nmake uses carets to escape special characters
383 ZLIB_CONFIG=^#define HAVE_LIBZ 1
384 !else
385 ZLIB_CFLAGS=
386 ZLIB_LIBS=
387 ZLIB_CONFIG=
388 !ENDIF
389
390 !IFDEF ADNS_DIR
391 ADNS_PATH=$(ADNS_DIR)\adns_win32\lib
392 ADNS_CFLAGS=/I$(ADNS_DIR)\src /I$(ADNS_DIR)\adns_win32
393 ADNS_LIBS=$(ADNS_DIR)\adns_win32\lib\adns_dll.lib
394 # Nmake uses carets to escape special characters
395 ADNS_CONFIG=^#define HAVE_GNU_ADNS 1
396 !else
397 ADNS_CFLAGS=
398 ADNS_LIBS=
399 ADNS_CONFIG=
400 !ENDIF
401
402 !IFDEF PCRE_DIR
403 PCRE_PATH=$(PCRE_DIR)\bin
404 PCRE_CFLAGS=/I$(PCRE_DIR)\include
405 PCRE_LIBS=$(PCRE_DIR)\lib\pcre.lib
406 # Nmake uses carets to escape special characters
407 PCRE_CONFIG=^#define HAVE_LIBPCRE 1
408 !else
409 PCRE_CFLAGS=
410 PCRE_LIBS=
411 PCRE_CONFIG=
412 !ENDIF
413
414 !IFDEF NETTLE_DIR
415 NETTLE_CFLAGS=/I$(NETTLE_DIR)
416 NETTLE_LIBS=$(NETTLE_DIR)\libnettle.lib
417 # Nmake uses carets to escape special characters
418 NETTLE_CONFIG=^#define HAVE_LIBNETTLE 1
419 !else
420 NETTLE_CFLAGS=
421 NETTLE_LIBS=
422 NETTLE_CONFIG=
423 !ENDIF
424
425 !IFDEF ENABLE_LIBWIRESHARK
426 LIBWIRESHARK_CONFIG=^#define HAVE_LIBWIRESHARKDLL 1
427 !ELSE
428 LIBWIRESHARK_CONFIG=
429 !ENDIF
430
431 !IFDEF GNUTLS_DIR
432 GNUTLS_PATH=$(GNUTLS_DIR)
433 GNUTLS_CFLAGS=/I$(GNUTLS_DIR)
434 GNUTLS_LIBS=$(GNUTLS_DIR)\gnutls.lib user32.lib
435 # Nmake uses carets to escape special characters
436 GNUTLS_CONFIG=^#define HAVE_LIBGNUTLS 1
437 !else
438 GNUTLS_CFLAGS=
439 GNUTLS_LIBS=
440 GNUTLS_CONFIG=
441 !ENDIF
442
443 !IFDEF LUA_DIR
444 LUA_CFLAGS=/I$(LUA_DIR)\include
445 LUA_LIBS=$(LUA_DIR)\lib\vc6\lua5.1.lib
446 # Nmake uses carets to escape special characters
447 LUA_CONFIG=^#define HAVE_LUA 1
448 LUA_VERSION=^#define HAVE_LUA_5_1 1
449 !else
450 LUA_CFLAGS=
451 LUA_LIBS=
452 LUA_CONFIG=
453 !ENDIF
454
455 # Construct the path
456 PATH=$(PATH);$(CYGWIN_PATH);$(DLL_PATH);$(ZLIB_PATH);$(ADNS_PATH)