Imported Upstream version 7.21.3
[platform/upstream/curl.git] / Makefile
1 #***************************************************************************
2 #                                  _   _ ____  _
3 #  Project                     ___| | | |  _ \| |
4 #                             / __| | | | |_) | |
5 #                            | (__| |_| |  _ <| |___
6 #                             \___|\___/|_| \_\_____|
7 #
8 # Copyright (C) 1998 - 2010, 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 ###########################################################################
22
23 VC=vc6
24
25 all:
26         ./configure
27         make
28
29 ssl:
30         ./configure --with-ssl
31         make
32
33 borland:
34         cd lib
35         make -f Makefile.b32
36         cd ..\src
37         make -f Makefile.b32
38
39 borland-ssl:
40         cd lib
41         make -f Makefile.b32 WITH_SSL=1
42         cd ..\src
43         make -f Makefile.b32 WITH_SSL=1
44
45 borland-ssl-zlib:
46         cd lib
47         make -f Makefile.b32 WITH_SSL=1 WITH_ZLIB=1
48         cd ..\src
49         make -f Makefile.b32 WITH_SSL=1 WITH_ZLIB=1
50
51 borland-clean:
52         cd lib
53         make -f Makefile.b32 clean
54         cd ..\src
55         make -f Makefile.b32 clean
56
57 watcom: .SYMBOLIC
58         cd lib && $(MAKE) -u -f Makefile.Watcom
59         cd src && $(MAKE) -u -f Makefile.Watcom
60
61 watcom-clean: .SYMBOLIC
62         cd lib && $(MAKE) -u -f Makefile.Watcom clean
63         cd src && $(MAKE) -u -f Makefile.Watcom clean
64
65 watcom-vclean: .SYMBOLIC
66         cd lib && $(MAKE) -u -f Makefile.Watcom vclean
67         cd src && $(MAKE) -u -f Makefile.Watcom vclean
68
69 mingw32:
70         $(MAKE) -C lib -f Makefile.m32
71         $(MAKE) -C src -f Makefile.m32
72
73 mingw32-zlib:
74         $(MAKE) -C lib -f Makefile.m32 ZLIB=1
75         $(MAKE) -C src -f Makefile.m32 ZLIB=1
76
77 mingw32-ssl-zlib:
78         $(MAKE) -C lib -f Makefile.m32 SSL=1 ZLIB=1
79         $(MAKE) -C src -f Makefile.m32 SSL=1 ZLIB=1
80
81 mingw32-ssh2-ssl-zlib:
82         $(MAKE) -C lib -f Makefile.m32 SSH2=1 SSL=1 ZLIB=1
83         $(MAKE) -C src -f Makefile.m32 SSH2=1 SSL=1 ZLIB=1
84
85 mingw32-ssh2-ssl-sspi-zlib:
86         $(MAKE) -C lib -f Makefile.m32 SSH2=1 SSL=1 SSPI=1 ZLIB=1
87         $(MAKE) -C src -f Makefile.m32 SSH2=1 SSL=1 SSPI=1 ZLIB=1
88
89 mingw32-rtmp-ssh2-ssl-sspi-zlib:
90         $(MAKE) -C lib -f Makefile.m32 RTMP=1 SSH2=1 SSL=1 SSPI=1 ZLIB=1
91         $(MAKE) -C src -f Makefile.m32 RTMP=1 SSH2=1 SSL=1 SSPI=1 ZLIB=1
92
93 mingw32-clean:
94         $(MAKE) -C lib -f Makefile.m32 clean
95         $(MAKE) -C src -f Makefile.m32 clean
96
97 vc-clean: $(VC)
98         cd lib
99         nmake -f Makefile.$(VC) clean
100         cd ..\src
101         nmake -f Makefile.$(VC) clean
102
103 vc-all: $(VC)
104         cd lib
105         nmake -f Makefile.$(VC) cfg=release
106         nmake -f Makefile.$(VC) cfg=release-ssl
107         nmake -f Makefile.$(VC) cfg=release-zlib
108         nmake -f Makefile.$(VC) cfg=release-ssl-zlib
109         nmake -f Makefile.$(VC) cfg=release-ssl-dll
110         nmake -f Makefile.$(VC) cfg=release-zlib-dll
111         nmake -f Makefile.$(VC) cfg=release-ssl-dll-zlib-dll
112         nmake -f Makefile.$(VC) cfg=release-dll
113         nmake -f Makefile.$(VC) cfg=release-dll-ssl-dll
114         nmake -f Makefile.$(VC) cfg=release-dll-zlib-dll
115         nmake -f Makefile.$(VC) cfg=release-dll-ssl-dll-zlib-dll
116         nmake -f Makefile.$(VC) cfg=debug
117         nmake -f Makefile.$(VC) cfg=debug-ssl
118         nmake -f Makefile.$(VC) cfg=debug-zlib
119         nmake -f Makefile.$(VC) cfg=debug-ssl-zlib
120         nmake -f Makefile.$(VC) cfg=debug-ssl-dll
121         nmake -f Makefile.$(VC) cfg=debug-zlib-dll
122         nmake -f Makefile.$(VC) cfg=debug-ssl-dll-zlib-dll
123         nmake -f Makefile.$(VC) cfg=debug-dll
124         nmake -f Makefile.$(VC) cfg=debug-dll-ssl-dll
125         nmake -f Makefile.$(VC) cfg=debug-dll-zlib-dll
126         nmake -f Makefile.$(VC) cfg=debug-dll-ssl-dll-zlib-dll
127
128 vc: $(VC)
129         cd lib
130         nmake /f Makefile.$(VC) cfg=release
131         cd ..\src
132         nmake /f Makefile.$(VC)
133
134 vc-x64: $(VC)
135         cd lib
136         nmake /f Makefile.$(VC) MACHINE=x64 cfg=release
137         cd ..\src
138         nmake /f Makefile.$(VC) MACHINE=x64 cfg=release
139
140 vc-zlib: $(VC)
141         cd lib
142         nmake /f Makefile.$(VC) cfg=release-zlib
143         cd ..\src
144         nmake /f Makefile.$(VC) cfg=release-zlib
145
146 vc-ssl: $(VC)
147         cd lib
148         nmake /f Makefile.$(VC) cfg=release-ssl
149         cd ..\src
150         nmake /f Makefile.$(VC) cfg=release-ssl
151
152 vc-ssl-zlib: $(VC)
153         cd lib
154         nmake /f Makefile.$(VC) cfg=release-ssl-zlib
155         cd ..\src
156         nmake /f Makefile.$(VC) cfg=release-ssl-zlib
157
158 vc-x64-ssl-zlib: $(VC)
159         cd lib
160         nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-ssl-zlib
161         cd ..\src
162         nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-ssl-zlib
163
164 vc-ssl-dll: $(VC)
165         cd lib
166         nmake /f Makefile.$(VC) cfg=release-ssl-dll
167         cd ..\src
168         nmake /f Makefile.$(VC) cfg=release-ssl-dll
169
170 vc-dll-ssl-dll: $(VC)
171         cd lib
172         nmake /f Makefile.$(VC) cfg=release-dll-ssl-dll
173         cd ..\src
174         nmake /f Makefile.$(VC) cfg=release-dll-ssl-dll
175
176 vc-dll: $(VC)
177         cd lib
178         nmake /f Makefile.$(VC) cfg=release-dll
179         cd ..\src
180         nmake /f Makefile.$(VC) cfg=release-dll
181
182 vc-dll-zlib-dll: $(VC)
183         cd lib
184         nmake /f Makefile.$(VC) cfg=release-dll-zlib-dll
185         cd ..\src
186         nmake /f Makefile.$(VC) cfg=release-dll-zlib-dll
187
188 vc-dll-ssl-dll-zlib-dll: $(VC)
189         cd lib
190         nmake /f Makefile.$(VC) cfg=release-dll-ssl-dll-zlib-dll
191         cd ..\src
192         nmake /f Makefile.$(VC) cfg=release-dll-ssl-dll-zlib-dll
193
194 vc-ssl-dll-zlib-dll: $(VC)
195         cd lib
196         nmake /f Makefile.$(VC) cfg=release-ssl-dll-zlib-dll
197         cd ..\src
198         nmake /f Makefile.$(VC) cfg=release-ssl-dll-zlib-dll
199
200 vc-zlib-dll: $(VC)
201         cd lib
202         nmake /f Makefile.$(VC) cfg=release-zlib-dll
203         cd ..\src
204         nmake /f Makefile.$(VC) cfg=release-zlib-dll
205
206 vc-sspi: $(VC)
207         cd lib
208         nmake /f Makefile.$(VC) cfg=release WINDOWS_SSPI=1
209         cd ..\src
210         nmake /f Makefile.$(VC) cfg=release WINDOWS_SSPI=1
211
212 djgpp:
213         $(MAKE) -C lib -f Makefile.dj
214         $(MAKE) -C src -f Makefile.dj
215
216 cygwin:
217         ./configure
218         make
219
220 cygwin-ssl:
221         ./configure --with-ssl
222         make
223
224 amiga:
225         cd ./lib && make -f makefile.amiga
226         cd ./src && make -f makefile.amiga
227
228 netware:
229         $(MAKE) -C lib -f Makefile.netware
230         $(MAKE) -C src -f Makefile.netware
231
232 netware-ares:
233         $(MAKE) -C lib -f Makefile.netware WITH_ARES=1
234         $(MAKE) -C src -f Makefile.netware WITH_ARES=1
235
236 netware-ssl:
237         $(MAKE) -C lib -f Makefile.netware WITH_SSL=1
238         $(MAKE) -C src -f Makefile.netware WITH_SSL=1
239
240 netware-ssl-zlib:
241         $(MAKE) -C lib -f Makefile.netware WITH_SSL=1 WITH_ZLIB=1
242         $(MAKE) -C src -f Makefile.netware WITH_SSL=1 WITH_ZLIB=1
243
244 netware-ssh2-ssl-zlib:
245         $(MAKE) -C lib -f Makefile.netware WITH_SSH2=1 WITH_SSL=1 WITH_ZLIB=1
246         $(MAKE) -C src -f Makefile.netware WITH_SSH2=1 WITH_SSL=1 WITH_ZLIB=1
247
248 netware-zlib:
249         $(MAKE) -C lib -f Makefile.netware WITH_ZLIB=1
250         $(MAKE) -C src -f Makefile.netware WITH_ZLIB=1
251
252 netware-clean:
253         $(MAKE) -C lib -f Makefile.netware clean
254         $(MAKE) -C src -f Makefile.netware clean
255
256 netware-install:
257         $(MAKE) -C lib -f Makefile.netware install
258         $(MAKE) -C src -f Makefile.netware install
259
260 unix: all
261
262 unix-ssl: ssl
263
264 linux: all
265
266 linux-ssl: ssl
267
268 # We don't need to do anything for vc6.
269 vc6:
270
271 vc8: lib/Makefile.vc8 src/Makefile.vc8
272
273 lib/Makefile.vc8: lib/Makefile.vc6
274         @echo "generate $@"
275         @sed -e "s#/GX /DWIN32 /YX#/EHsc /DWIN32#" -e "s#/GZ#/RTC1#" -e "s/ws2_32.lib/ws2_32.lib bufferoverflowu.lib/g" -e "s/VC6/VC8/g" lib/Makefile.vc6 > lib/Makefile.vc8
276
277 src/Makefile.vc8: src/Makefile.vc6
278         @echo "generate $@"
279         @sed -e "s#/GX /DWIN32 /YX#/EHsc /DWIN32#" -e "s#/GZ#/RTC1#" -e "s/ws2_32.lib/ws2_32.lib bufferoverflowu.lib/g" -e "s/VC6/VC8/g" src/Makefile.vc6 > src/Makefile.vc8
280
281 # VC9 makefiles are for use with VS2008
282 vc9: lib/Makefile.vc9 src/Makefile.vc9
283
284 lib/Makefile.vc9: lib/Makefile.vc6
285         @echo "generate $@"
286         @sed -e "s#/GX /DWIN32 /YX#/EHsc /DWIN32#" -e "s#/GZ#/RTC1#" -e "s/ws2_32.lib/ws2_32.lib/g" -e "s/vc6/vc9/g" -e "s/VC6/VC9/g" lib/Makefile.vc6 > lib/Makefile.vc9
287
288 src/Makefile.vc9: src/Makefile.vc6
289         @echo "generate $@"
290         @sed -e "s#/GX /DWIN32 /YX#/EHsc /DWIN32#" -e "s#/GZ#/RTC1#" -e "s/ws2_32.lib/ws2_32.lib/g" -e "s/vc6/vc9/g" -e "s/VC6/VC9/g" src/Makefile.vc6 > src/Makefile.vc9
291
292 # VC10 makefiles are for use with VS2010
293 vc10: lib/Makefile.vc10 src/Makefile.vc10
294
295 lib/Makefile.vc10: lib/Makefile.vc6
296         @echo "generate $@"
297         @sed -e "s#/GX /DWIN32 /YX#/EHsc /DWIN32#" -e "s#/GZ#/RTC1#" -e "s/ws2_32.lib/ws2_32.lib/g" -e "s/vc6/vc10/g" -e "s/VC6/VC10/g" lib/Makefile.vc6 > lib/Makefile.vc10
298
299 src/Makefile.vc10: src/Makefile.vc6
300         @echo "generate $@"
301         @sed -e "s#/GX /DWIN32 /YX#/EHsc /DWIN32#" -e "s#/GZ#/RTC1#" -e "s/ws2_32.lib/ws2_32.lib/g" -e "s/vc6/vc10/g" -e "s/VC6/VC10/g" src/Makefile.vc6 > src/Makefile.vc10
302
303 ca-bundle: lib/mk-ca-bundle.pl
304         @echo "generate a fresh ca-bundle.crt"
305         @perl $< -b -l -u lib/ca-bundle.crt
306
307 ca-firefox: lib/firefox-db2pem.sh
308         @echo "generate a fresh ca-bundle.crt"
309         ./lib/firefox-db2pem.sh lib/ca-bundle.crt