Put the value(s) of a parameter into the top-level item for that
[obnox/wireshark/wip.git] / config.nmake
1 # $Id: config.nmake,v 1.85 2004/04/08 20:36:09 gerald Exp $
2
3 VERSION=0.10.3
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,3
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 #
60 # If you have GTK-Wimp, set this to the pathname of the directory in
61 # which the files are stored.
62 #
63 # If you don't have GTK-Wimp, comment this line out, so that GTK-Wimp isn't
64 # defined.
65 #
66 #GTK_WIMP_DIR=$(ETHEREAL_LIBS)\gtk-wimp
67
68 #
69 # If you have Zlib, set this to the pathname of the directory in
70 # which the Zlib headers and .lib file are stored.
71 #
72 # If you don't have Zlib, comment this line out, so that Zlib isn't
73 # defined.
74 #
75 ZLIB_DIR=$(ETHEREAL_LIBS)\zlib121-dll
76
77 #
78 # Set PCAP_DIR to the pathname of the directory in which the WinPcap
79 # developer's pack resides
80 #
81 PCAP_DIR=$(ETHEREAL_LIBS)\WPdpack
82
83 #
84 # Set NET_SNMP_DIR to the pathname of the directory in which the
85 # Net-SNMP include files and library resides.
86 #
87 NET_SNMP_DIR=$(ETHEREAL_LIBS)\net-snmp-5.1
88
89 #
90 # If you have GNU ADNS, set this to the pathname of the directory in
91 # which the GNU ADNS .lib file is stored.
92 #
93 # If you don't have GNU ADNS, comment this line out, so that ADNS_DIR
94 # isn't defined.
95 #
96 ADNS_DIR=$(ETHEREAL_LIBS)\adns-1.0-win32-03
97
98 #
99 # If you have the PCRE (Perl Compatible Regular Expressions) library,
100 # set this to the pathname of the directory in which the GNUWIN32
101 # pcre-lib package has been extracted.
102 #
103 # If you don't have PCRE, comment this line out, so that PCRE_DIR
104 # isn't defined.
105 #
106 PCRE_DIR=$(ETHEREAL_LIBS)\pcre-4.4
107
108 #
109 # Set ICONV_DIR to the pathname of the directory in which the
110 # ICONV include files and library resides.
111 #
112 ICONV_DIR=$(ETHEREAL_LIBS)\libiconv-1.9.1.bin.woe32
113
114 #
115 # Set GETTEXT_DIR to the pathname of the directory in which the
116 # GETTEXT include files and library resides.
117 #
118 GETTEXT_DIR=$(ETHEREAL_LIBS)\gettext-runtime-0.13.1
119
120 # Compiler flags
121 # /W3  warning level 3 (0 less - 4 most, 1 default)
122 # /Zi  create .pdb file for debugging
123 LOCAL_CFLAGS=/Zi /W3
124
125 # Linker flags
126 # /DEBUG generate debug info
127 LOCAL_LDFLAGS=/DEBUG
128
129 # Set PDB_FILE according to your VC++ version 
130 PDB_FILE=vc*.pdb
131
132 # Set path if you need to find some binary
133 PATH=c:\cygwin\bin;c:\python23;$(PATH)
134
135 # Set path to some required DLLs
136 PATH=.\wiretap;$(GLIB_DIR)\bin;$(GETTEXT_DIR)\bin;$(ICONV_DIR)\bin;$(PATH)
137
138 SH=bash
139 PERL=perl
140 POD2MAN=$(SH) pod2man
141 POD2HTML=$(SH) pod2html
142 PYTHON="C:/python23/python.exe"
143 LEX=flex
144 YACC=bison
145
146 # Set YACC_OPTS if cygnus bison can't find template file.
147 #YACC_OPTS=-S t:\w32-ix86\cygnus\cygwin-b20\share\bison.simple 
148
149 # To build the installer
150 MAKENSIS="C:/program files/nsis/makensis.exe"
151
152 # Choose modern style user interface for the installer.
153 # When using this, make sure you have a supported NSIS
154 # version installed. See "packaging\nsis\ethereal.nsi" for details.
155 #
156 # If you don't want the modern UI (or don't have a recent NSIS version),
157 # comment this line out, so that MAKENSIS_MODERN_UI isn't defined.
158 #
159 MAKENSIS_MODERN_UI=USE
160
161 #
162 # You should not have to change anything below this comment.
163 # If you do, it's a deficiency in the Makefile.nmake files;
164 # either tell ethereal-dev@ethereal.com about it, including
165 # details of why you had to change it, or fix config.nmake
166 # and any Makefile.nmake files that need to be changed, and
167 # send us the patches, along with details of why the change
168 # was necessary.
169 #
170 GLIB_CFLAGS=/I$(GLIB_DIR)\include\glib-$(GLIB_VERSION) \
171         /I$(GLIB_DIR)\lib\glib-$(GLIB_VERSION)\include
172 GCC_GLIB_CFLAGS=-I$(GLIB_DIR)\include\glib-$(GLIB_VERSION) \
173         -I$(GLIB_DIR)\lib\glib-$(GLIB_VERSION)\include
174 GLIB_LIBS=$(GLIB_DIR)\lib\glib-$(GLIB_VERSION).lib \
175         $(GLIB_DIR)\lib\gmodule-$(GLIB_VERSION).lib \
176         $(GLIB_DIR)\lib\gobject-$(GLIB_VERSION).lib
177
178 # GTK+ 1.3
179 GTK1_VERSION=1.3
180 GTK1_CFLAGS=$(GLIB_CFLAGS) /I$(GTK1_DIR)\include /I$(GTK1_DIR)\include\gdk \
181         /I$(GTK1_DIR)\lib\gtk+\include
182 GTK1_LIBS=$(GTK1_DIR)\lib\gtk.lib \
183         $(GTK1_DIR)\lib\gdk.lib \
184         $(GLIB_LIBS)
185
186 # GTK+ 2.x
187 GTK2_VERSION=2.0
188 GTK2_CFLAGS=$(GLIB_CFLAGS) /I$(GTK2_DIR)\include\gtk-$(GTK2_VERSION) \
189         /I$(GTK2_DIR)\lib\gtk-$(GTK2_VERSION)\include \
190         /I$(GTK2_DIR)\include\atk-1.0 \
191         /I$(GTK2_DIR)\include\pango-1.0
192 GTK2_LIBS=$(GTK2_DIR)\lib\gtk-win32-$(GTK2_VERSION).lib \
193         $(GTK2_DIR)\lib\gdk-win32-$(GTK2_VERSION).lib \
194         $(GTK2_DIR)\lib\gdk_pixbuf-$(GTK2_VERSION).lib \
195         $(GTK2_DIR)\lib\pango-1.0.lib \
196         $(GLIB_LIBS)
197
198
199 !IFDEF WINPCAP_VERSION
200 # Nmake uses carets to escape special characters
201 WINPCAP_CONFIG=^#define HAVE_LIBPCAP 1
202 !IF "$(WINPCAP_VERSION)" == "3.0" || "$(WINPCAP_VERSION)" == "3.1"
203 PCAP_FINDALLDEVS_CONFIG=^#define HAVE_PCAP_FINDALLDEVS 1
204 WPCAP_CONSTIFIED_CONFIG=^#define WPCAP_CONSTIFIED 1
205 !ELSE
206 PCAP_FINDALLDEVS_CONFIG=
207 WPCAP_CONSTIFIED=
208 !ENDIF
209 !ELSE
210 WINPCAP_CONFIG=
211 PCAP_FINDALLDEVS_CONFIG=
212 WPCAP_CONSTIFIED=
213 !ENDIF
214
215 !IFDEF ZLIB_DIR
216 PATH=$(ZLIB_DIR);$(PATH)
217 ZLIB_CFLAGS=/I$(ZLIB_DIR)\include
218 ZLIB_LIBS=$(ZLIB_DIR)\lib\zdll.lib
219 # Nmake uses carets to escape special characters
220 ZLIB_CONFIG=^#define HAVE_LIBZ 1
221 !else
222 ZLIB_CFLAGS=
223 ZLIB_LIBS=
224 ZLIB_CONFIG=
225 !ENDIF
226
227 !IFDEF ADNS_DIR
228 PATH=$(ADNS_DIR)\adns_win32\lib;$(PATH)
229 ADNS_CFLAGS=/I$(ADNS_DIR)\src /I$(ADNS_DIR)\adns_win32
230 ADNS_LIBS=$(ADNS_DIR)\adns_win32\lib\adns_dll.lib
231 # Nmake uses carets to escape special characters
232 ADNS_CONFIG=^#define HAVE_GNU_ADNS 1
233 !else
234 ADNS_CFLAGS=
235 ADNS_LIBS=
236 ADNS_CONFIG=
237 !ENDIF
238
239 !IFDEF PCRE_DIR
240 PATH=$(PCRE_DIR)\bin;$(PATH)
241 PCRE_CFLAGS=/I$(PCRE_DIR)\include
242 PCRE_LIBS=$(PCRE_DIR)\lib\pcre.lib
243 # Nmake uses carets to escape special characters
244 PCRE_CONFIG=^#define HAVE_LIBPCRE 1
245 !else
246 PCRE_CFLAGS=
247 PCRE_LIBS=
248 PCRE_CONFIG=
249 !ENDIF
250