A local copy of OpenSSL from GitHub
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

136 lines
4.4 KiB

  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
  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. # Now that we have defined all the arch specific variables, use the
  40. # appropriate one, and define the appropriate macros
  41. IF[$CPUIDASM_{- $target{asm_arch} -}]
  42. $CPUIDASM=$CPUIDASM_{- $target{asm_arch} -}
  43. $CPUIDDEF=OPENSSL_CPUID_OBJ
  44. ENDIF
  45. ENDIF
  46. # CPUID support. We need to add that explicitly in every shared library and
  47. # provider module that uses it. ctype.c is included here because the CPUID
  48. # uses functions from there to parse magic environment variables.
  49. $CPUID_COMMON=$CPUIDASM cpuid.c ctype.c
  50. INCLUDE[cpuid.o]=..
  51. SOURCE[../libcrypto]=$CPUID_COMMON
  52. DEFINE[../libcrypto]=$CPUIDDEF
  53. SOURCE[../providers/libfips.a]=$CPUID_COMMON
  54. DEFINE[../providers/libfips.a]=$CPUIDDEF
  55. # We only need to include the CPUID stuff in the legacy provider when it's a
  56. # separate module and it's dynamically linked with libcrypto. Otherwise, it
  57. # already gets everything that the static libcrypto.a has, and doesn't need it
  58. # added again.
  59. IF[{- !$disabled{module} && !$disabled{shared} -}]
  60. SOURCE[../providers/liblegacy.a]=$CPUID_COMMON
  61. DEFINE[../providers/liblegacy.a]=$CPUIDDEF
  62. ENDIF
  63. # Implementations are now spread across several libraries, so the CPUID define
  64. # need to be applied to all affected libraries and modules.
  65. DEFINE[../providers/libimplementations.a]=$CPUIDDEF
  66. DEFINE[../providers/libcommon.a]=$CPUIDDEF
  67. # The Core
  68. $CORE_COMMON=provider_core.c provider_predefined.c \
  69. core_fetch.c core_algorithm.c core_namemap.c self_test_core.c
  70. SOURCE[../libcrypto]=$CORE_COMMON provider_conf.c
  71. SOURCE[../providers/libfips.a]=$CORE_COMMON
  72. # Central utilities
  73. $UTIL_COMMON=\
  74. cryptlib.c params.c params_from_text.c bsearch.c ex_data.c o_str.c \
  75. threads_pthread.c threads_win.c threads_none.c initthread.c \
  76. context.c sparse_array.c asn1_dsa.c packet.c param_build.c \
  77. param_build_set.c der_writer.c passphrase.c threads_lib.c params_dup.c
  78. SOURCE[../libcrypto]=$UTIL_COMMON \
  79. mem.c mem_sec.c \
  80. cversion.c info.c cpt_err.c ebcdic.c uid.c o_time.c o_dir.c \
  81. o_fopen.c getenv.c o_init.c init.c trace.c provider.c \
  82. punycode.c
  83. SOURCE[../providers/libfips.a]=$UTIL_COMMON
  84. SOURCE[../libcrypto]=$UPLINKSRC
  85. DEFINE[../libcrypto]=$UPLINKDEF
  86. DEPEND[info.o]=buildinf.h
  87. DEPEND[cversion.o]=buildinf.h
  88. GENERATE[buildinf.h]=../util/mkbuildinf.pl "$(CC) $(LIB_CFLAGS) $(CPPFLAGS_Q)" "$(PLATFORM)"
  89. GENERATE[uplink-x86.s]=../ms/uplink-x86.pl
  90. GENERATE[uplink-x86_64.s]=../ms/uplink-x86_64.pl
  91. GENERATE[uplink-ia64.s]=../ms/uplink-ia64.pl
  92. GENERATE[x86cpuid.s]=x86cpuid.pl
  93. DEPEND[x86cpuid.s]=perlasm/x86asm.pl
  94. GENERATE[x86_64cpuid.s]=x86_64cpuid.pl
  95. GENERATE[ia64cpuid.s]=ia64cpuid.S
  96. GENERATE[ppccpuid.s]=ppccpuid.pl
  97. GENERATE[pariscid.s]=pariscid.pl
  98. GENERATE[alphacpuid.s]=alphacpuid.pl
  99. GENERATE[arm64cpuid.S]=arm64cpuid.pl
  100. INCLUDE[arm64cpuid.o]=.
  101. GENERATE[armv4cpuid.S]=armv4cpuid.pl
  102. INCLUDE[armv4cpuid.o]=.
  103. GENERATE[s390xcpuid.S]=s390xcpuid.pl
  104. INCLUDE[s390xcpuid.o]=.
  105. IF[{- $config{target} =~ /^(?:Cygwin|mingw|VC-|BC-)/ -}]
  106. SHARED_SOURCE[../libcrypto]=dllmain.c
  107. ENDIF