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