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