Let people configure whether to build with Zlib or not solely by
[metze/wireshark/wip.git] / config.nmake
1 # $Id: config.nmake,v 1.62 2003/11/07 23:27:08 guy Exp $
2
3 VERSION=0.9.16
4 #
5 # This should be comma-separated, not dot-separated, as per Graham
6 # 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,9,16
16 WTAP_VERSION=0.0
17
18 WINPCAP_VERSION=2.3
19
20 GTK_VERSION=1.3
21 GLIB_VERSION=2.0
22
23 #
24 # This presumes that GLib 1.3 developer's packages put header files and
25 # libraries directly in a "glib" directory and GTK+ 1.3 packages put
26 # header files and libraries directly in a "gtk+" directory, while GLib
27 # 2.x developer's packages put header files in an "include\glib-{version}"
28 # directory and libraries in a "lib\glib-{version}" directory, and GTK+
29 # 2.x developer's packages put header files in an "include\gtk-{version}"
30 # directory and libraries in a "lib\gtk-{version}" directory.
31 #
32 # If the version of a developer's package is 1.3, set the appropriate
33 # _DIR variable to the "glib" or "gtk+" directory; if it's 2.x, set it
34 # to the directory in which the "include" and "lib" directories reside.
35 #
36 GLIB_DIR=C:\ethereal-win32-libs\glib
37 GTK_DIR=C:\ethereal-win32-libs\gtk+
38
39 #
40 # If you have Zlib, set this to the pathname of the directory in
41 # which the Zlib headers and .lib file are stored.
42 #
43 # If you don't have Zlib, comment this line out, so that Zlib isn't
44 # defined.
45 #
46 ZLIB_DIR=C:\ethereal-win32-libs\zlib-114
47
48 PCAP_DIR=C:\ethereal-win32-libs\WPdpack
49 NET_SNMP_DIR=C:\ethereal-win32-libs\net-snmp-5.0.6
50
51 #
52 # If you have GNU ADNS, set this to the pathname of the directory in
53 # which the GNU ADNS .lib file is stored.
54 #
55 # If you don't have GNU ADNS, comment this line out, so that ADNS_DIR
56 # isn't defined.
57 #
58 ADNS_DIR=C:\ethereal-win32-libs\adns-1.0-win32-01
59
60 COMMON_FILES_GNU=c:\program files\common files\gnu
61
62 LOCAL_CFLAGS=-Zi
63 LOCAL_LDFLAGS=/DEBUG
64
65 # Set PDB_FILE according to your VC++ version 
66 PDB_FILE=vc*.pdb
67
68 # Set path if you need to find some binary
69 PATH=c:\cygnus\cygwin-b20\H-i586-cygwin32\bin;c:\python22;c:\ethereal\wiretap;$(COMMON_FILES_GNU);$(PATH)
70
71 SH=bash
72 PERL=perl
73 POD2MAN=pod2man
74 POD2HTML=pod2html
75 PYTHON="C:/python22/python.exe"
76 LEX=flex
77 YACC=bison
78
79 # Set YACC_OPTS if cygnus bison can't find template file.
80 #YACC_OPTS=-S t:\w32-ix86\cygnus\cygwin-b20\share\bison.simple 
81
82 # To build the installer
83 MAKENSIS="C:/program files/nsis/makensis.exe"
84
85 #
86 # You should not have to change anything below this comment.
87 # If you do, it's a deficiency in the Makefile.nmake files;
88 # either tell ethereal-dev@ethereal.com about it, including
89 # details of why you had to change it, or fix config.nmake
90 # and any Makefile.nmake files that need to be changed, and
91 # send us the patches, along with details of why the change
92 # was necessary.
93 #
94 !IF "$(GLIB_VERSION)" == "1.3"
95 GLIB_CFLAGS=/I$(GLIB_DIR) /I$(GLIB_DIR)\gmodule
96 GCC_GLIB_CFLAGS=-I$(GLIB_DIR) -I$(GLIB_DIR)\gmodule
97 GLIB_LIBS=$(GLIB_DIR)\glib-$(GLIB_VERSION).lib \
98         $(GLIB_DIR)\gmodule\gmodule-$(GLIB_VERSION).lib
99 !ELSE
100 GLIB_CFLAGS=/I$(GLIB_DIR)\include\glib-$(GLIB_VERSION) \
101         /I$(GLIB_DIR)\lib\glib-$(GLIB_VERSION)\include
102 GCC_GLIB_CFLAGS=-I$(GLIB_DIR)\include\glib-$(GLIB_VERSION) \
103         -I$(GLIB_DIR)\lib\glib-$(GLIB_VERSION)\include
104 GLIB_LIBS=$(GLIB_DIR)\lib\glib-$(GLIB_VERSION).lib \
105         $(GLIB_DIR)\lib\gmodule-$(GLIB_VERSION).lib \
106         $(GLIB_DIR)\lib\gobject-$(GLIB_VERSION).lib
107 !ENDIF
108
109 !IF "$(GTK_VERSION)" == "1.3"
110 !IF "$(GLIB_VERSION)" == "1.3"
111 # GTK+ 1.3 with GLib 1.3
112 GTK_CFLAGS=$(GLIB_CFLAGS) /I$(GTK_DIR) /I$(GTK_DIR)\gdk
113 GTK_LIBS=$(GTK_DIR)\gtk\gtk-$(GTK_VERSION).lib \
114         $(GTK_DIR)\gdk\gdk-$(GTK_VERSION).lib \
115         $(GLIB_LIBS)
116 !ELSE
117 # GTK+ 1.3 with GLib 2.0
118 GTK_CFLAGS=$(GLIB_CFLAGS) /I$(GTK_DIR)\include /I$(GTK_DIR)\include\gdk \
119         /I$(GTK_DIR)\lib\gtk+\include
120 GTK_LIBS=$(GTK_DIR)\lib\gtk.lib \
121         $(GTK_DIR)\lib\gdk.lib \
122         $(GLIB_LIBS)
123 !ENDIF
124 !ELSE
125 # GTK+ 2.x (with GLib 2.x)
126 GTK_CFLAGS=$(GLIB_CFLAGS) /I$(GTK_DIR)\include\gtk-$(GTK_VERSION) \
127         /I$(GTK_DIR)\lib\gtk-$(GTK_VERSION)\include \
128         /I$(GTK_DIR)\include\atk-1.0 \
129         /I$(GTK_DIR)\include\pango-1.0
130 GTK_LIBS=$(GTK_DIR)\lib\gtk-win32-$(GTK_VERSION).lib \
131         $(GTK_DIR)\lib\gdk-win32-$(GTK_VERSION).lib \
132         $(GTK_DIR)\lib\pango-1.0.lib \
133         $(GLIB_LIBS)
134 !ENDIF
135
136 !IFDEF WINPCAP_VERSION
137 # Nmake uses carets to escape special characters
138 WINPCAP_CONFIG=^#define HAVE_LIBPCAP 1
139 !IF "$(WINPCAP_VERSION)" == "3.0" || "$(WINPCAP_VERSION)" == "3.1"
140 PCAP_FINDALLDEVS_CONFIG=^#define HAVE_PCAP_FINDALLDEVS 1
141 WPCAP_CONSTIFIED_CONFIG=^#define WPCAP_CONSTIFIED 1
142 !ELSE
143 PCAP_FINDALLDEVS_CONFIG=
144 WPCAP_CONSTIFIED=
145 !ENDIF
146 !ELSE
147 WINPCAP_CONFIG=
148 PCAP_FINDALLDEVS_CONFIG=
149 WPCAP_CONSTIFIED=
150 !ENDIF
151
152 !IFDEF ZLIB_DIR
153 ZLIB_CFLAGS=/I$(ZLIB_DIR)
154 ZLIB_LIBS=$(ZLIB_DIR)\zlib.lib
155 # Nmake uses carets to escape special characters
156 ZLIB_CONFIG=^#define HAVE_LIBZ 1
157 !else
158 ZLIB_CFLAGS=
159 ZLIB_LIBS=
160 ZLIB_CONFIG=
161 !ENDIF
162
163 !IFDEF ADNS_DIR
164 ADNS_CFLAGS=/I$(ADNS_DIR)\src /I$(ADNS_DIR)\adns_win32
165 ADNS_LIBS=$(ADNS_DIR)\adns_win32\lib\adns_dll.lib
166 # Nmake uses carets to escape special characters
167 ADNS_CONFIG=^#define HAVE_GNU_ADNS 1
168 !else
169 ADNS_CFLAGS=
170 ADNS_LIBS=
171 ADNS_CONFIG=
172 !ENDIF