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