1 # $Id: config.nmake,v 1.94 2004/07/06 16:29:18 gerald Exp $
5 # The RC_VERSION should be comma-separated, not dot-separated,
6 # as per Graham Bloice's message in
8 # http://www.ethereal.com/lists/ethereal-dev/200303/msg00283.html
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."
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.
23 # If you're not building with WinPcap at all, don't set it (comment
24 # out or remove the line that sets it).
29 # Base directory, where your libraries reside, which needs to be
30 # compiling the sources. This is only inside this file.
32 ETHEREAL_LIBS=C:\ethereal-win32-libs
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.
40 GLIB_DIR=$(ETHEREAL_LIBS)\glib
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.
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.
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
56 GTK1_DIR=$(ETHEREAL_LIBS)\gtk+
57 #GTK2_DIR=$(ETHEREAL_LIBS)\gtk2
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 and by the setup target.
64 PANGO_INST_VERSION=1.2
65 #GTK2_INST_VERSION=2.4
66 #PANGO_INST_VERSION=1.4
69 # If you have GTK-Wimp, set this to the pathname of the directory in
70 # which the files are stored.
72 # If you don't have GTK-Wimp, comment this line out, so that GTK-Wimp isn't
75 #GTK_WIMP_DIR=$(ETHEREAL_LIBS)\gtk-wimp
78 # If you have Zlib, set this to the pathname of the directory in
79 # which the Zlib headers and .lib file are stored.
81 # If you don't have Zlib, comment this line out, so that Zlib isn't
84 ZLIB_DIR=$(ETHEREAL_LIBS)\zlib121-dll
87 # Set PCAP_DIR to the pathname of the directory in which the WinPcap
88 # developer's pack resides
90 PCAP_DIR=$(ETHEREAL_LIBS)\WPdpack
93 # Set NET_SNMP_DIR to the pathname of the directory in which the
94 # Net-SNMP include files and library resides.
96 NET_SNMP_DIR=$(ETHEREAL_LIBS)\net-snmp-5.1
99 # If you have GNU ADNS, set this to the pathname of the directory in
100 # which the GNU ADNS .lib file is stored.
102 # If you don't have GNU ADNS, comment this line out, so that ADNS_DIR
105 ADNS_DIR=$(ETHEREAL_LIBS)\adns-1.0-win32-03
108 # If you have the PCRE (Perl Compatible Regular Expressions) library,
109 # set this to the pathname of the directory in which the GNUWIN32
110 # pcre-lib package has been extracted.
112 # If you don't have PCRE, comment this line out, so that PCRE_DIR
115 PCRE_DIR=$(ETHEREAL_LIBS)\pcre-4.4
118 # Set ICONV_DIR to the pathname of the directory in which the
119 # ICONV include files and library resides.
121 ICONV_DIR=$(ETHEREAL_LIBS)\libiconv-1.9.1.bin.woe32
124 # Set GETTEXT_DIR to the pathname of the directory in which the
125 # GETTEXT include files and library resides.
127 GETTEXT_DIR=$(ETHEREAL_LIBS)\gettext-runtime-0.13.1
130 # /W3 warning level 3 (0 less - 4 most, 1 default)
131 # /Zi create .pdb file for debugging
135 # /DEBUG generate debug info
138 # Set PDB_FILE according to your VC++ version
141 # Set path if you need to find some binary
142 PATH=c:\cygwin\bin;c:\python23;$(PATH)
144 # Set path to some required DLLs
145 PATH=$(GLIB_DIR)\bin;$(GETTEXT_DIR)\bin;$(ICONV_DIR)\bin;$(PATH)
149 POD2MAN=$(SH) pod2man
150 POD2HTML=$(SH) pod2html
151 PYTHON="C:/python23/python.exe"
155 # Set YACC_OPTS if cygnus bison can't find template file.
156 #YACC_OPTS=-S t:\w32-ix86\cygnus\cygwin-b20\share\bison.simple
158 # To build the installer
159 MAKENSIS="C:/program files/nsis/makensis.exe"
161 # Choose modern style user interface for the installer.
162 # When using this, make sure you have a supported NSIS
163 # version installed. See "packaging\nsis\ethereal.nsi" for details.
165 # If you don't want the modern UI (or don't have a recent NSIS version),
166 # comment this line out, so that MAKENSIS_MODERN_UI isn't defined.
168 MAKENSIS_MODERN_UI=USE
170 # To build the developers documentation with doxygen and dot.
171 # Currently experimental only.
172 # You will have to download and install:
174 # Doxygen from: www.doxygen.org
175 # Graphviz from: http://www.research.att.com/sw/tools/graphviz/
177 # If you don't want the developers documentation (or don't have the tools),
178 # comment this line out, so that DOXYGEN isn't defined.
180 #DOXYGEN="C:/program files/doxygen/bin/doxygen.exe"
182 # To build compressed html help format .chm from doxygen output.
183 # Currently experimental only.
184 # You will have to download and install the html help compiler from:
186 # http://msdn.microsoft.com/library/default.asp?url=/library/en-us/htmlhelp/html
187 # /hwMicrosoftHTMLHelpDownloads.asp
189 # Then point HHC to the html help compiler exe.
191 # The .chm file(s) are not generated by default. You will have to generate the
192 # file(s) by calling the Makefile.nmake's target doxygen.chm in the submodules (epan/gk/...).
194 #HHC="C:/Program Files/HTML Help Workshop/hhc.exe"
196 # If you wan't to build a libethereal.dll, you should comment out the following line
197 #ENABLE_LIBETHEREAL=USE
200 # You should not have to change anything below this comment.
201 # If you do, it's a deficiency in the Makefile.nmake files;
202 # either tell ethereal-dev@ethereal.com about it, including
203 # details of why you had to change it, or fix config.nmake
204 # and any Makefile.nmake files that need to be changed, and
205 # send us the patches, along with details of why the change
208 GLIB_CFLAGS=/I$(GLIB_DIR)\include\glib-$(GLIB_VERSION) \
209 /I$(GLIB_DIR)\lib\glib-$(GLIB_VERSION)\include
210 GCC_GLIB_CFLAGS=-I$(GLIB_DIR)\include\glib-$(GLIB_VERSION) \
211 -I$(GLIB_DIR)\lib\glib-$(GLIB_VERSION)\include
212 GLIB_LIBS=$(GLIB_DIR)\lib\glib-$(GLIB_VERSION).lib \
213 $(GLIB_DIR)\lib\gmodule-$(GLIB_VERSION).lib \
214 $(GLIB_DIR)\lib\gobject-$(GLIB_VERSION).lib
217 GTK1_CFLAGS=$(GLIB_CFLAGS) /I$(GTK1_DIR)\include /I$(GTK1_DIR)\include\gdk \
218 /I$(GTK1_DIR)\lib\gtk+\include
219 GTK1_LIBS=$(GTK1_DIR)\lib\gtk.lib \
220 $(GTK1_DIR)\lib\gdk.lib \
224 GTK2_CFLAGS=$(GLIB_CFLAGS) /I$(GTK2_DIR)\include\gtk-2.0 \
225 /I$(GTK2_DIR)\lib\gtk-2.0\include \
226 /I$(GTK2_DIR)\include\atk-1.0 \
227 /I$(GTK2_DIR)\include\pango-1.0
228 GTK2_LIBS=$(GTK2_DIR)\lib\gtk-win32-2.0.lib \
229 $(GTK2_DIR)\lib\gdk-win32-2.0.lib \
230 $(GTK2_DIR)\lib\gdk_pixbuf-2.0.lib \
231 $(GTK2_DIR)\lib\pango-1.0.lib \
234 !IFDEF WINPCAP_VERSION
235 # Nmake uses carets to escape special characters
236 WINPCAP_CONFIG=^#define HAVE_LIBPCAP 1
237 !IF "$(WINPCAP_VERSION)" == "3.0" || "$(WINPCAP_VERSION)" == "3.1"
238 PCAP_FINDALLDEVS_CONFIG=^#define HAVE_PCAP_FINDALLDEVS 1
239 WPCAP_CONSTIFIED_CONFIG=^#define WPCAP_CONSTIFIED 1
241 PCAP_FINDALLDEVS_CONFIG=
246 PCAP_FINDALLDEVS_CONFIG=
251 PATH=$(ZLIB_DIR);$(PATH)
252 ZLIB_CFLAGS=/I$(ZLIB_DIR)\include
253 ZLIB_LIBS=$(ZLIB_DIR)\lib\zdll.lib
254 # Nmake uses carets to escape special characters
255 ZLIB_CONFIG=^#define HAVE_LIBZ 1
263 PATH=$(ADNS_DIR)\adns_win32\lib;$(PATH)
264 ADNS_CFLAGS=/I$(ADNS_DIR)\src /I$(ADNS_DIR)\adns_win32
265 ADNS_LIBS=$(ADNS_DIR)\adns_win32\lib\adns_dll.lib
266 # Nmake uses carets to escape special characters
267 ADNS_CONFIG=^#define HAVE_GNU_ADNS 1
275 PATH=$(PCRE_DIR)\bin;$(PATH)
276 PCRE_CFLAGS=/I$(PCRE_DIR)\include
277 PCRE_LIBS=$(PCRE_DIR)\lib\pcre.lib
278 # Nmake uses carets to escape special characters
279 PCRE_CONFIG=^#define HAVE_LIBPCRE 1
286 !IFDEF ENABLE_LIBETHEREAL
287 LIBETHEREAL_CONFIG=^#define HAVE_LIBETHEREALDLL 1