build.info 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. LIBS=../../libcrypto
  2. $SHA1ASM=
  3. IF[{- !$disabled{asm} -}]
  4. $SHA1ASM_x86=sha1-586.S sha256-586.S sha512-586.S
  5. $SHA1DEF_x86=SHA1_ASM SHA256_ASM SHA512_ASM
  6. $SHA1ASM_x86_64=\
  7. sha1-x86_64.s sha256-x86_64.s sha512-x86_64.s sha1-mb-x86_64.s \
  8. sha256-mb-x86_64.s
  9. $SHA1DEF_x86_64=SHA1_ASM SHA256_ASM SHA512_ASM
  10. $SHA1ASM_ia64=sha1-ia64.s sha256-ia64.s sha512-ia64.s
  11. $SHA1DEF_ia64=SHA1_ASM SHA256_ASM SHA512_ASM
  12. $SHA1ASM_sparcv9=sha1-sparcv9.S sha256-sparcv9.S sha512-sparcv9.S
  13. $SHA1DEF_sparcv9=SHA1_ASM SHA256_ASM SHA512_ASM
  14. $SHA1ASM_alpha=sha1-alpha.S
  15. $SHA1DEF_alpha=SHA1_ASM
  16. $SHA1ASM_mips32=sha1-mips.S sha256-mips.S
  17. $SHA1DEF_mips32=SHA1_ASM SHA256_ASM
  18. $SHA1ASM_mips64=$SHA1ASM_mips32 sha512-mips.S
  19. $SHA1DEF_mips64=$SHA1DEF_mips32 SHA512_ASM
  20. $SHA1ASM_s390x=sha1-s390x.S sha256-s390x.S sha512-s390x.S
  21. $SHA1DEF_s390x=SHA1_ASM SHA256_ASM SHA512_ASM
  22. $SHA1ASM_armv4=sha1-armv4-large.S sha256-armv4.S sha512-armv4.S
  23. $SHA1DEF_armv4=SHA1_ASM SHA256_ASM SHA512_ASM
  24. $SHA1ASM_aarch64=sha1-armv8.S sha256-armv8.S sha512-armv8.S
  25. $SHA1DEF_aarch64=SHA1_ASM SHA256_ASM SHA512_ASM
  26. $SHA1ASM_parisc11=sha1-parisc.s sha256-parisc.s sha512-parisc.s
  27. $SHA1DEF_parisc11=SHA1_ASM SHA256_ASM SHA512_ASM
  28. $SHA1ASM_parisc20_64=$SHA1ASM_parisc11
  29. $SHA1DEF_parisc20_64=$SHA1DEF_parisc11
  30. $SHA1ASM_ppc32=\
  31. sha_ppc.c sha1-ppc.s sha256-ppc.s sha512-ppc.s sha256p8-ppc.s \
  32. sha512p8-ppc.s
  33. $SHA1DEF_ppc32=SHA1_ASM SHA256_ASM SHA512_ASM
  34. $SHA1ASM_ppc64=$SHA1ASM_ppc32
  35. $SHA1DEF_ppc64=$SHA1DEF_ppc32
  36. $SHA1ASM_c64xplus=sha1-c64xplus.s sha256-c64xplus.s sha512-c64xplus.s
  37. $SHA1DEF_c64xplus=SHA1_ASM SHA256_ASM SHA512_ASM
  38. $SHA1ASM_riscv64=sha_riscv.c sha256-riscv64-zvkb-zvknha_or_zvknhb.S sha512-riscv64-zvkb-zvknhb.S
  39. $SHA1DEF_riscv64=SHA256_ASM INCLUDE_C_SHA256 SHA512_ASM INCLUDE_C_SHA512
  40. # Now that we have defined all the arch specific variables, use the
  41. # appropriate one, and define the appropriate macros
  42. IF[$SHA1ASM_{- $target{asm_arch} -}]
  43. $SHA1ASM=$SHA1ASM_{- $target{asm_arch} -}
  44. $SHA1DEF=$SHA1DEF_{- $target{asm_arch} -}
  45. ENDIF
  46. ENDIF
  47. $KECCAK1600ASM=keccak1600.c
  48. IF[{- !$disabled{asm} -}]
  49. $KECCAK1600ASM_x86=
  50. $KECCAK1600ASM_x86_64=keccak1600-x86_64.s
  51. $KECCAK1600ASM_s390x=keccak1600-s390x.S
  52. $KECCAK1600ASM_armv4=keccak1600-armv4.S
  53. $KECCAK1600ASM_aarch64=keccak1600-armv8.S
  54. $KECCAK1600ASM_ppc64=keccak1600-ppc64.s
  55. # Now that we have defined all the arch specific variables, use the
  56. # appropriate one, and define the appropriate macros
  57. IF[$KECCAK1600ASM_{- $target{asm_arch} -}]
  58. $KECCAK1600ASM=$KECCAK1600ASM_{- $target{asm_arch} -}
  59. $KECCAK1600DEF=KECCAK1600_ASM
  60. ENDIF
  61. ENDIF
  62. $COMMON=sha1dgst.c sha256.c sha512.c sha3.c $SHA1ASM $KECCAK1600ASM
  63. SOURCE[../../libcrypto]=$COMMON sha1_one.c
  64. SOURCE[../../providers/libfips.a]= $COMMON
  65. # Implementations are now spread across several libraries, so the defines
  66. # need to be applied to all affected libraries and modules.
  67. DEFINE[../../libcrypto]=$SHA1DEF $KECCAK1600DEF
  68. DEFINE[../../providers/libfips.a]=$SHA1DEF $KECCAK1600DEF
  69. DEFINE[../../providers/libdefault.a]=$SHA1DEF $KECCAK1600DEF
  70. # We only need to include the SHA1DEF and KECCAK1600DEF stuff in the
  71. # legacy provider when it's a separate module and it's dynamically
  72. # linked with libcrypto. Otherwise, it already gets everything that
  73. # the static libcrypto.a has, and doesn't need it added again.
  74. IF[{- !$disabled{module} && !$disabled{shared} -}]
  75. DEFINE[../../providers/liblegacy.a]=$SHA1DEF $KECCAK1600DEF
  76. ENDIF
  77. GENERATE[sha1-586.S]=asm/sha1-586.pl
  78. DEPEND[sha1-586.S]=../perlasm/x86asm.pl
  79. GENERATE[sha256-586.S]=asm/sha256-586.pl
  80. DEPEND[sha256-586.S]=../perlasm/x86asm.pl
  81. GENERATE[sha512-586.S]=asm/sha512-586.pl
  82. DEPEND[sha512-586.S]=../perlasm/x86asm.pl
  83. GENERATE[sha1-ia64.s]=asm/sha1-ia64.pl
  84. GENERATE[sha256-ia64.s]=asm/sha512-ia64.pl
  85. GENERATE[sha512-ia64.s]=asm/sha512-ia64.pl
  86. GENERATE[sha1-alpha.S]=asm/sha1-alpha.pl
  87. GENERATE[sha1-x86_64.s]=asm/sha1-x86_64.pl
  88. GENERATE[sha1-mb-x86_64.s]=asm/sha1-mb-x86_64.pl
  89. GENERATE[sha256-x86_64.s]=asm/sha512-x86_64.pl
  90. GENERATE[sha256-mb-x86_64.s]=asm/sha256-mb-x86_64.pl
  91. GENERATE[sha512-x86_64.s]=asm/sha512-x86_64.pl
  92. GENERATE[keccak1600-x86_64.s]=asm/keccak1600-x86_64.pl
  93. GENERATE[sha1-sparcv9a.S]=asm/sha1-sparcv9a.pl
  94. GENERATE[sha1-sparcv9.S]=asm/sha1-sparcv9.pl
  95. INCLUDE[sha1-sparcv9.o]=..
  96. GENERATE[sha256-sparcv9.S]=asm/sha512-sparcv9.pl
  97. INCLUDE[sha256-sparcv9.o]=..
  98. GENERATE[sha512-sparcv9.S]=asm/sha512-sparcv9.pl
  99. INCLUDE[sha512-sparcv9.o]=..
  100. GENERATE[sha1-ppc.s]=asm/sha1-ppc.pl
  101. GENERATE[sha256-ppc.s]=asm/sha512-ppc.pl
  102. GENERATE[sha512-ppc.s]=asm/sha512-ppc.pl
  103. GENERATE[sha256p8-ppc.s]=asm/sha512p8-ppc.pl
  104. GENERATE[sha512p8-ppc.s]=asm/sha512p8-ppc.pl
  105. GENERATE[keccak1600-ppc64.s]=asm/keccak1600-ppc64.pl
  106. GENERATE[sha1-parisc.s]=asm/sha1-parisc.pl
  107. GENERATE[sha256-parisc.s]=asm/sha512-parisc.pl
  108. GENERATE[sha512-parisc.s]=asm/sha512-parisc.pl
  109. GENERATE[sha1-mips.S]=asm/sha1-mips.pl
  110. INCLUDE[sha1-mips.o]=..
  111. GENERATE[sha256-mips.S]=asm/sha512-mips.pl
  112. INCLUDE[sha256-mips.o]=..
  113. GENERATE[sha512-mips.S]=asm/sha512-mips.pl
  114. INCLUDE[sha512-mips.o]=..
  115. GENERATE[sha1-armv4-large.S]=asm/sha1-armv4-large.pl
  116. INCLUDE[sha1-armv4-large.o]=..
  117. GENERATE[sha256-armv4.S]=asm/sha256-armv4.pl
  118. INCLUDE[sha256-armv4.o]=..
  119. GENERATE[sha512-armv4.S]=asm/sha512-armv4.pl
  120. INCLUDE[sha512-armv4.o]=..
  121. GENERATE[keccak1600-armv4.S]=asm/keccak1600-armv4.pl
  122. INCLUDE[keccak1600-armv4.o]=..
  123. GENERATE[sha1-armv8.S]=asm/sha1-armv8.pl
  124. INCLUDE[sha1-armv8.o]=..
  125. GENERATE[sha256-armv8.S]=asm/sha512-armv8.pl
  126. INCLUDE[sha256-armv8.o]=..
  127. GENERATE[sha512-armv8.S]=asm/sha512-armv8.pl
  128. INCLUDE[sha512-armv8.o]=..
  129. GENERATE[keccak1600-armv8.S]=asm/keccak1600-armv8.pl
  130. INCLUDE[keccak1600-armv8.o]=..
  131. GENERATE[sha1-s390x.S]=asm/sha1-s390x.pl
  132. INCLUDE[sha1-s390x.o]=..
  133. GENERATE[sha256-s390x.S]=asm/sha512-s390x.pl
  134. INCLUDE[sha256-s390x.o]=..
  135. GENERATE[sha512-s390x.S]=asm/sha512-s390x.pl
  136. INCLUDE[sha512-s390x.o]=..
  137. GENERATE[keccak1600-s390x.S]=asm/keccak1600-s390x.pl
  138. GENERATE[sha1-c64xplus.S]=asm/sha1-c64xplus.pl
  139. GENERATE[sha256-c64xplus.S]=asm/sha256-c64xplus.pl
  140. GENERATE[sha512-c64xplus.S]=asm/sha512-c64xplus.pl
  141. GENERATE[sha256-riscv64-zvkb-zvknha_or_zvknhb.S]=asm/sha256-riscv64-zvkb-zvknha_or_zvknhb.pl
  142. GENERATE[sha512-riscv64-zvkb-zvknhb.S]=asm/sha512-riscv64-zvkb-zvknhb.pl
  143. # These are not yet used and do not support multi-squeeze
  144. GENERATE[keccak1600-c64x.S]=asm/keccak1600-c64x.pl
  145. GENERATE[keccak1600-avx2.S]=asm/keccak1600-avx2.pl
  146. GENERATE[keccak1600-avx512.S]=asm/keccak1600-avx512.pl
  147. GENERATE[keccak1600-avx512vl.S]=asm/keccak1600-avx512vl.pl
  148. GENERATE[keccak1600-mmx.S]=asm/keccak1600-mmx.pl
  149. GENERATE[keccak1600p8-ppc.S]=asm/keccak1600p8-ppc.pl
  150. GENERATE[sha1-thumb.S]=asm/sha1-thumb.pl