Imported Upstream version 7.86.0
[platform/upstream/curl.git] / Makefile
1 #***************************************************************************
2 #                                  _   _ ____  _
3 #  Project                     ___| | | |  _ \| |
4 #                             / __| | | | |_) | |
5 #                            | (__| |_| |  _ <| |___
6 #                             \___|\___/|_| \_\_____|
7 #
8 # Copyright (C) 1998 - 2022, 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 https://curl.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 # SPDX-License-Identifier: curl
22 #
23 ###########################################################################
24
25 all:
26         ./configure
27         make
28
29 ssl:
30         ./configure --with-openssl
31         make
32
33 mingw32:
34         $(MAKE) -C lib -f Makefile.m32
35         $(MAKE) -C src -f Makefile.m32
36
37 mingw32-clean:
38         $(MAKE) -C lib -f Makefile.m32 clean
39         $(MAKE) -C src -f Makefile.m32 clean
40         $(MAKE) -C docs/examples -f Makefile.m32 clean
41
42 mingw32-vclean mingw32-distclean:
43         $(MAKE) -C lib -f Makefile.m32 vclean
44         $(MAKE) -C src -f Makefile.m32 vclean
45         $(MAKE) -C docs/examples -f Makefile.m32 vclean
46
47 mingw32-examples%:
48         $(MAKE) -C docs/examples -f Makefile.m32 CFG=$@
49
50 mingw32%:
51         $(MAKE) -C lib -f Makefile.m32 CFG=$@
52         $(MAKE) -C src -f Makefile.m32 CFG=$@
53
54 vc:
55         cd winbuild
56         nmake /f Makefile.vc MACHINE=x86
57
58 vc-x64:
59         cd winbuild
60         nmake /f Makefile.vc MACHINE=x64
61
62 djgpp:
63         $(MAKE) -C lib -f Makefile.dj
64         $(MAKE) -C src -f Makefile.dj
65
66 cygwin:
67         ./configure
68         make
69
70 cygwin-ssl:
71         ./configure --with-openssl
72         make
73
74 amiga:
75         cd ./lib && make -f makefile.amiga
76         cd ./src && make -f makefile.amiga
77
78 unix: all
79
80 unix-ssl: ssl
81
82 linux: all
83
84 linux-ssl: ssl
85
86 ca-bundle: scripts/mk-ca-bundle.pl
87         @echo "generate a fresh ca-bundle.crt"
88         @perl $< -b -l -u lib/ca-bundle.crt
89
90 ca-firefox: lib/firefox-db2pem.sh
91         @echo "generate a fresh ca-bundle.crt"
92         ./lib/firefox-db2pem.sh lib/ca-bundle.crt