xref: /netbsd-src/crypto/external/bsd/openssl/lib/libcrypto/arch/arm/Makefile (revision 2cc7a204254f2c6f8d68d51fb90a3c6460ab258e)
1*2cc7a204Smartin#	$NetBSD: Makefile,v 1.3 2018/09/29 19:44:57 martin Exp $
2edeef471Schristos
3edeef471Schristos.include "bsd.own.mk"
4edeef471Schristos
5edeef471SchristosCRYPTODIST=${NETBSDSRCDIR}/crypto
6edeef471Schristos.include "${NETBSDSRCDIR}/crypto/Makefile.openssl"
7edeef471Schristos
8edeef471Schristosregen:
948c10bd9Schristos	for i in $$(find ${OPENSSLSRC} -name \*arm\*.pl); do \
10edeef471Schristos		case $$i in \
11edeef471Schristos		(*/charmap.pl|*/arm-xlate.pl);; \
12*2cc7a204Smartin		(*) printf '#include "arm_asm.h"\n' > $$(basename $$i .pl).S; \
13*2cc7a204Smartin		perl -I${OPENSSLSRC}/crypto/perlasm \
14edeef471Schristos		-I${OPENSSLSRC}/crypto/bn/asm $$i linux /dev/stdout \
15*2cc7a204Smartin		| sed -E 's/bx[[:space:]]+lr/RET/' \
16*2cc7a204Smartin		>> $$(basename $$i .pl).S;; \
17edeef471Schristos		esac; \
18edeef471Schristos	done
19