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