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