| 1 |
LIBS=../../libcrypto |
| 2 |
|
| 3 |
$MD5ASM= |
| 4 |
IF[{- !$disabled{asm} -}] |
| 5 |
$MD5ASM_x86=md5-586.S |
| 6 |
$MD5ASM_x86_64=md5-x86_64.s |
| 7 |
$MD5ASM_aarch64=md5-aarch64.S |
| 8 |
$MD5ASM_loongarch64=md5-loongarch64.S |
| 9 |
$MD5ASM_riscv64=md5_riscv.c md5-riscv64.S md5-riscv64-zbb.S |
| 10 |
$MD5ASM_sparcv9=md5-sparcv9.S |
| 11 |
|
| 12 |
# Now that we have defined all the arch specific variables, use the |
| 13 |
# appropriate one, and define the appropriate macros |
| 14 |
IF[$MD5ASM_{- $target{asm_arch} -}] |
| 15 |
$MD5ASM=$MD5ASM_{- $target{asm_arch} -} |
| 16 |
$MD5DEF=MD5_ASM |
| 17 |
ENDIF |
| 18 |
ENDIF |
| 19 |
|
| 20 |
$COMMON=md5_dgst.c md5_one.c md5_sha1.c $MD5ASM |
| 21 |
SOURCE[../../libcrypto]=$COMMON |
| 22 |
|
| 23 |
# A no-deprecated no-shared build ends up with double function definitions |
| 24 |
# without conditioning this on dso. The issue is MD5 which is needed in the |
| 25 |
# legacy provider for one of the spliced algorithms, however it resides in the |
| 26 |
# default provider. A no-deprecated build removes the external definition from |
| 27 |
# libcrypto and this means that the code needs to be in liblegacy. However, |
| 28 |
# when building without 'dso', liblegacy is included in libcrypto. |
| 29 |
IF[{- !$disabled{module} && !$disabled{shared} -}] |
| 30 |
SOURCE[../../providers/liblegacy.a]=$COMMON |
| 31 |
ENDIF |
| 32 |
|
| 33 |
# Implementations are now spread across several libraries, so the defines |
| 34 |
# need to be applied to all affected libraries and modules. |
| 35 |
DEFINE[../../libcrypto]=$MD5DEF |
| 36 |
DEFINE[../../providers/liblegacy.a]=$MD5DEF |
| 37 |
|
| 38 |
GENERATE[md5-586.S]=asm/md5-586.pl |
| 39 |
|
| 40 |
GENERATE[md5-x86_64.s]=asm/md5-x86_64.pl |
| 41 |
GENERATE[md5-aarch64.S]=asm/md5-aarch64.pl |
| 42 |
INCLUDE[md5-aarch64.o]=.. |
| 43 |
|
| 44 |
GENERATE[md5-loongarch64.S]=asm/md5-loongarch64.pl |
| 45 |
INCLUDE[md5-loongarch64.o]=.. |
| 46 |
|
| 47 |
GENERATE[md5-riscv64.S]=asm/md5-riscv64-zbb.pl |
| 48 |
GENERATE[md5-riscv64-zbb.S]=asm/md5-riscv64-zbb.pl zbb |
| 49 |
INCLUDE[md5-riscv64.o]=.. |
| 50 |
|
| 51 |
GENERATE[md5-sparcv9.S]=asm/md5-sparcv9.pl |
| 52 |
INCLUDE[md5-sparcv9.o]=.. |