1*c9496f6bSchristos# $NetBSD: Makefile,v 1.1.1.1 2018/02/03 22:43:37 christos Exp $ 2*c9496f6bSchristos 3*c9496f6bSchristos.include "bsd.own.mk" 4*c9496f6bSchristos 5*c9496f6bSchristosCRYPTODIST=${NETBSDSRCDIR}/crypto 6*c9496f6bSchristos.include "${NETBSDSRCDIR}/crypto/Makefile.openssl" 7*c9496f6bSchristos 8*c9496f6bSchristosregen: 9*c9496f6bSchristos for i in $$(find ${OPENSSLSRC} -name \*sparcv9\*.pl) \ 10*c9496f6bSchristos ${OPENSSLSRC}/crypto/bn/asm/sparct4-mont.pl \ 11*c9496f6bSchristos ${OPENSSLSRC}/crypto/bn/asm/vis3-mont.pl; do \ 12*c9496f6bSchristos j=$$(basename $$i .pl).S; \ 13*c9496f6bSchristos case $$j in \ 14*c9496f6bSchristos ghash*|sha*) perl $$i $$j;; \ 15*c9496f6bSchristos *) perl $$i > $$j;; \ 16*c9496f6bSchristos esac; \ 17*c9496f6bSchristos done 18*c9496f6bSchristos cp ${OPENSSLSRC}/crypto/bn/asm/sparcv8.S bn-sparcv8.S 19*c9496f6bSchristos #cp ${OPENSSLSRC}/crypto/bn/asm/sparcv8plus.S bn-sparcv8plus.S 20*c9496f6bSchristos m4 ${OPENSSLSRC}/crypto/des/asm/des_enc.m4 | \ 21*c9496f6bSchristos sed 's,OPENSSL_SYSNAME_ULTRASPARC,__sparc_v9__,g' | \ 22*c9496f6bSchristos sed 's,\.PIC\.DES_SPtrans,_PIC_DES_SPtrans,g' > des_enc-sparc.S 23*c9496f6bSchristosfoo: 24