build.info 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. #----- Digests
  2. $DER_DIGESTS_H=../include/prov/der_digests.h
  3. $DER_DIGESTS_GEN=der_digests_gen.c
  4. GENERATE[$DER_DIGESTS_GEN]=der_digests_gen.c.in
  5. DEPEND[$DER_DIGESTS_GEN]=oids_to_c.pm
  6. DEPEND[${DER_DIGESTS_GEN/.c/.o}]=$DER_DIGESTS_H
  7. GENERATE[$DER_DIGESTS_H]=der_digests.h.in
  8. DEPEND[$DER_DIGESTS_H]=oids_to_c.pm
  9. #----- RSA
  10. $DER_RSA_H=../include/prov/der_rsa.h
  11. $DER_RSA_GEN=der_rsa_gen.c
  12. $DER_RSA_AUX=der_rsa_key.c der_rsa_sig.c
  13. $DER_RSA_COMMON=$DER_RSA_GEN der_rsa_sig.c
  14. $DER_RSA_FIPSABLE=der_rsa_key.c
  15. GENERATE[$DER_RSA_GEN]=der_rsa_gen.c.in
  16. DEPEND[$DER_RSA_GEN]=oids_to_c.pm
  17. DEPEND[${DER_RSA_AUX/.c/.o}]=$DER_RSA_H $DER_DIGESTS_H
  18. DEPEND[${DER_RSA_GEN/.c/.o}]=$DER_RSA_H
  19. GENERATE[$DER_RSA_H]=der_rsa.h.in
  20. DEPEND[$DER_RSA_H]=oids_to_c.pm
  21. #----- DSA
  22. IF[{- !$disabled{dsa} -}]
  23. $DER_DSA_H=../include/prov/der_dsa.h
  24. $DER_DSA_GEN=der_dsa_gen.c
  25. $DER_DSA_AUX=der_dsa_key.c der_dsa_sig.c
  26. GENERATE[$DER_DSA_GEN]=der_dsa_gen.c.in
  27. DEPEND[$DER_DSA_GEN]=oids_to_c.pm
  28. DEPEND[${DER_DSA_AUX/.c/.o}]=$DER_DSA_H $DER_DIGESTS_H
  29. DEPEND[${DER_DSA_GEN/.c/.o}]=$DER_DSA_H
  30. GENERATE[$DER_DSA_H]=der_dsa.h.in
  31. DEPEND[$DER_DSA_H]=oids_to_c.pm
  32. ENDIF
  33. #----- EC
  34. IF[{- !$disabled{ec} -}]
  35. $DER_EC_H=../include/prov/der_ec.h
  36. $DER_EC_GEN=der_ec_gen.c
  37. $DER_EC_AUX=der_ec_key.c der_ec_sig.c
  38. GENERATE[$DER_EC_GEN]=der_ec_gen.c.in
  39. DEPEND[$DER_EC_GEN]=oids_to_c.pm
  40. DEPEND[${DER_EC_AUX/.c/.o}]=$DER_EC_H $DER_DIGESTS_H
  41. DEPEND[${DER_EC_GEN/.c/.o}]=$DER_EC_H
  42. GENERATE[$DER_EC_H]=der_ec.h.in
  43. DEPEND[$DER_EC_H]=oids_to_c.pm
  44. ENDIF
  45. #----- ECX
  46. IF[{- !$disabled{ec} -}]
  47. $DER_ECX_H=../include/prov/der_ecx.h
  48. $DER_ECX_GEN=der_ecx_gen.c
  49. $DER_ECX_AUX=der_ecx_key.c
  50. GENERATE[$DER_ECX_GEN]=der_ecx_gen.c.in
  51. DEPEND[$DER_ECX_GEN]=oids_to_c.pm
  52. DEPEND[${DER_ECX_AUX/.c/.o}]=$DER_ECX_H
  53. DEPEND[${DER_ECX_GEN/.c/.o}]=$DER_ECX_H
  54. GENERATE[$DER_ECX_H]=der_ecx.h.in
  55. DEPEND[$DER_ECX_H]=oids_to_c.pm
  56. ENDIF
  57. #----- KEY WRAP
  58. $DER_WRAP_H=../include/prov/der_wrap.h
  59. $DER_WRAP_GEN=der_wrap_gen.c
  60. GENERATE[$DER_WRAP_GEN]=der_wrap_gen.c.in
  61. DEPEND[$DER_WRAP_GEN]=oids_to_c.pm
  62. DEPEND[${DER_WRAP_GEN/.c/.o}]=$DER_WRAP_H
  63. GENERATE[$DER_WRAP_H]=der_wrap.h.in
  64. DEPEND[$DER_WRAP_H]=oids_to_c.pm
  65. #----- SM2
  66. IF[{- !$disabled{sm2} -}]
  67. $DER_SM2_H=../include/prov/der_sm2.h
  68. $DER_SM2_GEN=der_sm2_gen.c
  69. $DER_SM2_AUX=der_sm2_key.c der_sm2_sig.c
  70. GENERATE[$DER_SM2_GEN]=der_sm2_gen.c.in
  71. DEPEND[$DER_SM2_GEN]=oids_to_c.pm
  72. DEPEND[${DER_SM2_AUX/.c/.o}]=$DER_SM2_H $DER_EC_H
  73. DEPEND[${DER_SM2_GEN/.c/.o}]=$DER_SM2_H
  74. GENERATE[$DER_SM2_H]=der_sm2.h.in
  75. DEPEND[$DER_SM2_H]=oids_to_c.pm
  76. ENDIF
  77. #----- Conclusion
  78. # TODO(3.0) $COMMON should go to libcommon.a, but this currently leads
  79. # to linking conflicts, so we add it to libfips.a and libnonfips.a for
  80. # the moment being
  81. $COMMON= $DER_RSA_COMMON $DER_DIGESTS_GEN $DER_WRAP_GEN
  82. IF[{- !$disabled{dsa} -}]
  83. $COMMON = $COMMON $DER_DSA_GEN $DER_DSA_AUX
  84. ENDIF
  85. IF[{- !$disabled{ec} -}]
  86. $COMMON = $COMMON $DER_EC_GEN $DER_EC_AUX
  87. $COMMON = $COMMON $DER_ECX_GEN $DER_ECX_AUX
  88. ENDIF
  89. IF[{- !$disabled{sm2} -}]
  90. $COMMON = $COMMON $DER_SM2_GEN $DER_SM2_AUX
  91. ENDIF
  92. SOURCE[../../libfips.a]=$COMMON $DER_RSA_FIPSABLE
  93. SOURCE[../../libnonfips.a]=$COMMON $DER_RSA_FIPSABLE