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