Imported Upstream version 7.32.0
[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-clean:
74         $(MAKE) -C lib -f Makefile.m32 clean
75         $(MAKE) -C src -f Makefile.m32 clean
76         $(MAKE) -C docs/examples -f Makefile.m32 clean
77
78 mingw32-vclean mingw32-distclean:
79         $(MAKE) -C lib -f Makefile.m32 vclean
80         $(MAKE) -C src -f Makefile.m32 vclean
81         $(MAKE) -C docs/examples -f Makefile.m32 vclean
82
83 mingw32-examples%:
84         $(MAKE) -C docs/examples -f Makefile.m32 CFG=$@
85
86 mingw32%:
87         $(MAKE) -C lib -f Makefile.m32 CFG=$@
88         $(MAKE) -C src -f Makefile.m32 CFG=$@
89
90 vc-clean: $(VC)
91         cd lib
92         nmake -f Makefile.$(VC) clean
93         cd ..\src
94         nmake -f Makefile.$(VC) clean
95
96 vc-all: $(VC)
97         cd lib
98         nmake -f Makefile.$(VC) cfg=release
99         nmake -f Makefile.$(VC) cfg=release-ssl
100         nmake -f Makefile.$(VC) cfg=release-zlib
101         nmake -f Makefile.$(VC) cfg=release-ssl-zlib
102         nmake -f Makefile.$(VC) cfg=release-ssl-dll
103         nmake -f Makefile.$(VC) cfg=release-zlib-dll
104         nmake -f Makefile.$(VC) cfg=release-ssl-dll-zlib-dll
105         nmake -f Makefile.$(VC) cfg=release-dll
106         nmake -f Makefile.$(VC) cfg=release-dll-ssl-dll
107         nmake -f Makefile.$(VC) cfg=release-dll-zlib-dll
108         nmake -f Makefile.$(VC) cfg=release-dll-ssl-dll-zlib-dll
109         nmake -f Makefile.$(VC) cfg=debug
110         nmake -f Makefile.$(VC) cfg=debug-ssl
111         nmake -f Makefile.$(VC) cfg=debug-zlib
112         nmake -f Makefile.$(VC) cfg=debug-ssl-zlib
113         nmake -f Makefile.$(VC) cfg=debug-ssl-dll
114         nmake -f Makefile.$(VC) cfg=debug-zlib-dll
115         nmake -f Makefile.$(VC) cfg=debug-ssl-dll-zlib-dll
116         nmake -f Makefile.$(VC) cfg=debug-dll
117         nmake -f Makefile.$(VC) cfg=debug-dll-ssl-dll
118         nmake -f Makefile.$(VC) cfg=debug-dll-zlib-dll
119         nmake -f Makefile.$(VC) cfg=debug-dll-ssl-dll-zlib-dll
120
121 vc: $(VC)
122         cd lib
123         nmake /f Makefile.$(VC) cfg=release
124         cd ..\src
125         nmake /f Makefile.$(VC)
126
127 vc-x64: $(VC)
128         cd lib
129         nmake /f Makefile.$(VC) MACHINE=x64 cfg=release
130         cd ..\src
131         nmake /f Makefile.$(VC) MACHINE=x64 cfg=release
132
133 vc-zlib: $(VC)
134         cd lib
135         nmake /f Makefile.$(VC) cfg=release-zlib
136         cd ..\src
137         nmake /f Makefile.$(VC) cfg=release-zlib
138
139 vc-ssl: $(VC)
140         cd lib
141         nmake /f Makefile.$(VC) cfg=release-ssl
142         cd ..\src
143         nmake /f Makefile.$(VC) cfg=release-ssl
144
145 vc-ssl-zlib: $(VC)
146         cd lib
147         nmake /f Makefile.$(VC) cfg=release-ssl-zlib
148         cd ..\src
149         nmake /f Makefile.$(VC) cfg=release-ssl-zlib
150
151 vc-winssl-zlib: $(VC)
152         cd lib
153         nmake /f Makefile.$(VC) cfg=release-winssl-zlib
154         cd ..\src
155         nmake /f Makefile.$(VC) cfg=release-winssl-zlib
156
157 vc-x64-ssl-zlib: $(VC)
158         cd lib
159         nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-ssl-zlib
160         cd ..\src
161         nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-ssl-zlib
162
163 vc-x64-winssl-zlib: $(VC)
164         cd lib
165         nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-winssl-zlib
166         cd ..\src
167         nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-winssl-zlib
168
169 vc-ssl-dll: $(VC)
170         cd lib
171         nmake /f Makefile.$(VC) cfg=release-ssl-dll
172         cd ..\src
173         nmake /f Makefile.$(VC) cfg=release-ssl-dll
174
175 vc-dll-ssl-dll: $(VC)
176         cd lib
177         nmake /f Makefile.$(VC) cfg=release-dll-ssl-dll
178         cd ..\src
179         nmake /f Makefile.$(VC) cfg=release-dll-ssl-dll
180
181 vc-dll: $(VC)
182         cd lib
183         nmake /f Makefile.$(VC) cfg=release-dll
184         cd ..\src
185         nmake /f Makefile.$(VC) cfg=release-dll
186
187 vc-dll-zlib-dll: $(VC)
188         cd lib
189         nmake /f Makefile.$(VC) cfg=release-dll-zlib-dll
190         cd ..\src
191         nmake /f Makefile.$(VC) cfg=release-dll-zlib-dll
192
193 vc-dll-ssl-dll-zlib-dll: $(VC)
194         cd lib
195         nmake /f Makefile.$(VC) cfg=release-dll-ssl-dll-zlib-dll
196         cd ..\src
197         nmake /f Makefile.$(VC) cfg=release-dll-ssl-dll-zlib-dll
198
199 vc-ssl-dll-zlib-dll: $(VC)
200         cd lib
201         nmake /f Makefile.$(VC) cfg=release-ssl-dll-zlib-dll
202         cd ..\src
203         nmake /f Makefile.$(VC) cfg=release-ssl-dll-zlib-dll
204
205 vc-zlib-dll: $(VC)
206         cd lib
207         nmake /f Makefile.$(VC) cfg=release-zlib-dll
208         cd ..\src
209         nmake /f Makefile.$(VC) cfg=release-zlib-dll
210
211 vc-sspi: $(VC)
212         cd lib
213         nmake /f Makefile.$(VC) cfg=release WINDOWS_SSPI=1
214         cd ..\src
215         nmake /f Makefile.$(VC) cfg=release WINDOWS_SSPI=1
216
217 djgpp:
218         $(MAKE) -C lib -f Makefile.dj
219         $(MAKE) -C src -f Makefile.dj
220
221 cygwin:
222         ./configure
223         make
224
225 cygwin-ssl:
226         ./configure --with-ssl
227         make
228
229 amiga:
230         cd ./lib && make -f makefile.amiga
231         cd ./src && make -f makefile.amiga
232
233 netware:
234         $(MAKE) -C lib -f Makefile.netware
235         $(MAKE) -C src -f Makefile.netware
236
237 netware-clean:
238         $(MAKE) -C lib -f Makefile.netware clean
239         $(MAKE) -C src -f Makefile.netware clean
240         $(MAKE) -C docs/examples -f Makefile.netware clean
241
242 netware-vclean netware-distclean:
243         $(MAKE) -C lib -f Makefile.netware vclean
244         $(MAKE) -C src -f Makefile.netware vclean
245         $(MAKE) -C docs/examples -f Makefile.netware vclean
246
247 netware-install:
248         $(MAKE) -C lib -f Makefile.netware install
249         $(MAKE) -C src -f Makefile.netware install
250
251 netware-examples-%:
252         $(MAKE) -C docs/examples -f Makefile.netware CFG=$@
253
254 netware-%:
255         $(MAKE) -C lib -f Makefile.netware CFG=$@
256         $(MAKE) -C src -f Makefile.netware CFG=$@
257
258 unix: all
259
260 unix-ssl: ssl
261
262 linux: all
263
264 linux-ssl: ssl
265
266 # We don't need to do anything for vc6.
267 vc6:
268
269 vc8: lib/Makefile.vc8 src/Makefile.vc8
270
271 lib/Makefile.vc8: lib/Makefile.vc6
272         @echo "generate $@"
273         @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
274
275 src/Makefile.vc8: src/Makefile.vc6
276         @echo "generate $@"
277         @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
278
279 # VC9 makefiles are for use with VS2008
280 vc9: lib/Makefile.vc9 src/Makefile.vc9
281
282 lib/Makefile.vc9: lib/Makefile.vc6
283         @echo "generate $@"
284         @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
285
286 src/Makefile.vc9: src/Makefile.vc6
287         @echo "generate $@"
288         @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
289
290 # VC10 makefiles are for use with VS2010
291 vc10: lib/Makefile.vc10 src/Makefile.vc10
292
293 lib/Makefile.vc10: lib/Makefile.vc6
294         @echo "generate $@"
295         @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
296
297 src/Makefile.vc10: src/Makefile.vc6
298         @echo "generate $@"
299         @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
300
301 ca-bundle: lib/mk-ca-bundle.pl
302         @echo "generate a fresh ca-bundle.crt"
303         @perl $< -b -l -u lib/ca-bundle.crt
304
305 ca-firefox: lib/firefox-db2pem.sh
306         @echo "generate a fresh ca-bundle.crt"
307         ./lib/firefox-db2pem.sh lib/ca-bundle.crt