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