summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/arch/amd64/Makefile.inc
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/arch/amd64/Makefile.inc')
-rw-r--r--src/lib/libcrypto/arch/amd64/Makefile.inc60
1 files changed, 60 insertions, 0 deletions
diff --git a/src/lib/libcrypto/arch/amd64/Makefile.inc b/src/lib/libcrypto/arch/amd64/Makefile.inc
new file mode 100644
index 0000000000..a408186a03
--- /dev/null
+++ b/src/lib/libcrypto/arch/amd64/Makefile.inc
@@ -0,0 +1,60 @@
1# $OpenBSD: Makefile.inc,v 1.1 2014/04/17 18:11:47 miod Exp $
2
3# amd64-specific libcrypto build rules
4
5SRCS+= bf_enc.c des_enc.c fcrypt_b.c
6SRCS+= x86_64-gcc.c
7
8CFLAGS+= -DOPENSSL_BN_ASM_GF2m
9CFLAGS+= -DOPENSSL_BN_ASM_MONT
10CFLAGS+= -DOPENSSL_BN_ASM_MONT5
11CFLAGS+= -DOPENSSL_CPUID_OBJ
12CFLAGS+= -DOPENSSL_IA32_SSE2
13
14CFLAGS+= -DAES_ASM
15CFLAGS+= -DBSAES_ASM
16CFLAGS+= -DGHASH_ASM
17CFLAGS+= -DMD5_ASM
18CFLAGS+= -DSHA1_ASM
19CFLAGS+= -DSHA256_ASM
20CFLAGS+= -DSHA512_ASM
21CFLAGS+= -DVPAES_ASM
22CFLAGS+= -DWHIRLPOOL_ASM
23
24SSLASM=\
25 aes aes-x86_64 \
26 aes aesni-x86_64 \
27 aes aesni-sha1-x86_64 \
28 aes bsaes-x86_64 \
29 aes vpaes-x86_64 \
30 bn x86_64-mont \
31 bn x86_64-mont5 \
32 bn x86_64-gf2m \
33 bn modexp512-x86_64 \
34 md5 md5-x86_64 \
35 modes ghash-x86_64 \
36 rc4 rc4-x86_64 \
37 rc4 rc4-md5-x86_64 \
38 sha sha1-x86_64 \
39 whrlpool wp-x86_64
40
41.for dir f in ${SSLASM}
42SRCS+= ${f}.S
43GENERATED+=${f}.S
44${f}.S: ${LCRYPTO_SRC}/${dir}/asm/${f}.pl
45 (cd ${LCRYPTO_SRC}/${dir} ; \
46 /usr/bin/perl ./asm/${f}.pl openbsd-elf) > ${.TARGET}
47.endfor
48
49SRCS+= x86_64cpuid.S sha256-x86_64.S sha512-x86_64.S
50GENERATED+=x86_64cpuid.S sha256-x86_64.S sha512-x86_64.S
51
52x86_64cpuid.S: ${LCRYPTO_SRC}/x86_64cpuid.pl
53 (cd ${LCRYPTO_SRC}/${dir} ; \
54 /usr/bin/perl ./x86_64cpuid.pl) > ${.TARGET}
55sha256-x86_64.S: ${LCRYPTO_SRC}/sha/asm/sha512-x86_64.pl
56 cd ${LCRYPTO_SRC}/sha/asm ; \
57 /usr/bin/perl ./sha512-x86_64.pl ${.OBJDIR}/${.TARGET}
58sha512-x86_64.S: ${LCRYPTO_SRC}/sha/asm/sha512-x86_64.pl
59 cd ${LCRYPTO_SRC}/sha/asm ; \
60 /usr/bin/perl ./sha512-x86_64.pl ${.OBJDIR}/${.TARGET}