2016-01-30 06:33:10 +08:00
|
|
|
LIBS=../../libcrypto
|
2019-06-17 04:28:32 +08:00
|
|
|
|
|
|
|
$POLY1305ASM=
|
|
|
|
IF[{- !$disabled{asm} -}]
|
2022-05-20 04:09:50 +08:00
|
|
|
$POLY1305ASM_x86=poly1305-x86.S
|
2019-06-17 04:28:32 +08:00
|
|
|
$POLY1305ASM_x86_64=poly1305-x86_64.s
|
|
|
|
|
2022-05-24 23:06:13 +08:00
|
|
|
$POLY1305ASM_ia64=poly1305-ia64.s
|
2019-06-17 04:28:32 +08:00
|
|
|
|
|
|
|
$POLY1305ASM_sparcv9=poly1305-sparcv9.S
|
|
|
|
|
|
|
|
$POLY1305ASM_mips64=poly1305-mips.S
|
|
|
|
|
|
|
|
$POLY1305ASM_s390x=poly1305-s390x.S
|
|
|
|
|
|
|
|
$POLY1305ASM_armv4=poly1305-armv4.S
|
|
|
|
$POLY1305ASM_aarch64=poly1305-armv8.S
|
|
|
|
|
2021-06-18 23:35:40 +08:00
|
|
|
$POLY1305ASM_ppc32=poly1305_ppc.c poly1305-ppc.s poly1305-ppcfp.s
|
2019-06-17 04:28:32 +08:00
|
|
|
$POLY1305ASM_ppc64=$POLY1305ASM_ppc32
|
|
|
|
|
|
|
|
$POLY1305ASM_c64xplus=poly1305-c64xplus.s
|
|
|
|
|
|
|
|
# Now that we have defined all the arch specific variables, use the
|
|
|
|
# appropriate one, and define the appropriate macros
|
|
|
|
IF[$POLY1305ASM_{- $target{asm_arch} -}]
|
|
|
|
$POLY1305ASM=$POLY1305ASM_{- $target{asm_arch} -}
|
|
|
|
$POLY1305DEF=POLY1305_ASM
|
|
|
|
ENDIF
|
|
|
|
ENDIF
|
|
|
|
|
2020-08-12 20:41:59 +08:00
|
|
|
SOURCE[../../libcrypto]=poly1305.c $POLY1305ASM
|
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 04:28:32 +08:00
|
|
|
DEFINE[../../libcrypto]=$POLY1305DEF
|
2016-01-30 10:25:40 +08:00
|
|
|
|
2019-09-13 06:05:26 +08:00
|
|
|
GENERATE[poly1305-sparcv9.S]=asm/poly1305-sparcv9.pl
|
2016-03-11 03:05:52 +08:00
|
|
|
INCLUDE[poly1305-sparcv9.o]=..
|
2022-05-20 04:09:50 +08:00
|
|
|
GENERATE[poly1305-x86.S]=asm/poly1305-x86.pl
|
2019-09-13 06:05:26 +08:00
|
|
|
GENERATE[poly1305-x86_64.s]=asm/poly1305-x86_64.pl
|
2022-05-24 23:06:13 +08:00
|
|
|
GENERATE[poly1305-ia64.s]=asm/poly1305-ia64.S
|
2019-09-13 06:05:26 +08:00
|
|
|
GENERATE[poly1305-ppc.s]=asm/poly1305-ppc.pl
|
|
|
|
GENERATE[poly1305-ppcfp.s]=asm/poly1305-ppcfp.pl
|
|
|
|
GENERATE[poly1305-armv4.S]=asm/poly1305-armv4.pl
|
2016-03-11 20:44:46 +08:00
|
|
|
INCLUDE[poly1305-armv4.o]=..
|
2019-09-13 06:05:26 +08:00
|
|
|
GENERATE[poly1305-armv8.S]=asm/poly1305-armv8.pl
|
2016-03-11 20:44:46 +08:00
|
|
|
INCLUDE[poly1305-armv8.o]=..
|
2019-09-13 06:05:26 +08:00
|
|
|
GENERATE[poly1305-mips.S]=asm/poly1305-mips.pl
|
2016-09-01 16:39:15 +08:00
|
|
|
INCLUDE[poly1305-mips.o]=..
|
2019-09-13 06:05:26 +08:00
|
|
|
GENERATE[poly1305-c64xplus.S]=asm/poly1305-c64xplus.pl
|
2019-03-23 07:03:24 +08:00
|
|
|
INCLUDE[poly1305-s390x.o]=..
|
2019-09-13 06:05:26 +08:00
|
|
|
GENERATE[poly1305-s390x.S]=asm/poly1305-s390x.pl
|