minix/crypto/external/bsd/openssl/lib/libcrypto/arch/powerpc/Makefile
2018-11-11 15:29:04 +00:00

38 lines
1.4 KiB
Makefile

# $NetBSD: Makefile,v 1.5 2016/10/19 00:11:03 christos Exp $
.include <bsd.own.mk>
BITS?=32
CRYPTODIST=${NETBSDSRCDIR}/crypto
.include "${NETBSDSRCDIR}/crypto/Makefile.openssl"
XLATE=${OPENSSLSRC}/crypto/perlasm/ppc-xlate.pl
regen:
for i in $$(find ${OPENSSLSRC} -name \*ppc\*.pl); do \
case $$i in \
*xlate.pl) ;; \
*sha512*) perl $$i ${BITS} sha512; \
sed -e 's/bc 25,0,/bdnz+ /' \
-e 's/bclr 14,2/beqlr/' \
-e 's/bclr 6,2/bnelr/' \
-e 's/bclr 14,0/bltlr/' \
-e 's/bclr 12,0/bltlr/' \
< sha512 > $$(basename $$i .pl).S; \
perl $$i ${BITS} sha256; \
sed -e 's/bc 25,0,/bdnz+ /' \
-e 's/bclr 14,2/beqlr/' \
-e 's/bclr 6,2/bnelr/' \
-e 's/bclr 14,0/bltlr/' \
-e 's/bclr 12,0/bltlr/' \
< sha256 > $$(basename $$i .pl | sed s/512/256/).S; \
rm -f sha512 sha256;; \
*) perl $$i ${BITS} | perl ${XLATE} linux${BITS} | \
sed -e 's/bc 25,0,/bdnz+ /' \
-e 's/bclr 14,2/beqlr/' \
-e 's/bclr 6,2/bnelr/' \
-e 's/bclr 14,0/bltlr/' \
-e 's/bclr 12,0/bltlr/' \
> $$(basename $$i .pl).S ;; \
esac; \
done