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