14 thread_scheme => "(unknown)", # Assume we don't know
17 des_asm_src => "des_enc.c fcrypt_b.c",
18 aes_asm_src => "aes_core.c aes_cbc.c",
19 bf_asm_src => "bf_enc.c",
21 cast_asm_src => "c_enc.c",
22 rc4_asm_src => "rc4_enc.c rc4_skey.c",
24 rc5_asm_src => "rc5_enc.c",
25 wp_asm_src => "wp_block.c",
26 cmll_asm_src => "camellia.c cmll_misc.c cmll_cbc.c",
28 padlock_asm_src => "",
29 chacha_asm_src => "chacha_enc.c",
30 poly1305_asm_src => "",
31 keccak1600_asm_src => "keccak1600.c",
33 unistd => "<unistd.h>",
40 #### Defaults for the benefit of the config targets who don't inherit
41 #### a BASE and assume Unix defaults
42 #### THESE WILL DISAPPEAR IN OpenSSL 1.2
43 build_scheme => [ "unified", "unix" ],
44 build_file => "Makefile",
49 HASHBANGPERL => "/usr/bin/env perl",
50 RANLIB => sub { which("$config{cross_compile_prefix}ranlib")
54 #### THESE WILL BE ENABLED IN OpenSSL 1.2
55 #HASHBANGPERL => "PERL", # Only Unix actually cares
67 push @defs, "ZLIB" unless $disabled{zlib};
68 push @defs, "ZLIB_SHARED" unless $disabled{"zlib-dynamic"};
74 push @incs, $withargs{zlib_include}
75 if !$disabled{zlib} && $withargs{zlib_include};
81 inherit_from => [ "BASE_common" ],
88 sub { $withargs{zlib_lib} ? "-L".$withargs{zlib_lib} : () },
90 sub { !defined($disabled{zlib})
91 && defined($disabled{"zlib-dynamic"})
93 HASHBANGPERL => "/usr/bin/env perl", # Only Unix actually cares
94 RANLIB => sub { which("$config{cross_compile_prefix}ranlib")
98 build_scheme => [ "unified", "unix" ],
99 build_file => "Makefile",
101 perl_platform => 'Unix',
105 inherit_from => [ "BASE_common" ],
111 unless ($disabled{"zlib-dynamic"}) {
112 my $zlib = $withargs{zlib_lib} // "ZLIB1";
113 push @defs, 'LIBZ=' . (quotify("perl", $zlib))[0];
119 unless ($disabled{zlib}) {
120 if (defined($disabled{"zlib-dynamic"})) {
121 return $withargs{zlib_lib} // "ZLIB1";
128 LDFLAGS => "/nologo",
129 ldoutflag => "/out:",
131 ARFLAGS => "/nologo",
132 aroutflag => "/out:",
136 MTFLAGS => "-nologo",
137 mtinflag => "-manifest ",
138 mtoutflag => "-outputresource:",
140 build_file => "makefile",
141 build_scheme => [ "unified", "windows" ],
143 perl_platform => 'Windows',
147 inherit_from => [ "BASE_common" ],
153 # GNV$ZLIB_INCLUDE is the standard logical name for later
155 push @incs, 'GNV$ZLIB_INCLUDE:'
156 if !$disabled{zlib} && !$withargs{zlib_include};
160 build_file => "descrip.mms",
161 build_scheme => [ "unified", "VMS" ],
163 perl_platform => 'VMS',
168 des_asm_src => "des-586.s crypt586.s",
169 aes_asm_src => "aes-586.s vpaes-x86.s aesni-x86.s",
170 bf_asm_src => "bf-586.s",
171 md5_asm_src => "md5-586.s",
172 cast_asm_src => "cast-586.s",
173 sha1_asm_src => "sha1-586.s sha256-586.s sha512-586.s",
174 rc4_asm_src => "rc4-586.s",
175 rmd160_asm_src => "rmd-586.s",
176 rc5_asm_src => "rc5-586.s",
177 wp_asm_src => "wp_block.c wp-mmx.s",
178 cmll_asm_src => "cmll-x86.s",
179 modes_asm_src => "ghash-x86.s",
180 padlock_asm_src => "e_padlock-x86.s",
181 chacha_asm_src => "chacha-x86.s",
182 poly1305_asm_src=> "poly1305-x86.s",
186 inherit_from => [ "x86_asm" ],
190 aes_asm_src => "aes-x86_64.s vpaes-x86_64.s bsaes-x86_64.s aesni-x86_64.s aesni-sha1-x86_64.s aesni-sha256-x86_64.s aesni-mb-x86_64.s",
191 md5_asm_src => "md5-x86_64.s",
192 sha1_asm_src => "sha1-x86_64.s sha256-x86_64.s sha512-x86_64.s sha1-mb-x86_64.s sha256-mb-x86_64.s",
193 rc4_asm_src => "rc4-x86_64.s rc4-md5-x86_64.s",
194 wp_asm_src => "wp-x86_64.s",
195 cmll_asm_src => "cmll-x86_64.s cmll_misc.c",
196 modes_asm_src => "ghash-x86_64.s aesni-gcm-x86_64.s",
197 padlock_asm_src => "e_padlock-x86_64.s",
198 chacha_asm_src => "chacha-x86_64.s",
199 poly1305_asm_src=> "poly1305-x86_64.s",
200 keccak1600_asm_src => "keccak1600-x86_64.s",
204 aes_asm_src => "aes_core.c aes_cbc.c aes-ia64.s",
205 sha1_asm_src => "sha1-ia64.s sha256-ia64.s sha512-ia64.s",
206 modes_asm_src => "ghash-ia64.s",
207 chacha_asm_src => "chacha-ia64.S",
208 poly1305_asm_src=> "asm/poly1305-ia64.S",
212 des_asm_src => "des_enc-sparc.S fcrypt_b.c dest4-sparcv9.S",
213 aes_asm_src => "aes_core.c aes_cbc.c aes-sparcv9.S aest4-sparcv9.S aesfx-sparcv9.S",
214 md5_asm_src => "md5-sparcv9.S",
215 sha1_asm_src => "sha1-sparcv9.S sha256-sparcv9.S sha512-sparcv9.S",
216 cmll_asm_src => "camellia.c cmll_misc.c cmll_cbc.c cmllt4-sparcv9.S",
217 modes_asm_src => "ghash-sparcv9.S",
218 poly1305_asm_src=> "poly1305-sparcv9.S",
222 des_asm_src => "des_enc-sparc.S fcrypt_b.c",
226 sha1_asm_src => "sha1-alpha.S",
227 modes_asm_src => "ghash-alpha.S",
231 aes_asm_src => "aes_cbc.c aes-mips.S",
232 sha1_asm_src => "sha1-mips.S sha256-mips.S",
235 inherit_from => [ "mips32_asm" ],
237 sha1_asm_src => add("sha512-mips.S"),
238 poly1305_asm_src=> "poly1305-mips.S",
242 aes_asm_src => "aes-s390x.S aes-ctr.fake aes-xts.fake",
243 sha1_asm_src => "sha1-s390x.S sha256-s390x.S sha512-s390x.S",
244 rc4_asm_src => "rc4-s390x.s",
245 modes_asm_src => "ghash-s390x.S",
246 chacha_asm_src => "chacha-s390x.S",
247 poly1305_asm_src=> "poly1305-s390x.S",
248 keccak1600_asm_src => "keccak1600-s390x.S",
252 aes_asm_src => "aes_cbc.c aes-armv4.S bsaes-armv7.S aesv8-armx.S",
253 sha1_asm_src => "sha1-armv4-large.S sha256-armv4.S sha512-armv4.S",
254 modes_asm_src => "ghash-armv4.S ghashv8-armx.S",
255 chacha_asm_src => "chacha-armv4.S",
256 poly1305_asm_src=> "poly1305-armv4.S",
257 keccak1600_asm_src => "keccak1600-armv4.S",
261 aes_asm_src => "aes_core.c aes_cbc.c aesv8-armx.S vpaes-armv8.S",
262 sha1_asm_src => "sha1-armv8.S sha256-armv8.S sha512-armv8.S",
263 modes_asm_src => "ghashv8-armx.S",
264 chacha_asm_src => "chacha-armv8.S",
265 poly1305_asm_src=> "poly1305-armv8.S",
266 keccak1600_asm_src => "keccak1600-armv8.S",
270 aes_asm_src => "aes_core.c aes_cbc.c aes-parisc.s",
271 sha1_asm_src => "sha1-parisc.s sha256-parisc.s sha512-parisc.s",
272 rc4_asm_src => "rc4-parisc.s",
273 modes_asm_src => "ghash-parisc.s",
277 inherit_from => [ "parisc11_asm" ],
281 aes_asm_src => "aes_core.c aes_cbc.c aes-ppc.s vpaes-ppc.s aesp8-ppc.s",
282 sha1_asm_src => "sha1-ppc.s sha256-ppc.s sha512-ppc.s sha256p8-ppc.s sha512p8-ppc.s",
283 modes_asm_src => "ghashp8-ppc.s",
284 chacha_asm_src => "chacha-ppc.s",
285 poly1305_asm_src=> "poly1305-ppc.s poly1305-ppcfp.s",
288 inherit_from => [ "ppc32_asm" ],
290 keccak1600_asm_src => "keccak1600-ppc64.s",