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