xref: /openssl/crypto/aes/build.info (revision dda1635c)
1LIBS=../../libcrypto
2
3$AESASM=aes_core.c aes_cbc.c
4IF[{- !$disabled{asm} -}]
5  $AESASM_x86=aes-586.S
6  $AESDEF_x86=AES_ASM
7  $AESASM_x86_sse2=vpaes-x86.S aesni-x86.S
8  $AESDEF_x86_sse2=VPAES_ASM OPENSSL_IA32_SSE2
9
10  $AESASM_x86_64=\
11        aes-x86_64.s vpaes-x86_64.s bsaes-x86_64.s aesni-x86_64.s \
12        aesni-sha1-x86_64.s aesni-sha256-x86_64.s aesni-mb-x86_64.s
13  $AESDEF_x86_64=AES_ASM VPAES_ASM BSAES_ASM
14
15  $AESASM_ia64=aes_core.c aes_cbc.c aes-ia64.s
16  $AESDEF_ia64=AES_ASM
17
18  $AESASM_sparcv9=\
19        aes_core.c aes_cbc.c aes-sparcv9.S aest4-sparcv9.S aesfx-sparcv9.S
20  $AESDEF_sparcv9=AES_ASM
21
22  $AESASM_mips32=aes_cbc.c aes-mips.S
23  $AESDEF_mips32=AES_ASM
24  $AESASM_mips64=$AESASM_mips32
25  $AESDEF_mips64=$AESDEF_mips32
26
27  $AESASM_s390x=aes-s390x.S
28  # aes-390x.S implements AES_ctr32_encrypt and AES_xts_[en|de]crypt
29  $AESDEF_s390x=AES_ASM AES_CTR_ASM AES_XTS_ASM
30
31  $AESASM_armv4=aes_cbc.c aes-armv4.S bsaes-armv7.S aesv8-armx.S
32  $AESDEF_armv4=AES_ASM BSAES_ASM
33  $AESASM_aarch64=aes_core.c aes_cbc.c aesv8-armx.S bsaes-armv8.S vpaes-armv8.S
34  $AESDEF_aarch64=BSAES_ASM VPAES_ASM
35
36  $AESASM_parisc11=aes_core.c aes_cbc.c aes-parisc.s
37  $AESDEF_parisc11=AES_ASM
38  $AESASM_parisc20_64=$AESASM_parisc11
39  $AESDEF_parisc20_64=$AESDEF_parisc11
40
41  IF[{- $target{sys_id} ne "MACOSX" -}]
42    $AESASM_ppc32=aes_core.c aes_cbc.c aes-ppc.s vpaes-ppc.s aesp8-ppc.s
43  ELSE
44    $AESASM_ppc32=aes_core.c aes_cbc.c aes-ppc.s vpaes-ppc.s
45  ENDIF
46  $AESDEF_ppc32=AES_ASM VPAES_ASM
47  $AESASM_ppc64=$AESASM_ppc32
48  $AESDEF_ppc64=$AESDEF_ppc32
49
50  $AESASM_c64xplus=aes-c64xplus.s aes_cbc.c
51  # aes-c64xplus.s implements AES_ctr32_encrypt
52  $AESDEF_c64xplus=AES_ASM AES_CTR_ASM
53
54  $AESASM_riscv64=aes_cbc.c aes-riscv64.s aes-riscv64-zkn.s aes-riscv64-zvkb-zvkned.s aes-riscv64-zvkned.s aes-riscv64-zvbb-zvkg-zvkned.s
55  $AESDEF_riscv64=AES_ASM
56  $AESASM_riscv32=aes_core.c aes_cbc.c aes-riscv32-zkn.s
57
58  $AESASM_loongarch64=aes_core.c aes_cbc.c vpaes-loongarch64.S
59  $AESDEF_loongarch64=VPAES_ASM
60
61  # Now that we have defined all the arch specific variables, use the
62  # appropriate one, and define the appropriate macros
63  IF[$AESASM_{- $target{asm_arch} -}]
64    $AESASM=$AESASM_{- $target{asm_arch} -}
65    $AESDEF=$AESDEF_{- $target{asm_arch} -}
66    IF[{- !$disabled{sse2} -}]
67      $AESASM=$AESASM $AESASM_{- $target{asm_arch} -}_sse2
68      $AESDEF=$AESDEF $AESDEF_{- $target{asm_arch} -}_sse2
69    ENDIF
70  ENDIF
71ENDIF
72
73$COMMON=aes_misc.c aes_ecb.c $AESASM
74SOURCE[../../libcrypto]=$COMMON aes_cfb.c aes_ofb.c aes_wrap.c
75IF[{- !$disabled{'deprecated-3.0'} -}]
76  SOURCE[../../libcrypto]=aes_ige.c
77ENDIF
78SOURCE[../../providers/libfips.a]=$COMMON
79
80# Implementations are now spread across several libraries, so the defines
81# need to be applied to all affected libraries and modules.
82DEFINE[../../libcrypto]=$AESDEF
83DEFINE[../../providers/libfips.a]=$AESDEF
84DEFINE[../../providers/libdefault.a]=$AESDEF
85# We only need to include the AESDEF stuff in the legacy provider when it's a
86# separate module and it's dynamically linked with libcrypto.  Otherwise, it
87# already gets everything that the static libcrypto.a has, and doesn't need it
88# added again.
89IF[{- !$disabled{module} && !$disabled{shared} -}]
90  DEFINE[../../providers/liblegacy.a]=$AESDEF
91ENDIF
92
93GENERATE[aes-ia64.s]=asm/aes-ia64.S
94GENERATE[bsaes-armv8.S]=asm/bsaes-armv8.pl
95
96GENERATE[aes-586.S]=asm/aes-586.pl
97DEPEND[aes-586.S]=../perlasm/x86asm.pl
98GENERATE[vpaes-x86.S]=asm/vpaes-x86.pl
99DEPEND[vpaes-586.S]=../perlasm/x86asm.pl
100GENERATE[aesni-x86.S]=asm/aesni-x86.pl
101DEPEND[aesni-586.S]=../perlasm/x86asm.pl
102
103GENERATE[aes-x86_64.s]=asm/aes-x86_64.pl
104GENERATE[vpaes-x86_64.s]=asm/vpaes-x86_64.pl
105GENERATE[bsaes-x86_64.s]=asm/bsaes-x86_64.pl
106GENERATE[aesni-x86_64.s]=asm/aesni-x86_64.pl
107GENERATE[aesni-sha1-x86_64.s]=asm/aesni-sha1-x86_64.pl
108GENERATE[aesni-sha256-x86_64.s]=asm/aesni-sha256-x86_64.pl
109GENERATE[aesni-mb-x86_64.s]=asm/aesni-mb-x86_64.pl
110
111GENERATE[aes-sparcv9.S]=asm/aes-sparcv9.pl
112INCLUDE[aes-sparcv9.o]=..
113GENERATE[aest4-sparcv9.S]=asm/aest4-sparcv9.pl
114INCLUDE[aest4-sparcv9.o]=..
115DEPEND[aest4-sparcv9.S]=../perlasm/sparcv9_modes.pl
116GENERATE[aesfx-sparcv9.S]=asm/aesfx-sparcv9.pl
117INCLUDE[aesfx-sparcv9.o]=..
118
119GENERATE[aes-ppc.s]=asm/aes-ppc.pl
120GENERATE[vpaes-ppc.s]=asm/vpaes-ppc.pl
121GENERATE[aesp8-ppc.s]=asm/aesp8-ppc.pl
122
123GENERATE[aes-parisc.s]=asm/aes-parisc.pl
124
125GENERATE[aes-mips.S]=asm/aes-mips.pl
126INCLUDE[aes-mips.o]=..
127
128GENERATE[aes-riscv64.s]=asm/aes-riscv64.pl
129GENERATE[aes-riscv64-zkn.s]=asm/aes-riscv64-zkn.pl
130GENERATE[aes-riscv32-zkn.s]=asm/aes-riscv32-zkn.pl
131GENERATE[aes-riscv64-zvkb-zvkned.s]=asm/aes-riscv64-zvkb-zvkned.pl
132GENERATE[aes-riscv64-zvkned.s]=asm/aes-riscv64-zvkned.pl
133GENERATE[aes-riscv64-zvbb-zvkg-zvkned.s]=asm/aes-riscv64-zvbb-zvkg-zvkned.pl
134
135GENERATE[aesv8-armx.S]=asm/aesv8-armx.pl
136INCLUDE[aesv8-armx.o]=..
137GENERATE[vpaes-armv8.S]=asm/vpaes-armv8.pl
138INCLUDE[vpaes-armv8.o]=..
139
140GENERATE[aes-armv4.S]=asm/aes-armv4.pl
141INCLUDE[aes-armv4.o]=..
142GENERATE[bsaes-armv7.S]=asm/bsaes-armv7.pl
143INCLUDE[bsaes-armv7.o]=..
144
145GENERATE[aes-s390x.S]=asm/aes-s390x.pl
146INCLUDE[aes-s390x.o]=..
147
148GENERATE[aes-c64xplus.S]=asm/aes-c64xplus.pl
149
150GENERATE[vpaes-loongarch64.S]=asm/vpaes-loongarch64.pl
151INCLUDE[vpaes-loongarch64.o]=..
152