• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#***************************************************************************
2#                                  _   _ ____  _
3#  Project                     ___| | | |  _ \| |
4#                             / __| | | | |_) | |
5#                            | (__| |_| |  _ <| |___
6#                             \___|\___/|_| \_\_____|
7#
8# Copyright (C) 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
25all:
26	./configure
27	make
28
29ssl:
30	./configure --with-openssl
31	make
32
33mingw32:
34	$(MAKE) -C lib -f Makefile.mk
35	$(MAKE) -C src -f Makefile.mk
36
37mingw32-clean:
38	$(MAKE) -C lib -f Makefile.mk clean
39	$(MAKE) -C src -f Makefile.mk clean
40	$(MAKE) -C docs/examples -f Makefile.mk clean
41
42mingw32-vclean mingw32-distclean:
43	$(MAKE) -C lib -f Makefile.mk vclean
44	$(MAKE) -C src -f Makefile.mk vclean
45	$(MAKE) -C docs/examples -f Makefile.mk vclean
46
47mingw32-examples%:
48	$(MAKE) -C docs/examples -f Makefile.mk CFG=$@
49
50mingw32%:
51	$(MAKE) -C lib -f Makefile.mk CFG=$@
52	$(MAKE) -C src -f Makefile.mk CFG=$@
53
54vc:
55	cd winbuild
56	nmake /f Makefile.vc MACHINE=x86
57
58vc-x64:
59	cd winbuild
60	nmake /f Makefile.vc MACHINE=x64
61
62djgpp%:
63	$(MAKE) -C lib -f Makefile.mk CFG=$@ CROSSPREFIX=i586-pc-msdosdjgpp-
64	$(MAKE) -C src -f Makefile.mk CFG=$@ CROSSPREFIX=i586-pc-msdosdjgpp-
65
66cygwin:
67	./configure
68	make
69
70cygwin-ssl:
71	./configure --with-openssl
72	make
73
74amiga%:
75	$(MAKE) -C lib -f Makefile.mk CFG=$@ CROSSPREFIX=m68k-amigaos-
76	$(MAKE) -C src -f Makefile.mk CFG=$@ CROSSPREFIX=m68k-amigaos-
77
78unix: all
79
80unix-ssl: ssl
81
82linux: all
83
84linux-ssl: ssl
85
86ca-bundle: scripts/mk-ca-bundle.pl
87	@echo "generate a fresh ca-bundle.crt"
88	@perl $< -b -l -u lib/ca-bundle.crt
89
90ca-firefox: lib/firefox-db2pem.sh
91	@echo "generate a fresh ca-bundle.crt"
92	./lib/firefox-db2pem.sh lib/ca-bundle.crt
93