Imported Upstream version 7.48.0
[platform/upstream/curl.git] / tests / certs / Makefile.am
1 #***************************************************************************
2 #                                  _   _ ____  _
3 #  Project                     ___| | | |  _ \| |
4 #                             / __| | | | |_) | |
5 #                            | (__| |_| |  _ <| |___
6 #                             \___|\___/|_| \_\_____|
7 #
8 # Copyright (C) 1998 - 2013, 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 AUTOMAKE_OPTIONS = foreign
23
24 SUBDIRS = scripts
25
26 CERTCONFIGS = \
27   EdelCurlRoot-ca.prm \
28   EdelCurlRoot-ca.cnf \
29   Server-localhost-sv.prm \
30   Server-localhost.nn-sv.prm \
31   Server-localhost0h-sv.prm
32
33 GENERATEDCERTS = \
34   EdelCurlRoot-ca.cacert \
35   EdelCurlRoot-ca.crt \
36   EdelCurlRoot-ca.csr \
37   EdelCurlRoot-ca.der \
38   EdelCurlRoot-ca.key \
39   Server-localhost-sv.crl \
40   Server-localhost-sv.crt \
41   Server-localhost-sv.csr \
42   Server-localhost-sv.der \
43   Server-localhost-sv.dhp \
44   Server-localhost-sv.key \
45   Server-localhost-sv.pem \
46   Server-localhost-sv.pub.der \
47   Server-localhost-sv.pub.pem \
48   Server-localhost.nn-sv.crl \
49   Server-localhost.nn-sv.crt \
50   Server-localhost.nn-sv.csr \
51   Server-localhost.nn-sv.der \
52   Server-localhost.nn-sv.dhp \
53   Server-localhost.nn-sv.key \
54   Server-localhost.nn-sv.pem \
55   Server-localhost.nn-sv.pub.der \
56   Server-localhost.nn-sv.pub.pem \
57   Server-localhost0h-sv.crl \
58   Server-localhost0h-sv.crt \
59   Server-localhost0h-sv.csr \
60   Server-localhost0h-sv.der \
61   Server-localhost0h-sv.dhp \
62   Server-localhost0h-sv.key \
63   Server-localhost0h-sv.pem \
64   Server-localhost0h-sv.pub.der \
65   Server-localhost0h-sv.pub.pem
66
67 SRPFILES = \
68   srp-verifier-conf \
69   srp-verifier-db
70
71 EXTRA_DIST = $(CERTCONFIGS) $(GENERATEDCERTS) $(SRPFILES)
72
73 # Rebuild the certificates
74
75 clean-certs:
76         cd $(srcdir); rm -f $(GENERATEDCERTS)
77
78 build-certs: $(srcdir)/EdelCurlRoot-ca.cacert $(srcdir)/Server-localhost-sv.pem \
79         $(srcdir)/Server-localhost.nn-sv.pem $(srcdir)/Server-localhost0h-sv.pem
80
81 $(srcdir)/EdelCurlRoot-ca.cacert:
82         cd $(srcdir); scripts/genroot.sh EdelCurlRoot
83
84 $(srcdir)/Server-localhost-sv.pem: $(srcdir)/EdelCurlRoot-ca.cacert
85         cd $(srcdir); scripts/genserv.sh Server-localhost EdelCurlRoot
86
87 $(srcdir)/Server-localhost.nn-sv.pem: $(srcdir)/EdelCurlRoot-ca.cacert
88         cd $(srcdir); scripts/genserv.sh Server-localhost.nn EdelCurlRoot
89
90 $(srcdir)/Server-localhost0h-sv.pem: $(srcdir)/EdelCurlRoot-ca.cacert
91         cd $(srcdir); scripts/genserv.sh Server-localhost0h EdelCurlRoot