Put
[metze/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
7
8 ##### Versions #####
9
10 # The current Wireshark version
11 # It's highly recommended to leave MAJOR/MINOR/MICRO unchanged
12 VERSION_MAJOR=0
13 VERSION_MINOR=99
14 VERSION_MICRO=5
15 # It's recommended to change VERSION_EXTRA for your own custom builds
16 # e.g. "-SVN-12345"
17 VERSION_EXTRA=
18
19 # The version of the wiretap library (recommended: leave unchanged)
20 WTAP_VERSION_MAJOR=0
21 WTAP_VERSION_MINOR=3
22 WTAP_VERSION_MICRO=1
23
24
25
26 ##### Directories #####
27
28
29 # Base directory, where your libraries reside, which are needed to 
30 # compile the sources. This setting is used only inside this file.
31 #
32 WIRESHARK_LIBS=C:\wireshark-win32-libs
33
34
35 # Base directory, where your programs reside. 
36 # This setting is used only inside this file.
37 #
38 PROGRAM_FILES=C:/Program Files
39
40
41
42 ##### Microsoft Visual C / Studio Variant #####
43 # for the different Studios, see: http://en.wikipedia.org/wiki/Microsoft_Visual_Studio
44 # only one of the following MSVC_VARIANT settings should be used
45 # BTW: The "Microsoft Visual C++ Toolkit 2003" DOESN'T WORK for WS!
46
47 # "Microsoft Visual Studio 6.0" - RECOMMENDED
48 # Visual C++ 6.0, _MSC_VER 1200, msvcrt.dll (version 6)
49 MSVC_VARIANT=MSVC6
50
51 # "Microsoft Visual Studio .NET (2002)" - WORKS
52 # Visual C++ 7.0, _MSC_VER 1300, msvcr70.dll
53 #MSVC_VARIANT=MSVC2002
54
55 # "Microsoft .Net Framework SDK Version 1.0" - WORKS
56 # needs additional Platform SDK installation
57 # Visual C++ 7.0, _MSC_VER 1300, msvcr70.dll
58 #MSVC_VARIANT=DOTNET10
59
60 # "Microsoft Visual Studio .NET 2003" - WORKS
61 # Visual C++ 7.1, _MSC_VER 1310, msvcr71.dll
62 #MSVC_VARIANT=MSVC2003
63
64 # "Microsoft .Net Framework SDK Version 1.1" - WORKS
65 # needs additional Platform SDK installation
66 # Visual C++ 7.1, _MSC_VER 1310, msvcr71.dll
67 #MSVC_VARIANT=DOTNET11
68
69 # "Microsoft Visual Studio 2005" - WORKS
70 # Visual C++ 8.0, _MSC_VER 1400, msvcr80.dll
71 #MSVC_VARIANT=MSVC2005
72
73 # "Microsoft Visual C++ 2005 Express Edition" - WORKS
74 # needs additional Platform SDK installation
75 # Visual C++ 8.0, _MSC_VER 1400, msvcr80.dll
76 #MSVC_VARIANT=MSVC2005EE
77
78 # "Microsoft .Net Framework 2.0 SDK" - WORKS
79 # needs additional Platform SDK installation
80 # Visual C++ 8.0, _MSC_VER 1400, msvcr80.dll
81 #MSVC_VARIANT=DOTNET20
82
83
84
85 ##### Libraries #####
86
87 #
88 # Mandatory: GLib settings
89 #
90 # Current versions of GTK+ 1.3 require GLib 2.0.  Earlier versions of
91 # GTK+ 1.3 are buggy; we don't recommend using them, and we don't
92 # support them.  Upgrade to at least GLib 2.0.
93 #
94 GLIB_VERSION=2.0
95 GLIB_DIR=$(WIRESHARK_LIBS)\glib
96
97 #
98 # Mandatory: GTK (& related) settings
99 #
100 # It's possible, to build both GTK version 1 and 2 at the same time,
101 # or only one of the versions. GTK version 2 is recommended.
102
103 # If you want building with GTK+ 1.3, set GTK1_DIR to the pathname of the 
104 # "gtk+" directory; if you want building with GTK+ 2.x, set GTK2_DIR to 
105 # the pathname of the directory in which the "include" and "lib" directories 
106 # reside.
107 #
108 GTK1_DIR=$(WIRESHARK_LIBS)\gtk+
109 GTK2_DIR=$(WIRESHARK_LIBS)\gtk2
110
111 #
112 # Mandatory for GTK >= 2: Version numbers of gtk2 and pango.
113 #
114 # (MAJOR + MINOR Version number but without MICRO version number) 
115 # These macros are used by the nsis installer script and by the setup target.
116 #
117 # GTK 2.6 is the mainline since Ethereal 0.10.14
118 #GTK2_INST_VERSION=2.6
119 #PANGO_INST_VERSION=1.8
120 # Support for GTK 2.8 
121 #GTK2_INST_VERSION=2.8
122 #PANGO_INST_VERSION=1.14
123 # Support for GTK 2.10 is currently experimental ...
124 GTK2_INST_VERSION=2.10
125 PANGO_INST_VERSION=1.14
126
127 #
128 # If you have GTK-Wimp, set this to the pathname of the directory in
129 # which the files are stored.
130 #
131 # If you don't have GTK-Wimp, comment this line out, so that GTK-Wimp isn't
132 # defined.
133 #
134 # Please note: GTK 2.8 (and later?) includes GTK-Wimp
135 # (in this case these GTK-Wimp related settings will have no effect)
136 #
137 GTK_WIMP_DIR=$(WIRESHARK_LIBS)\gtk-wimp\gtk-wimp-0.7.0-bin
138
139 #
140 # Optional: WinPcap developer's pack to capture network traffic.
141 #
142 # The WinPcap developer's pack version Wireshark is build with.
143 #
144 # If you don't have the WPdpack, comment this line out, so that 
145 # WINPCAP_VERSION isn't defined.
146 #
147 #WINPCAP_VERSION=3.0
148 WINPCAP_VERSION=3.1
149 # XXX - what to set for 4.0 beta 1?
150 #
151 # If you have the WinPcap developer's pack, set this to the directory 
152 # in which the WinPcap developer's pack resides.
153 #
154 # If you don't have the WPdpack, comment this line out, so that 
155 # PCAP_DIR isn't defined.
156 #
157 PCAP_DIR=$(WIRESHARK_LIBS)\WPdpack
158
159 #
160 # Optional: The ZLib enables unzipping of gzip compressed capture files 
161 # "on the fly".
162 #
163 # If you have Zlib, set this to directory in which the Zlib headers 
164 # and .lib file are stored.
165 #
166 # If you don't have Zlib, comment this line out, so that ZLIB_DIR isn't
167 # defined.
168 #
169 # ZLIB must be recompiled on none MSVC 6 compilers, otherwise C runtime 
170 # lib (msvcr)version conflicts appear.
171 !IF "$(MSVC_VARIANT)" == "MSVC6" 
172 ZLIB_DIR=$(WIRESHARK_LIBS)\zlib123-dll
173 !ELSE
174 ZLIB_DIR=$(WIRESHARK_LIBS)\zlib123
175 !ENDIF
176
177 #
178 # Optional: The Net-SNMP library enables SNMP OID to name resolvings
179 # for the MIBs available.
180 #
181 # If you have Net-SNMP, set this to the pathname of the directory in
182 # which the Net-SNMP headers and .lib file are stored.
183 #
184 # If you don't have Net-SNMP, comment this line out, so that NET_SNMP_DIR
185 # isn't defined.
186 #
187 NET_SNMP_DIR=$(WIRESHARK_LIBS)\net-snmp-5.4
188
189 #
190 # Optional: the ADNS library enables asynchronous (nonblocking) DNS 
191 # name resolvings.
192 #
193 # If you have GNU ADNS, set this to the directory in which the GNU ADNS 
194 # .lib file is stored.
195 #
196 # If you don't have GNU ADNS, comment this line out, so that ADNS_DIR
197 # isn't defined.
198 #
199 ADNS_DIR=$(WIRESHARK_LIBS)\adns-1.0-win32-05
200
201 #
202 # Optional: the PCRE (Perl Compatible Regular Expressions) library 
203 # enables regular expressions for display filters.
204 #
205 # If you have the PCRE library, set this to the directory in which 
206 # the GNUWIN32 pcre-lib package is stored.
207 #
208 # If you don't have PCRE, comment this line out, so that PCRE_DIR
209 # isn't defined.
210 #
211 PCRE_DIR=$(WIRESHARK_LIBS)\pcre-6.4
212
213 #
214 # Optional: the GNUTLS library enables ssl decryption.
215 #
216 # If you have the GNUTLS library, set this to the directory where 
217 # the lib and include files are stored.
218 #
219 # If you don't have GNUTLS, comment this line out, so that GNUTLS_DIR
220 # isn't defined.
221 #
222 # Platform SDK conflicts with openssl.h header
223 GNUTLS_DIR=$(WIRESHARK_LIBS)\gnutls-1.6.1-1
224
225 #
226 # Optional: the KFW library enables kerberos/sasl/dcerpc decryption.
227 #
228 # If you have the kerberos for windows (mit) library, set this to the 
229 # directory where the kfw package is stored.
230 #
231 # If you don't have KFW, comment this line out, so that KFW_DIR
232 # isn't defined.
233 #
234 KFW_DIR=$(WIRESHARK_LIBS)\kfw-2.5
235
236 #
237 # Optional: the Nettle library enables ??? decryption.
238 #
239 # If you have the Nettle encryption library, set this to the 
240 # directory in which the nettle package is stored.
241 #
242 # If you don't have Nettle, comment this line out, so that NETTLE_DIR
243 # isn't defined.
244 #
245 # NETTLE_DIR=$(WIRESHARK_LIBS)\nettle-1.10
246
247 #
248 # Optional: the LUA library enables scripting support.
249 #
250 # If you have the LUA library, set this to the directory in which 
251 # the LUA package is stored.
252 #
253 # If you don't have LUA, comment this line out, so that LUA_DIR
254 # isn't defined.
255 #
256 LUA_DIR=$(WIRESHARK_LIBS)\lua5.1
257
258 #
259 # Optional: the PORTAUDIO library enables audio output for RTP streams.
260 #
261 # If you have the PORTAUDIO library (used for rtp_player), set this to 
262 # the directory in which the PORTAUDIO library is stored.
263 #
264 # If you don't have PORTAUDIO, comment this line out, so that 
265 # PORTAUDIO_DIR isn't defined.
266 #
267 #PORTAUDIO_DIR=$(WIRESHARK_LIBS)\portaudio_v18_1
268 PORTAUDIO_DIR=$(WIRESHARK_LIBS)\portaudio_v19
269
270 #
271 # Version number of PortAudio
272
273 #PORTAUDIO_VERSION=18
274 PORTAUDIO_VERSION=19
275
276 #
277 # Mandatory for GTK >= 2: Iconv
278 #
279 # Set ICONV_DIR to the directory in which the
280 # ICONV include files and library resides.
281 #
282 ICONV_DIR=$(WIRESHARK_LIBS)\libiconv-1.9.1.bin.woe32
283
284 #
285 # Mandatory for GTK >= 2: Gettext
286 #
287 # Set GETTEXT_DIR to the directory in which the
288 # GETTEXT include files and library resides.
289 #
290 #GETTEXT_DIR=$(WIRESHARK_LIBS)\gettext-runtime-0.13.1
291 GETTEXT_DIR=$(WIRESHARK_LIBS)\gettext-0.14.5
292
293 #
294 # Optional: AirPcap developer's pack to capture wireless network traffic 
295 # incl. 802.11 management frames.
296 #
297 # If you have the AirPcap developer's pack, set this to the directory 
298 # in which the AirPcap developer's pack resides.
299 #
300 # If you don't have the AirPcap developer's pack, comment this line out, 
301 # so that AIRPCAP_DIR isn't defined.
302 #
303 AIRPCAP_DIR=$(WIRESHARK_LIBS)\AirPcap_Devpack_1_0_0_594\AirPcap_Devpack
304
305
306
307 ##### Tools #####
308
309 # Set the following mandatory commands to find the tools.
310 # The easiest way is to use the corresponding packages from cygwin.
311
312 # Set up the path to the cygwin binaries
313 CYGWIN_PATH=c:\cygwin\bin
314
315 # command for a shell (cygwin's bash package recommended)
316 SH_PROG=bash
317
318 # bash versions after 3.1.6 need the 'igncr' shell option to be able to
319 #  process scripts in windows 'native format' (dos crlf format). 
320 # The following !IF results in the option being used only if it is available
321 #  since using it on bash version 3.1.6 (or earlier) is not required and
322 #  will cause an error message.
323 !if "$(SH_PROG)"=="bash" && [$(CYGWIN_PATH)\bash -c "set -o igncr" 2>nul: ] == 0
324 SH_FLAGS=-o igncr
325 !endif
326
327 SH=$(SH_PROG) $(SH_FLAGS)
328
329
330 # command for perl (cygwin's perl package recommended)
331 PERL=perl
332
333 # command for pod2man and pod2html 
334 # (part of the perl package, usually leave these unchanged)
335 POD2MAN=$(SH) pod2man
336 POD2HTML=$(SH) pod2html
337
338 # command for native windows python (recommended)
339 PYTHON="C:/python24/python.exe"
340 # add native python to the path (not needed if cygwin's python is used)
341 PATH=c:\python24;$(PATH)
342
343 # command for python (cygwin's python package, not recommended)
344 #PYTHON=env python
345
346 # command for lex/flexx (cygwin's flex recommended)
347 LEX=flex
348
349 # command for yacc/bison (cygwin's bison recommended)
350 YACC=bison
351
352 #
353 # Optional: To build the NSIS installer.
354 #
355 # If you have the NSIS package, set this to the NSIS executable.
356 #
357 # If you don't have NSIS, comment this line out, so that MAKENSIS
358 # isn't defined.
359 #
360 MAKENSIS="$(PROGRAM_FILES)\nsis\makensis.exe"
361
362 #
363 # Optional: To build the developers documentation with doxygen and dot.
364 # Currently experimental only.
365 #
366 # You will have to download and install:
367 # Doxygen from: www.doxygen.org
368 # Graphviz from: http://www.research.att.com/sw/tools/graphviz/
369 #
370 # If you have doxygen, set this to the doxygen executable.
371 #
372 # If you don't want the developers documentation (or don't have the tools),
373 # comment this line out, so that DOXYGEN isn't defined.
374 #
375 #DOXYGEN="$(PROGRAM_FILES)/doxygen/bin/doxygen.exe"
376
377 #
378 # Optional: To build compressed html help format .chm and use it as online help format.
379 # You will have to download and install the html help compiler from:
380 #
381 # http://msdn.microsoft.com/library/default.asp?url=/library/en-us/htmlhelp/html
382 # /hwMicrosoftHTMLHelpDownloads.asp 
383 #
384 # Then point HHC_DIR to the html help dir (where hhc.exe resides).
385 #
386 # If you don't want the online help (or don't have the tools),
387 # comment this line out, so that HHC_DIR isn't defined.
388 #
389 #HHC_DIR="$(PROGRAM_FILES)/HTML Help Workshop/"
390
391
392
393 ##### Flags, PATHs and Miscellaneous #####
394
395 # Compiler flags:
396 # /W3  warning level 3 (0 less - 4 most, 1 default)
397 # /Zi  create .pdb file for debugging
398 # /MD  use "Multithreading Debug" libraries
399 # /D_CRT_SECURE_NO_DEPRECATE don't warn for "insecure" calls, see MSDN "Security Enhancements in the CRT"
400 # /D_CRT_NONSTDC_NO_DEPRECATE don't warn for "Deprecated CRT Functions" as MSDN calls this
401 #
402 !IF "$(MSVC_VARIANT)" == "MSVC6" || "$(MSVC_VARIANT)" == "MSVC2002" || "$(MSVC_VARIANT)" == "DOTNET10" || "$(MSVC_VARIANT)" == "MSVC2003" || "$(MSVC_VARIANT)" == "DOTNET11"
403 LOCAL_CFLAGS=/Zi /W3 /MD
404 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2005" || "$(MSVC_VARIANT)" == "MSVC2005EE" || "$(MSVC_VARIANT)" == "DOTNET20"
405 LOCAL_CFLAGS=/Zi /W3 /MD /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE
406 !ELSE
407 !ERROR MSVC_VARIANT unknown
408 !ENDIF
409
410 # Linker flags:
411 # /DEBUG  generate debug info
412 # /PROFILE generate map file(s) for profiling
413 # /DEFAULTLIB:xxx use xxx as the standard C library
414 # /NODEFAULTLIB:xxx don't use xxx as the standard C library
415
416 LOCAL_LDFLAGS=/DEBUG
417
418 PLUGIN_LDFLAGS = /NOLOGO /INCREMENTAL:no /MACHINE:I386 $(LOCAL_LDFLAGS)
419
420 #
421 # According to http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=403
422 # XCOPY under Windows NT doesn't support the "/Y" flag.  This works
423 # around that bug.
424 # XXX - This apparently doesn't work for some versions of nmake:
425 # http://support.microsoft.com/default.aspx?scid=kb;en-us;86814
426 # It looks like we'll have to call "set copycmd=/y" before we run xcopy.
427 COPYCMD=/y
428
429 #
430 # If you don't want to build libwireshark.dll, you should comment out the
431 # following line. (Note: for plugin support this option must stay activated)
432 ENABLE_LIBWIRESHARK=USE
433
434 #
435 # install (debug) directory for Wireshark GTK1 version (relative to your source dir)
436 INSTALL1_DIR=wireshark-gtk1
437
438 #
439 # install (debug) directory for Wireshark GTK2 version (relative to your source dir)
440 INSTALL2_DIR=wireshark-gtk2
441
442
443
444 ##### C-Runtime Redistributable #####
445 #
446 # The C-Runtime since Version 7 must be shipped together with 
447 # the program installer, to avoid missing msvcr*.dll files on
448 # the target machine.
449 #
450 # The location of these files differ on the various compiler 
451 # packages, the following will use the default paths depending
452 # on the package version.
453 #
454 !IF "$(MSVC_VARIANT)" == "MSVC6"
455 # msvcrt.dll will already be available on target machines - nothing additional to install
456
457 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2002"
458 # you probably need to tweak this directory if you don't use the professional edition!
459 MSVCR_DLL=$(PROGRAM_FILES)\Microsoft Visual Studio .NET\Visual Studio .NET Professional - English\msvcr70.dll
460
461 !ELSEIF "$(MSVC_VARIANT)" == "DOTNET10"
462 # no redistributable available for this package!
463
464 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2003"
465 # you probably need to tweak this directory if you don't use the professional edition!
466 MSVCR_DLL=$(PROGRAM_FILES)\Microsoft Visual Studio .NET 2003\Visual Studio .NET Professional 2003 - English\msvcr71.dll
467
468 !ELSEIF "$(MSVC_VARIANT)" == "DOTNET11"
469 # no redistributable available for this package!
470
471 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2005"
472 MSVCR_DLL=$(PROGRAM_FILES)\Microsoft Visual Studio 8\VC\redist\x86\Microsoft.VC80.CRT\*.*
473
474 !ELSEIF "$(MSVC_VARIANT)" == "MSVC2005EE"
475 # you need to download the redistributable package vcredist_x86.exe from Microsoft first,
476 # and copy it to the lib folder!!!
477 VCREDIST_EXE=$(WIRESHARK_LIBS)\vcredist_x86.exe
478
479 !ELSEIF "$(MSVC_VARIANT)" == "DOTNET20"
480 # you need to download the redistributable package vcredist_x86.exe from Microsoft first,
481 # and copy it to the lib folder!!!
482 VCREDIST_EXE=$(WIRESHARK_LIBS)\vcredist_x86.exe
483
484 !ELSE
485 !ERROR MSVC_VARIANT unknown
486 !ENDIF
487
488
489
490
491 ##############################################################################
492 #
493 # You should not have to change anything below this comment.
494 # If you do, it's a deficiency in the Makefile.nmake files;
495 # either tell wireshark-dev@wireshark.org about it, including
496 # details of why you had to change it, or fix config.nmake
497 # and any Makefile.nmake files that need to be changed, and
498 # send us the patches, along with details of why the change
499 # was necessary.
500 #
501 ##############################################################################
502
503 !IFDEF ENABLE_LIBWIRESHARK
504 # Uncomment next line to link plugins with the import library of libwireshark.dll 
505 LINK_PLUGINS_WITH_LIBWIRESHARK=USE
506 !ENDIF
507
508 #
509 # The RC_VERSION should be comma-separated, not dot-separated, 
510 # as per Graham Bloice's message in
511 #
512 #       http://www.ethereal.com/lists/ethereal-dev/200303/msg00283.html
513 #
514 # "The RC_VERSION variable in config.nmake should be comma separated. 
515 # This allows the resources to be built correctly and the version
516 # number to be correctly displayed in the explorer properties dialog
517 # for the executables, and XP's tooltip, rather than 0.0.0.0."
518 #
519
520 VERSION=$(VERSION_MAJOR).$(VERSION_MINOR).$(VERSION_MICRO)$(VERSION_EXTRA)
521 RC_VERSION=$(VERSION_MAJOR),$(VERSION_MINOR),$(VERSION_MICRO)
522
523 WTAP_VERSION=$(WTAP_VERSION_MAJOR).$(WTAP_VERSION_MINOR).$(WTAP_VERSION_MICRO)
524 RC_WTAP_VERSION=$(WTAP_VERSION_MAJOR),$(WTAP_VERSION_MINOR),$(WTAP_VERSION_MICRO)
525
526
527 GLIB_CFLAGS=/I$(GLIB_DIR)\include\glib-$(GLIB_VERSION) \
528         /I$(GLIB_DIR)\lib\glib-$(GLIB_VERSION)\include
529 GCC_GLIB_CFLAGS=-I$(GLIB_DIR)\include\glib-$(GLIB_VERSION) \
530         -I$(GLIB_DIR)\lib\glib-$(GLIB_VERSION)\include
531 GLIB_LIBS=$(GLIB_DIR)\lib\glib-$(GLIB_VERSION).lib \
532         $(GLIB_DIR)\lib\gmodule-$(GLIB_VERSION).lib \
533         $(GLIB_DIR)\lib\gobject-$(GLIB_VERSION).lib
534
535 # GTK+ 1.3
536 GTK1_CFLAGS=$(GLIB_CFLAGS) /I$(GTK1_DIR)\include /I$(GTK1_DIR)\include\gdk \
537         /I$(GTK1_DIR)\lib\gtk+\include
538 GTK1_LIBS=$(GTK1_DIR)\lib\gtk.lib \
539         $(GTK1_DIR)\lib\gdk.lib \
540         $(GLIB_LIBS)
541
542 # GTK+ 2.x
543 GTK2_CFLAGS=$(GLIB_CFLAGS) /I$(GTK2_DIR)\include\gtk-2.0 \
544         /I$(GTK2_DIR)\lib\gtk-2.0\include \
545         /I$(GTK2_DIR)\include\atk-1.0 \
546         /I$(GTK2_DIR)\include\cairo \
547         /I$(GTK2_DIR)\include\pango-1.0
548 GTK2_LIBS=$(GTK2_DIR)\lib\gtk-win32-2.0.lib \
549         $(GTK2_DIR)\lib\gdk-win32-2.0.lib \
550         $(GTK2_DIR)\lib\gdk_pixbuf-2.0.lib \
551         $(GTK2_DIR)\lib\pango-1.0.lib \
552         $(GLIB_LIBS)
553
554 !IF "$(GTK2_INST_VERSION)" == "2.10"
555 GTK2_LIB_DIR=2.10.0
556 NEED_LIBPNG_DLL=USE
557 NEED_CAIRO_DLL=USE
558 GTK_WIMP_DIR=DUMMY_TO_USE_WIMP
559 GTK_WIMP_DLLSRC_DIR=$(GTK2_DIR)\lib\gtk-2.0\2.10.0\engines
560 GTK_WIMP_DLLDST_DIR=lib\gtk-2.0\2.10.0\engines
561 GTK_WIMP_RCSRC_DIR=$(GTK2_DIR)\share\themes\MS-Windows\gtk-2.0
562 GTK_WIMP_RCDST_DIR=etc\gtk-2.0
563 !ELSEIF "$(GTK2_INST_VERSION)" == "2.8"
564 # the lib dir of GTK2.6 didn't changed since 2.4.0
565 GTK2_LIB_DIR=2.4.0
566 NEED_LIBPNG_DLL=USE
567 NEED_CAIRO_DLL=USE
568 GTK_WIMP_DIR=DUMMY_TO_USE_WIMP
569 GTK_WIMP_DLLSRC_DIR=$(GTK2_DIR)\lib\gtk-2.0\2.4.0\engines
570 GTK_WIMP_DLLDST_DIR=lib\gtk-2.0\2.4.0\engines
571 GTK_WIMP_RCSRC_DIR=$(GTK2_DIR)\share\themes\MS-Windows\gtk-2.0
572 GTK_WIMP_RCDST_DIR=etc\gtk-2.0
573 !ELSEIF "$(GTK2_INST_VERSION)" == "2.6"
574 GTK2_LIB_DIR=2.4.0
575 GTK_WIMP_DLLSRC_DIR=$(GTK_WIMP_DIR)
576 GTK_WIMP_DLLDST_DIR=lib\gtk-2.0\2.4.0\engines
577 GTK_WIMP_RCSRC_DIR=$(GTK_WIMP_DIR)\Theme\gtk-2.0
578 GTK_WIMP_RCDST_DIR=share\themes\Default\gtk-2.0
579 GTK_THEME_DIR=$(GTK_WIMP_DIR)\Theme\gtk-2.0
580 !ENDIF
581
582 # the lib dir of PANGO changed in 1.12
583 !IF "$(PANGO_INST_VERSION)" == "1.14"
584 PANGO_LIB_DIR=1.5.0
585 !ELSEIF "$(PANGO_INST_VERSION)" == "1.10"
586 PANGO_LIB_DIR=1.4.0
587 !ELSEIF "$(PANGO_INST_VERSION)" == "1.8"
588 PANGO_LIB_DIR=1.4.0
589 !ELSEIF "$(PANGO_INST_VERSION)" == "1.4"
590 PANGO_LIB_DIR=1.4.0
591 !ELSEIF "$(PANGO_INST_VERSION)" == "1.2"
592 PANGO_LIB_DIR=1.2.0
593 !ENDIF
594
595 !IFDEF AIRPCAP_DIR
596 AIRPCAP_CONFIG=^#define HAVE_AIRPCAP 1
597 AIRPDCAP_CONFIG=^#define HAVE_AIRPDCAP 1
598 !ELSE
599 AIRPCAP_CONFIG=
600 AIRPDCAP_CONFIG=
601 !ENDIF
602
603 !IFDEF PCAP_DIR
604 # Nmake uses carets to escape special characters
605 WINPCAP_CONFIG=^#define HAVE_LIBPCAP 1
606 !IF "$(WINPCAP_VERSION)" == "3.0" || "$(WINPCAP_VERSION)" == "3.1"
607 PCAP_FINDALLDEVS_CONFIG=^#define HAVE_PCAP_FINDALLDEVS 1
608 PCAP_DATALINK_NAME_TO_VAL_CONFIG=^#define HAVE_PCAP_DATALINK_NAME_TO_VAL 1
609 PCAP_DATALINK_VAL_TO_NAME_CONFIG=^#define HAVE_PCAP_DATALINK_VAL_TO_NAME 1
610 # PCAP_BREAKLOOP won't have any benefit on Win32, but breaks compatibility with 3.0
611 #!IF "$(WINPCAP_VERSION)" == "3.1"
612 #PCAP_BREAKLOOP_CONFIG=^#define HAVE_PCAP_BREAKLOOP 1
613 #!ELSE
614 PCAP_BREAKLOOP_CONFIG=
615 #!ENDIF
616 WPCAP_CONSTIFIED_CONFIG=^#define WPCAP_CONSTIFIED 1
617 !ELSE
618 PCAP_FINDALLDEVS_CONFIG=
619 PCAP_DATALINK_NAME_TO_VAL_CONFIG=
620 PCAP_DATALINK_VAL_TO_NAME_CONFIG=
621 PCAP_BREAKLOOP_CONFIG=
622 WPCAP_CONSTIFIED=
623 !ENDIF
624 !ELSE
625 WINPCAP_CONFIG=
626 PCAP_FINDALLDEVS_CONFIG=
627 PCAP_DATALINK_NAME_TO_VAL_CONFIG=
628 PCAP_DATALINK_VAL_TO_NAME_CONFIG=
629 PCAP_BREAKLOOP_CONFIG=
630 WPCAP_CONSTIFIED=
631 !ENDIF
632
633 !IFDEF ZLIB_DIR
634 ZLIB_PATH=$(ZLIB_DIR)
635 ZLIB_CFLAGS=/I$(ZLIB_DIR)\include
636 ZLIB_LIBS=$(ZLIB_DIR)\lib\zdll.lib
637 # Nmake uses carets to escape special characters
638 ZLIB_CONFIG=^#define HAVE_LIBZ 1
639 !else
640 ZLIB_CFLAGS=
641 ZLIB_LIBS=
642 ZLIB_CONFIG=
643 !ENDIF
644
645 !IFDEF NET_SNMP_DIR
646 NET_SNMP_CFLAGS=/I$(NET_SNMP_DIR)\include /I$(NET_SNMP_DIR)\win32
647 NET_SNMP_LIBS=$(NET_SNMP_DIR)\win32\lib\release\netsnmp.lib
648 # Nmake uses carets to escape special characters
649 NET_SNMP_CONFIG=^#define HAVE_NET_SNMP 1
650 !else
651 NET_SNMP_CFLAGS=
652 NET_SNMP_LIBS=
653 NET_SNMP_CONFIG=
654 !ENDIF
655
656 !IFDEF ADNS_DIR
657 ADNS_PATH=$(ADNS_DIR)\adns_win32\lib
658 ADNS_CFLAGS=/I$(ADNS_DIR)\src /I$(ADNS_DIR)\adns_win32
659 ADNS_LIBS=$(ADNS_DIR)\adns_win32\lib\adns_dll.lib
660 # Nmake uses carets to escape special characters
661 ADNS_CONFIG=^#define HAVE_GNU_ADNS 1
662 !else
663 ADNS_CFLAGS=
664 ADNS_LIBS=
665 ADNS_CONFIG=
666 !ENDIF
667
668 !IFDEF KFW_DIR
669 KFW_PATH=$(KFW_DIR)\bin
670 KFW_CFLAGS=/I$(KFW_DIR)\inc
671 KFW_LIBS=$(KFW_DIR)\lib\krb5_32.lib
672 # Nmake uses carets to escape special characters
673 KFW_CONFIG=^#define HAVE_MIT_KERBEROS 1
674 !else
675 KFW_CFLAGS=
676 KFW_LIBS=
677 KFW_CONFIG=
678 !ENDIF
679
680 !IFDEF PCRE_DIR
681 PCRE_PATH=$(PCRE_DIR)\bin
682 PCRE_CFLAGS=/I$(PCRE_DIR)\include
683 PCRE_LIBS=$(PCRE_DIR)\lib\pcre.lib
684 # Nmake uses carets to escape special characters
685 PCRE_CONFIG=^#define HAVE_LIBPCRE 1
686 !else
687 PCRE_CFLAGS=
688 PCRE_LIBS=
689 PCRE_CONFIG=
690 !ENDIF
691
692 !IFDEF NETTLE_DIR
693 NETTLE_CFLAGS=/I$(NETTLE_DIR)
694 NETTLE_LIBS=$(NETTLE_DIR)\libnettle.lib
695 # Nmake uses carets to escape special characters
696 NETTLE_CONFIG=^#define HAVE_LIBNETTLE 1
697 !else
698 NETTLE_CFLAGS=
699 NETTLE_LIBS=
700 NETTLE_CONFIG=
701 !ENDIF
702
703 !IFDEF GNUTLS_DIR
704 GNUTLS_PATH=$(GNUTLS_DIR)
705 # /DNOCRYPT avoids inclusion of Wincrypt.h, avoiding a X509_NAME define clash
706 GNUTLS_CFLAGS=/I$(GNUTLS_DIR)\include /DNOCRYPT
707 GNUTLS_LIBS=\
708         $(GNUTLS_DIR)\bin\libtasn1-3.lib        \
709         $(GNUTLS_DIR)\bin\libgpg-error-0.lib    \
710         $(GNUTLS_DIR)\bin\libgcrypt-11.lib      \
711         $(GNUTLS_DIR)\bin\libgnutls-13.lib
712 # Nmake uses carets to escape special characters
713 GNUTLS_CONFIG=^#define HAVE_LIBGNUTLS 1
714 LIBGCRYPT_CONFIG=^#define HAVE_LIBGCRYPT 1
715 !else
716 GNUTLS_CFLAGS=
717 GNUTLS_LIBS=
718 GNUTLS_CONFIG=
719 LIBGCRYPT_CONFIG=
720 !ENDIF
721
722 !IFDEF LUA_DIR
723 LUA_CFLAGS=/I$(LUA_DIR)\include
724 LUA_LIBS=$(LUA_DIR)\lib\dll\lua5.1.lib
725 # Nmake uses carets to escape special characters
726 LUA_CONFIG=^#define HAVE_LUA 1
727 LUA_VERSION=^#define HAVE_LUA_5_1 1
728 !else
729 LUA_CFLAGS=
730 LUA_LIBS=
731 LUA_CONFIG=
732 !ENDIF
733
734 !IFDEF PORTAUDIO_DIR
735 # Nmake uses carets to escape special characters
736 PORTAUDIO_CONFIG=^#define HAVE_LIBPORTAUDIO 1
737 !IF "$(PORTAUDIO_VERSION)" == "18"
738 # V18 uses API version 1 and v19 API version 2
739 PORTAUDIO_CFLAGS=/I$(PORTAUDIO_DIR)\pa_common
740 PORTAUDIO_API_CONFIG=^#define PORTAUDIO_API_1 1
741 !ELSE
742 PORTAUDIO_CFLAGS=/I$(PORTAUDIO_DIR)\include /I$(PORTAUDIO_DIR)\src\common
743 !ENDIF
744
745 !else
746 PORTAUDIO_CFLAGS=
747 PORTAUDIO_CONFIG=
748 !ENDIF
749
750 !IFDEF HHC_DIR
751 !IF "$(MSVC_VARIANT)" == "MSVC6"
752 HHC_CFLAGS=/I$(HHC_DIR)\include -DHHC_DIR
753 HHC_LIBS=$(HHC_DIR)\lib\htmlhelp.lib
754 !ELSE
755 HHC_CFLAGS=-DHHC_DIR
756 HHC_LIBS=htmlhelp.lib
757 !ENDIF
758 !ELSE
759 HHC_CFLAGS=
760 HHC_LIBS=
761 !ENDIF
762
763 !IFDEF ENABLE_LIBWIRESHARK
764 LIBWIRESHARK_CONFIG=^#define HAVE_LIBWIRESHARKDLL 1
765 !ELSE
766 LIBWIRESHARK_CONFIG=
767 !ENDIF
768
769 # Construct the path
770 PATH=$(PATH);$(CYGWIN_PATH);$(GLIB_DIR)\bin;$(GETTEXT_DIR)\bin;$(ICONV_DIR)\bin;$(ZLIB_PATH);$(ADNS_PATH)