2
0

build.info 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. # Note that these directories are filtered in Configure. Look for %skipdir
  2. # there for further explanations.
  3. SUBDIRS=objects buffer bio stack lhash rand evp asn1 pem x509 conf \
  4. txt_db pkcs7 pkcs12 ui kdf store property \
  5. md2 md4 md5 sha mdc2 hmac ripemd whrlpool poly1305 \
  6. siphash sm3 des aes rc2 rc4 rc5 idea aria bf cast camellia \
  7. seed sm4 chacha modes bn ec rsa dsa dh sm2 dso engine \
  8. err comp http ocsp cms ts srp cmac ct async ess crmf cmp encode_decode \
  9. ffc hpke thread
  10. LIBS=../libcrypto
  11. $UPLINKSRC=
  12. $UPLINKDEF=
  13. IF[{- !$disabled{uplink} -}]
  14. $UPLINKSRC_common=../ms/uplink.c
  15. $UPLINKSRC_x86=$UPLINKSRC_common uplink-x86.S
  16. $UPLINKSRC_x86_64=$UPLINKSRC_common uplink-x86_64.s
  17. $UPLINKSRC_ia64=$UPLINKSRC_common uplink-ia64.s
  18. IF[$UPLINKSRC_{- $target{uplink_arch} -}]
  19. $UPLINKSRC=$UPLINKSRC_{- $target{uplink_arch} -}
  20. $UPLINKDEF=OPENSSL_USE_APPLINK
  21. ENDIF
  22. ENDIF
  23. $CPUIDASM=mem_clr.c
  24. $CPUIDDEF=
  25. IF[{- !$disabled{asm} && $config{processor} ne '386' -}]
  26. $CPUIDASM_x86=x86cpuid.S
  27. $CPUIDASM_x86_64=x86_64cpuid.s
  28. $CPUIDASM_ia64=ia64cpuid.s
  29. $CPUIDASM_sparcv9=sparcv9cap.c sparccpuid.S
  30. $CPUIDASM_alpha=alphacpuid.s
  31. $CPUIDASM_s390x=s390xcap.c s390xcpuid.S
  32. $CPUIDASM_armv4=armcap.c armv4cpuid.S
  33. $CPUIDASM_aarch64=armcap.c arm64cpuid.S
  34. $CPUIDASM_parisc11=pariscid.s
  35. $CPUIDASM_parisc20_64=$CPUIDASM_parisc11
  36. $CPUIDASM_ppc32=ppccpuid.s ppccap.c
  37. $CPUIDASM_ppc64=$CPUIDASM_ppc32
  38. $CPUIDASM_c64xplus=c64xpluscpuid.s
  39. $CPUIDASM_riscv64=riscvcap.c riscv64cpuid.s
  40. $CPUIDASM_riscv32=riscvcap.c riscv32cpuid.s
  41. $CPUIDASM_loongarch64=loongarchcap.c loongarch64cpuid.s
  42. # Now that we have defined all the arch specific variables, use the
  43. # appropriate one, and define the appropriate macros
  44. IF[$CPUIDASM_{- $target{asm_arch} -}]
  45. $CPUIDASM=$CPUIDASM_{- $target{asm_arch} -}
  46. $CPUIDDEF=OPENSSL_CPUID_OBJ
  47. ENDIF
  48. ENDIF
  49. # CPUID support. We need to add that explicitly in every shared library and
  50. # provider module that uses it. ctype.c is included here because the CPUID
  51. # uses functions from there to parse magic environment variables.
  52. $CPUID_COMMON=$CPUIDASM cpuid.c ctype.c
  53. INCLUDE[cpuid.o]=..
  54. SOURCE[../libcrypto]=$CPUID_COMMON
  55. DEFINE[../libcrypto]=$CPUIDDEF
  56. SOURCE[../providers/libfips.a]=$CPUID_COMMON
  57. DEFINE[../providers/libfips.a]=$CPUIDDEF
  58. # We only need to include the CPUID stuff in the legacy provider when it's a
  59. # separate module and it's dynamically linked with libcrypto. Otherwise, it
  60. # already gets everything that the static libcrypto.a has, and doesn't need it
  61. # added again.
  62. IF[{- !$disabled{module} && !$disabled{shared} -}]
  63. SOURCE[../providers/legacy]=$CPUID_COMMON
  64. DEFINE[../providers/legacy]=$CPUIDDEF
  65. ENDIF
  66. # Implementations are now spread across several libraries, so the CPUID define
  67. # need to be applied to all affected libraries and modules.
  68. DEFINE[../providers/libcommon.a]=$CPUIDDEF
  69. DEFINE[../providers/libdefault.a]=$CPUIDDEF
  70. # The Core
  71. $CORE_COMMON=provider_core.c provider_predefined.c \
  72. core_fetch.c core_algorithm.c core_namemap.c self_test_core.c
  73. SOURCE[../libcrypto]=$CORE_COMMON provider_conf.c
  74. SOURCE[../providers/libfips.a]=$CORE_COMMON
  75. # Central utilities
  76. $UTIL_COMMON=\
  77. cryptlib.c params.c params_from_text.c bsearch.c ex_data.c o_str.c \
  78. threads_pthread.c threads_win.c threads_none.c initthread.c \
  79. context.c sparse_array.c asn1_dsa.c packet.c param_build.c \
  80. param_build_set.c der_writer.c threads_lib.c params_dup.c \
  81. time.c params_idx.c
  82. SOURCE[../libcrypto]=$UTIL_COMMON \
  83. mem.c mem_sec.c \
  84. cversion.c info.c cpt_err.c ebcdic.c uid.c o_time.c o_dir.c \
  85. o_fopen.c getenv.c o_init.c init.c trace.c provider.c provider_child.c \
  86. punycode.c passphrase.c sleep.c deterministic_nonce.c quic_vlint.c \
  87. time.c
  88. SOURCE[../providers/libfips.a]=$UTIL_COMMON
  89. SOURCE[../libcrypto]=$UPLINKSRC
  90. DEFINE[../libcrypto]=$UPLINKDEF
  91. DEPEND[info.o]=buildinf.h
  92. DEPEND[cversion.o]=buildinf.h
  93. GENERATE[buildinf.h]=../util/mkbuildinf.pl "$(CC) $(LIB_CFLAGS) $(CPPFLAGS_Q)" "$(PLATFORM)"
  94. GENERATE[uplink-x86.S]=../ms/uplink-x86.pl
  95. GENERATE[uplink-x86_64.s]=../ms/uplink-x86_64.pl
  96. GENERATE[uplink-ia64.s]=../ms/uplink-ia64.pl
  97. GENERATE[x86cpuid.S]=x86cpuid.pl
  98. DEPEND[x86cpuid.s]=perlasm/x86asm.pl
  99. GENERATE[x86_64cpuid.s]=x86_64cpuid.pl
  100. GENERATE[ia64cpuid.s]=ia64cpuid.S
  101. GENERATE[ppccpuid.s]=ppccpuid.pl
  102. GENERATE[pariscid.s]=pariscid.pl
  103. GENERATE[alphacpuid.s]=alphacpuid.pl
  104. GENERATE[arm64cpuid.S]=arm64cpuid.pl
  105. INCLUDE[arm64cpuid.o]=.
  106. GENERATE[armv4cpuid.S]=armv4cpuid.pl
  107. INCLUDE[armv4cpuid.o]=.
  108. GENERATE[s390xcpuid.S]=s390xcpuid.pl
  109. INCLUDE[s390xcpuid.o]=.
  110. GENERATE[riscv64cpuid.s]=riscv64cpuid.pl
  111. GENERATE[riscv32cpuid.s]=riscv32cpuid.pl
  112. GENERATE[loongarch64cpuid.s]=loongarch64cpuid.pl
  113. IF[{- $config{target} =~ /^(?:Cygwin|mingw|VC-|BC-)/ -}]
  114. SHARED_SOURCE[../libcrypto]=dllmain.c
  115. ENDIF