diff options
Diffstat (limited to 'src/lib/libcrypto/arch/i386/Makefile.inc')
-rw-r--r-- | src/lib/libcrypto/arch/i386/Makefile.inc | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/src/lib/libcrypto/arch/i386/Makefile.inc b/src/lib/libcrypto/arch/i386/Makefile.inc new file mode 100644 index 0000000000..13f20d249d --- /dev/null +++ b/src/lib/libcrypto/arch/i386/Makefile.inc | |||
@@ -0,0 +1,58 @@ | |||
1 | # $OpenBSD: Makefile.inc,v 1.1 2014/04/17 18:11:47 miod Exp $ | ||
2 | |||
3 | # i386-specific libcrypto build rules | ||
4 | |||
5 | SRCS+= wp_block.c | ||
6 | SRCS+= bf_cbc.c | ||
7 | |||
8 | CFLAGS+= -DOPENSSL_BN_ASM_GF2m | ||
9 | CFLAGS+= -DOPENSSL_BN_ASM_MONT | ||
10 | CFLAGS+= -DOPENSSL_BN_ASM_PART_WORDS | ||
11 | CFLAGS+= -DOPENSSL_CPUID_OBJ | ||
12 | CFLAGS+= -DOPENSSL_IA32_SSE2 | ||
13 | |||
14 | CFLAGS+= -DAES_ASM | ||
15 | CFLAGS+= -DGHASH_ASM | ||
16 | CFLAGS+= -DMD5_ASM | ||
17 | CFLAGS+= -DRMD160_ASM | ||
18 | CFLAGS+= -DSHA1_ASM | ||
19 | CFLAGS+= -DSHA256_ASM | ||
20 | CFLAGS+= -DSHA512_ASM | ||
21 | CFLAGS+= -DVPAES_ASM | ||
22 | CFLAGS+= -DWHIRLPOOL_ASM | ||
23 | |||
24 | SSLASM=\ | ||
25 | aes aes-586 \ | ||
26 | aes vpaes-x86 \ | ||
27 | aes aesni-x86 \ | ||
28 | bf bf-586 \ | ||
29 | bn bn-586 \ | ||
30 | bn co-586 \ | ||
31 | bn x86-mont \ | ||
32 | bn x86-gf2m \ | ||
33 | des crypt586 \ | ||
34 | des des-586 \ | ||
35 | md5 md5-586 \ | ||
36 | modes ghash-x86 \ | ||
37 | rc4 rc4-586 \ | ||
38 | ripemd rmd-586 \ | ||
39 | sha sha1-586 \ | ||
40 | sha sha256-586 \ | ||
41 | sha sha512-586 \ | ||
42 | whrlpool wp-mmx | ||
43 | |||
44 | .for dir f in ${SSLASM} | ||
45 | SRCS+= ${f}.S | ||
46 | GENERATED+=${f}.S | ||
47 | ${f}.S: ${LCRYPTO_SRC}/${dir}/asm/${f}.pl ${LCRYPTO_SRC}/perlasm/x86gas.pl | ||
48 | /usr/bin/perl -I${LCRYPTO_SRC}/perlasm -I${LCRYPTO_SRC}/${dir}/asm \ | ||
49 | ${LCRYPTO_SRC}/${dir}/asm/${f}.pl \ | ||
50 | openbsd-elf ${CFLAGS} 386 ${PICFLAG} > ${.TARGET} | ||
51 | .endfor | ||
52 | |||
53 | SRCS+= x86cpuid.S | ||
54 | GENERATED+=x86cpuid.S | ||
55 | |||
56 | x86cpuid.S: ${LCRYPTO_SRC}/x86cpuid.pl ${LCRYPTO_SRC}/perlasm/x86gas.pl | ||
57 | /usr/bin/perl -I${LCRYPTO_SRC}/perlasm ${LCRYPTO_SRC}/x86cpuid.pl \ | ||
58 | openbsd-elf ${CFLAGS} 386 ${PICFLAG} > ${.TARGET} | ||