Add some of the anytime operations.
[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.
5
6 # The current Ethereal version
7 VERSION=0.10.9
8
9 #
10 # The RC_VERSION should be comma-separated, not dot-separated, 
11 # as per Graham Bloice's message in
12 #
13 #       http://www.ethereal.com/lists/ethereal-dev/200303/msg00283.html
14 #
15 # "The RC_VERSION variable in config.nmake should be comma separated. 
16 # This allows the resources to be built correctly and the version
17 # number to be correctly displayed in the explorer properties dialog
18 # for the executables, and XP's tooltip, rather than 0.0.0.0."
19 #
20 RC_VERSION=0,10,9
21
22 # The version of the wiretap library
23 WTAP_VERSION=0.1
24 RC_WTAP_VERSION=0,1
25
26 #
27 # If you're building with WinPcap 2.3, set WINPCAP_VERSION to 2.3; if
28 # you're building with WinPcap 3.0, set it to 3.0; if you're building
29 # with WinPcap 3.1 alpha, set it to 3.1.
30 #
31 # If you're not building with WinPcap at all, don't set it (comment
32 # out or remove the line that sets it).
33 #
34 WINPCAP_VERSION=3.0
35
36
37 # Base directory, where your libraries reside, which needs to be 
38 # compiling the sources. This is only inside this file.
39 #
40 ETHEREAL_LIBS=C:\ethereal-win32-libs
41
42 #
43 # Current versions of GTK+ 1.3 require GLib 2.0.  Earlier versions of
44 # GTK+ 1.3 are buggy; we don't recommend using them, and we don't
45 # support them.  Upgrade to the current version.
46 #
47 GLIB_VERSION=2.0
48 GLIB_DIR=$(ETHEREAL_LIBS)\glib
49
50 #
51 # This presumes that GTK+ 1.3 packages put header files and libraries
52 # directly in a "gtk+" directory, while GTK+ 2.x developer's packages
53 # put header files in an "include\gtk-{version}" directory and libraries
54 # in a "lib\gtk-{version}" directory.
55 #
56 # It's possible, to build both GTK version 1 and 2 at the same time,
57 # or only one of the versions. GTK version 1 is currently recommended.
58
59 # If you want building with GTK+ 1.3, set GTK1_DIR to the pathname of the 
60 # "gtk+" directory; if you want building with GTK+ 2.x, set GTK2_DIR to 
61 # the pathname of the directory in which the "include" and "lib" directories 
62 # reside.
63 #
64 GTK1_DIR=$(ETHEREAL_LIBS)\gtk+
65 GTK2_DIR=$(ETHEREAL_LIBS)\gtk2
66
67 # Declare the version of your gtk2 and pango. (MAJOR + MINOR Version number
68 # but without MICRO version number) 
69 # These macros are used by the nsis installer script and by the setup target.
70 #
71 #GTK2_INST_VERSION=2.2
72 #PANGO_INST_VERSION=1.2
73 GTK2_INST_VERSION=2.4
74 PANGO_INST_VERSION=1.4
75
76 #
77 # If you have GTK-Wimp, set this to the pathname of the directory in
78 # which the files are stored.
79 #
80 # If you don't have GTK-Wimp, comment this line out, so that GTK-Wimp isn't
81 # defined.
82 #
83 GTK_WIMP_DIR=$(ETHEREAL_LIBS)\gtk-wimp
84
85 #
86 # If you have Zlib, set this to the pathname of the directory in
87 # which the Zlib headers and .lib file are stored.
88 #
89 # If you don't have Zlib, comment this line out, so that Zlib isn't
90 # defined.
91 #
92 ZLIB_DIR=$(ETHEREAL_LIBS)\zlib122-dll
93
94 #
95 # Set PCAP_DIR to the pathname of the directory in which the WinPcap
96 # developer's pack resides
97 #
98 PCAP_DIR=$(ETHEREAL_LIBS)\WPdpack
99
100 #
101 # Set NET_SNMP_DIR to the pathname of the directory in which the
102 # Net-SNMP include files and library resides.
103 #
104 NET_SNMP_DIR=$(ETHEREAL_LIBS)\net-snmp-5.1.2
105
106 #
107 # If you have GNU ADNS, set this to the pathname of the directory in
108 # which the GNU ADNS .lib file is stored.
109 #
110 # If you don't have GNU ADNS, comment this line out, so that ADNS_DIR
111 # isn't defined.
112 #
113 ADNS_DIR=$(ETHEREAL_LIBS)\adns-1.0-win32-04
114
115 #
116 # If you have the PCRE (Perl Compatible Regular Expressions) library,
117 # set this to the pathname of the directory in which the GNUWIN32
118 # pcre-lib package has been extracted.
119 #
120 # If you don't have PCRE, comment this line out, so that PCRE_DIR
121 # isn't defined.
122 #
123 PCRE_DIR=$(ETHEREAL_LIBS)\pcre-4.4
124
125 #
126 # If you have the Nettle encryption library, set this to the pathname
127 # of the directory in which the nettle package has been extracted.
128 #
129 # If you don't have Nettle, comment this line out, so that NETTLE_DIR
130 # isn't defined.
131 #
132 # NETTLE_DIR=$(ETHEREAL_LIBS)\nettle-1.10
133
134 #
135 # Set ICONV_DIR to the pathname of the directory in which the
136 # ICONV include files and library resides.
137 #
138 ICONV_DIR=$(ETHEREAL_LIBS)\libiconv-1.9.1.bin.woe32
139
140 #
141 # Set GETTEXT_DIR to the pathname of the directory in which the
142 # GETTEXT include files and library resides.
143 #
144 GETTEXT_DIR=$(ETHEREAL_LIBS)\gettext-runtime-0.13.1
145
146 # Compiler flags
147 # /W3  warning level 3 (0 less - 4 most, 1 default)
148 # /Zi  create .pdb file for debugging
149 LOCAL_CFLAGS=/Zi /W3
150
151 # Linker flags
152 # /DEBUG generate debug info
153 LOCAL_LDFLAGS=/DEBUG
154
155 # Set PDB_FILE according to your VC++ version 
156 PDB_FILE=vc*.pdb
157
158 # add cygwin binaries to the path
159 PATH=$(PATH);c:\cygwin\bin
160
161 # add some required DLLs to the path 
162 PATH=$(GLIB_DIR)\bin;$(GETTEXT_DIR)\bin;$(ICONV_DIR)\bin;$(PATH)
163
164
165 # Set the following commands to find the tools.
166 # The easiest way is to use the corresponding packages from cygwin.
167
168 # command for a shell (typically cygwin's bash package)
169 SH=bash
170
171 # command for perl (typically cygwin's perl package)
172 PERL=perl
173
174 # command for pod2man and pod2html (part of the perl package)
175 POD2MAN=$(SH) pod2man
176 POD2HTML=$(SH) pod2html
177
178 # command for python (native windows version)
179 #PYTHON="C:/python23/python.exe"
180 # add native python to the path (not needed if cygwin's python is used)
181 #PATH=c:\python23;$(PATH)
182
183 # command for python (typically cygwin's python package)
184 PYTHON=env python
185
186 # command for lex/flexx (typically cygwin's flex package)
187 LEX=flex
188
189 # command for yacc/bison (typically cygwin's bison package)
190 YACC=bison
191
192 # To build the installer
193 MAKENSIS="C:/program files/nsis/makensis.exe"
194
195 # Choose modern style user interface for the installer.
196 # When using this, make sure you have a supported NSIS
197 # version installed. See "packaging\nsis\ethereal.nsi" for details.
198 #
199 # If you don't want the modern UI (or don't have a recent NSIS version),
200 # comment this line out, so that MAKENSIS_MODERN_UI isn't defined.
201 #
202 MAKENSIS_MODERN_UI=USE
203
204 # To build the developers documentation with doxygen and dot.
205 # Currently experimental only.
206 # You will have to download and install:
207 #
208 # Doxygen from: www.doxygen.org
209 # Graphviz from: http://www.research.att.com/sw/tools/graphviz/
210 #
211 # If you don't want the developers documentation (or don't have the tools),
212 # comment this line out, so that DOXYGEN isn't defined.
213 #
214 #DOXYGEN="C:/program files/doxygen/bin/doxygen.exe"
215
216 # To build compressed html help format .chm from doxygen output.
217 # Currently experimental only.
218 # You will have to download and install the html help compiler from:
219 #
220 # http://msdn.microsoft.com/library/default.asp?url=/library/en-us/htmlhelp/html
221 # /hwMicrosoftHTMLHelpDownloads.asp 
222 #
223 # Then point HHC to the html help compiler exe.
224 #
225 # The .chm file(s) are not generated by default. You will have to generate the 
226 # file(s) by calling the Makefile.nmake's target doxygen.chm in the submodules (epan/gk/...).
227 #
228 #HHC="C:/Program Files/HTML Help Workshop/hhc.exe"
229
230 # If you don't want to build libethereal.dll, you should comment out the
231 # following line
232 ENABLE_LIBETHEREAL=USE
233
234 !IFDEF ENABLE_LIBETHEREAL
235 # Uncomment next line to link plugins with the import library of libethereal.dll 
236 LINK_PLUGINS_WITH_LIBETHEREAL=USE
237 !ENDIF
238
239 #
240 # You should not have to change anything below this comment.
241 # If you do, it's a deficiency in the Makefile.nmake files;
242 # either tell ethereal-dev@ethereal.com about it, including
243 # details of why you had to change it, or fix config.nmake
244 # and any Makefile.nmake files that need to be changed, and
245 # send us the patches, along with details of why the change
246 # was necessary.
247 #
248 GLIB_CFLAGS=/I$(GLIB_DIR)\include\glib-$(GLIB_VERSION) \
249         /I$(GLIB_DIR)\lib\glib-$(GLIB_VERSION)\include
250 GCC_GLIB_CFLAGS=-I$(GLIB_DIR)\include\glib-$(GLIB_VERSION) \
251         -I$(GLIB_DIR)\lib\glib-$(GLIB_VERSION)\include
252 GLIB_LIBS=$(GLIB_DIR)\lib\glib-$(GLIB_VERSION).lib \
253         $(GLIB_DIR)\lib\gmodule-$(GLIB_VERSION).lib \
254         $(GLIB_DIR)\lib\gobject-$(GLIB_VERSION).lib
255
256 # GTK+ 1.3
257 GTK1_CFLAGS=$(GLIB_CFLAGS) /I$(GTK1_DIR)\include /I$(GTK1_DIR)\include\gdk \
258         /I$(GTK1_DIR)\lib\gtk+\include
259 GTK1_LIBS=$(GTK1_DIR)\lib\gtk.lib \
260         $(GTK1_DIR)\lib\gdk.lib \
261         $(GLIB_LIBS)
262
263 # GTK+ 2.x
264 GTK2_CFLAGS=$(GLIB_CFLAGS) /I$(GTK2_DIR)\include\gtk-2.0 \
265         /I$(GTK2_DIR)\lib\gtk-2.0\include \
266         /I$(GTK2_DIR)\include\atk-1.0 \
267         /I$(GTK2_DIR)\include\pango-1.0
268 GTK2_LIBS=$(GTK2_DIR)\lib\gtk-win32-2.0.lib \
269         $(GTK2_DIR)\lib\gdk-win32-2.0.lib \
270         $(GTK2_DIR)\lib\gdk_pixbuf-2.0.lib \
271         $(GTK2_DIR)\lib\pango-1.0.lib \
272         $(GLIB_LIBS)
273
274 !IFDEF WINPCAP_VERSION
275 # Nmake uses carets to escape special characters
276 WINPCAP_CONFIG=^#define HAVE_LIBPCAP 1
277 !IF "$(WINPCAP_VERSION)" == "3.0" || "$(WINPCAP_VERSION)" == "3.1"
278 PCAP_FINDALLDEVS_CONFIG=^#define HAVE_PCAP_FINDALLDEVS 1
279 PCAP_DATALINK_NAME_TO_VAL_CONFIG=^#define HAVE_PCAP_DATALINK_NAME_TO_VAL 1
280 PCAP_DATALINK_VAL_TO_NAME_CONFIG=^#define HAVE_PCAP_DATALINK_VAL_TO_NAME 1
281 WPCAP_CONSTIFIED_CONFIG=^#define WPCAP_CONSTIFIED 1
282 !ELSE
283 PCAP_FINDALLDEVS_CONFIG=
284 PCAP_DATALINK_VAL_TO_NAME_CONFIG=
285 WPCAP_CONSTIFIED=
286 !ENDIF
287 !ELSE
288 WINPCAP_CONFIG=
289 PCAP_FINDALLDEVS_CONFIG=
290 PCAP_DATALINK_NAME_TO_VAL_CONFIG=
291 PCAP_DATALINK_VAL_TO_NAME_CONFIG=
292 WPCAP_CONSTIFIED=
293 !ENDIF
294
295 !IFDEF ZLIB_DIR
296 PATH=$(ZLIB_DIR);$(PATH)
297 ZLIB_CFLAGS=/I$(ZLIB_DIR)\include
298 ZLIB_LIBS=$(ZLIB_DIR)\lib\zdll.lib
299 # Nmake uses carets to escape special characters
300 ZLIB_CONFIG=^#define HAVE_LIBZ 1
301 !else
302 ZLIB_CFLAGS=
303 ZLIB_LIBS=
304 ZLIB_CONFIG=
305 !ENDIF
306
307 !IFDEF ADNS_DIR
308 PATH=$(ADNS_DIR)\adns_win32\lib;$(PATH)
309 ADNS_CFLAGS=/I$(ADNS_DIR)\src /I$(ADNS_DIR)\adns_win32
310 ADNS_LIBS=$(ADNS_DIR)\adns_win32\lib\adns_dll.lib
311 # Nmake uses carets to escape special characters
312 ADNS_CONFIG=^#define HAVE_GNU_ADNS 1
313 !else
314 ADNS_CFLAGS=
315 ADNS_LIBS=
316 ADNS_CONFIG=
317 !ENDIF
318
319 !IFDEF PCRE_DIR
320 PATH=$(PCRE_DIR)\bin;$(PATH)
321 PCRE_CFLAGS=/I$(PCRE_DIR)\include
322 PCRE_LIBS=$(PCRE_DIR)\lib\pcre.lib
323 # Nmake uses carets to escape special characters
324 PCRE_CONFIG=^#define HAVE_LIBPCRE 1
325 !else
326 PCRE_CFLAGS=
327 PCRE_LIBS=
328 PCRE_CONFIG=
329 !ENDIF
330
331 !IFDEF NETTLE_DIR
332 NETTLE_CFLAGS=/I$(NETTLE_DIR)
333 NETTLE_LIBS=$(NETTLE_DIR)\libnettle.lib
334 # Nmake uses carets to escape special characters
335 NETTLE_CONFIG=^#define HAVE_LIBNETTLE 1
336 !else
337 NETTLE_CFLAGS=
338 NETTLE_LIBS=
339 NETTLE_CONFIG=
340 !ENDIF
341
342 !IFDEF ENABLE_LIBETHEREAL
343 LIBETHEREAL_CONFIG=^#define HAVE_LIBETHEREALDLL 1
344 !ELSE
345 LIBETHEREAL_CONFIG=
346 !ENDIF