xref: /openbsd/lib/libcrypto/arch/alpha/Makefile.inc (revision f72cabd8)
1# $OpenBSD: Makefile.inc,v 1.14 2024/03/29 07:24:09 jsing Exp $
2
3# alpha-specific libcrypto build rules
4
5# bn
6SSLASM+= bn alpha-mont
7CFLAGS+= -DOPENSSL_BN_ASM_MONT
8# modes
9CFLAGS+= -DGHASH_ASM
10SSLASM+= modes ghash-alpha
11# sha
12CFLAGS+= -DSHA1_ASM
13SSLASM+= sha sha1-alpha
14
15.for dir f in ${SSLASM}
16SRCS+=	${f}.S
17GENERATED+=${f}.S
18${f}.S: ${LCRYPTO_SRC}/${dir}/asm/${f}.pl
19	/usr/bin/perl \
20		${LCRYPTO_SRC}/${dir}/asm/${f}.pl > ${.TARGET}
21.endfor
22