Fix vc-x64 target having MACHINE= wrongly positioned, and added vc-x64-ssl-zlib
[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         nmake /f Makefile.$(VC) MACHINE=x64 cfg=release
134         cd ..\src
135         nmake /f Makefile.$(VC) MACHINE=x64 cfg=release
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-x64-ssl-zlib:
156         cd lib
157         nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-ssl-zlib
158         cd ..\src
159         nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-ssl-zlib
160
161 vc-ssl-dll:
162         cd lib
163         nmake /f Makefile.$(VC) cfg=release-ssl-dll
164         cd ..\src
165         nmake /f Makefile.$(VC) cfg=release-ssl-dll
166
167 vc-dll-ssl-dll:
168         cd lib
169         nmake /f Makefile.$(VC) cfg=release-dll-ssl-dll
170         cd ..\src
171         nmake /f Makefile.$(VC) cfg=release-dll-ssl-dll
172
173 vc-dll:
174         cd lib
175         nmake /f Makefile.$(VC) cfg=release-dll
176         cd ..\src
177         nmake /f Makefile.$(VC) cfg=release-dll
178
179 vc-dll-zlib-dll:
180         cd lib
181         nmake /f Makefile.$(VC) cfg=release-dll-zlib-dll
182         cd ..\src
183         nmake /f Makefile.$(VC) cfg=release-dll-zlib-dll
184
185 vc-dll-ssl-dll-zlib-dll:
186         cd lib
187         nmake /f Makefile.$(VC) cfg=release-dll-ssl-dll-zlib-dll
188         cd ..\src
189         nmake /f Makefile.$(VC) cfg=release-dll-ssl-dll-zlib-dll
190
191 vc-ssl-dll-zlib-dll:
192         cd lib
193         nmake /f Makefile.$(VC) cfg=release-ssl-dll-zlib-dll
194         cd ..\src
195         nmake /f Makefile.$(VC) cfg=release-ssl-dll-zlib-dll
196
197 vc-zlib-dll:
198         cd lib
199         nmake /f Makefile.$(VC) cfg=release-zlib-dll
200         cd ..\src
201         nmake /f Makefile.$(VC) cfg=release-zlib-dll
202
203 vc-sspi:
204         cd lib
205         nmake /f Makefile.$(VC) cfg=release WINDOWS_SSPI=1
206         cd ..\src
207         nmake /f Makefile.$(VC) cfg=release WINDOWS_SSPI=1
208
209 djgpp:
210         $(MAKE) -C lib -f Makefile.dj
211         $(MAKE) -C src -f Makefile.dj
212
213 cygwin:
214         ./configure
215         make
216
217 cygwin-ssl:
218         ./configure --with-ssl
219         make
220
221 amiga:
222         cd ./lib && make -f makefile.amiga
223         cd ./src && make -f makefile.amiga
224
225 netware:
226         $(MAKE) -C lib -f Makefile.netware
227         $(MAKE) -C src -f Makefile.netware
228
229 netware-ares:
230         $(MAKE) -C lib -f Makefile.netware WITH_ARES=1
231         $(MAKE) -C src -f Makefile.netware WITH_ARES=1
232
233 netware-ssl:
234         $(MAKE) -C lib -f Makefile.netware WITH_SSL=1
235         $(MAKE) -C src -f Makefile.netware WITH_SSL=1
236
237 netware-ssl-zlib:
238         $(MAKE) -C lib -f Makefile.netware WITH_SSL=1 WITH_ZLIB=1
239         $(MAKE) -C src -f Makefile.netware WITH_SSL=1 WITH_ZLIB=1
240
241 netware-ssh2-ssl-zlib:
242         $(MAKE) -C lib -f Makefile.netware WITH_SSH2=1 WITH_SSL=1 WITH_ZLIB=1
243         $(MAKE) -C src -f Makefile.netware WITH_SSH2=1 WITH_SSL=1 WITH_ZLIB=1
244
245 netware-zlib:
246         $(MAKE) -C lib -f Makefile.netware WITH_ZLIB=1
247         $(MAKE) -C src -f Makefile.netware WITH_ZLIB=1
248
249 netware-clean:
250         $(MAKE) -C lib -f Makefile.netware clean
251         $(MAKE) -C src -f Makefile.netware clean
252
253 netware-install:
254         $(MAKE) -C lib -f Makefile.netware install
255         $(MAKE) -C src -f Makefile.netware install
256
257 unix: all
258
259 unix-ssl: ssl
260
261 linux: all
262
263 linux-ssl: ssl
264
265
266 vc8:
267         @echo "generate VC8 makefiles"
268         @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
269         @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
270
271 # VC9 makefiles are for use with VS2008
272 vc9:
273         @echo "generate VC9 makefiles"
274         @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
275         @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
276
277 ca-bundle: lib/mk-ca-bundle.pl
278         @echo "generate a fresh ca-bundle.crt"
279         @perl $< -b -l -u lib/ca-bundle.crt
280
281 ca-firefox: lib/firefox-db2pem.sh
282         @echo "generate a fresh ca-bundle.crt"
283         ./lib/firefox-db2pem.sh lib/ca-bundle.crt