2016-01-30 06:33:10 +08:00
|
|
|
LIBS=../../libcrypto
|
2019-06-17 04:21:50 +08:00
|
|
|
|
|
|
|
$CHACHAASM=chacha_enc.c
|
|
|
|
IF[{- !$disabled{asm} -}]
|
2022-05-20 04:09:50 +08:00
|
|
|
$CHACHAASM_x86=chacha-x86.S
|
2019-06-17 04:21:50 +08:00
|
|
|
$CHACHAASM_x86_64=chacha-x86_64.s
|
|
|
|
|
2022-05-24 23:06:13 +08:00
|
|
|
$CHACHAASM_ia64=chacha-ia64.s
|
2019-06-17 04:21:50 +08:00
|
|
|
|
|
|
|
$CHACHAASM_s390x=chacha-s390x.S
|
|
|
|
|
|
|
|
$CHACHAASM_armv4=chacha-armv4.S
|
2022-02-07 18:17:06 +08:00
|
|
|
$CHACHAASM_aarch64=chacha-armv8.S chacha-armv8-sve.S
|
2019-06-17 04:21:50 +08:00
|
|
|
|
2023-09-07 11:07:53 +08:00
|
|
|
$CHACHAASM_loongarch64=chacha-loongarch64.S
|
|
|
|
|
2022-12-09 00:26:19 +08:00
|
|
|
$CHACHAASM_ppc32=chacha_ppc.c chacha-ppc.s
|
2023-03-18 23:03:22 +08:00
|
|
|
IF[{- $target{sys_id} ne "AIX" && $target{sys_id} ne "MACOSX" -}]
|
2022-12-09 00:26:19 +08:00
|
|
|
$CHACHAASM_ppc32=chacha_ppc.c chacha-ppc.s chachap10-ppc.s
|
|
|
|
ENDIF
|
2019-06-17 04:21:50 +08:00
|
|
|
$CHACHAASM_ppc64=$CHACHAASM_ppc32
|
|
|
|
|
|
|
|
$CHACHAASM_c64xplus=chacha-c64xplus.s
|
|
|
|
|
2024-04-19 11:49:59 +08:00
|
|
|
$CHACHAASM_riscv64=chacha_riscv.c chacha_enc.c chacha-riscv64-v-zbb.s chacha-riscv64-v-zbb-zvkb.s
|
2023-07-11 15:49:28 +08:00
|
|
|
$CHACHADEF_riscv64=INCLUDE_C_CHACHA20
|
|
|
|
|
2019-06-17 04:21:50 +08:00
|
|
|
# Now that we have defined all the arch specific variables, use the
|
|
|
|
# appropriate one
|
|
|
|
IF[$CHACHAASM_{- $target{asm_arch} -}]
|
|
|
|
$CHACHAASM=$CHACHAASM_{- $target{asm_arch} -}
|
2023-07-11 15:49:28 +08:00
|
|
|
$CHACHADEF=$CHACHADEF_{- $target{asm_arch} -}
|
2019-06-17 04:21:50 +08:00
|
|
|
ENDIF
|
|
|
|
ENDIF
|
|
|
|
|
|
|
|
SOURCE[../../libcrypto]=$CHACHAASM
|
2023-07-11 15:49:28 +08:00
|
|
|
DEFINE[../../libcrypto]=$CHACHADEF
|
2016-01-30 10:25:40 +08:00
|
|
|
|
2022-05-20 04:09:50 +08:00
|
|
|
GENERATE[chacha-x86.S]=asm/chacha-x86.pl
|
2019-09-13 06:05:26 +08:00
|
|
|
GENERATE[chacha-x86_64.s]=asm/chacha-x86_64.pl
|
|
|
|
GENERATE[chacha-ppc.s]=asm/chacha-ppc.pl
|
2021-09-20 22:45:15 +08:00
|
|
|
GENERATE[chachap10-ppc.s]=asm/chachap10-ppc.pl
|
2019-09-13 06:05:26 +08:00
|
|
|
GENERATE[chacha-armv4.S]=asm/chacha-armv4.pl
|
2016-03-11 20:44:46 +08:00
|
|
|
INCLUDE[chacha-armv4.o]=..
|
2019-09-13 06:05:26 +08:00
|
|
|
GENERATE[chacha-armv8.S]=asm/chacha-armv8.pl
|
2022-02-07 18:17:06 +08:00
|
|
|
GENERATE[chacha-armv8-sve.S]=asm/chacha-armv8-sve.pl
|
2016-03-11 20:44:46 +08:00
|
|
|
INCLUDE[chacha-armv8.o]=..
|
2022-02-07 18:17:06 +08:00
|
|
|
INCLUDE[chacha-armv8-sve.o]=..
|
2023-09-07 11:07:53 +08:00
|
|
|
INCLUDE[chacha-loongarch64.o]=..
|
2018-08-04 06:10:06 +08:00
|
|
|
INCLUDE[chacha-s390x.o]=..
|
2019-09-13 06:05:26 +08:00
|
|
|
GENERATE[chacha-c64xplus.S]=asm/chacha-c64xplus.pl
|
|
|
|
GENERATE[chacha-s390x.S]=asm/chacha-s390x.pl
|
2022-05-06 22:48:49 +08:00
|
|
|
GENERATE[chacha-ia64.S]=asm/chacha-ia64.pl
|
2022-05-24 23:06:13 +08:00
|
|
|
GENERATE[chacha-ia64.s]=chacha-ia64.S
|
2023-09-07 11:07:53 +08:00
|
|
|
GENERATE[chacha-loongarch64.S]=asm/chacha-loongarch64.pl
|
2024-04-19 11:49:59 +08:00
|
|
|
GENERATE[chacha-riscv64-v-zbb.s]=asm/chacha-riscv64-v-zbb.pl
|
|
|
|
GENERATE[chacha-riscv64-v-zbb-zvkb.s]=asm/chacha-riscv64-v-zbb.pl zvkb
|