mime: properly check Content-Type even if it has parameters
[platform/upstream/curl.git] / Makefile
1 #***************************************************************************
2 #                                  _   _ ____  _
3 #  Project                     ___| | | |  _ \| |
4 #                             / __| | | | |_) | |
5 #                            | (__| |_| |  _ <| |___
6 #                             \___|\___/|_| \_\_____|
7 #
8 # Copyright (C) 1998 - 2018, 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.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 all:
24         ./configure
25         make
26
27 ssl:
28         ./configure --with-ssl
29         make
30
31 watcom: .SYMBOLIC
32         cd lib && $(MAKE) -u -f Makefile.Watcom
33         cd src && $(MAKE) -u -f Makefile.Watcom
34
35 watcom-clean: .SYMBOLIC
36         cd lib && $(MAKE) -u -f Makefile.Watcom clean
37         cd src && $(MAKE) -u -f Makefile.Watcom clean
38
39 watcom-vclean: .SYMBOLIC
40         cd lib && $(MAKE) -u -f Makefile.Watcom vclean
41         cd src && $(MAKE) -u -f Makefile.Watcom vclean
42
43 mingw32:
44         $(MAKE) -C lib -f Makefile.m32
45         $(MAKE) -C src -f Makefile.m32
46
47 mingw32-clean:
48         $(MAKE) -C lib -f Makefile.m32 clean
49         $(MAKE) -C src -f Makefile.m32 clean
50         $(MAKE) -C docs/examples -f Makefile.m32 clean
51
52 mingw32-vclean mingw32-distclean:
53         $(MAKE) -C lib -f Makefile.m32 vclean
54         $(MAKE) -C src -f Makefile.m32 vclean
55         $(MAKE) -C docs/examples -f Makefile.m32 vclean
56
57 mingw32-examples%:
58         $(MAKE) -C docs/examples -f Makefile.m32 CFG=$@
59
60 mingw32%:
61         $(MAKE) -C lib -f Makefile.m32 CFG=$@
62         $(MAKE) -C src -f Makefile.m32 CFG=$@
63
64 vc:
65         cd winbuild
66         nmake /f Makefile.vc MACHINE=x86
67
68 vc-x64:
69         cd winbuild
70         nmake /f Makefile.vc MACHINE=x64
71
72 djgpp:
73         $(MAKE) -C lib -f Makefile.dj
74         $(MAKE) -C src -f Makefile.dj
75
76 cygwin:
77         ./configure
78         make
79
80 cygwin-ssl:
81         ./configure --with-ssl
82         make
83
84 amiga:
85         cd ./lib && make -f makefile.amiga
86         cd ./src && make -f makefile.amiga
87
88 netware:
89         $(MAKE) -C lib -f Makefile.netware
90         $(MAKE) -C src -f Makefile.netware
91
92 netware-clean:
93         $(MAKE) -C lib -f Makefile.netware clean
94         $(MAKE) -C src -f Makefile.netware clean
95         $(MAKE) -C docs/examples -f Makefile.netware clean
96
97 netware-vclean netware-distclean:
98         $(MAKE) -C lib -f Makefile.netware vclean
99         $(MAKE) -C src -f Makefile.netware vclean
100         $(MAKE) -C docs/examples -f Makefile.netware vclean
101
102 netware-install:
103         $(MAKE) -C lib -f Makefile.netware install
104         $(MAKE) -C src -f Makefile.netware install
105
106 netware-examples-%:
107         $(MAKE) -C docs/examples -f Makefile.netware CFG=$@
108
109 netware-%:
110         $(MAKE) -C lib -f Makefile.netware CFG=$@
111         $(MAKE) -C src -f Makefile.netware CFG=$@
112
113 unix: all
114
115 unix-ssl: ssl
116
117 linux: all
118
119 linux-ssl: ssl
120
121 ca-bundle: lib/mk-ca-bundle.pl
122         @echo "generate a fresh ca-bundle.crt"
123         @perl $< -b -l -u lib/ca-bundle.crt
124
125 ca-firefox: lib/firefox-db2pem.sh
126         @echo "generate a fresh ca-bundle.crt"
127         ./lib/firefox-db2pem.sh lib/ca-bundle.crt