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