Added missing array for hf_jxta_element2_encodingid.
[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 and the Developer's Guide (available online).
5
6
7
8 ##### Versions #####
9
10 # The current Wireshark version
11 # It's highly recommended to leave MAJOR/MINOR/MICRO unchanged
12 VERSION_MAJOR=0
13 VERSION_MINOR=99
14 VERSION_MICRO=9
15 VERSION_BUILD=0
16 # It's recommended to change VERSION_EXTRA for your own custom builds
17 # e.g. "-SVN-12345"
18 VERSION_EXTRA=
19
20 # The version of the wiretap library (recommended: leave unchanged)
21 WTAP_VERSION_MAJOR=0
22 WTAP_VERSION_MINOR=3
23 WTAP_VERSION_MICRO=1
24
25
26
27 ##### Directories #####
28
29
30 # Base directory, where your libraries reside, which are needed to 
31 # compile the sources. This setting is used only inside this file.
32 #
33 WIRESHARK_LIBS=C:\wireshark-win32-libs
34
35
36 # Base directory, where your programs reside. 
37 # This setting is used only inside this file.
38 #
39 PROGRAM_FILES=C:/Program Files
40
41
42
43 ##### Microsoft Visual C / Studio Variant #####
44 # for the different Studios, see: http://en.wikipedia.org/wiki/Microsoft_Visual_Studio
45 # only one of the following MSVC_VARIANT settings should be used
46 # BTW: The "Microsoft Visual C++ Toolkit 2003" DOESN'T WORK for WS!
47
48 # "Microsoft Visual Studio 6.0"
49 # Visual C++ 6.0, _MSC_VER 1200, msvcrt.dll (version 6)
50 MSVC_VARIANT=MSVC6
51
52 # "Microsoft Visual Studio .NET (2002)"
53 # Visual C++ 7.0, _MSC_VER 1300, msvcr70.dll
54 #MSVC_VARIANT=MSVC2002
55
56 # "Microsoft .Net Framework SDK Version 1.0"
57 # needs additional Platform SDK installation
58 # Visual C++ 7.0, _MSC_VER 1300, msvcr70.dll
59 #MSVC_VARIANT=DOTNET10
60
61 # "Microsoft Visual Studio .NET 2003"
62 # Visual C++ 7.1, _MSC_VER 1310, msvcr71.dll
63 #MSVC_VARIANT=MSVC2003
64
65 # "Microsoft .Net Framework SDK Version 1.1"
66 # needs additional Platform SDK installation
67 # Visual C++ 7.1, _MSC_VER 1310, msvcr71.dll
68 #MSVC_VARIANT=DOTNET11
69
70 # "Microsoft Visual Studio 2005"
71 # Visual C++ 8.0, _MSC_VER 1400, msvcr80.dll
72 #MSVC_VARIANT=MSVC2005
73
74 # "Microsoft Visual C++ 2005 Express Edition"
75 # needs additional Platform SDK installation
76 # Visual C++ 8.0, _MSC_VER 1400, msvcr80.dll
77 #MSVC_VARIANT=MSVC2005EE
78
79 # "Microsoft .Net Framework 2.0 SDK"
80 # needs additional Platform SDK installation
81 # Visual C++ 8.0, _MSC_VER 1400, msvcr80.dll
82 #MSVC_VARIANT=DOTNET20
83
84 # "Microsoft Visual C++ 2008 Express Edition"
85 # needs additional Platform SDK installation?
86 # Visual C++ 9.0, _MSC_VER 1500, msvcr90.dll
87 # With this variant, Wireshark will compile but fails to run!
88 #
89 # THIS VARIANT CURRENTLY WON'T WORK - YOU HAVE BEEN WARNED!
90 #MSVC_VARIANT=MSVC2008EE
91
92 #
93 # Optional: To compile some time critical code from assembler instead of C
94 #
95 # If you have the NASM compiler, set this to the NASM executable.
96 # http://nasm.sourceforge.net/
97 #
98 # If you don't have NASM, comment this line out, so that NASM
99 # isn't defined.
100 #
101 #NASM=c:\progs\nasm\nasm.exe
102 NASM=$(WIRESHARK_LIBS)\nasm-2.00\nasm.exe
103
104
105 ##### Libraries #####
106
107 #
108 # Mandatory: GLib settings
109 #
110 # Current versions of GTK+ 1.3 require GLib 2.0.  Earlier versions of
111 # GTK+ 1.3 are buggy; we don't recommend using them, and we don't
112 # support them.  Upgrade to at least GLib 2.0.
113 #
114 GLIB_VERSION=2.0
115 GLIB_DIR=$(WIRESHARK_LIBS)\glib
116
117 #
118 # Mandatory: GTK (& related) settings
119 #
120 # It's possible, to build both GTK version 1 and 2 at the same time,
121 # or only one of the versions. GTK version 2 is recommended.
122
123 # If you want building with GTK+ 1.3, set GTK1_DIR to the pathname of the 
124 # "gtk+" directory; if you want building with GTK+ 2.x, set GTK2_DIR to 
125 # the pathname of the directory in which the "include" and "lib" directories 
126 # reside.
127 #
128 GTK1_DIR=$(WIRESHARK_LIBS)\gtk+
129 GTK2_DIR=$(WIRESHARK_LIBS)\gtk2
130
131 #
132 # Mandatory for GTK >= 2: Version numbers of gtk2 and pango.
133 #
134 # (MAJOR + MINOR Version number but without MICRO version number) 
135 # These macros are used by the nsis installer script and by the setup target.
136 #
137 # GTK 2.10 is the old mainline since Wireshark 0.99.5
138 #  0.99.5: PANGO=1.14; 0.99.6: PANGO=1.16
139 #GTK2_INST_VERSION=2.10
140 #PANGO_INST_VERSION=1.16
141 # GTK 2.12 is the mainline since Wireshark 0.99.7
142 GTK2_INST_VERSION=2.12
143 PANGO_INST_VERSION=1.18
144
145 #
146 # If you have GTK-Wimp, set this to the pathname of the directory in
147 # which the files are stored.
148 #
149 # If you don't have GTK-Wimp, comment this line out, so that GTK-Wimp isn't
150 # defined.
151 #
152 # Please note: GTK 2.8 (and later?) includes GTK-Wimp
153 # (in this case these GTK-Wimp related settings will have no effect)
154 #
155 GTK_WIMP_DIR=$(WIRESHARK_LIBS)\gtk-wimp\gtk-wimp-0.7.0-bin
156
157 #
158 # Optional: WinPcap developer's pack to capture network traffic.
159 #
160 # If you have the WinPcap developer's pack (at least version 3.0), 
161 # set this to the directory in which the WinPcap developer's pack resides.
162 #
163 # If you don't have the WPdpack, comment this line out, so that 
164 # PCAP_DIR isn't defined.
165 #
166 PCAP_DIR=$(WIRESHARK_LIBS)\WPdpack
167
168 #
169 # Optional: WinPcap remote capture support and new API
170 # (pcap_open(), pcap_findalldevs_ex(), etc.)
171 #
172 #PCAP_REMOTE=1
173
174 #
175 # Optional: The ZLib enables unzipping of gzip compressed capture files 
176 # "on the fly".
177 #
178 # If you have Zlib, set this to directory in which the Zlib headers 
179 # and .lib file are stored.
180 #
181 # If you don't have Zlib, comment this line out, so that ZLIB_DIR isn't
182 # defined.
183 #
184 ZLIB_DIR=$(WIRESHARK_LIBS)\zlib123
185
186 #
187 # Optional: the ADNS library enables asynchronous (nonblocking) DNS 
188 # name resolvings.
189 #
190 # If you have GNU ADNS, set this to the directory in which the GNU ADNS 
191 # .lib file is stored.
192 #
193 # If you don't have GNU ADNS, comment this line out, so that ADNS_DIR
194 # isn't defined.
195 #
196 ADNS_DIR=$(WIRESHARK_LIBS)\adns-1.0-win32-05
197
198 #
199 # Optional: the PCRE (Perl Compatible Regular Expressions) library 
200 # enables regular expressions for display filters.
201 #
202 # If you have the PCRE library, set this to the directory in which 
203 # the GNUWIN32 pcre-lib package is stored.
204 #
205 # If you don't have PCRE, comment this line out, so that PCRE_DIR
206 # isn't defined.
207 #
208 PCRE_DIR=$(WIRESHARK_LIBS)\pcre-7.0
209
210 #
211 # Optional: the GNUTLS library enables ssl decryption.
212 #
213 # If you have the GNUTLS library, set this to the directory where 
214 # the lib and include files are stored.
215 #
216 # If you don't have GNUTLS, comment this line out, so that GNUTLS_DIR
217 # isn't defined.
218 #
219 # Platform SDK conflicts with openssl.h header
220 GNUTLS_DIR=$(WIRESHARK_LIBS)\gnutls-1.6.1-1
221
222 #
223 # Optional: the KFW library enables kerberos/sasl/dcerpc decryption.
224 #
225 # If you have the kerberos for windows (mit) library, set this to the 
226 # directory where the kfw package is stored.
227 #
228 # If you don't have KFW, comment this line out, so that KFW_DIR
229 # isn't defined.
230 #
231 KFW_DIR=$(WIRESHARK_LIBS)\kfw-2.5
232
233 #
234 # Optional: the Nettle library enables ??? decryption.
235 #
236 # If you have the Nettle encryption library, set this to the 
237 # directory in which the nettle package is stored.
238 #
239 # If you don't have Nettle, comment this line out, so that NETTLE_DIR
240 # isn't defined.
241 #
242 # NETTLE_DIR=$(WIRESHARK_LIBS)\nettle-1.10
243
244 #
245 # Optional: the LUA library enables scripting support.
246 #
247 # If you have the LUA library, set this to the directory in which 
248 # the LUA package is stored.
249 #
250 # If you don't have LUA, comment this line out, so that LUA_DIR
251 # isn't defined.
252 #
253 LUA_DIR=$(WIRESHARK_LIBS)\lua5.1
254
255 #
256 # Optional: the PORTAUDIO library enables audio output for RTP streams.
257 #
258 # If you have the PORTAUDIO library (used for rtp_player), set this to 
259 # the directory in which the PORTAUDIO library is stored.
260 #
261 # If you don't have PORTAUDIO, comment this line out, so that 
262 # PORTAUDIO_DIR isn't defined.
263 #
264 #PORTAUDIO_DIR=$(WIRESHARK_LIBS)\portaudio_v18_1
265 PORTAUDIO_DIR=$(WIRESHARK_LIBS)\portaudio_v19
266
267 #
268 # Version number of PortAudio
269
270 #PORTAUDIO_VERSION=18
271 PORTAUDIO_VERSION=19
272
273 #
274 # Iconv: Mandatory for Glib >= 2 and <= 2.14.4
275 # [win-iconv statically linked as part of Glib >= 2.14.5]
276 # Set ICONV_DIR to the directory in which the
277 # ICONV include files and library resides.
278 #
279 ##ICONV_DIR=$(WIRESHARK_LIBS)\libiconv-1.9.1.bin.woe32
280
281 #
282 # Mandatory for GTK >= 2: Gettext
283 #
284 # Set GETTEXT_DIR to the directory in which the
285 # GETTEXT include files and library resides.
286 #
287 #GETTEXT_DIR=$(WIRESHARK_LIBS)\gettext-0.14.5
288 GETTEXT_DIR=$(WIRESHARK_LIBS)\gettext-runtime-0.17-1
289 #
290 # Optional: AirPcap developer's pack to capture wireless network traffic 
291 # incl. 802.11 management frames.
292 #
293 # If you have the AirPcap developer's pack, set this to the directory 
294 # in which the AirPcap developer's pack resides.
295 #
296 # If you don't have the AirPcap developer's pack, comment this line out, 
297 # so that AIRPCAP_DIR isn't defined.
298 #
299 AIRPCAP_DIR=$(WIRESHARK_LIBS)\AirPcap_Devpack_1_0_0_594\AirPcap_Devpack
300
301 #
302 # Optional: LIBSMI, System Management Interface 
303 #
304 # Used for oid-name resolution for SNMP and other protocols
305 #
306 SMI_DIR=$(WIRESHARK_LIBS)\libsmi-0.4.5
307
308
309 ##### Tools #####
310
311 # Set the following mandatory commands to find the tools.
312 # The easiest way is to use the corresponding packages from cygwin.
313
314 # Set up the path to the cygwin binaries
315 CYGWIN_PATH=c:\cygwin\bin
316
317 # command for a shell (cygwin's bash package recommended)
318 SH_PROG=bash
319
320 # bash versions after 3.1.6 need the 'igncr' shell option to be able to
321 #  process scripts in windows 'native format' (dos crlf format). 
322 # The following !IF results in the option being used only if it is available
323 #  since using it on bash version 3.1.6 (or earlier) is not required and
324 #  will cause an error message.
325 !if "$(SH_PROG)"=="bash" && [$(CYGWIN_PATH)\bash -c "set -o igncr" 2>nul: ] == 0
326 SH_FLAGS=-o igncr
327 !endif
328
329 SH=$(SH_PROG) $(SH_FLAGS)
330
331
332 # command for perl (cygwin's perl package recommended)
333 PERL=perl
334
335 # command for pod2man and pod2html 
336 # (part of the perl package, usually leave these unchanged)
337 POD2MAN=$(SH) pod2man
338 POD2HTML=$(SH) pod2html
339
340 # command for native windows python (recommended)
341 # both V2.4 and V2.5 should work
342 PYTHON="C:/python24/python.exe"
343 #PYTHON="C:/python25/python.exe"
344 # add native python to the path (not needed if cygwin's python is used)
345 PATH=c:\python24;$(PATH)
346 #PATH=c:\python25;$(PATH)
347
348 # command for python (cygwin's python package, not recommended)
349 #PYTHON=env python
350
351 # command for lex/flexx (cygwin's flex recommended)
352 LEX=flex
353
354 # command for yacc/bison (cygwin's bison recommended)
355 YACC=bison
356
357 #
358 # Optional: To build the NSIS installer.
359 #
360 # If you have the NSIS package, set this to the NSIS executable.
361 #
362 # If you don't have NSIS, comment this line out, so that MAKENSIS
363 # isn't defined.
364 #
365 MAKENSIS="$(PROGRAM_FILES)\nsis\makensis.exe"
366
367 #
368 # Optional: To build the developers API documentation with doxygen and dot.
369 # Currently experimental, outdated and incomplete.
370 #
371 # You will have to download and install:
372 # Doxygen from: http://www.doxygen.org
373 # Graphviz from: http://www.research.att.com/sw/tools/graphviz/
374 #
375 # If you have doxygen, set this to the doxygen executable.
376 #
377 # If you don't want the developers documentation (or don't have the tools),
378 # comment this line out, so that DOXYGEN isn't defined.
379 #
380 #DOXYGEN="$(PROGRAM_FILES)/doxygen/bin/doxygen.exe"
381
382 #
383 # Recommended: Use the compressed html help format .chm as the Wireshark integrated help.
384 #
385 # The required htmlhelp.h and htmlhelp.lib should be included in MSVC_VARIANT > MSVC6.
386 #
387 # For MSVC_VARIANT == MSVC6 you will have to download and install the html help workshop from:
388 #
389 # http://msdn.microsoft.com/library/default.asp?url=/library/en-us/htmlhelp/html
390 # /hwMicrosoftHTMLHelpDownloads.asp 
391 #
392 # Then point HHC_DIR to the html help dir (where hhc.exe resides).
393 #
394 # If you don't want the online help (or don't have the tools),
395 # comment this line out, so that HHC_DIR isn't defined.
396 #
397 HHC_DIR=$(PROGRAM_FILES)/HTML Help Workshop
398
399 #
400 # Optional: To reduce the size of dlls and exes, which is especially useful for USB device distributions (U3, PortableApps)
401 #
402 # If you have the UPX package, set this to the upx.exe executable.
403 #
404 # UPX can be downloaded from:
405 #   http://upx.sourceforge.net/
406 #
407 # If you don't have UPX, or don't want to pack exes and dlls,  
408 # comment this line out, so that UPX isn't defined.
409 #
410
411 UPX=$(WIRESHARK_LIBS)\upx301w\upx.exe
412
413 ##### Flags, PATHs and Miscellaneous #####
414
415 # "convert" the MSVC variant into the required MSC compiler version
416 !IF "$(MSVC_VARIANT)" == "MSVC6"
417 MSC_VER_REQUIRED=1200
418 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2002" || "$(MSVC_VARIANT)" == "DOTNET10"
419 MSC_VER_REQUIRED=1300
420 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2003" || "$(MSVC_VARIANT)" == "DOTNET11"
421 MSC_VER_REQUIRED=1310
422 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2005" || "$(MSVC_VARIANT)" == "MSVC2005EE" || "$(MSVC_VARIANT)" == "DOTNET20"
423 MSC_VER_REQUIRED=1400
424 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2008EE"
425 MSC_VER_REQUIRED=1500
426 !ELSE
427 !ERROR MSVC_VARIANT unknown
428 !ENDIF
429
430 # Compiler flags:
431 # /W3  warning level 3 (0 less - 4 most, 1 default)
432 # /Zi  create .pdb file for debugging
433 # /MD  use "Multithreading Debug" libraries
434 # /D_CRT_SECURE_NO_DEPRECATE don't warn for "insecure" calls, see MSDN "Security Enhancements in the CRT"
435 # /D_CRT_NONSTDC_NO_DEPRECATE don't warn for "Deprecated CRT Functions" as MSDN calls this
436 #
437 !IF "$(MSVC_VARIANT)" == "MSVC6" || "$(MSVC_VARIANT)" == "MSVC2002" || "$(MSVC_VARIANT)" == "DOTNET10" || "$(MSVC_VARIANT)" == "MSVC2003" || "$(MSVC_VARIANT)" == "DOTNET11"
438 LOCAL_CFLAGS=/Zi /W3 /MD /DMSC_VER_REQUIRED=$(MSC_VER_REQUIRED)
439 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2005" || "$(MSVC_VARIANT)" == "MSVC2005EE" || "$(MSVC_VARIANT)" == "DOTNET20" || "$(MSVC_VARIANT)" == "MSVC2008EE"
440 LOCAL_CFLAGS=/Zi /W3 /MD /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE /DMSC_VER_REQUIRED=$(MSC_VER_REQUIRED)
441 !ELSE
442 !ERROR MSVC_VARIANT unknown
443 !ENDIF
444
445 # Linker flags:
446 # /DEBUG  generate debug info
447 # /PROFILE generate map file(s) for profiling
448 # /DEFAULTLIB:xxx use xxx as the standard C library
449 # /NODEFAULTLIB:xxx don't use xxx as the standard C library
450
451 LOCAL_LDFLAGS=/DEBUG 
452
453 PLUGIN_LDFLAGS = /NOLOGO /INCREMENTAL:no /MACHINE:I386 $(LOCAL_LDFLAGS)
454
455 #
456 # According to http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=403
457 # XCOPY under Windows NT doesn't support the "/Y" flag.  This works
458 # around that bug.
459 # XXX - This apparently doesn't work for some versions of nmake:
460 # http://support.microsoft.com/default.aspx?scid=kb;en-us;86814
461 # It looks like we'll have to call "set copycmd=/y" before we run xcopy.
462 COPYCMD=/y
463
464 #
465 # If you don't want to build libwireshark.dll, you should comment out the
466 # following line. (Note: for plugin support this option must stay activated)
467 ENABLE_LIBWIRESHARK=USE
468
469 #
470 # install (debug) directory for Wireshark GTK1 version (relative to your source dir)
471 INSTALL1_DIR=wireshark-gtk1
472
473 #
474 # install (debug) directory for Wireshark GTK2 version (relative to your source dir)
475 INSTALL2_DIR=wireshark-gtk2
476
477
478
479 ##### C-Runtime Redistributable #####
480 #
481 # The C-Runtime since Version 7 must be shipped together with 
482 # the program installer, to avoid missing msvcr*.dll files on
483 # the target machine.
484 #
485 # The location of these files differ on the various compiler 
486 # packages, the following will use the default paths depending
487 # on the package version.
488 #
489 !IF "$(MSVC_VARIANT)" == "MSVC6"
490 # msvcrt.dll will already be available on target machines - nothing additional to install
491
492 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2002"
493 # you probably need to tweak this directory if you don't use the professional edition!
494 MSVCR_DLL=$(PROGRAM_FILES)\Microsoft Visual Studio .NET\Visual Studio .NET Professional - English\msvcr70.dll
495
496 !ELSEIF "$(MSVC_VARIANT)" == "DOTNET10"
497 # no redistributable available for this package!
498
499 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2003"
500 # you probably need to tweak this directory if you don't use the professional edition!
501 MSVCR_DLL=$(PROGRAM_FILES)\Microsoft Visual Studio .NET 2003\Visual Studio .NET Professional 2003 - English\msvcr71.dll
502
503 !ELSEIF "$(MSVC_VARIANT)" == "DOTNET11"
504 # no redistributable available for this package!
505
506 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2005"
507 MSVCR_DLL=$(PROGRAM_FILES)\Microsoft Visual Studio 8\VC\redist\x86\Microsoft.VC80.CRT\*.*
508
509 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2005EE"
510 # you need to download the redistributable package vcredist_x86.exe from Microsoft first,
511 # and copy it to the lib folder!!!
512 VCREDIST_EXE=$(WIRESHARK_LIBS)\vcredist_x86.exe
513
514 !ELSEIF "$(MSVC_VARIANT)" == "DOTNET20"
515 # you need to download the redistributable package vcredist_x86.exe from Microsoft first,
516 # and copy it to the lib folder!!!
517 VCREDIST_EXE=$(WIRESHARK_LIBS)\vcredist_x86.exe
518
519 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2008EE"
520 MSVCR_DLL=$(PROGRAM_FILES)\Microsoft Visual Studio 9.0\VC\redist\x86\Microsoft.VC90.CRT\*.*
521
522 !ELSE
523 !ERROR MSVC_VARIANT unknown
524 !ENDIF
525
526
527
528 ##### Advanced: Docbook/XML documentation generation #####
529 # If you want to generate the Docbook/XML based docs (User's and Developer's 
530 # Guide, ...), you'll need some additional tools / libraries compared to the 
531 # rest of the build process. 
532 #
533 # FOR DETAILED INSTRUCTIONS TO GENERATE THE DOCS, SEE: docbook\readme.txt.
534 #
535 # If you don't call the Makefile.nmake in the docbook dir to generate the 
536 # docs, the following settings in this section will have no effect.
537
538 # formatting objects processor executable
539 # Comment this out if you don't have fop installed or you don't want the docs 
540 # in PDF format.
541 !IFNDEF FOP
542 FOP=fop-0.20.5\fop.bat
543 !ENDIF
544
545 # Additional options to fop.
546 FOP_OPTS=-Xmx256m
547
548 # html help compiler
549 # Comment this out if you don't have hhc.exe or you don't want the docs in 
550 # .chm format.
551 #
552 # Beware: hhc.exe is NOT part of the MSVC packages in HHC_DIR mentioned above,
553 # so you'll need to install the HTML Help Workshop for this.
554 HHC_EXE="$(HHC_DIR)\hhc.exe"
555
556 # html to text converter for text version of release notes, e.g. elinks.
557 # This could also be "lynx", or "true" if neither elinks nor lynx is installed
558 # (cygwin: lynx works, elinks not available, links and true doesn't produce output)
559 #HTML2TXT=elinks -dump -dump-width 72
560 #HTML2TXT=links -dump -width 72
561 HTML2TXT=lynx -dump -width=72 -nolist -stdin
562 #HTML2TXT="true"
563
564 # the XSL processor (part of cygwin's libxslt package)
565 XSLTPROC="xsltproc"
566
567 # the XML validator (part of cygwin's libxml2 package)
568 XMLLINT="xmllint"
569
570
571
572 ##############################################################################
573 #
574 # You should not have to change anything below this comment.
575 # If you do, it's a deficiency in the Makefile.nmake files;
576 # either tell wireshark-dev@wireshark.org about it, including
577 # details of why you had to change it, or fix config.nmake
578 # and any Makefile.nmake files that need to be changed, and
579 # send us the patches, along with details of why the change
580 # was necessary.
581 #
582 ##############################################################################
583
584 #
585 # The RC_VERSION should be comma-separated, not dot-separated, 
586 # as per Graham Bloice's message in
587 #
588 #       http://www.ethereal.com/lists/ethereal-dev/200303/msg00283.html
589 #
590 # "The RC_VERSION variable in config.nmake should be comma separated. 
591 # This allows the resources to be built correctly and the version
592 # number to be correctly displayed in the explorer properties dialog
593 # for the executables, and XP's tooltip, rather than 0.0.0.0."
594 #
595
596 VERSION=$(VERSION_MAJOR).$(VERSION_MINOR).$(VERSION_MICRO)$(VERSION_EXTRA)
597 RC_VERSION=$(VERSION_MAJOR),$(VERSION_MINOR),$(VERSION_MICRO),$(VERSION_BUILD)
598
599 WTAP_VERSION=$(WTAP_VERSION_MAJOR).$(WTAP_VERSION_MINOR).$(WTAP_VERSION_MICRO)
600 RC_WTAP_VERSION=$(WTAP_VERSION_MAJOR),$(WTAP_VERSION_MINOR),$(WTAP_VERSION_MICRO)
601
602
603 GLIB_CFLAGS=/I$(GLIB_DIR)\include\glib-$(GLIB_VERSION) \
604         /I$(GLIB_DIR)\lib\glib-$(GLIB_VERSION)\include
605 GCC_GLIB_CFLAGS=-I$(GLIB_DIR)\include\glib-$(GLIB_VERSION) \
606         -I$(GLIB_DIR)\lib\glib-$(GLIB_VERSION)\include
607 GLIB_LIBS=$(GLIB_DIR)\lib\glib-$(GLIB_VERSION).lib \
608         $(GLIB_DIR)\lib\gmodule-$(GLIB_VERSION).lib \
609         $(GLIB_DIR)\lib\gobject-$(GLIB_VERSION).lib
610
611 # GTK+ 1.3
612 GTK1_CFLAGS=$(GLIB_CFLAGS) /I$(GTK1_DIR)\include /I$(GTK1_DIR)\include\gdk \
613         /I$(GTK1_DIR)\lib\gtk+\include
614 GTK1_LIBS=$(GTK1_DIR)\lib\gtk.lib \
615         $(GTK1_DIR)\lib\gdk.lib \
616         $(GLIB_LIBS)
617
618 # GTK+ 2.x
619 GTK2_CFLAGS=$(GLIB_CFLAGS) /I$(GTK2_DIR)\include\gtk-2.0 \
620         /I$(GTK2_DIR)\lib\gtk-2.0\include \
621         /I$(GTK2_DIR)\include\atk-1.0 \
622         /I$(GTK2_DIR)\include\cairo \
623         /I$(GTK2_DIR)\include\pango-1.0
624 GTK2_LIBS=$(GTK2_DIR)\lib\gtk-win32-2.0.lib \
625         $(GTK2_DIR)\lib\gdk-win32-2.0.lib \
626         $(GTK2_DIR)\lib\gdk_pixbuf-2.0.lib \
627         $(GTK2_DIR)\lib\pango-1.0.lib \
628         $(GLIB_LIBS)
629
630 !IF "$(GTK2_INST_VERSION)" == "2.12"
631 GTK2_LIB_DIR=2.10.0
632 NEED_LIBPNG_DLL=USE
633 NEED_LIBJPEG_DLL=USE
634 NEED_LIBTIFF_DLL=USE
635 NEED_CAIRO_DLL=USE
636 GTK_WIMP_DIR=DUMMY_TO_USE_WIMP
637 GTK_WIMP_DLLSRC_DIR=$(GTK2_DIR)\lib\gtk-2.0\2.10.0\engines
638 GTK_WIMP_DLLDST_DIR=lib\gtk-2.0\2.10.0\engines
639 GTK_WIMP_RCSRC_DIR=$(GTK2_DIR)\share\themes\MS-Windows\gtk-2.0
640 GTK_WIMP_RCDST_DIR=etc\gtk-2.0
641 !ELSEIF "$(GTK2_INST_VERSION)" == "2.10"
642 GTK2_LIB_DIR=2.10.0
643 NEED_LIBPNG_DLL=USE
644 NEED_CAIRO_DLL=USE
645 GTK_WIMP_DIR=DUMMY_TO_USE_WIMP
646 GTK_WIMP_DLLSRC_DIR=$(GTK2_DIR)\lib\gtk-2.0\2.10.0\engines
647 GTK_WIMP_DLLDST_DIR=lib\gtk-2.0\2.10.0\engines
648 GTK_WIMP_RCSRC_DIR=$(GTK2_DIR)\share\themes\MS-Windows\gtk-2.0
649 GTK_WIMP_RCDST_DIR=etc\gtk-2.0
650 !ELSE
651 !ERROR ? Unknown or invalid GTK2_INST_VERSION
652 !ENDIF
653
654 !IF "$(PANGO_INST_VERSION)" == "1.18"
655 PANGO_LIB_DIR=1.5.0
656 !ELSEIF "$(PANGO_INST_VERSION)" == "1.16"
657 PANGO_LIB_DIR=1.5.0
658 !ELSE
659 !ERROR ? Unknown or invalid PANGO_INST_VERSION
660 !ENDIF
661
662 !IFDEF AIRPCAP_DIR
663 AIRPCAP_CONFIG=^#define HAVE_AIRPCAP 1
664 AIRPDCAP_CONFIG=^#define HAVE_AIRPDCAP 1
665 #AIRPCAP_CFLAGS=/I$(AIRPCAP_DIR)\include
666 !ELSE
667 AIRPCAP_CONFIG=
668 AIRPDCAP_CONFIG=
669 !ENDIF
670
671 !IFDEF PCAP_DIR
672 # Nmake uses carets to escape special characters
673 WINPCAP_CONFIG=^#define HAVE_LIBPCAP 1
674 PCAP_FINDALLDEVS_CONFIG=^#define HAVE_PCAP_FINDALLDEVS 1
675 PCAP_DATALINK_NAME_TO_VAL_CONFIG=^#define HAVE_PCAP_DATALINK_NAME_TO_VAL 1
676 PCAP_DATALINK_VAL_TO_NAME_CONFIG=^#define HAVE_PCAP_DATALINK_VAL_TO_NAME 1
677 # PCAP_BREAKLOOP won't have any benefit on Win32, but breaks compatibility with 3.0
678 PCAP_BREAKLOOP_CONFIG=
679 WPCAP_CONSTIFIED_CONFIG=^#define WPCAP_CONSTIFIED 1
680 !ELSE
681 # no WpdPack installed
682 WINPCAP_CONFIG=
683 PCAP_FINDALLDEVS_CONFIG=
684 PCAP_DATALINK_NAME_TO_VAL_CONFIG=
685 PCAP_DATALINK_VAL_TO_NAME_CONFIG=
686 PCAP_BREAKLOOP_CONFIG=
687 WPCAP_CONSTIFIED=
688 !ENDIF
689
690 !IF DEFINED(PCAP_DIR) && DEFINED(PCAP_REMOTE)
691 PCAP_HAVE_REMOTE_CONFIG=^#define HAVE_REMOTE 1
692 PCAP_REMOTE_CONFIG=^#define HAVE_PCAP_REMOTE 1
693 PCAP_OPEN_CONFIG=^#define HAVE_PCAP_OPEN 1
694 PCAP_FINDALLDEVS_EX_CONFIG=^#define HAVE_PCAP_FINDALLDEVS_EX 1
695 PCAP_CREATESRCSTR_CONFIG=^#define HAVE_PCAP_CREATESRCSTR 1
696 PCAP_SETSAMPLING_CONFIG=^#define HAVE_PCAP_SETSAMPLING 1
697 !ELSE
698 PCAP_HAVE_REMOTE_CONFIG=
699 PCAP_REMOTE_CONFIG=
700 PCAP_OPEN_CONFIG=
701 PCAP_FINDALLDEVS_EX_CONFIG=
702 PCAP_CREATESRCSTR_CONFIG=
703 PCAP_SETSAMPLING_CONFIG=
704 !ENDIF
705
706 !IFDEF ZLIB_DIR
707 ZLIB_PATH=$(ZLIB_DIR)
708 ZLIB_CFLAGS=/I$(ZLIB_DIR)\include
709 ZLIB_LIBS=$(ZLIB_DIR)\lib\zdll.lib
710 ZLIB_DLL=$(ZLIB_DIR)\zlib1.dll
711 # Nmake uses carets to escape special characters
712 ZLIB_CONFIG=^#define HAVE_LIBZ 1
713 !else
714 ZLIB_CFLAGS=
715 ZLIB_LIBS=
716 ZLIB_DLL=
717 ZLIB_CONFIG=
718 !ENDIF
719
720 !IFDEF ADNS_DIR
721 ADNS_PATH=$(ADNS_DIR)\adns_win32\lib
722 ADNS_CFLAGS=/I$(ADNS_DIR)\src /I$(ADNS_DIR)\adns_win32
723 ADNS_LIBS=$(ADNS_DIR)\adns_win32\lib\adns_dll.lib
724 # Nmake uses carets to escape special characters
725 ADNS_CONFIG=^#define HAVE_GNU_ADNS 1
726 !else
727 ADNS_CFLAGS=
728 ADNS_LIBS=
729 ADNS_CONFIG=
730 !ENDIF
731
732 !IFDEF KFW_DIR
733 KFW_PATH=$(KFW_DIR)\bin
734 KFW_CFLAGS=/I$(KFW_DIR)\inc
735 KFW_LIBS=$(KFW_DIR)\lib\krb5_32.lib
736 # Nmake uses carets to escape special characters
737 KFW_CONFIG=^#define HAVE_MIT_KERBEROS 1
738 !else
739 KFW_CFLAGS=
740 KFW_LIBS=
741 KFW_CONFIG=
742 !ENDIF
743
744 !IFDEF PCRE_DIR
745 PCRE_PATH=$(PCRE_DIR)\bin
746 PCRE_CFLAGS=/I$(PCRE_DIR)\include
747 PCRE_LIBS=$(PCRE_DIR)\lib\pcre.lib
748 # Nmake uses carets to escape special characters
749 PCRE_CONFIG=^#define HAVE_LIBPCRE 1
750 !else
751 PCRE_CFLAGS=
752 PCRE_LIBS=
753 PCRE_CONFIG=
754 !ENDIF
755
756 !IFDEF NETTLE_DIR
757 NETTLE_CFLAGS=/I$(NETTLE_DIR)
758 NETTLE_LIBS=$(NETTLE_DIR)\libnettle.lib
759 # Nmake uses carets to escape special characters
760 NETTLE_CONFIG=^#define HAVE_LIBNETTLE 1
761 !else
762 NETTLE_CFLAGS=
763 NETTLE_LIBS=
764 NETTLE_CONFIG=
765 !ENDIF
766
767 !IFDEF GNUTLS_DIR
768 GNUTLS_PATH=$(GNUTLS_DIR)
769 # /DNOCRYPT avoids inclusion of Wincrypt.h, avoiding a X509_NAME define clash
770 GNUTLS_CFLAGS=/I$(GNUTLS_DIR)\include /DNOCRYPT
771 GNUTLS_LIBS=\
772         $(GNUTLS_DIR)\bin\libtasn1-3.lib        \
773         $(GNUTLS_DIR)\bin\libgpg-error-0.lib    \
774         $(GNUTLS_DIR)\bin\libgcrypt-11.lib      \
775         $(GNUTLS_DIR)\bin\libgnutls-13.lib
776 # Nmake uses carets to escape special characters
777 GNUTLS_CONFIG=^#define HAVE_LIBGNUTLS 1
778 LIBGCRYPT_CONFIG=^#define HAVE_LIBGCRYPT 1
779 !else
780 GNUTLS_CFLAGS=
781 GNUTLS_LIBS=
782 GNUTLS_CONFIG=
783 LIBGCRYPT_CONFIG=
784 !ENDIF
785
786 !IFDEF LUA_DIR
787 LUA_CFLAGS=/I$(LUA_DIR)\include
788 LUA_LIBS=$(LUA_DIR)\lib\dll\lua5.1.lib
789 # Nmake uses carets to escape special characters
790 LUA_CONFIG=^#define HAVE_LUA 1
791 LUA_VERSION=^#define HAVE_LUA_5_1 1
792 !else
793 LUA_CFLAGS=
794 LUA_LIBS=
795 LUA_CONFIG=
796 !ENDIF
797
798 !IFDEF PORTAUDIO_DIR
799 # Nmake uses carets to escape special characters
800 PORTAUDIO_CONFIG=^#define HAVE_LIBPORTAUDIO 1
801 !IF "$(PORTAUDIO_VERSION)" == "18"
802 # V18 uses API version 1 and v19 API version 2
803 PORTAUDIO_CFLAGS=/I$(PORTAUDIO_DIR)\pa_common
804 PORTAUDIO_API_CONFIG=^#define PORTAUDIO_API_1 1
805 !ELSE
806 PORTAUDIO_CFLAGS=/I$(PORTAUDIO_DIR)\include /I$(PORTAUDIO_DIR)\src\common
807 !ENDIF
808 !ELSE
809 PORTAUDIO_CFLAGS=
810 PORTAUDIO_CONFIG=
811 !ENDIF
812
813 !IFDEF HHC_DIR
814 !IF "$(MSVC_VARIANT)" == "MSVC6"
815 HHC_CFLAGS=/I"$(HHC_DIR)\include" -DHHC_DIR
816 HHC_LIBS="$(HHC_DIR)\lib\htmlhelp.lib"
817 !ELSE
818 HHC_CFLAGS=-DHHC_DIR
819 HHC_LIBS=htmlhelp.lib
820 !ENDIF
821 !ELSE
822 HHC_CFLAGS=
823 HHC_LIBS=
824 !ENDIF
825
826 !IFDEF SMI_DIR
827 SMI_CONFIG=^#define HAVE_LIBSMI 1
828 SMI_CFLAGS=/I$(SMI_DIR)\include
829 SMI_LIBS=$(SMI_DIR)\lib\smi.lib
830 !ELSE
831 SMI_LIBS=
832 SMI_CFLAGS=
833 SMI_CONFIG=
834 !ENDIF
835
836 !IFDEF ENABLE_LIBWIRESHARK
837 LIBWIRESHARK_CONFIG=^#define HAVE_LIBWIRESHARKDLL 1
838 # Link plugins with the import library of libwireshark.dll 
839 LINK_PLUGINS_WITH_LIBWIRESHARK=USE
840 !ELSE
841 LIBWIRESHARK_CONFIG=
842 !ENDIF
843
844 # Construct the path
845 !IFDEF ICONV_DIR
846 PATH=$(PATH);$(CYGWIN_PATH);$(GLIB_DIR)\bin;$(GETTEXT_DIR)\bin;$(ICONV_DIR)\bin;$(ZLIB_PATH);$(ADNS_PATH)
847 !ELSE
848 PATH=$(PATH);$(CYGWIN_PATH);$(GLIB_DIR)\bin;$(GETTEXT_DIR)\bin;$(ZLIB_PATH);$(ADNS_PATH)
849 !ENDIF