xref: /freebsd/crypto/openssl/providers/common/der/build.info (revision 9f23cbd6cae82fd77edfad7173432fa8dccd0a95)
1$INCDIR=../include/prov
2
3#----- Digests
4$DER_DIGESTS_H=$INCDIR/der_digests.h
5$DER_DIGESTS_GEN=der_digests_gen.c
6
7GENERATE[$DER_DIGESTS_GEN]=der_digests_gen.c.in
8DEPEND[$DER_DIGESTS_GEN]=oids_to_c.pm NIST.asn1 DIGESTS.asn1
9
10DEPEND[${DER_DIGESTS_GEN/.c/.o}]=$DER_DIGESTS_H
11GENERATE[$DER_DIGESTS_H]=$INCDIR/der_digests.h.in
12DEPEND[$DER_DIGESTS_H]=oids_to_c.pm NIST.asn1 DIGESTS.asn1
13
14#----- RSA
15$DER_RSA_H=$INCDIR/der_rsa.h
16$DER_RSA_GEN=der_rsa_gen.c
17$DER_RSA_AUX=der_rsa_key.c der_rsa_sig.c
18$DER_RSA_COMMON=$DER_RSA_GEN der_rsa_key.c
19$DER_RSA_FIPSABLE=der_rsa_sig.c
20
21GENERATE[$DER_RSA_GEN]=der_rsa_gen.c.in
22DEPEND[$DER_RSA_GEN]=oids_to_c.pm NIST.asn1 RSA.asn1
23
24DEPEND[${DER_RSA_AUX/.c/.o}]=$DER_RSA_H $DER_DIGESTS_H
25DEPEND[${DER_RSA_GEN/.c/.o}]=$DER_RSA_H
26GENERATE[$DER_RSA_H]=$INCDIR/der_rsa.h.in
27DEPEND[$DER_RSA_H]=oids_to_c.pm NIST.asn1 RSA.asn1
28
29#----- DSA
30IF[{- !$disabled{dsa} -}]
31  $DER_DSA_H=$INCDIR/der_dsa.h
32  $DER_DSA_GEN=der_dsa_gen.c
33  $DER_DSA_AUX=der_dsa_key.c der_dsa_sig.c
34
35  GENERATE[$DER_DSA_GEN]=der_dsa_gen.c.in
36  DEPEND[$DER_DSA_GEN]=oids_to_c.pm DSA.asn1
37
38  DEPEND[${DER_DSA_AUX/.c/.o}]=$DER_DSA_H $DER_DIGESTS_H
39  DEPEND[${DER_DSA_GEN/.c/.o}]=$DER_DSA_H
40  GENERATE[$DER_DSA_H]=$INCDIR/der_dsa.h.in
41  DEPEND[$DER_DSA_H]=oids_to_c.pm DSA.asn1
42ENDIF
43
44#----- EC
45IF[{- !$disabled{ec} -}]
46  $DER_EC_H=$INCDIR/der_ec.h
47  $DER_EC_GEN=der_ec_gen.c
48  $DER_EC_AUX=der_ec_key.c der_ec_sig.c
49
50  GENERATE[$DER_EC_GEN]=der_ec_gen.c.in
51  DEPEND[$DER_EC_GEN]=oids_to_c.pm EC.asn1
52
53  DEPEND[${DER_EC_AUX/.c/.o}]=$DER_EC_H $DER_DIGESTS_H
54  DEPEND[${DER_EC_GEN/.c/.o}]=$DER_EC_H
55  GENERATE[$DER_EC_H]=$INCDIR/der_ec.h.in
56  DEPEND[$DER_EC_H]=oids_to_c.pm EC.asn1
57ENDIF
58
59#----- ECX
60IF[{- !$disabled{ec} -}]
61  $DER_ECX_H=$INCDIR/der_ecx.h
62  $DER_ECX_GEN=der_ecx_gen.c
63  $DER_ECX_AUX=der_ecx_key.c
64
65  GENERATE[$DER_ECX_GEN]=der_ecx_gen.c.in
66  DEPEND[$DER_ECX_GEN]=oids_to_c.pm ECX.asn1
67
68  DEPEND[${DER_ECX_AUX/.c/.o}]=$DER_ECX_H
69  DEPEND[${DER_ECX_GEN/.c/.o}]=$DER_ECX_H
70  GENERATE[$DER_ECX_H]=$INCDIR/der_ecx.h.in
71  DEPEND[$DER_ECX_H]=oids_to_c.pm ECX.asn1
72ENDIF
73
74#----- KEY WRAP
75$DER_WRAP_H=$INCDIR/der_wrap.h
76$DER_WRAP_GEN=der_wrap_gen.c
77
78GENERATE[$DER_WRAP_GEN]=der_wrap_gen.c.in
79DEPEND[$DER_WRAP_GEN]=oids_to_c.pm wrap.asn1
80
81DEPEND[${DER_WRAP_GEN/.c/.o}]=$DER_WRAP_H
82GENERATE[$DER_WRAP_H]=$INCDIR/der_wrap.h.in
83DEPEND[$DER_WRAP_H]=oids_to_c.pm wrap.asn1
84
85#----- SM2
86IF[{- !$disabled{sm2} -}]
87  $DER_SM2_H=$INCDIR/der_sm2.h
88  $DER_SM2_GEN=der_sm2_gen.c
89  $DER_SM2_AUX=der_sm2_key.c der_sm2_sig.c
90
91  GENERATE[$DER_SM2_GEN]=der_sm2_gen.c.in
92  DEPEND[$DER_SM2_GEN]=oids_to_c.pm SM2.asn1
93
94  DEPEND[${DER_SM2_AUX/.c/.o}]=$DER_SM2_H $DER_EC_H
95  DEPEND[${DER_SM2_GEN/.c/.o}]=$DER_SM2_H
96  GENERATE[$DER_SM2_H]=$INCDIR/der_sm2.h.in
97  DEPEND[$DER_SM2_H]=oids_to_c.pm SM2.asn1
98ENDIF
99
100#----- Conclusion
101
102$COMMON= $DER_RSA_COMMON $DER_DIGESTS_GEN $DER_WRAP_GEN
103
104IF[{- !$disabled{dsa} -}]
105  $COMMON = $COMMON $DER_DSA_GEN $DER_DSA_AUX
106ENDIF
107
108IF[{- !$disabled{ec} -}]
109  $COMMON = $COMMON $DER_EC_GEN $DER_EC_AUX
110  $COMMON = $COMMON $DER_ECX_GEN $DER_ECX_AUX
111ENDIF
112
113IF[{- !$disabled{sm2} -}]
114  $NONFIPS = $NONFIPS $DER_SM2_GEN $DER_SM2_AUX
115ENDIF
116
117SOURCE[../../libcommon.a]= $COMMON
118SOURCE[../../libfips.a]= $DER_RSA_FIPSABLE
119SOURCE[../../libdefault.a]= $DER_RSA_FIPSABLE $NONFIPS
120