2017-10-26 01:19:02 +08:00
|
|
|
LIBS=../../libcrypto
|
2019-12-18 12:46:01 +08:00
|
|
|
|
|
|
|
IF[{- !$disabled{sm3} -}]
|
2021-12-24 16:29:04 +08:00
|
|
|
IF[{- !$disabled{asm} -}]
|
|
|
|
$SM3ASM_aarch64=sm3-armv8.S
|
|
|
|
$SM3DEF_aarch64=OPENSSL_SM3_ASM
|
|
|
|
|
2023-01-27 23:47:41 +08:00
|
|
|
$SM3ASM_riscv64=sm3_riscv.c sm3-riscv64-zvksh.S
|
|
|
|
$SM3DEF_riscv64=OPENSSL_SM3_ASM
|
|
|
|
|
2021-12-24 16:29:04 +08:00
|
|
|
# Now that we have defined all the arch specific variables, use the
|
|
|
|
# appropriate ones, and define the appropriate macros
|
|
|
|
IF[$SM3ASM_{- $target{asm_arch} -}]
|
|
|
|
$SM3ASM=$SM3ASM_{- $target{asm_arch} -}
|
|
|
|
$SM3DEF=$SM3DEF_{- $target{asm_arch} -}
|
|
|
|
ENDIF
|
|
|
|
ENDIF
|
|
|
|
|
|
|
|
SOURCE[../../libcrypto]=sm3.c legacy_sm3.c $SM3ASM
|
|
|
|
DEFINE[../../libcrypto]=$SM3DEF
|
|
|
|
|
|
|
|
GENERATE[sm3-armv8.S]=asm/sm3-armv8.pl
|
|
|
|
INCLUDE[sm3-armv8.o]=..
|
2023-01-27 23:47:41 +08:00
|
|
|
|
|
|
|
GENERATE[sm3-riscv64-zvksh.S]=asm/sm3-riscv64-zvksh.pl
|
2021-12-24 16:29:04 +08:00
|
|
|
ENDIF
|
|
|
|
|