1e1051a39Sopenharmony_ciLIBS=../../libcrypto
2e1051a39Sopenharmony_ci
3e1051a39Sopenharmony_ci$RC4ASM=rc4_enc.c rc4_skey.c
4e1051a39Sopenharmony_ciIF[{- !$disabled{asm} -}]
5e1051a39Sopenharmony_ci  $RC4ASM_x86=rc4-586.S
6e1051a39Sopenharmony_ci  $RC4ASM_x86_64=rc4-x86_64.s rc4-md5-x86_64.s
7e1051a39Sopenharmony_ci  $RC4ASM_s390x=rc4-s390x.s
8e1051a39Sopenharmony_ci  $RC4ASM_parisc11=rc4-parisc.s
9e1051a39Sopenharmony_ci  $RC4ASM_parisc20_64=$RC4ASM_parisc11
10e1051a39Sopenharmony_ci  $RC4ASM_c64xplus=rc4-c64xplus.s
11e1051a39Sopenharmony_ci
12e1051a39Sopenharmony_ci  # Now that we have defined all the arch specific variables, use the
13e1051a39Sopenharmony_ci  # appropriate one, and define the appropriate macros
14e1051a39Sopenharmony_ci  IF[$RC4ASM_{- $target{asm_arch} -}]
15e1051a39Sopenharmony_ci    $RC4ASM=$RC4ASM_{- $target{asm_arch} -}
16e1051a39Sopenharmony_ci    $RC4DEF=RC4_ASM
17e1051a39Sopenharmony_ci  ENDIF
18e1051a39Sopenharmony_ciENDIF
19e1051a39Sopenharmony_ci
20e1051a39Sopenharmony_ciSOURCE[../../libcrypto]=$RC4ASM
21e1051a39Sopenharmony_ci
22e1051a39Sopenharmony_ci# When all deprecated symbols are removed, libcrypto doesn't export the
23e1051a39Sopenharmony_ci# rc4 functions, so we must include them directly in liblegacy.a
24e1051a39Sopenharmony_ciIF[{- $disabled{'deprecated-3.0'} && !$disabled{module} && !$disabled{shared} -}]
25e1051a39Sopenharmony_ci  SOURCE[../../providers/liblegacy.a]=$RC4ASM
26e1051a39Sopenharmony_ciENDIF
27e1051a39Sopenharmony_ci
28e1051a39Sopenharmony_ciGENERATE[rc4-586.S]=asm/rc4-586.pl
29e1051a39Sopenharmony_ciDEPEND[rc4-586.S]=../perlasm/x86asm.pl
30e1051a39Sopenharmony_ci
31e1051a39Sopenharmony_ciGENERATE[rc4-x86_64.s]=asm/rc4-x86_64.pl
32e1051a39Sopenharmony_ciGENERATE[rc4-md5-x86_64.s]=asm/rc4-md5-x86_64.pl
33e1051a39Sopenharmony_ci
34e1051a39Sopenharmony_ciGENERATE[rc4-parisc.s]=asm/rc4-parisc.pl
35e1051a39Sopenharmony_ciGENERATE[rc4-c64xplus.s]=asm/rc4-c64xplus.pl
36e1051a39Sopenharmony_ciGENERATE[rc4-s390x.s]=asm/rc4-s390x.pl
37