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