added/changed some comments
[metze/wireshark/wip.git] / config.nmake
1 # $Id: config.nmake,v 1.73 2003/12/27 13:19:06 ulfl Exp $
2
3 VERSION=0.10.0
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,0
16 WTAP_VERSION=0.0
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=2.3
27
28 #
29 # Current versions of GTK+ 1.3 require GLib 2.0.  Earlier versions of
30 # GTK+ 1.3 are buggy; we don't recommend using them, and we don't
31 # support them.  Upgrade to the current version.
32 #
33 GLIB_VERSION=2.0
34 GLIB_DIR=C:\ethereal-win32-libs\glib
35
36 #
37 # This presumes that GTK+ 1.3 packages put header files and libraries
38 # directly in a "gtk+" directory, while GTK+ 2.x developer's packages
39 # put header files in an "include\gtk-{version}" directory and libraries
40 # in a "lib\gtk-{version}" directory.
41 #
42 # If you're building with GTK+ 1.3, set GTK_VERSION to 1.3 and set
43 # GTK_DIR to the pathname of the "gtk+" directory; if you're building
44 # with GTK+ 2.x, set GTK_VERSION to 2.0 and set GTK_DIR to the pathname
45 # of the directory in which the "include" and "lib" directories reside.
46 #
47 GTK_VERSION=1.3
48 GTK_DIR=C:\ethereal-win32-libs\gtk+
49
50 #
51 # If you have Zlib, set this to the pathname of the directory in
52 # which the Zlib headers and .lib file are stored.
53 #
54 # If you don't have Zlib, comment this line out, so that Zlib isn't
55 # defined.
56 #
57 ZLIB_DIR=C:\ethereal-win32-libs\zlib121-dll
58
59 #
60 # Set PCAP_DIR to the pathname of the directory in which the WinPcap
61 # developer's pack resides
62 #
63 PCAP_DIR=C:\ethereal-win32-libs\WPdpack
64
65 #
66 # Set NET_SNMP_DIR to the pathname of the directory in which the
67 # Net-SNMP include files and library resides.
68 #
69 NET_SNMP_DIR=C:\ethereal-win32-libs\net-snmp-5.1
70
71 #
72 # If you have GNU ADNS, set this to the pathname of the directory in
73 # which the GNU ADNS .lib file is stored.
74 #
75 # If you don't have GNU ADNS, comment this line out, so that ADNS_DIR
76 # isn't defined.
77 #
78 ADNS_DIR=C:\ethereal-win32-libs\adns-1.0-win32-01
79
80 #
81 # If you have the PCRE (Perl Compatible Regular Expressions) library,
82 # set this to the pathname of the directory in which the GNUWIN32
83 # pcre-lib package has been extracted.
84 #
85 # If you don't have PCRE, comment this line out, so that PCRE_DIR
86 # isn't defined.
87 #
88 PCRE_DIR=C:\ethereal-win32-libs\pcre-4.4
89
90 #
91 # Set ICONV_DIR to the pathname of the directory in which the
92 # ICONV include files and library resides.
93 #
94 ICONV_DIR=C:\ethereal-win32-libs\libiconv-1.9.1.bin.woe32
95
96 #
97 # Set GETTEXT_DIR to the pathname of the directory in which the
98 # GETTEXT include files and library resides.
99 #
100 GETTEXT_DIR=C:\ethereal-win32-libs\gettext-runtime-0.12.1.bin.woe32
101
102 # Compiler flags
103 # -Zi create .pdb file for debugging
104 LOCAL_CFLAGS=-Zi
105
106 # Linker flags
107 # /DEBUG generate debug info
108 LOCAL_LDFLAGS=/DEBUG
109
110 # Set PDB_FILE according to your VC++ version 
111 PDB_FILE=vc*.pdb
112
113 # Set path if you need to find some binary
114 PATH=c:\cygwin\rootdir\bin;c:\python22;$(PATH)
115
116 # Set path to some required DLLs
117 PATH=.\wiretap;$(ZLIB_DIR);$(ICONV_DIR)\bin;$(PCRE_DIR)\bin;$(PATH)
118
119 SH=bash
120 PERL=perl
121 POD2MAN=$(SH) pod2man
122 POD2HTML=$(SH) pod2html
123 PYTHON="C:/python22/python.exe"
124 LEX=flex
125 YACC=bison
126
127 # Set YACC_OPTS if cygnus bison can't find template file.
128 #YACC_OPTS=-S t:\w32-ix86\cygnus\cygwin-b20\share\bison.simple 
129
130 # To build the installer
131 MAKENSIS="C:/program files/nsis/makensis.exe"
132
133 # Choose modern style user interface for the installer.
134 # When using this, make sure you have a supported NSIS
135 # version installed. See "packaging\nsis\ethereal.nsi" for details.
136 #
137 # If you don't want the modern UI (or don't have a recent NSIS version),
138 # comment this line out, so that MAKENSIS_MODERN_UI isn't defined.
139 #
140 #MAKENSIS_MODERN_UI=USE
141
142 #
143 # You should not have to change anything below this comment.
144 # If you do, it's a deficiency in the Makefile.nmake files;
145 # either tell ethereal-dev@ethereal.com about it, including
146 # details of why you had to change it, or fix config.nmake
147 # and any Makefile.nmake files that need to be changed, and
148 # send us the patches, along with details of why the change
149 # was necessary.
150 #
151 GLIB_CFLAGS=/I$(GLIB_DIR)\include\glib-$(GLIB_VERSION) \
152         /I$(GLIB_DIR)\lib\glib-$(GLIB_VERSION)\include
153 GCC_GLIB_CFLAGS=-I$(GLIB_DIR)\include\glib-$(GLIB_VERSION) \
154         -I$(GLIB_DIR)\lib\glib-$(GLIB_VERSION)\include
155 GLIB_LIBS=$(GLIB_DIR)\lib\glib-$(GLIB_VERSION).lib \
156         $(GLIB_DIR)\lib\gmodule-$(GLIB_VERSION).lib \
157         $(GLIB_DIR)\lib\gobject-$(GLIB_VERSION).lib
158
159 !IF "$(GTK_VERSION)" == "1.3"
160 # GTK+ 1.3
161 GTK_CFLAGS=$(GLIB_CFLAGS) /I$(GTK_DIR)\include /I$(GTK_DIR)\include\gdk \
162         /I$(GTK_DIR)\lib\gtk+\include
163 GTK_LIBS=$(GTK_DIR)\lib\gtk.lib \
164         $(GTK_DIR)\lib\gdk.lib \
165         $(GLIB_LIBS)
166 !ELSE
167 # GTK+ 2.x
168 GTK_CFLAGS=$(GLIB_CFLAGS) /I$(GTK_DIR)\include\gtk-$(GTK_VERSION) \
169         /I$(GTK_DIR)\lib\gtk-$(GTK_VERSION)\include \
170         /I$(GTK_DIR)\include\atk-1.0 \
171         /I$(GTK_DIR)\include\pango-1.0
172 GTK_LIBS=$(GTK_DIR)\lib\gtk-win32-$(GTK_VERSION).lib \
173         $(GTK_DIR)\lib\gdk-win32-$(GTK_VERSION).lib \
174         $(GTK_DIR)\lib\gdk_pixbuf-$(GTK_VERSION).lib \
175         $(GTK_DIR)\lib\pango-1.0.lib \
176         $(GLIB_LIBS)
177 !ENDIF
178
179 !IFDEF WINPCAP_VERSION
180 # Nmake uses carets to escape special characters
181 WINPCAP_CONFIG=^#define HAVE_LIBPCAP 1
182 !IF "$(WINPCAP_VERSION)" == "3.0" || "$(WINPCAP_VERSION)" == "3.1"
183 PCAP_FINDALLDEVS_CONFIG=^#define HAVE_PCAP_FINDALLDEVS 1
184 WPCAP_CONSTIFIED_CONFIG=^#define WPCAP_CONSTIFIED 1
185 !ELSE
186 PCAP_FINDALLDEVS_CONFIG=
187 WPCAP_CONSTIFIED=
188 !ENDIF
189 !ELSE
190 WINPCAP_CONFIG=
191 PCAP_FINDALLDEVS_CONFIG=
192 WPCAP_CONSTIFIED=
193 !ENDIF
194
195 !IFDEF ZLIB_DIR
196 ZLIB_CFLAGS=/I$(ZLIB_DIR)\include
197 ZLIB_LIBS=$(ZLIB_DIR)\lib\zdll.lib
198 # Nmake uses carets to escape special characters
199 ZLIB_CONFIG=^#define HAVE_LIBZ 1
200 !else
201 ZLIB_CFLAGS=
202 ZLIB_LIBS=
203 ZLIB_CONFIG=
204 !ENDIF
205
206 !IFDEF ADNS_DIR
207 ADNS_CFLAGS=/I$(ADNS_DIR)\src /I$(ADNS_DIR)\adns_win32
208 ADNS_LIBS=$(ADNS_DIR)\adns_win32\lib\adns_dll.lib
209 # Nmake uses carets to escape special characters
210 ADNS_CONFIG=^#define HAVE_GNU_ADNS 1
211 !else
212 ADNS_CFLAGS=
213 ADNS_LIBS=
214 ADNS_CONFIG=
215 !ENDIF
216
217 !IFDEF PCRE_DIR
218 PCRE_CFLAGS=/I$(PCRE_DIR)\include
219 PCRE_LIBS=$(PCRE_DIR)\lib\pcre.lib
220 # Nmake uses carets to escape special characters
221 PCRE_CONFIG=^#define HAVE_LIBPCRE 1
222 !else
223 PCRE_CFLAGS=
224 PCRE_LIBS=
225 PCRE_CONFIG=
226 !ENDIF
227