Added --enable-curldebug configure option to enable and disable building
[platform/upstream/curl.git] / Makefile.dist
1 #***************************************************************************
2 #                                  _   _ ____  _
3 #  Project                     ___| | | |  _ \| |
4 #                             / __| | | | |_) | |
5 #                            | (__| |_| |  _ <| |___
6 #                             \___|\___/|_| \_\_____|
7 #
8 # Copyright (C) 1998 - 2009, Daniel Stenberg, <daniel@haxx.se>, et al.
9 #
10 # This software is licensed as described in the file COPYING, which
11 # you should have received as part of this distribution. The terms
12 # are also available at http://curl.haxx.se/docs/copyright.html.
13 #
14 # You may opt to use, copy, modify, merge, publish, distribute and/or sell
15 # copies of the Software, and permit persons to whom the Software is
16 # furnished to do so, under the terms of the COPYING file.
17 #
18 # This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19 # KIND, either express or implied.
20 #
21 # $Id$
22 ###########################################################################
23
24 VC=vc6
25
26 all:
27         ./configure
28         make
29
30 ssl:
31         ./configure --with-ssl
32         make
33
34 borland:
35         cd lib
36         make -f Makefile.b32
37         cd ..\src
38         make -f Makefile.b32
39
40 borland-ssl:
41         cd lib
42         make -f Makefile.b32 WITH_SSL=1
43         cd ..\src
44         make -f Makefile.b32 WITH_SSL=1
45
46 borland-ssl-zlib:
47         cd lib
48         make -f Makefile.b32 WITH_SSL=1 WITH_ZLIB=1
49         cd ..\src
50         make -f Makefile.b32 WITH_SSL=1 WITH_ZLIB=1
51
52 borland-clean:
53         cd lib
54         make -f Makefile.b32 clean
55         cd ..\src
56         make -f Makefile.b32 clean
57
58 watcom:
59         cd lib
60         wmake -f Makefile.Watcom
61         cd ..\src
62         wmake -f Makefile.Watcom
63
64 watcom-clean:
65         cd lib
66         wmake -f Makefile.Watcom clean
67         cd ..\src
68         wmake -f Makefile.Watcom clean
69
70 mingw32:
71         $(MAKE) -C lib -f Makefile.m32
72         $(MAKE) -C src -f Makefile.m32
73
74 mingw32-zlib:
75         $(MAKE) -C lib -f Makefile.m32 ZLIB=1
76         $(MAKE) -C src -f Makefile.m32 ZLIB=1
77
78 mingw32-ssl-zlib:
79         $(MAKE) -C lib -f Makefile.m32 SSL=1 ZLIB=1
80         $(MAKE) -C src -f Makefile.m32 SSL=1 ZLIB=1
81
82 mingw32-ssh2-ssl-zlib:
83         $(MAKE) -C lib -f Makefile.m32 SSH2=1 SSL=1 ZLIB=1
84         $(MAKE) -C src -f Makefile.m32 SSH2=1 SSL=1 ZLIB=1
85
86 mingw32-ssh2-ssl-sspi-zlib:
87         $(MAKE) -C lib -f Makefile.m32 SSH2=1 SSL=1 SSPI=1 ZLIB=1
88         $(MAKE) -C src -f Makefile.m32 SSH2=1 SSL=1 SSPI=1 ZLIB=1
89
90 mingw32-clean:
91         $(MAKE) -C lib -f Makefile.m32 clean
92         $(MAKE) -C src -f Makefile.m32 clean
93
94 vc-clean:
95         cd lib
96         nmake -f Makefile.$(VC) clean
97         cd ..\src
98         nmake -f Makefile.$(VC) clean
99
100 vc-all:
101         cd lib
102         nmake -f Makefile.$(VC) cfg=release
103         nmake -f Makefile.$(VC) cfg=release-ssl
104         nmake -f Makefile.$(VC) cfg=release-zlib
105         nmake -f Makefile.$(VC) cfg=release-ssl-zlib
106         nmake -f Makefile.$(VC) cfg=release-ssl-dll
107         nmake -f Makefile.$(VC) cfg=release-zlib-dll
108         nmake -f Makefile.$(VC) cfg=release-ssl-dll-zlib-dll
109         nmake -f Makefile.$(VC) cfg=release-dll
110         nmake -f Makefile.$(VC) cfg=release-dll-ssl-dll
111         nmake -f Makefile.$(VC) cfg=release-dll-zlib-dll
112         nmake -f Makefile.$(VC) cfg=release-dll-ssl-dll-zlib-dll
113         nmake -f Makefile.$(VC) cfg=debug
114         nmake -f Makefile.$(VC) cfg=debug-ssl
115         nmake -f Makefile.$(VC) cfg=debug-zlib
116         nmake -f Makefile.$(VC) cfg=debug-ssl-zlib
117         nmake -f Makefile.$(VC) cfg=debug-ssl-dll
118         nmake -f Makefile.$(VC) cfg=debug-zlib-dll
119         nmake -f Makefile.$(VC) cfg=debug-ssl-dll-zlib-dll
120         nmake -f Makefile.$(VC) cfg=debug-dll
121         nmake -f Makefile.$(VC) cfg=debug-dll-ssl-dll
122         nmake -f Makefile.$(VC) cfg=debug-dll-zlib-dll
123         nmake -f Makefile.$(VC) cfg=debug-dll-ssl-dll-zlib-dll
124
125 vc:
126         cd lib
127         nmake /f Makefile.$(VC) cfg=release
128         cd ..\src
129         nmake /f Makefile.$(VC)
130
131 vc-x64:
132         cd lib
133         MACHINE=x64 nmake /f Makefile.$(VC) cfg=release
134         cd ..\src
135         MACHINE=x64 nmake /f Makefile.$(VC)
136
137 vc-zlib:
138         cd lib
139         nmake /f Makefile.$(VC) cfg=release-zlib
140         cd ..\src
141         nmake /f Makefile.$(VC) cfg=release-zlib
142
143 vc-ssl:
144         cd lib
145         nmake /f Makefile.$(VC) cfg=release-ssl
146         cd ..\src
147         nmake /f Makefile.$(VC) cfg=release-ssl
148
149 vc-ssl-zlib:
150         cd lib
151         nmake /f Makefile.$(VC) cfg=release-ssl-zlib
152         cd ..\src
153         nmake /f Makefile.$(VC) cfg=release-ssl-zlib
154
155 vc-ssl-dll:
156         cd lib
157         nmake /f Makefile.$(VC) cfg=release-ssl-dll
158         cd ..\src
159         nmake /f Makefile.$(VC) cfg=release-ssl-dll
160
161 vc-dll-ssl-dll:
162         cd lib
163         nmake /f Makefile.$(VC) cfg=release-dll-ssl-dll
164         cd ..\src
165         nmake /f Makefile.$(VC) cfg=release-dll-ssl-dll
166
167 vc-dll:
168         cd lib
169         nmake /f Makefile.$(VC) cfg=release-dll
170         cd ..\src
171         nmake /f Makefile.$(VC) cfg=release-dll
172
173 vc-dll-zlib-dll:
174         cd lib
175         nmake /f Makefile.$(VC) cfg=release-dll-zlib-dll
176         cd ..\src
177         nmake /f Makefile.$(VC) cfg=release-dll-zlib-dll
178
179 vc-dll-ssl-dll-zlib-dll:
180         cd lib
181         nmake /f Makefile.$(VC) cfg=release-dll-ssl-dll-zlib-dll
182         cd ..\src
183         nmake /f Makefile.$(VC) cfg=release-dll-ssl-dll-zlib-dll
184
185 vc-ssl-dll-zlib-dll:
186         cd lib
187         nmake /f Makefile.$(VC) cfg=release-ssl-dll-zlib-dll
188         cd ..\src
189         nmake /f Makefile.$(VC) cfg=release-ssl-dll-zlib-dll
190
191 vc-zlib-dll:
192         cd lib
193         nmake /f Makefile.$(VC) cfg=release-zlib-dll
194         cd ..\src
195         nmake /f Makefile.$(VC) cfg=release-zlib-dll
196
197 vc-sspi:
198         cd lib
199         nmake /f Makefile.$(VC) cfg=release WINDOWS_SSPI=1
200         cd ..\src
201         nmake /f Makefile.$(VC) cfg=release WINDOWS_SSPI=1
202
203 djgpp:
204         $(MAKE) -C lib -f Makefile.dj
205         $(MAKE) -C src -f Makefile.dj
206
207 cygwin:
208         ./configure
209         make
210
211 cygwin-ssl:
212         ./configure --with-ssl
213         make
214
215 amiga:
216         cd ./lib && make -f makefile.amiga
217         cd ./src && make -f makefile.amiga
218
219 netware:
220         $(MAKE) -C lib -f Makefile.netware
221         $(MAKE) -C src -f Makefile.netware
222
223 netware-ares:
224         $(MAKE) -C lib -f Makefile.netware WITH_ARES=1
225         $(MAKE) -C src -f Makefile.netware WITH_ARES=1
226
227 netware-ssl:
228         $(MAKE) -C lib -f Makefile.netware WITH_SSL=1
229         $(MAKE) -C src -f Makefile.netware WITH_SSL=1
230
231 netware-ssl-zlib:
232         $(MAKE) -C lib -f Makefile.netware WITH_SSL=1 WITH_ZLIB=1
233         $(MAKE) -C src -f Makefile.netware WITH_SSL=1 WITH_ZLIB=1
234
235 netware-ssh2-ssl-zlib:
236         $(MAKE) -C lib -f Makefile.netware WITH_SSH2=1 WITH_SSL=1 WITH_ZLIB=1
237         $(MAKE) -C src -f Makefile.netware WITH_SSH2=1 WITH_SSL=1 WITH_ZLIB=1
238
239 netware-zlib:
240         $(MAKE) -C lib -f Makefile.netware WITH_ZLIB=1
241         $(MAKE) -C src -f Makefile.netware WITH_ZLIB=1
242
243 netware-clean:
244         $(MAKE) -C lib -f Makefile.netware clean
245         $(MAKE) -C src -f Makefile.netware clean
246
247 netware-install:
248         $(MAKE) -C lib -f Makefile.netware install
249         $(MAKE) -C src -f Makefile.netware install
250
251 unix: all
252
253 unix-ssl: ssl
254
255 linux: all
256
257 linux-ssl: ssl
258
259
260 vc8:
261         @echo "generate VC8 makefiles"
262         @sed -e "s#/GX /DWIN32 /YX#/EHsc /DWIN32#" -e "s#/GZ#/RTC1#" -e "s/wsock32.lib/wsock32.lib bufferoverflowu.lib/g" -e "s/VC6/VC8/g" lib/Makefile.vc6 > lib/Makefile.vc8
263         @sed -e "s#/GX /DWIN32 /YX#/EHsc /DWIN32#" -e "s#/GZ#/RTC1#" -e "s/wsock32.lib/wsock32.lib bufferoverflowu.lib/g" -e "s/VC6/VC8/g" src/Makefile.vc6 > src/Makefile.vc8
264
265 # VC9 makefiles are for use with VS2008
266 vc9:
267         @echo "generate VC9 makefiles"
268         @sed -e "s#/GX /DWIN32 /YX#/EHsc /DWIN32#" -e "s#/GZ#/RTC1#" -e "s/wsock32.lib/ws2_32.lib/g" -e "s/vc6/vc9/g" -e "s/VC6/VC9/g" lib/Makefile.vc6 > lib/Makefile.vc9
269         @sed -e "s#/GX /DWIN32 /YX#/EHsc /DWIN32#" -e "s#/GZ#/RTC1#" -e "s/wsock32.lib/ws2_32.lib/g" -e "s/vc6/vc9/g" -e "s/VC6/VC9/g" src/Makefile.vc6 > src/Makefile.vc9
270
271 ca-bundle: lib/mk-ca-bundle.pl
272         @echo "generate a fresh ca-bundle.crt"
273         @perl $< -b -l -u lib/ca-bundle.crt
274
275 ca-firefox: lib/firefox-db2pem.sh
276         @echo "generate a fresh ca-bundle.crt"
277         ./lib/firefox-db2pem.sh lib/ca-bundle.crt