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