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