Move to 1.1.4.
[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 ##### Target platform #####
7 # Only "win32" and "win64" are valid (for now).
8 # This can be defined in the system environment.
9 !IFNDEF WIRESHARK_TARGET_PLATFORM
10 WIRESHARK_TARGET_PLATFORM=win32
11 !ENDIF
12
13 ##### Versions #####
14
15 # The current Wireshark version
16 # It's highly recommended to leave MAJOR/MINOR/MICRO unchanged
17 VERSION_MAJOR=1
18 VERSION_MINOR=1
19 VERSION_MICRO=4
20 VERSION_BUILD=0
21 # It's recommended to change VERSION_EXTRA for your own custom builds
22 # e.g. "-SVN-12345"
23 VERSION_EXTRA=
24
25 # The version of the wiretap library (recommended: leave unchanged)
26 WTAP_VERSION_MAJOR=0
27 WTAP_VERSION_MINOR=3
28 WTAP_VERSION_MICRO=1
29
30
31
32 ##### Directories #####
33
34 #
35 # Base directory, where your libraries reside, which are needed to
36 # compile the sources. This setting is used only inside this file.
37 #
38 WIRESHARK_LIBS=C:\wireshark-$(WIRESHARK_TARGET_PLATFORM)-libs
39
40 #
41 # Base directory, where your programs reside.
42 # This setting is used only inside this file.
43 #
44 PROGRAM_FILES=$(PROGRAMFILES)
45
46 #
47 # Location of the "tools" directory. This affects HTML2TXT below and should
48 # be overridden by makefiles in any subdirectories that use HTML2TXT.
49 !IFNDEF TOOLS_DIR
50 TOOLS_DIR=tools
51 !ENDIF
52
53 #
54 # Machine type for the compiler and linker
55 # TARGET_MACHINE (Used for link /MACHINE) should be one of "X86" or "X64"
56 # (sorry ARM, Alpha, MIPS, and Itanium fans).
57 # CPU (Used by win32.mak) should be one of "i386" or "AMD64".
58 !if "$(WIRESHARK_TARGET_PLATFORM)" == "win32"
59 TARGET_MACHINE=X86
60 CPU=i386
61 !else if "$(WIRESHARK_TARGET_PLATFORM)" == "win64"
62 TARGET_MACHINE=X64
63 CPU=AMD64
64 !else
65 !error Your mysterious moon-man architecture "$(WIRESHARK_TARGET_PLATFORM)" frightens and confuses us.
66 !endif
67
68
69 ##### Microsoft Visual C / Studio Variant #####
70 # for the different Studios, see: http://en.wikipedia.org/wiki/Microsoft_Visual_Studio
71 # only one of the following MSVC_VARIANT settings should be used
72 # BTW: The "Microsoft Visual C++ Toolkit 2003" DOESN'T WORK for WS!
73
74 # "Microsoft Visual Studio 6.0"
75 # Visual C++ 6.0, _MSC_VER 1200, msvcrt.dll (version 6)
76 #MSVC_VARIANT=MSVC6
77
78 # "Microsoft Visual Studio .NET (2002)"
79 # Visual C++ 7.0, _MSC_VER 1300, msvcr70.dll
80 #MSVC_VARIANT=MSVC2002
81
82 # "Microsoft .Net Framework SDK Version 1.0"
83 # needs additional Platform SDK installation
84 # Visual C++ 7.0, _MSC_VER 1300, msvcr70.dll
85 #MSVC_VARIANT=DOTNET10
86
87 # "Microsoft Visual Studio .NET 2003"
88 # Visual C++ 7.1, _MSC_VER 1310, msvcr71.dll
89 #MSVC_VARIANT=MSVC2003
90
91 # "Microsoft .Net Framework SDK Version 1.1"
92 # needs additional Platform SDK installation
93 # Visual C++ 7.1, _MSC_VER 1310, msvcr71.dll
94 #MSVC_VARIANT=DOTNET11
95
96 # "Microsoft Visual Studio 2005"
97 # Visual C++ 8.0, _MSC_VER 1400, msvcr80.dll
98 #MSVC_VARIANT=MSVC2005
99
100 # "Microsoft Visual C++ 2005 Express Edition"
101 # needs additional Platform SDK installation
102 # Visual C++ 8.0, _MSC_VER 1400, msvcr80.dll
103 #MSVC_VARIANT=MSVC2005EE
104
105 # "Microsoft .Net Framework 2.0 SDK"
106 # needs additional Platform SDK installation
107 # Visual C++ 8.0, _MSC_VER 1400, msvcr80.dll
108 #MSVC_VARIANT=DOTNET20
109
110 # "Microsoft Visual Studio 2008"
111 # Visual C++ 9.0, _MSC_VER 1500, msvcr90.dll
112 MSVC_VARIANT=MSVC2008
113
114 # "Microsoft Visual C++ 2008 Express Edition"
115 # Visual C++ 9.0, _MSC_VER 1500, msvcr90.dll
116 #MSVC_VARIANT=MSVC2008EE
117
118 #
119 # Optional: To compile some time critical code from assembler instead of C
120 #
121 # If you have the NASM compiler, set this to the NASM executable.
122 # http://nasm.sourceforge.net/
123 #
124 # If you don't have NASM, comment this line out, so that NASM
125 # isn't defined.
126 #
127 NASM=$(WIRESHARK_LIBS)\nasm-2.02\nasm.exe
128
129
130 !if "$(WIRESHARK_TARGET_PLATFORM)" == "win32"
131 ##### Win32 Libraries #####
132 #
133 # Mandatory: GLib settings
134 #
135 # Please note: Since Wireshark release 1.0.0, we no longer support GLib1.x
136 #
137 GLIB_VERSION=2.0
138 GLIB_PKG=2.18.4-1
139 GLIB_DIR=$(WIRESHARK_LIBS)\glib
140
141 #
142 # Mandatory: GTK (& related libs) settings
143 #
144 # Please note: Since Wireshark release 1.0.0, we no longer support GTK1.x
145 #
146 # If you want building with GTK+, set GTK_DIR to the pathname of the 
147 # directory in which the "include" and "lib" directories reside.
148 #
149 GTK_DIR=$(WIRESHARK_LIBS)\gtk2
150 GTK_PKG=2.14.7-1
151 CAIRO_PKG=1.8.6-1
152 ATK_PKG=1.24.0-1
153 LIBPNG_PKG=1.2.32-1
154 TIFF_PKG=tiff-3.8.2-1-bin
155 JPEG_PKG=jpeg-6b-4-bin
156 PANGO_PKG=1.22.2-1
157
158 #
159 # Mandatory: Version numbers of GTK and pango.
160 #
161 # (MAJOR + MINOR Version number but without MICRO version number)
162 # These macros are used by the nsis installer script and by the setup target.
163 #
164 # GTK 2.12 is the mainline since Wireshark 0.99.7
165 GTK_INST_VERSION=2.14
166 PANGO_INST_VERSION=1.22
167
168 #
169 # Optional: WinPcap developer's pack to capture network traffic.
170 #
171 # If you have the WinPcap developer's pack (at least version 3.0),
172 # set this to the directory in which the WinPcap developer's pack resides.
173 #
174 # If you don't have the WPdpack, comment this line out, so that
175 # PCAP_DIR isn't defined.
176 #
177 PCAP_VERSION=4_0_2
178 PCAP_DIR=$(WIRESHARK_LIBS)\WPdpack
179
180 #
181 # Optional: WinPcap remote capture support and new API
182 # (pcap_open(), pcap_findalldevs_ex(), etc.)
183 #
184 PCAP_REMOTE=1
185
186 #
187 # Optional: The ZLib enables unzipping of gzip compressed capture files
188 # "on the fly".
189 #
190 # If you have Zlib, set this to directory in which the Zlib headers
191 # and .lib file are stored.
192 #
193 # If you don't have Zlib, comment this line out, so that ZLIB_DIR isn't
194 # defined.
195 #
196 ZLIB_DIR=$(WIRESHARK_LIBS)\zlib123
197
198 #
199 # Optional: the ADNS library enables asynchronous (nonblocking) DNS
200 # name resolvings.
201 #
202 # If you have GNU ADNS, set this to the directory in which the GNU ADNS
203 # .lib file is stored.
204 #
205 # If you don't have GNU ADNS, comment this line out, so that ADNS_DIR
206 # isn't defined.
207 #
208 # If C_ARES_DIR is defined below, it will override this setting.
209 #
210 #ADNS_DIR=$(WIRESHARK_LIBS)\adns-1.0-win32-05ws
211
212 #
213 # Optional: the c-ares library enables asynchronous (nonblocking) DNS
214 # name resolvings.
215 #
216 # If you have c-ares, set this to the directory in which the c-ares
217 # .lib file is stored. Setting this will override ADNS_DIR above. You
218 # can't have both.
219 #
220 # If you're using Visual C++ 6.0, you'll have to use a platform SDK that
221 # defines socklen_t, such as Windows Server 2003 PSDK.
222 #
223 # If you don't have c-ares, comment this line out, so that C_ARES_DIR
224 # isn't defined.
225 #
226 C_ARES_DIR=$(WIRESHARK_LIBS)\c-ares-1.6.0ws
227
228 #
229 # Optional: the PCRE (Perl Compatible Regular Expressions) library
230 # enables regular expressions for display filters.
231 #
232 # If you have the PCRE library, set this to the directory in which
233 # the GNUWIN32 pcre-lib package is stored.
234 #
235 # If you don't have PCRE, comment this line out, so that PCRE_DIR
236 # isn't defined.
237 #
238 PCRE_DIR=$(WIRESHARK_LIBS)\pcre-7.0
239
240 #
241 # Optional: the GNUTLS library enables ssl decryption.
242 #
243 # If you have the GNUTLS library, set this to the directory where
244 # the lib and include files are stored.
245 #
246 # If you don't have GNUTLS, comment this line out, so that GNUTLS_DIR
247 # isn't defined.
248 #
249 # Platform SDK conflicts with openssl.h header
250 #GNUTLS_DIR=$(WIRESHARK_LIBS)\gnutls-2.6.3-1
251 GNUTLS_DIR=$(WIRESHARK_LIBS)\gnutls-2.6.4-1
252
253 #
254 # Optional: the KFW library enables kerberos/sasl/dcerpc decryption.
255 #
256 # If you have the kerberos for windows (mit) library, set this to the
257 # directory where the kfw package is stored.
258 #
259 # If you don't have KFW, comment this line out, so that KFW_DIR
260 # isn't defined.
261 #
262 KFW_DIR=$(WIRESHARK_LIBS)\kfw-2.5
263
264 #
265 # Optional: the Nettle library enables ??? decryption.
266 #
267 # If you have the Nettle encryption library, set this to the
268 # directory in which the nettle package is stored.
269 #
270 # If you don't have Nettle, comment this line out, so that NETTLE_DIR
271 # isn't defined.
272 #
273 # NETTLE_DIR=$(WIRESHARK_LIBS)\nettle-1.10
274
275 #
276 # Optional: the LUA library enables scripting support.
277 #
278 # If you have the LUA library, set this to the directory in which
279 # the LUA package is stored.
280 #
281 # If you don't have LUA, comment this line out, so that LUA_DIR
282 # isn't defined.
283 #
284 LUA_DIST=5_1_4_Win32_dll6
285 LUA_DIR=$(WIRESHARK_LIBS)\lua5.1.4
286
287 #
288 # Optional: the PORTAUDIO library enables audio output for RTP streams.
289 #
290 # If you have the PORTAUDIO library (used for rtp_player), set this to
291 # the directory in which the PORTAUDIO library is stored.
292 #
293 # If you don't have PORTAUDIO, comment this line out, so that
294 # PORTAUDIO_DIR isn't defined.
295 #
296 #PORTAUDIO_DIR=$(WIRESHARK_LIBS)\portaudio_v18_1
297 PORTAUDIO_DIR=$(WIRESHARK_LIBS)\portaudio_v19_2
298
299 #
300 # Version number of PortAudio
301 #
302 #PORTAUDIO_VERSION=18
303 PORTAUDIO_VERSION=19
304
305 #
306 # Iconv: Mandatory for Glib >= 2 and <= 2.14.4
307 # [win-iconv statically linked as part of Glib >= 2.14.5]
308 # Set ICONV_DIR to the directory in which the
309 # ICONV include files and library resides.
310 #
311 ##ICONV_DIR=$(WIRESHARK_LIBS)\libiconv-1.9.1.bin.woe32
312
313 #
314 # Mandatory for GTK >= 2: Gettext
315 #
316 # Set GETTEXT_DIR to the directory in which the
317 # GETTEXT include files and library resides.
318 #
319 #GETTEXT_DIR=$(WIRESHARK_LIBS)\gettext-0.14.5
320 GETTEXT_PKG=-runtime-0.17-1
321 GETTEXT_DIR=$(WIRESHARK_LIBS)\gettext-runtime-0.17-1
322 #
323 # Optional: AirPcap developer's pack to capture wireless network traffic
324 # incl. 802.11 management frames.
325 #
326 # If you have the AirPcap developer's pack, set this to the directory
327 # in which the AirPcap developer's pack resides.
328 #
329 # If you don't have the AirPcap developer's pack, comment this line out,
330 # so that AIRPCAP_DIR isn't defined.
331 #
332 AIRPCAP_DIR=$(WIRESHARK_LIBS)\AirPcap_Devpack_1_0_0_594\AirPcap_Devpack
333
334 #
335 # Optional: LIBSMI, System Management Interface
336 #
337 # Used for oid-name resolution for SNMP and other protocols
338 #
339 SMI_DIR=$(WIRESHARK_LIBS)\libsmi-0.4.8
340
341 #
342 # Optional: GeoIP, IP address database lookups
343 #
344 # Used to map IP addresses to MaxMind GeoIP database entries
345 #
346 # GeoIP requires IPv6 definitions that don't ship with Visual C++ 6.0.
347 # However, the Microsoft Platform SDK for Windows Server 2003 R2 provides
348 # these definitions. The SDK's SetEnv.bat script defines INETSDK.
349 !IF "$(MSVC_VARIANT)" != "MSVC6" || DEFINED(INETSDK)
350 GEOIP_DIR=$(WIRESHARK_LIBS)\GeoIP-1.4.5ws
351 !ENDIF
352
353 !else
354 ##### Win64 Libraries #####
355 #
356 # Mandatory: GLib settings
357 #
358 # Please note: Since Wireshark release 1.0.0, we no longer support GLib1.x
359 #
360 GLIB_VERSION=2.0
361 GLIB_PKG=2.18.4-1
362 GLIB_DIR=$(WIRESHARK_LIBS)\glib
363
364 #
365 # Mandatory: GTK (& related libs) settings
366 #
367 # Please note: Since Wireshark release 1.0.0, we no longer support GTK1.x
368 #
369 # If you want building with GTK+, set GTK_DIR to the pathname of the 
370 # directory in which the "include" and "lib" directories reside.
371 #
372 GTK_DIR=$(WIRESHARK_LIBS)\gtk2
373 GTK_PKG=2.14.7-1
374 CAIRO_PKG=1.8.6-1
375 ATK_PKG=1.24.0-1
376 LIBPNG_PKG=1.2.34-1
377 TIFF_PKG=libtiff_3.8.2-1_win64
378 JPEG_PKG=jpeg_6b-2_win64
379 PANGO_PKG=1.22.4-1
380
381 #
382 # Mandatory: Version numbers of GTK and pango.
383 #
384 # (MAJOR + MINOR Version number but without MICRO version number)
385 # These macros are used by the nsis installer script and by the setup target.
386 #
387 # GTK 2.12 is the mainline since Wireshark 0.99.7
388 GTK_INST_VERSION=2.14
389 PANGO_INST_VERSION=1.22
390
391 #
392 # Optional: WinPcap developer's pack to capture network traffic.
393 #
394 # If you have the WinPcap developer's pack (at least version 3.0),
395 # set this to the directory in which the WinPcap developer's pack resides.
396 #
397 # If you don't have the WPdpack, comment this line out, so that
398 # PCAP_DIR isn't defined.
399 #
400 PCAP_VERSION=4_1_beta5
401 PCAP_DIR=$(WIRESHARK_LIBS)\WPdpack
402
403 #
404 # Optional: WinPcap remote capture support and new API
405 # (pcap_open(), pcap_findalldevs_ex(), etc.)
406 #
407 PCAP_REMOTE=1
408
409 #
410 # Optional: The ZLib enables unzipping of gzip compressed capture files
411 # "on the fly".
412 #
413 # If you have Zlib, set this to directory in which the Zlib headers
414 # and .lib file are stored.
415 #
416 # If you don't have Zlib, comment this line out, so that ZLIB_DIR isn't
417 # defined.
418 #
419 ZLIB_DIR=$(WIRESHARK_LIBS)\zlib123
420
421 #
422 # Optional: the ADNS library enables asynchronous (nonblocking) DNS
423 # name resolvings.
424 #
425 # If you have GNU ADNS, set this to the directory in which the GNU ADNS
426 # .lib file is stored.
427 #
428 # If you don't have GNU ADNS, comment this line out, so that ADNS_DIR
429 # isn't defined.
430 #
431 # If C_ARES_DIR is defined below, it will override this setting.
432 #
433 #ADNS_DIR=$(WIRESHARK_LIBS)\adns-1.0-win32-05ws
434
435 #
436 # Optional: the c-ares library enables asynchronous (nonblocking) DNS
437 # name resolvings.
438 #
439 # If you have c-ares, set this to the directory in which the c-ares
440 # .lib file is stored. Setting this will override ADNS_DIR above. You
441 # can't have both.
442 #
443 # If you're using Visual C++ 6.0, you'll have to use a platform SDK that
444 # defines socklen_t, such as Windows Server 2003 PSDK.
445 #
446 # If you don't have c-ares, comment this line out, so that C_ARES_DIR
447 # isn't defined.
448 #
449 #C_ARES_DIR=$(WIRESHARK_LIBS)\c-ares-1.5.2ws
450
451 #
452 # Optional: the PCRE (Perl Compatible Regular Expressions) library
453 # enables regular expressions for display filters.
454 #
455 # If you have the PCRE library, set this to the directory in which
456 # the GNUWIN32 pcre-lib package is stored.
457 #
458 # If you don't have PCRE, comment this line out, so that PCRE_DIR
459 # isn't defined.
460 #
461 #PCRE_DIR=$(WIRESHARK_LIBS)\pcre-7.0
462
463 #
464 # Optional: the GNUTLS library enables ssl decryption.
465 #
466 # If you have the GNUTLS library, set this to the directory where
467 # the lib and include files are stored.
468 #
469 # If you don't have GNUTLS, comment this line out, so that GNUTLS_DIR
470 # isn't defined.
471 #
472 # Platform SDK conflicts with openssl.h header
473 #GNUTLS_DIR=$(WIRESHARK_LIBS)\gnutls-1.6.1-1
474 #GNUTLS_DIR=$(WIRESHARK_LIBS)\gnutls-2.3.8-1
475
476 #
477 # Optional: the KFW library enables kerberos/sasl/dcerpc decryption.
478 #
479 # If you have the kerberos for windows (mit) library, set this to the
480 # directory where the kfw package is stored.
481 #
482 # If you don't have KFW, comment this line out, so that KFW_DIR
483 # isn't defined.
484 #
485 #KFW_DIR=$(WIRESHARK_LIBS)\kfw-2.5
486
487 #
488 # Optional: the Nettle library enables ??? decryption.
489 #
490 # If you have the Nettle encryption library, set this to the
491 # directory in which the nettle package is stored.
492 #
493 # If you don't have Nettle, comment this line out, so that NETTLE_DIR
494 # isn't defined.
495 #
496 # NETTLE_DIR=$(WIRESHARK_LIBS)\nettle-1.10
497
498 #
499 # Optional: the LUA library enables scripting support.
500 #
501 # If you have the LUA library, set this to the directory in which
502 # the LUA package is stored.
503 #
504 # If you don't have LUA, comment this line out, so that LUA_DIR
505 # isn't defined.
506 #
507 LUA_DIST=5_1_4_Win64_dll9
508 LUA_DIR=$(WIRESHARK_LIBS)\lua5.1
509
510 #
511 # Optional: the PORTAUDIO library enables audio output for RTP streams.
512 #
513 # If you have the PORTAUDIO library (used for rtp_player), set this to
514 # the directory in which the PORTAUDIO library is stored.
515 #
516 # If you don't have PORTAUDIO, comment this line out, so that
517 # PORTAUDIO_DIR isn't defined.
518 #
519 #PORTAUDIO_DIR=$(WIRESHARK_LIBS)\portaudio_v18_1
520 PORTAUDIO_DIR=$(WIRESHARK_LIBS)\portaudio_v19_2
521
522 #
523 # Version number of PortAudio
524 #
525 #PORTAUDIO_VERSION=18
526 PORTAUDIO_VERSION=19
527
528 #
529 # Iconv: Mandatory for Glib >= 2 and <= 2.14.4
530 # [win-iconv statically linked as part of Glib >= 2.14.5]
531 # Set ICONV_DIR to the directory in which the
532 # ICONV include files and library resides.
533 #
534 ##ICONV_DIR=$(WIRESHARK_LIBS)\libiconv-1.9.1.bin.woe32
535
536 #
537 # Mandatory for GTK >= 2: Gettext
538 #
539 # Set GETTEXT_DIR to the directory in which the
540 # GETTEXT include files and library resides.
541 #
542 #GETTEXT_DIR=$(WIRESHARK_LIBS)\gettext-0.14.5
543 GETTEXT_PKG=_0.17-1_win64
544 GETTEXT_DIR=$(WIRESHARK_LIBS)\gettext-0.17-1
545 #
546 # Optional: AirPcap developer's pack to capture wireless network traffic
547 # incl. 802.11 management frames.
548 #
549 # If you have the AirPcap developer's pack, set this to the directory
550 # in which the AirPcap developer's pack resides.
551 #
552 # If you don't have the AirPcap developer's pack, comment this line out,
553 # so that AIRPCAP_DIR isn't defined.
554 #
555 #AIRPCAP_DIR=$(WIRESHARK_LIBS)\AirPcap_Devpack_1_0_0_594\AirPcap_Devpack
556
557 #
558 # Optional: LIBSMI, System Management Interface
559 #
560 # Used for oid-name resolution for SNMP and other protocols
561 #
562 #SMI_DIR=$(WIRESHARK_LIBS)\libsmi-0.4.8
563
564 #
565 # Optional: GeoIP, IP address database lookups
566 #
567 # Used to map IP addresses to MaxMind GeoIP database entries
568 #
569 # GeoIP requires IPv6 definitions that don't ship with Visual C++ 6.0.
570 # However, the Microsoft Platform SDK for Windows Server 2003 R2 provides
571 # these definitions. The SDK's SetEnv.bat script defines INETSDK.
572 !IF "$(MSVC_VARIANT)" != "MSVC6" || DEFINED(INETSDK)
573 #GEOIP_DIR=$(WIRESHARK_LIBS)\GeoIP-1.4.5ws
574 !ENDIF
575
576 !endif
577
578 ##### Tools #####
579
580 # Set the following mandatory commands to find the tools.
581 # The easiest way is to use the corresponding packages from cygwin.
582
583 # Set up the path to the cygwin binaries
584 CYGWIN_PATH=c:\cygwin\bin
585
586 # command for a shell (cygwin's bash package recommended)
587 SH_PROG=bash
588
589 # bash versions after 3.1.6 need the 'igncr' shell option to be able to
590 #  process scripts in windows 'native format' (dos crlf format).
591 # The following !IF results in the option being used only if it is available
592 #  since using it on bash version 3.1.6 (or earlier) is not required and
593 #  will cause an error message.
594 !if "$(SH_PROG)"=="bash" && [$(CYGWIN_PATH)\bash -c "set -o igncr" 2>nul: ] == 0
595 SH_FLAGS=-o igncr
596 !endif
597
598 SH=$(SH_PROG) $(SH_FLAGS)
599
600
601 # command for perl (cygwin's perl package recommended)
602 PERL=perl
603
604 # command for pod2man and pod2html
605 # (part of the perl package, usually leave these unchanged)
606 POD2MAN=$(SH) pod2man
607 POD2HTML=$(SH) pod2html
608
609 # Command for native Windows Python (recommended)
610 # V2.4 to V2.6 should work
611
612 # If you want to specify your Python settings, uncomment the lines below.
613 #PYTHON="C:\Python26\python.exe"
614 #PATH=c:\Python26;$(PATH)
615
616 # Command for Cygwin's Python (not recommended)
617 #PYTHON=env python
618
619 # Otherwise, find Python automatically.
620 !IF !DEFINED(PYTHON)
621 !IF EXIST(c:\Python26\python.exe)
622 PYTHON="C:\Python26\python.exe"
623 PATH=c:\Python26;$(PATH)
624 !ELSE IF EXIST(c:\Python25\python.exe)
625 PYTHON="C:\Python25\python.exe"
626 PATH=c:\Python25;$(PATH)
627 !ELSE IF EXIST(c:\Python24\python.exe)
628 PYTHON="C:\Python24\python.exe"
629 PATH=c:\Python24;$(PATH)
630 !ENDIF
631 !ENDIF
632
633 # command for lex/flexx (cygwin's flex recommended)
634 LEX=flex
635
636 # command for yacc/bison (cygwin's bison recommended)
637 YACC=bison
638
639 #
640 # Optional: To build the NSIS installer.
641 #
642 # If you have the NSIS package, set this to the NSIS executable.
643 #
644 # If you don't have NSIS, comment this line out, so that MAKENSIS
645 # isn't defined.
646 #
647 MAKENSIS="$(PROGRAM_FILES)\nsis\makensis.exe"
648
649 #
650 # Optional: To build the developers API documentation with doxygen and dot.
651 # Currently experimental, outdated and incomplete.
652 #
653 # You will have to download and install:
654 # Doxygen from: http://www.doxygen.org
655 # Graphviz from: http://www.research.att.com/sw/tools/graphviz/
656 #
657 # If you have doxygen, set this to the doxygen executable.
658 #
659 # If you don't want the developers documentation (or don't have the tools),
660 # comment this line out, so that DOXYGEN isn't defined.
661 #
662 #DOXYGEN="$(PROGRAM_FILES)/doxygen/bin/doxygen.exe"
663
664 #
665 # Recommended: Use the compressed html help format .chm as the Wireshark integrated help.
666 #
667 # The required htmlhelp.h and htmlhelp.lib should be included in MSVC_VARIANT > MSVC6.
668 #
669 # For MSVC_VARIANT == MSVC6 you will have to download and install the html help workshop from:
670 #
671 # http://msdn.microsoft.com/library/default.asp?url=/library/en-us/htmlhelp/html
672 # /hwMicrosoftHTMLHelpDownloads.asp
673 #
674 # Then point HHC_DIR to the html help dir (where hhc.exe resides).
675 #
676 # If you don't want the online help (or don't have the tools),
677 # comment this line out, so that HHC_DIR isn't defined.
678 #
679 HHC_DIR=$(PROGRAM_FILES)/HTML Help Workshop
680
681 #
682 # Optional: To reduce the size of dlls and exes, which is especially useful for USB device distributions (U3, PortableApps)
683 #
684 # If you have the UPX package, set this to the upx.exe executable.
685 #
686 # UPX can be downloaded from:
687 #   http://upx.sourceforge.net/
688 #
689 # If you don't have UPX, or don't want to pack exes and dlls,
690 # comment this line out, so that UPX isn't defined.
691 #
692
693 UPX=$(WIRESHARK_LIBS)\upx301w\upx.exe
694
695 ##### Flags, PATHs and Miscellaneous #####
696
697 # "convert" the MSVC variant into the required MSC compiler version
698 !IF "$(MSVC_VARIANT)" == "MSVC6"
699 MSC_VER_REQUIRED=1200
700 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2002" || "$(MSVC_VARIANT)" == "DOTNET10"
701 MSC_VER_REQUIRED=1300
702 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2003" || "$(MSVC_VARIANT)" == "DOTNET11"
703 MSC_VER_REQUIRED=1310
704 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2005" || "$(MSVC_VARIANT)" == "MSVC2005EE" || "$(MSVC_VARIANT)" == "DOTNET20"
705 MSC_VER_REQUIRED=1400
706 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2008" ||  "$(MSVC_VARIANT)" == "MSVC2008EE"
707 MSC_VER_REQUIRED=1500
708 !ELSE
709 !ERROR MSVC_VARIANT unknown
710 !ENDIF
711
712 # Compiler flags:
713 # /W3  warning level 3 (0 less - 4 most, 1 default)
714 # /Zi  create .pdb file for debugging
715 # /MD  use "Multithreading Debug" libraries
716 # /D_CRT_SECURE_NO_DEPRECATE        Don't warn for "insecure" calls, see MSDN "Security Enhancements in the CRT"
717 # /D_CRT_NONSTDC_NO_DEPRECATE       Don't warn for "Deprecated CRT Functions" as MSDN calls this
718 # /D_BIND_TO_CURRENT_CRT_VERSION=1  Make sure our CRT and manifest versions match (http://msdn.microsoft.com/en-us/library/cc664727.aspx)
719 # /DWIN32_LEAN_AND_MEAN             Don't include unnecessary Windows include files (see windows.h)
720 # /MP [<number of processes>]       [MSVC2008]: Compiles multiple source files by using multiple processes 
721 #                                               Add if desired for compile speedup on machines with 2 or more "effective processors"
722 # /MANIFEST:no                      Don't create a SxS manifest. Makes sure our plugins don't load a second copy of the CRT.
723 #
724 !IF "$(MSVC_VARIANT)" == "MSVC6" || "$(MSVC_VARIANT)" == "MSVC2002" || "$(MSVC_VARIANT)" == "DOTNET10" || "$(MSVC_VARIANT)" == "MSVC2003" || "$(MSVC_VARIANT)" == "DOTNET11"
725 LOCAL_CFLAGS=/Zi /W3 /MD /DWIN32_LEAN_AND_MEAN /DMSC_VER_REQUIRED=$(MSC_VER_REQUIRED)
726 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2005" || "$(MSVC_VARIANT)" == "MSVC2005EE" || "$(MSVC_VARIANT)" == "DOTNET20" || "$(MSVC_VARIANT)" == "MSVC2008" || "$(MSVC_VARIANT)" == "MSVC2008EE"
727 LOCAL_CFLAGS=/Zi /W3 /MD /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE /DWIN32_LEAN_AND_MEAN /DMSC_VER_REQUIRED=$(MSC_VER_REQUIRED) /D_BIND_TO_CURRENT_CRT_VERSION=1
728 !ELSE
729 !ERROR MSVC_VARIANT unknown
730 !ENDIF
731
732 # Linker flags:
733 # /DEBUG  generate debug info
734 # /PROFILE generate map file(s) for profiling
735 # /DEFAULTLIB:xxx use xxx as the standard C library
736 # /NODEFAULTLIB:xxx don't use xxx as the standard C library
737 #
738 LOCAL_LDFLAGS=/DEBUG /MACHINE:$(TARGET_MACHINE)
739 DLL_LDFLAGS = 
740 !IF $(MSC_VER_REQUIRED) >= 1400
741 DLL_LDFLAGS = /MANIFEST:no
742 !ENDIF
743
744 PLUGIN_LDFLAGS = /NOLOGO /INCREMENTAL:no $(LOCAL_LDFLAGS) $(DLL_LDFLAGS)
745
746 #
747 # According to http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=403
748 # XCOPY under Windows NT doesn't support the "/Y" flag.  This works
749 # around that bug.
750 # XXX - This apparently doesn't work for some versions of nmake:
751 # http://support.microsoft.com/default.aspx?scid=kb;en-us;86814
752 # It looks like we'll have to call "set copycmd=/y" before we run xcopy.
753 COPYCMD=/y
754
755 #
756 # If you don't want to build libwireshark.dll, you should comment out the
757 # following line. (Note: for plugin support this option must stay activated)
758 ENABLE_LIBWIRESHARK=USE
759
760 #
761 # install (debug) directory for Wireshark (relative to your source dir)
762 INSTALL_DIR=wireshark-gtk2
763
764
765
766 ##### C-Runtime Redistributable #####
767 #
768 # The C-Runtime since Version 7 must be shipped together with
769 # the program installer, to avoid missing msvcr*.dll files on
770 # the target machine.
771 #
772 # The location of these files differ on the various compiler
773 # packages, the following will use the default paths depending
774 # on the package version.
775 #
776 !IF "$(MSVC_VARIANT)" == "MSVC6"
777 # msvcrt.dll will already be available on target machines - nothing additional to install
778
779 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2002"
780 # you probably need to tweak this directory if you don't use the professional edition!
781 MSVCR_DLL=$(PROGRAM_FILES)\Microsoft Visual Studio .NET\Visual Studio .NET Professional - English\msvcr70.dll
782
783 !ELSEIF "$(MSVC_VARIANT)" == "DOTNET10"
784 # no redistributable available for this package!
785
786 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2003"
787 # you probably need to tweak this directory if you don't use the professional edition!
788 MSVCR_DLL=$(PROGRAM_FILES)\Microsoft Visual Studio .NET 2003\Visual Studio .NET Professional 2003 - English\msvcr71.dll
789
790 !ELSEIF "$(MSVC_VARIANT)" == "DOTNET11"
791 # no redistributable available for this package!
792
793 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2005"
794 MSVCR_DLL=$(PROGRAM_FILES)\Microsoft Visual Studio 8\VC\redist\x86\Microsoft.VC80.CRT\*.*
795
796 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2005EE" || "$(MSVC_VARIANT)" == "DOTNET20" || "$(MSVC_VARIANT)" == "MSVC2008EE"
797 # you need to download the redistributable package vcredist_x86.exe from Microsoft first,
798 # and copy it to the lib folder!!!
799 VCREDIST_EXE=$(WIRESHARK_LIBS)\vcredist_x86.exe
800
801 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2008"
802 MSVCR_DLL=$(PROGRAM_FILES)\Microsoft Visual Studio 9.0\VC\redist\x86\Microsoft.VC90.CRT\*.*
803
804 !ELSE
805 !ERROR MSVC_VARIANT unknown
806 !ENDIF
807
808
809
810 ##### Advanced: Docbook/XML documentation generation #####
811 # If you want to generate the Docbook/XML based docs (User's and Developer's
812 # Guide, ...), you'll need some additional tools / libraries compared to the
813 # rest of the build process.
814 #
815 # FOR DETAILED INSTRUCTIONS TO GENERATE THE DOCS, SEE: docbook\readme.txt.
816 #
817 # If you don't call the Makefile.nmake in the docbook dir to generate the
818 # docs, the following settings in this section will have no effect.
819
820 # formatting objects processor executable
821 # Comment this out if you don't have fop installed or you don't want the docs
822 # in PDF format.
823 !IFNDEF FOP
824 FOP=fop-0.20.5\fop.bat
825 !ENDIF
826
827 # Additional options to fop.
828 FOP_OPTS=-Xmx256m
829
830 # html help compiler
831 # Comment this out if you don't have hhc.exe or you don't want the docs in
832 # .chm format.
833 #
834 # Beware: hhc.exe is NOT part of the MSVC packages in HHC_DIR mentioned above,
835 # so you'll need to install the HTML Help Workshop for this.
836 HHC_EXE="$(HHC_DIR)\hhc.exe"
837
838 # html to text converter for text version of release notes, e.g. elinks.
839 # This could also be "lynx", or "true" if neither elinks nor lynx is installed
840 # (cygwin: lynx works, elinks not available, links and true doesn't produce output)
841 #HTML2TXT=elinks -dump -dump-width 72
842 #HTML2TXT=links -dump -width 72
843 #HTML2TXT=lynx -dump -width=72 -nolist -stdin
844
845 !IFNDEF HTML2TXT
846 HTML2TXT=$(PYTHON) $(TOOLS_DIR)\html2text.py --width=72 --no-links
847 !ENDIF
848
849 # the XSL processor (part of cygwin's libxslt package)
850 XSLTPROC="xsltproc"
851
852 # the XML validator (part of cygwin's libxml2 package)
853 XMLLINT="xmllint"
854
855
856
857 ##############################################################################
858 #
859 # You should not have to change anything below this comment.
860 # If you do, it's a deficiency in the Makefile.nmake files;
861 # either tell wireshark-dev@wireshark.org about it, including
862 # details of why you had to change it, or fix config.nmake
863 # and any Makefile.nmake files that need to be changed, and
864 # send us the patches, along with details of why the change
865 # was necessary.
866 #
867 ##############################################################################
868
869 #
870 # The RC_VERSION should be comma-separated, not dot-separated,
871 # as per Graham Bloice's message in
872 #
873 #       http://www.ethereal.com/lists/ethereal-dev/200303/msg00283.html
874 #
875 # "The RC_VERSION variable in config.nmake should be comma separated.
876 # This allows the resources to be built correctly and the version
877 # number to be correctly displayed in the explorer properties dialog
878 # for the executables, and XP's tooltip, rather than 0.0.0.0."
879 #
880
881 VERSION=$(VERSION_MAJOR).$(VERSION_MINOR).$(VERSION_MICRO)$(VERSION_EXTRA)
882 RC_VERSION=$(VERSION_MAJOR),$(VERSION_MINOR),$(VERSION_MICRO),$(VERSION_BUILD)
883
884 WTAP_VERSION=$(WTAP_VERSION_MAJOR).$(WTAP_VERSION_MINOR).$(WTAP_VERSION_MICRO)
885 RC_WTAP_VERSION=$(WTAP_VERSION_MAJOR),$(WTAP_VERSION_MINOR),$(WTAP_VERSION_MICRO)
886
887
888 GLIB_CFLAGS=/I$(GLIB_DIR)\include\glib-$(GLIB_VERSION) \
889         /I$(GLIB_DIR)\lib\glib-$(GLIB_VERSION)\include
890 GCC_GLIB_CFLAGS=-I$(GLIB_DIR)\include\glib-$(GLIB_VERSION) \
891         -I$(GLIB_DIR)\lib\glib-$(GLIB_VERSION)\include
892 GLIB_LIBS=$(GLIB_DIR)\lib\glib-$(GLIB_VERSION).lib \
893         $(GLIB_DIR)\lib\gmodule-$(GLIB_VERSION).lib \
894         $(GLIB_DIR)\lib\gobject-$(GLIB_VERSION).lib
895
896 # GTK+
897 GTK_CFLAGS=$(GLIB_CFLAGS) /I$(GTK_DIR)\include\gtk-2.0 \
898         /I$(GTK_DIR)\lib\gtk-2.0\include \
899         /I$(GTK_DIR)\include\atk-1.0 \
900         /I$(GTK_DIR)\include\cairo \
901         /I$(GTK_DIR)\include\pango-1.0
902 GTK_LIBS=$(GTK_DIR)\lib\gtk-win32-2.0.lib \
903         $(GTK_DIR)\lib\gdk-win32-2.0.lib \
904         $(GTK_DIR)\lib\gdk_pixbuf-2.0.lib \
905         $(GTK_DIR)\lib\pango-1.0.lib \
906         $(GLIB_LIBS)
907
908 !IF "$(GTK_INST_VERSION)" == "2.14"
909 GTK_LIB_DIR=2.10.0
910 NEED_LIBPNG_DLL=USE
911 NEED_LIBJPEG_DLL=USE
912 NEED_LIBTIFF_DLL=USE
913 NEED_CAIRO_DLL=USE
914 GTK_WIMP_DLLSRC_DIR=$(GTK_DIR)\lib\gtk-2.0\2.10.0\engines
915 GTK_WIMP_DLLDST_DIR=lib\gtk-2.0\2.10.0\engines
916 GTK_WIMP_RCSRC_DIR=$(GTK_DIR)\share\themes\MS-Windows\gtk-2.0
917 GTK_WIMP_RCDST_DIR=etc\gtk-2.0
918 !ELSEIF "$(GTK_INST_VERSION)" == "2.12"
919 GTK_LIB_DIR=2.10.0
920 NEED_LIBPNG_DLL=USE
921 NEED_LIBJPEG_DLL=USE
922 NEED_LIBTIFF_DLL=USE
923 NEED_CAIRO_DLL=USE
924 GTK_WIMP_DLLSRC_DIR=$(GTK_DIR)\lib\gtk-2.0\2.10.0\engines
925 GTK_WIMP_DLLDST_DIR=lib\gtk-2.0\2.10.0\engines
926 GTK_WIMP_RCSRC_DIR=$(GTK_DIR)\share\themes\MS-Windows\gtk-2.0
927 GTK_WIMP_RCDST_DIR=etc\gtk-2.0
928 !ELSE
929 !ERROR ? Unknown or invalid GTK_INST_VERSION
930 !ENDIF
931
932 !IF "$(PANGO_INST_VERSION)" == "1.22"
933 PANGO_LIB_DIR=1.5.0
934 !ELSEIF "$(PANGO_INST_VERSION)" == "1.18"
935 PANGO_LIB_DIR=1.5.0
936 !ELSEIF "$(PANGO_INST_VERSION)" == "1.16"
937 PANGO_LIB_DIR=1.5.0
938 !ELSE
939 !ERROR ? Unknown or invalid PANGO_INST_VERSION
940 !ENDIF
941
942 !IFDEF AIRPCAP_DIR
943 AIRPCAP_CONFIG=^#define HAVE_AIRPCAP 1
944 AIRPDCAP_CONFIG=^#define HAVE_AIRPDCAP 1
945 #AIRPCAP_CFLAGS=/I$(AIRPCAP_DIR)\include
946 !ELSE
947 AIRPCAP_CONFIG=
948 AIRPDCAP_CONFIG=
949 !ENDIF
950
951 !IFDEF PCAP_DIR
952 # Nmake uses carets to escape special characters
953 WINPCAP_CONFIG=^#define HAVE_LIBPCAP 1
954 PCAP_FINDALLDEVS_CONFIG=^#define HAVE_PCAP_FINDALLDEVS 1
955 PCAP_DATALINK_NAME_TO_VAL_CONFIG=^#define HAVE_PCAP_DATALINK_NAME_TO_VAL 1
956 PCAP_DATALINK_VAL_TO_NAME_CONFIG=^#define HAVE_PCAP_DATALINK_VAL_TO_NAME 1
957 # PCAP_BREAKLOOP won't have any benefit on Win32, but breaks compatibility with 3.0
958 PCAP_BREAKLOOP_CONFIG=
959 WPCAP_CONSTIFIED_CONFIG=^#define WPCAP_CONSTIFIED 1
960 !ELSE
961 # no WpdPack installed
962 WINPCAP_CONFIG=
963 PCAP_FINDALLDEVS_CONFIG=
964 PCAP_DATALINK_NAME_TO_VAL_CONFIG=
965 PCAP_DATALINK_VAL_TO_NAME_CONFIG=
966 PCAP_BREAKLOOP_CONFIG=
967 WPCAP_CONSTIFIED=
968 !ENDIF
969
970 PCAP_LIST_DATALINKS_CONFIG=^#define HAVE_PCAP_LIST_DATALINKS 1
971 PCAP_SET_DATALINK_CONFIG=^#define HAVE_PCAP_SET_DATALINK 1
972
973 !IF DEFINED(PCAP_DIR) && DEFINED(PCAP_REMOTE)
974 PCAP_HAVE_REMOTE_CONFIG=^#define HAVE_REMOTE 1
975 PCAP_REMOTE_CONFIG=^#define HAVE_PCAP_REMOTE 1
976 PCAP_OPEN_CONFIG=^#define HAVE_PCAP_OPEN 1
977 PCAP_FINDALLDEVS_EX_CONFIG=^#define HAVE_PCAP_FINDALLDEVS_EX 1
978 PCAP_CREATESRCSTR_CONFIG=^#define HAVE_PCAP_CREATESRCSTR 1
979 PCAP_SETSAMPLING_CONFIG=^#define HAVE_PCAP_SETSAMPLING 1
980 !ELSE
981 PCAP_HAVE_REMOTE_CONFIG=
982 PCAP_REMOTE_CONFIG=
983 PCAP_OPEN_CONFIG=
984 PCAP_FINDALLDEVS_EX_CONFIG=
985 PCAP_CREATESRCSTR_CONFIG=
986 PCAP_SETSAMPLING_CONFIG=
987 !ENDIF
988
989 !IFDEF ZLIB_DIR
990 ZLIB_PATH=$(ZLIB_DIR)
991 ZLIB_CFLAGS=/I$(ZLIB_DIR)\include
992 ZLIB_LIBS=$(ZLIB_DIR)\lib\zdll.lib
993 ZLIB_DLL=$(ZLIB_DIR)\zlib1.dll
994 # Nmake uses carets to escape special characters
995 ZLIB_CONFIG=^#define HAVE_LIBZ 1
996 !else
997 ZLIB_CFLAGS=
998 ZLIB_LIBS=
999 ZLIB_DLL=
1000 ZLIB_CONFIG=
1001 !ENDIF
1002
1003 !IFDEF C_ARES_DIR
1004 !UNDEF ADNS_DIR
1005 C_ARES_CFLAGS=/I$(C_ARES_DIR)
1006 C_ARES_LIBS=$(C_ARES_DIR)\cares.lib
1007 C_ARES_DLL=$(C_ARES_DIR)\cares.dll
1008 # Nmake uses carets to escape special characters
1009 C_ARES_CONFIG=^#define HAVE_C_ARES 1
1010 !else
1011 C_ARES_CFLAGS=
1012 C_ARES_LIBS=
1013 C_ARES_CONFIG=
1014 !IFDEF ADNS_DIR
1015 ADNS_PATH=$(ADNS_DIR)\adns_win32\lib
1016 ADNS_CFLAGS=/I$(ADNS_DIR)\src /I$(ADNS_DIR)\adns_win32
1017 ADNS_LIBS=$(WIRESHARK_LIBS)\$(MSVC_VARIANT)\adns\adns_dll.lib
1018 ADNS_DLL=$(WIRESHARK_LIBS)\$(MSVC_VARIANT)\adns\adns_dll.dll
1019 # Nmake uses carets to escape special characters
1020 ADNS_CONFIG=^#define HAVE_GNU_ADNS 1
1021 !else
1022 ADNS_CFLAGS=
1023 ADNS_LIBS=
1024 ADNS_CONFIG=
1025 !ENDIF # ADNS
1026 !ENDIF # C_ARES
1027
1028 !IFDEF KFW_DIR
1029 KFW_PATH=$(KFW_DIR)\bin
1030 KFW_CFLAGS=/I$(KFW_DIR)\inc
1031 KFW_LIBS=$(KFW_DIR)\lib\krb5_32.lib
1032 # Nmake uses carets to escape special characters
1033 KFW_CONFIG=^#define HAVE_MIT_KERBEROS 1
1034 !else
1035 KFW_CFLAGS=
1036 KFW_LIBS=
1037 KFW_CONFIG=
1038 !ENDIF
1039
1040 !IFDEF PCRE_DIR
1041 PCRE_PATH=$(PCRE_DIR)\bin
1042 PCRE_CFLAGS=/I$(PCRE_DIR)\include
1043 PCRE_LIBS=$(PCRE_DIR)\lib\pcre.lib
1044 # Nmake uses carets to escape special characters
1045 PCRE_CONFIG=^#define HAVE_LIBPCRE 1
1046 !else
1047 PCRE_CFLAGS=
1048 PCRE_LIBS=
1049 PCRE_CONFIG=
1050 !ENDIF
1051
1052 !IFDEF NETTLE_DIR
1053 NETTLE_CFLAGS=/I$(NETTLE_DIR)
1054 NETTLE_LIBS=$(NETTLE_DIR)\libnettle.lib
1055 # Nmake uses carets to escape special characters
1056 NETTLE_CONFIG=^#define HAVE_LIBNETTLE 1
1057 !else
1058 NETTLE_CFLAGS=
1059 NETTLE_LIBS=
1060 NETTLE_CONFIG=
1061 !ENDIF
1062
1063 !IFDEF GNUTLS_DIR
1064 GNUTLS_PATH=$(GNUTLS_DIR)
1065 # /DNOCRYPT avoids inclusion of Wincrypt.h, avoiding a X509_NAME define clash
1066 GNUTLS_CFLAGS=/I$(GNUTLS_DIR)\include /DNOCRYPT /DIMPORT_LIGNUTLSDLL
1067 GNUTLS_LIBS=\
1068         $(GNUTLS_DIR)\bin\libtasn1-3.lib        \
1069         $(GNUTLS_DIR)\bin\libgpg-error-0.lib    \
1070         $(GNUTLS_DIR)\bin\libgcrypt-11.lib      \
1071         $(GNUTLS_DIR)\bin\libgnutls-26.lib
1072 # Nmake uses carets to escape special characters
1073 GNUTLS_CONFIG=^#define HAVE_LIBGNUTLS 1
1074 LIBGCRYPT_CONFIG=^#define HAVE_LIBGCRYPT 1
1075 !else
1076 GNUTLS_CFLAGS=
1077 GNUTLS_LIBS=
1078 GNUTLS_CONFIG=
1079 LIBGCRYPT_CONFIG=
1080 !ENDIF
1081
1082 !IFDEF LUA_DIR
1083 LUA_CFLAGS=/I$(LUA_DIR)\include
1084 LUA_LIBS=$(LUA_DIR)\lua5.1.lib
1085 # Nmake uses carets to escape special characters
1086 LUA_CONFIG=^#define HAVE_LUA 1
1087 LUA_VERSION=^#define HAVE_LUA_5_1 1
1088 !else
1089 LUA_CFLAGS=
1090 LUA_LIBS=
1091 LUA_CONFIG=
1092 !ENDIF
1093
1094 !IFDEF PORTAUDIO_DIR
1095 # Nmake uses carets to escape special characters
1096 PORTAUDIO_CONFIG=^#define HAVE_LIBPORTAUDIO 1
1097 !IF "$(PORTAUDIO_VERSION)" == "18"
1098 # V18 uses API version 1 and v19 API version 2
1099 PORTAUDIO_CFLAGS=/I$(PORTAUDIO_DIR)\pa_common
1100 PORTAUDIO_API_CONFIG=^#define PORTAUDIO_API_1 1
1101 !ELSE
1102 PORTAUDIO_CFLAGS=/I$(PORTAUDIO_DIR)\include /I$(PORTAUDIO_DIR)\src\common /I$(PORTAUDIO_DIR)\src\os\win /DPA_NO_DS /DPA_NO_ASIO
1103 !ENDIF
1104 !ELSE
1105 PORTAUDIO_CFLAGS=
1106 PORTAUDIO_CONFIG=
1107 !ENDIF
1108
1109 !IFDEF HHC_DIR
1110 !IF "$(MSVC_VARIANT)" == "MSVC6"
1111 HHC_CFLAGS=/I"$(HHC_DIR)\include" -DHHC_DIR
1112 HHC_LIBS="$(HHC_DIR)\lib\htmlhelp.lib"
1113 !ELSE
1114 HHC_CFLAGS=-DHHC_DIR
1115 HHC_LIBS=htmlhelp.lib
1116 !ENDIF
1117 !ELSE
1118 HHC_CFLAGS=
1119 HHC_LIBS=
1120 !ENDIF
1121
1122 !IFDEF SMI_DIR
1123 SMI_CONFIG=^#define HAVE_LIBSMI 1
1124 SMI_CFLAGS=/I$(SMI_DIR)\include
1125 SMI_LIBS=$(SMI_DIR)\lib\smi.lib
1126 !ELSE
1127 SMI_LIBS=
1128 SMI_CFLAGS=
1129 SMI_CONFIG=
1130 !ENDIF
1131
1132 !IFDEF GEOIP_DIR
1133 GEOIP_CONFIG=^#define HAVE_GEOIP 1
1134 GEOIP_CFLAGS=/I$(GEOIP_DIR)\libGeoIP
1135 GEOIP_LIBS=$(GEOIP_DIR)\libGeoIP\GeoIP.lib
1136 !ELSE
1137 GeoIP_LIBS=
1138 GeoIP_CFLAGS=
1139 GeoIP_CONFIG=
1140 !ENDIF
1141
1142 !IFDEF ENABLE_LIBWIRESHARK
1143 LIBWIRESHARK_CONFIG=^#define HAVE_LIBWIRESHARKDLL 1
1144 # Link plugins with the import library of libwireshark.dll
1145 LINK_PLUGINS_WITH_LIBWIRESHARK=USE
1146 !ELSE
1147 LIBWIRESHARK_CONFIG=
1148 !ENDIF
1149
1150 # Construct the path
1151 !IFDEF ICONV_DIR
1152 PATH=$(PATH);$(CYGWIN_PATH);$(GLIB_DIR)\bin;$(GETTEXT_DIR)\bin;$(ICONV_DIR)\bin;$(ZLIB_PATH);$(ADNS_PATH)
1153 !ELSE
1154 PATH=$(PATH);$(CYGWIN_PATH);$(GLIB_DIR)\bin;$(GETTEXT_DIR)\bin;$(ZLIB_PATH);$(ADNS_PATH)
1155 !ENDIF
1156
1157 # We can't use a lot of IPv6 code with plain Visual C++ 6.0
1158 !IF "$(MSVC_VARIANT)" == "MSVC6" && !DEFINED(MSSDK)
1159 INET6_CONFIG=
1160 !ELSE
1161 INET6_CONFIG=^#define INET6 1
1162 !ENDIF