1e1051a39Sopenharmony_ciLIBS=../../libcrypto
2e1051a39Sopenharmony_ci
3e1051a39Sopenharmony_ci$CHACHAASM=chacha_enc.c
4e1051a39Sopenharmony_ciIF[{- !$disabled{asm} -}]
5e1051a39Sopenharmony_ci  $CHACHAASM_x86=chacha-x86.S
6e1051a39Sopenharmony_ci  $CHACHAASM_x86_64=chacha-x86_64.s
7e1051a39Sopenharmony_ci
8e1051a39Sopenharmony_ci  $CHACHAASM_ia64=chacha-ia64.s
9e1051a39Sopenharmony_ci
10e1051a39Sopenharmony_ci  $CHACHAASM_s390x=chacha-s390x.S
11e1051a39Sopenharmony_ci
12e1051a39Sopenharmony_ci  $CHACHAASM_armv4=chacha-armv4.S
13e1051a39Sopenharmony_ci  $CHACHAASM_aarch64=chacha-armv8.S
14e1051a39Sopenharmony_ci
15e1051a39Sopenharmony_ci  $CHACHAASM_ppc32=chacha_ppc.c chacha-ppc.s
16e1051a39Sopenharmony_ci  $CHACHAASM_ppc64=$CHACHAASM_ppc32
17e1051a39Sopenharmony_ci
18e1051a39Sopenharmony_ci  $CHACHAASM_c64xplus=chacha-c64xplus.s
19e1051a39Sopenharmony_ci
20e1051a39Sopenharmony_ci  # Now that we have defined all the arch specific variables, use the
21e1051a39Sopenharmony_ci  # appropriate one
22e1051a39Sopenharmony_ci  IF[$CHACHAASM_{- $target{asm_arch} -}]
23e1051a39Sopenharmony_ci    $CHACHAASM=$CHACHAASM_{- $target{asm_arch} -}
24e1051a39Sopenharmony_ci  ENDIF
25e1051a39Sopenharmony_ciENDIF
26e1051a39Sopenharmony_ci
27e1051a39Sopenharmony_ciSOURCE[../../libcrypto]=$CHACHAASM
28e1051a39Sopenharmony_ci
29e1051a39Sopenharmony_ciGENERATE[chacha-x86.S]=asm/chacha-x86.pl
30e1051a39Sopenharmony_ciGENERATE[chacha-x86_64.s]=asm/chacha-x86_64.pl
31e1051a39Sopenharmony_ciGENERATE[chacha-ppc.s]=asm/chacha-ppc.pl
32e1051a39Sopenharmony_ciGENERATE[chacha-armv4.S]=asm/chacha-armv4.pl
33e1051a39Sopenharmony_ciINCLUDE[chacha-armv4.o]=..
34e1051a39Sopenharmony_ciGENERATE[chacha-armv8.S]=asm/chacha-armv8.pl
35e1051a39Sopenharmony_ciINCLUDE[chacha-armv8.o]=..
36e1051a39Sopenharmony_ciINCLUDE[chacha-s390x.o]=..
37e1051a39Sopenharmony_ciGENERATE[chacha-c64xplus.S]=asm/chacha-c64xplus.pl
38e1051a39Sopenharmony_ciGENERATE[chacha-s390x.S]=asm/chacha-s390x.pl
39e1051a39Sopenharmony_ciGENERATE[chacha-ia64.S]=asm/chacha-ia64.pl
40e1051a39Sopenharmony_ciGENERATE[chacha-ia64.s]=chacha-ia64.S
41