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