| 1 |
LIBS=../../libcrypto |
| 2 |
|
| 3 |
$POLY1305ASM= |
| 4 |
IF[{- !$disabled{asm} -}] |
| 5 |
$POLY1305ASM_x86=poly1305-x86.S |
| 6 |
$POLY1305ASM_x86_64=poly1305-x86_64.s |
| 7 |
|
| 8 |
$POLY1305ASM_ia64=poly1305-ia64.s |
| 9 |
|
| 10 |
$POLY1305ASM_sparcv9=poly1305-sparcv9.S |
| 11 |
|
| 12 |
$POLY1305ASM_mips64=poly1305-mips.S |
| 13 |
|
| 14 |
$POLY1305ASM_s390x=poly1305-s390x.S |
| 15 |
|
| 16 |
$POLY1305ASM_armv4=poly1305-armv4.S |
| 17 |
$POLY1305ASM_aarch64=poly1305-armv8.S |
| 18 |
|
| 19 |
$POLY1305ASM_ppc32=poly1305_ppc.c poly1305-ppc.s poly1305-ppcfp.s |
| 20 |
$POLY1305ASM_ppc64=$POLY1305ASM_ppc32 |
| 21 |
|
| 22 |
$POLY1305ASM_c64xplus=poly1305-c64xplus.s |
| 23 |
|
| 24 |
# Now that we have defined all the arch specific variables, use the |
| 25 |
# appropriate one, and define the appropriate macros |
| 26 |
IF[$POLY1305ASM_{- $target{asm_arch} -}] |
| 27 |
$POLY1305ASM=$POLY1305ASM_{- $target{asm_arch} -} |
| 28 |
$POLY1305DEF=POLY1305_ASM |
| 29 |
ENDIF |
| 30 |
ENDIF |
| 31 |
|
| 32 |
SOURCE[../../libcrypto]=poly1305.c $POLY1305ASM |
| 33 |
|
| 34 |
# Implementations are now spread across several libraries, so the defines |
| 35 |
# need to be applied to all affected libraries and modules. |
| 36 |
DEFINE[../../libcrypto]=$POLY1305DEF |
| 37 |
|
| 38 |
GENERATE[poly1305-sparcv9.S]=asm/poly1305-sparcv9.pl |
| 39 |
INCLUDE[poly1305-sparcv9.o]=.. |
| 40 |
GENERATE[poly1305-x86.S]=asm/poly1305-x86.pl |
| 41 |
GENERATE[poly1305-x86_64.s]=asm/poly1305-x86_64.pl |
| 42 |
GENERATE[poly1305-ia64.s]=asm/poly1305-ia64.S |
| 43 |
GENERATE[poly1305-ppc.s]=asm/poly1305-ppc.pl |
| 44 |
GENERATE[poly1305-ppcfp.s]=asm/poly1305-ppcfp.pl |
| 45 |
GENERATE[poly1305-armv4.S]=asm/poly1305-armv4.pl |
| 46 |
INCLUDE[poly1305-armv4.o]=.. |
| 47 |
GENERATE[poly1305-armv8.S]=asm/poly1305-armv8.pl |
| 48 |
INCLUDE[poly1305-armv8.o]=.. |
| 49 |
GENERATE[poly1305-mips.S]=asm/poly1305-mips.pl |
| 50 |
INCLUDE[poly1305-mips.o]=.. |
| 51 |
GENERATE[poly1305-c64xplus.S]=asm/poly1305-c64xplus.pl |
| 52 |
INCLUDE[poly1305-s390x.o]=.. |
| 53 |
GENERATE[poly1305-s390x.S]=asm/poly1305-s390x.pl |