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.inc12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/lib/libcrypto/arch/amd64/Makefile.inc b/src/lib/libcrypto/arch/amd64/Makefile.inc
index dd136f76a7..2f41f44381 100644
--- a/src/lib/libcrypto/arch/amd64/Makefile.inc
+++ b/src/lib/libcrypto/arch/amd64/Makefile.inc
@@ -1,10 +1,12 @@
1# $OpenBSD: Makefile.inc,v 1.29 2024/08/11 13:02:39 jsing Exp $ 1# $OpenBSD: Makefile.inc,v 1.30 2024/10/18 13:36:24 jsing Exp $
2 2
3# amd64-specific libcrypto build rules 3# amd64-specific libcrypto build rules
4 4
5# all amd64 code generators use this 5# all amd64 code generators use this
6EXTRA_PL = ${LCRYPTO_SRC}/perlasm/x86_64-xlate.pl 6EXTRA_PL = ${LCRYPTO_SRC}/perlasm/x86_64-xlate.pl
7 7
8SRCS += crypto_cpu_caps.c
9
8# aes 10# aes
9CFLAGS+= -DAES_ASM 11CFLAGS+= -DAES_ASM
10SSLASM+= aes aes-x86_64 12SSLASM+= aes aes-x86_64
@@ -69,12 +71,4 @@ ${f}.S: ${LCRYPTO_SRC}/${dir}/asm/${f}.pl ${EXTRA_PL}
69 /usr/bin/perl ./asm/${f}.pl openbsd) > ${.TARGET} 71 /usr/bin/perl ./asm/${f}.pl openbsd) > ${.TARGET}
70.endfor 72.endfor
71 73
72CFLAGS+= -DOPENSSL_CPUID_OBJ
73SRCS+= x86_64cpuid.S
74GENERATED+=x86_64cpuid.S
75
76x86_64cpuid.S: ${LCRYPTO_SRC}/x86_64cpuid.pl ${EXTRA_PL}
77 (cd ${LCRYPTO_SRC}/${dir} ; \
78 /usr/bin/perl ./x86_64cpuid.pl) > ${.TARGET}
79
80CFLAGS+=-fret-clean 74CFLAGS+=-fret-clean