add details for doxygen
[obnox/wireshark/wip.git] / config.nmake
1 # $Id: config.nmake,v 1.89 2004/05/23 22:21:30 guy Exp $
2
3 VERSION=0.10.4
4 #
5 # The RC_VERSION should be comma-separated, not dot-separated, 
6 # as per Graham Bloice's message in
7 #
8 #       http://www.ethereal.com/lists/ethereal-dev/200303/msg00283.html
9 #
10 # "The RC_VERSION variable in config.nmake should be comma separated. 
11 # This allows the resources to be built correctly and the version
12 # number to be correctly displayed in the explorer properties dialog
13 # for the executables, and XP's tooltip, rather than 0.0.0.0."
14 #
15 RC_VERSION=0,10,4
16 WTAP_VERSION=0.1
17
18 #
19 # If you're building with WinPcap 2.3, set WINPCAP_VERSION to 2.3; if
20 # you're building with WinPcap 3.0, set it to 3.0; if you're building
21 # with WinPcap 3.1 alpha, set it to 3.1.
22 #
23 # If you're not building with WinPcap at all, don't set it (comment
24 # out or remove the line that sets it).
25 #
26 WINPCAP_VERSION=3.0
27
28
29 # Base directory, where your libraries reside, which needs to be 
30 # compiling the sources. This is only inside this file.
31 #
32 ETHEREAL_LIBS=C:\ethereal-win32-libs
33
34 #
35 # Current versions of GTK+ 1.3 require GLib 2.0.  Earlier versions of
36 # GTK+ 1.3 are buggy; we don't recommend using them, and we don't
37 # support them.  Upgrade to the current version.
38 #
39 GLIB_VERSION=2.0
40 GLIB_DIR=$(ETHEREAL_LIBS)\glib
41
42 #
43 # This presumes that GTK+ 1.3 packages put header files and libraries
44 # directly in a "gtk+" directory, while GTK+ 2.x developer's packages
45 # put header files in an "include\gtk-{version}" directory and libraries
46 # in a "lib\gtk-{version}" directory.
47 #
48 # It's possible, to build both GTK version 1 and 2 at the same time,
49 # or only one of the versions. GTK version 1 is currently recommended.
50
51 # If you want building with GTK+ 1.3, set GTK1_DIR to the pathname of the 
52 # "gtk+" directory; if you want building with GTK+ 2.x, set GTK2_DIR to 
53 # the pathname of the directory in which the "include" and "lib" directories 
54 # reside.
55 #
56 GTK1_DIR=$(ETHEREAL_LIBS)\gtk+
57 #GTK2_DIR=$(ETHEREAL_LIBS)\gtk2
58
59 # Declare the version of your gtk2 and pango. (MAJOR + MINOR Version number
60 # but without MICRO version number) 
61 # These macros are used by the nsis installer script.
62 #
63 GTK2_INST_VERSION=2.2
64 PANGO_INST_VERSION=1.2
65
66 #
67 # If you have GTK-Wimp, set this to the pathname of the directory in
68 # which the files are stored.
69 #
70 # If you don't have GTK-Wimp, comment this line out, so that GTK-Wimp isn't
71 # defined.
72 #
73 #GTK_WIMP_DIR=$(ETHEREAL_LIBS)\gtk-wimp
74
75 #
76 # If you have Zlib, set this to the pathname of the directory in
77 # which the Zlib headers and .lib file are stored.
78 #
79 # If you don't have Zlib, comment this line out, so that Zlib isn't
80 # defined.
81 #
82 ZLIB_DIR=$(ETHEREAL_LIBS)\zlib121-dll
83
84 #
85 # Set PCAP_DIR to the pathname of the directory in which the WinPcap
86 # developer's pack resides
87 #
88 PCAP_DIR=$(ETHEREAL_LIBS)\WPdpack
89
90 #
91 # Set NET_SNMP_DIR to the pathname of the directory in which the
92 # Net-SNMP include files and library resides.
93 #
94 NET_SNMP_DIR=$(ETHEREAL_LIBS)\net-snmp-5.1
95
96 #
97 # If you have GNU ADNS, set this to the pathname of the directory in
98 # which the GNU ADNS .lib file is stored.
99 #
100 # If you don't have GNU ADNS, comment this line out, so that ADNS_DIR
101 # isn't defined.
102 #
103 ADNS_DIR=$(ETHEREAL_LIBS)\adns-1.0-win32-03
104
105 #
106 # If you have the PCRE (Perl Compatible Regular Expressions) library,
107 # set this to the pathname of the directory in which the GNUWIN32
108 # pcre-lib package has been extracted.
109 #
110 # If you don't have PCRE, comment this line out, so that PCRE_DIR
111 # isn't defined.
112 #
113 PCRE_DIR=$(ETHEREAL_LIBS)\pcre-4.4
114
115 #
116 # Set ICONV_DIR to the pathname of the directory in which the
117 # ICONV include files and library resides.
118 #
119 ICONV_DIR=$(ETHEREAL_LIBS)\libiconv-1.9.1.bin.woe32
120
121 #
122 # Set GETTEXT_DIR to the pathname of the directory in which the
123 # GETTEXT include files and library resides.
124 #
125 GETTEXT_DIR=$(ETHEREAL_LIBS)\gettext-runtime-0.13.1
126
127 # Compiler flags
128 # /W3  warning level 3 (0 less - 4 most, 1 default)
129 # /Zi  create .pdb file for debugging
130 LOCAL_CFLAGS=/Zi /W3
131
132 # Linker flags
133 # /DEBUG generate debug info
134 LOCAL_LDFLAGS=/DEBUG
135
136 # Set PDB_FILE according to your VC++ version 
137 PDB_FILE=vc*.pdb
138
139 # Set path if you need to find some binary
140 PATH=c:\cygwin\bin;c:\python23;$(PATH)
141
142 # Set path to some required DLLs
143 PATH=$(GLIB_DIR)\bin;$(GETTEXT_DIR)\bin;$(ICONV_DIR)\bin;$(PATH)
144
145 SH=bash
146 PERL=perl
147 POD2MAN=$(SH) pod2man
148 POD2HTML=$(SH) pod2html
149 PYTHON="C:/python23/python.exe"
150 LEX=flex
151 YACC=bison
152
153 # Set YACC_OPTS if cygnus bison can't find template file.
154 #YACC_OPTS=-S t:\w32-ix86\cygnus\cygwin-b20\share\bison.simple 
155
156 # To build the installer
157 MAKENSIS="C:/program files/nsis/makensis.exe"
158
159 # Choose modern style user interface for the installer.
160 # When using this, make sure you have a supported NSIS
161 # version installed. See "packaging\nsis\ethereal.nsi" for details.
162 #
163 # If you don't want the modern UI (or don't have a recent NSIS version),
164 # comment this line out, so that MAKENSIS_MODERN_UI isn't defined.
165 #
166 MAKENSIS_MODERN_UI=USE
167
168 # To build the developers documentation with doxygen (www.doxygen.org).
169 # Currently experimental only.
170 #
171 # If you don't want the developers documentation (or don't have doxygen),
172 # comment this line out, so that DOXYGEN isn't defined.
173 #
174 #DOXYGEN="C:/program files/doxygen/bin/doxygen.exe"
175
176 # If you wan't to build a libethereal.dll, you should comment out the following line
177 #ENABLE_LIBETHEREAL=USE
178
179 #
180 # You should not have to change anything below this comment.
181 # If you do, it's a deficiency in the Makefile.nmake files;
182 # either tell ethereal-dev@ethereal.com about it, including
183 # details of why you had to change it, or fix config.nmake
184 # and any Makefile.nmake files that need to be changed, and
185 # send us the patches, along with details of why the change
186 # was necessary.
187 #
188 GLIB_CFLAGS=/I$(GLIB_DIR)\include\glib-$(GLIB_VERSION) \
189         /I$(GLIB_DIR)\lib\glib-$(GLIB_VERSION)\include
190 GCC_GLIB_CFLAGS=-I$(GLIB_DIR)\include\glib-$(GLIB_VERSION) \
191         -I$(GLIB_DIR)\lib\glib-$(GLIB_VERSION)\include
192 GLIB_LIBS=$(GLIB_DIR)\lib\glib-$(GLIB_VERSION).lib \
193         $(GLIB_DIR)\lib\gmodule-$(GLIB_VERSION).lib \
194         $(GLIB_DIR)\lib\gobject-$(GLIB_VERSION).lib
195
196 # GTK+ 1.3
197 GTK1_CFLAGS=$(GLIB_CFLAGS) /I$(GTK1_DIR)\include /I$(GTK1_DIR)\include\gdk \
198         /I$(GTK1_DIR)\lib\gtk+\include
199 GTK1_LIBS=$(GTK1_DIR)\lib\gtk.lib \
200         $(GTK1_DIR)\lib\gdk.lib \
201         $(GLIB_LIBS)
202
203 # GTK+ 2.x
204 GTK2_CFLAGS=$(GLIB_CFLAGS) /I$(GTK2_DIR)\include\gtk-2.0 \
205         /I$(GTK2_DIR)\lib\gtk-2.0\include \
206         /I$(GTK2_DIR)\include\atk-1.0 \
207         /I$(GTK2_DIR)\include\pango-1.0
208 GTK2_LIBS=$(GTK2_DIR)\lib\gtk-win32-2.0.lib \
209         $(GTK2_DIR)\lib\gdk-win32-2.0.lib \
210         $(GTK2_DIR)\lib\gdk_pixbuf-2.0.lib \
211         $(GTK2_DIR)\lib\pango-1.0.lib \
212         $(GLIB_LIBS)
213
214 !IFDEF WINPCAP_VERSION
215 # Nmake uses carets to escape special characters
216 WINPCAP_CONFIG=^#define HAVE_LIBPCAP 1
217 !IF "$(WINPCAP_VERSION)" == "3.0" || "$(WINPCAP_VERSION)" == "3.1"
218 PCAP_FINDALLDEVS_CONFIG=^#define HAVE_PCAP_FINDALLDEVS 1
219 WPCAP_CONSTIFIED_CONFIG=^#define WPCAP_CONSTIFIED 1
220 !ELSE
221 PCAP_FINDALLDEVS_CONFIG=
222 WPCAP_CONSTIFIED=
223 !ENDIF
224 !ELSE
225 WINPCAP_CONFIG=
226 PCAP_FINDALLDEVS_CONFIG=
227 WPCAP_CONSTIFIED=
228 !ENDIF
229
230 !IFDEF ZLIB_DIR
231 PATH=$(ZLIB_DIR);$(PATH)
232 ZLIB_CFLAGS=/I$(ZLIB_DIR)\include
233 ZLIB_LIBS=$(ZLIB_DIR)\lib\zdll.lib
234 # Nmake uses carets to escape special characters
235 ZLIB_CONFIG=^#define HAVE_LIBZ 1
236 !else
237 ZLIB_CFLAGS=
238 ZLIB_LIBS=
239 ZLIB_CONFIG=
240 !ENDIF
241
242 !IFDEF ADNS_DIR
243 PATH=$(ADNS_DIR)\adns_win32\lib;$(PATH)
244 ADNS_CFLAGS=/I$(ADNS_DIR)\src /I$(ADNS_DIR)\adns_win32
245 ADNS_LIBS=$(ADNS_DIR)\adns_win32\lib\adns_dll.lib
246 # Nmake uses carets to escape special characters
247 ADNS_CONFIG=^#define HAVE_GNU_ADNS 1
248 !else
249 ADNS_CFLAGS=
250 ADNS_LIBS=
251 ADNS_CONFIG=
252 !ENDIF
253
254 !IFDEF PCRE_DIR
255 PATH=$(PCRE_DIR)\bin;$(PATH)
256 PCRE_CFLAGS=/I$(PCRE_DIR)\include
257 PCRE_LIBS=$(PCRE_DIR)\lib\pcre.lib
258 # Nmake uses carets to escape special characters
259 PCRE_CONFIG=^#define HAVE_LIBPCRE 1
260 !else
261 PCRE_CFLAGS=
262 PCRE_LIBS=
263 PCRE_CONFIG=
264 !ENDIF
265
266 !IFDEF ENABLE_LIBETHEREAL
267 LIBETHEREAL_CONFIG=^#define HAVE_LIBETHEREALDLL 1
268 !ELSE
269 LIBETHEREAL_CONFIG=
270 !ENDIF