2016-01-30 06:33:10 +08:00
|
|
|
LIBS=../../libcrypto
|
2019-06-17 03:25:52 +08:00
|
|
|
|
|
|
|
$MD5ASM=
|
|
|
|
IF[{- !$disabled{asm} -}]
|
2022-05-20 04:09:50 +08:00
|
|
|
$MD5ASM_x86=md5-586.S
|
2019-06-17 03:25:52 +08:00
|
|
|
$MD5ASM_x86_64=md5-x86_64.s
|
2023-04-27 11:14:02 +08:00
|
|
|
$MD5ASM_aarch64=md5-aarch64.S
|
2023-12-13 22:40:14 +08:00
|
|
|
$MD5ASM_loongarch64=md5-loongarch64.S
|
2019-06-17 03:25:52 +08:00
|
|
|
$MD5ASM_sparcv9=md5-sparcv9.S
|
|
|
|
|
|
|
|
# Now that we have defined all the arch specific variables, use the
|
|
|
|
# appropriate one, and define the appropriate macros
|
|
|
|
IF[$MD5ASM_{- $target{asm_arch} -}]
|
|
|
|
$MD5ASM=$MD5ASM_{- $target{asm_arch} -}
|
|
|
|
$MD5DEF=MD5_ASM
|
|
|
|
ENDIF
|
|
|
|
ENDIF
|
|
|
|
|
2020-07-30 19:02:06 +08:00
|
|
|
$COMMON=md5_dgst.c md5_one.c md5_sha1.c $MD5ASM
|
2021-05-06 12:03:20 +08:00
|
|
|
SOURCE[../../libcrypto]=$COMMON
|
2020-09-06 18:39:12 +08:00
|
|
|
|
|
|
|
# A no-deprecated no-shared build ends up with double function definitions
|
|
|
|
# without conditioning this on dso. The issue is MD5 which is needed in the
|
|
|
|
# legacy provider for one of the spliced algorithms, however it resides in the
|
|
|
|
# default provider. A no-deprecated build removes the external definition from
|
|
|
|
# libcrypto and this means that the code needs to be in liblegacy. However,
|
|
|
|
# when building without 'dso', liblegacy is included in libcrypto.
|
2023-01-25 23:32:02 +08:00
|
|
|
IF[{- !$disabled{module} && !$disabled{shared} -}]
|
2020-09-06 18:39:12 +08:00
|
|
|
SOURCE[../../providers/liblegacy.a]=$COMMON
|
|
|
|
ENDIF
|
2019-10-15 10:35:41 +08:00
|
|
|
|
|
|
|
# Implementations are now spread across several libraries, so the defines
|
|
|
|
# need to be applied to all affected libraries and modules.
|
2019-06-17 03:25:52 +08:00
|
|
|
DEFINE[../../libcrypto]=$MD5DEF
|
2020-05-26 18:20:09 +08:00
|
|
|
DEFINE[../../providers/liblegacy.a]=$MD5DEF
|
2016-01-30 10:25:40 +08:00
|
|
|
|
2022-05-20 04:09:50 +08:00
|
|
|
GENERATE[md5-586.S]=asm/md5-586.pl
|
2016-03-07 22:47:35 +08:00
|
|
|
|
2019-09-13 06:05:26 +08:00
|
|
|
GENERATE[md5-x86_64.s]=asm/md5-x86_64.pl
|
2023-04-27 11:14:02 +08:00
|
|
|
GENERATE[md5-aarch64.S]=asm/md5-aarch64.pl
|
|
|
|
INCLUDE[md5-aarch64.o]=..
|
2016-01-30 10:25:40 +08:00
|
|
|
|
2023-12-13 22:40:14 +08:00
|
|
|
GENERATE[md5-loongarch64.S]=asm/md5-loongarch64.pl
|
|
|
|
INCLUDE[md5-loongarch64.o]=..
|
|
|
|
|
2019-09-13 06:05:26 +08:00
|
|
|
GENERATE[md5-sparcv9.S]=asm/md5-sparcv9.pl
|
2016-03-11 03:05:52 +08:00
|
|
|
INCLUDE[md5-sparcv9.o]=..
|