diff --git a/secure/lib/libcrypto/Makefile.asm b/secure/lib/libcrypto/Makefile.asm --- a/secure/lib/libcrypto/Makefile.asm +++ b/secure/lib/libcrypto/Makefile.asm @@ -45,20 +45,17 @@ ASM= ${SRCS:R:S/$/.S/} sha256-armv8.S all: ${ASM} - rm -f ${ASM:R:S/$/.s/} CLEANFILES= ${ASM} .SUFFIXES: .pl sha256-armv8.S: sha512-armv8.pl - env CC=cc perl ${.ALLSRC} linux64 ${.TARGET:R:S/$/.s/} ( echo '/* Do not modify. This file is auto-generated from ${.ALLSRC:T}. */' ;\ - cat ${.TARGET:R:S/$/.s/}) > ${.TARGET} + env CC=cc perl ${.ALLSRC} linux64 /dev/stdout) > ${.TARGET} .pl.S: - env CC=cc perl ${.IMPSRC} linux64 ${.TARGET:R:S/$/.s/} ( echo '/* Do not modify. This file is auto-generated from ${.IMPSRC:T}. */' ;\ - cat ${.TARGET:R:S/$/.s/}) > ${.TARGET} + env CC=cc perl ${.IMPSRC} linux64 /dev/stdout) > ${.TARGET} .elif defined(ASM_amd64) @@ -184,15 +181,13 @@ ASM= ${SRCS:R:S/$/.S/} all: ${ASM} - rm -f ${ASM:R:S/$/.s/} CLEANFILES= ${ASM} .SUFFIXES: .pl .pl.S: - env CC=cc perl ${.IMPSRC} linux32 ${.TARGET:R:S/$/.s/} ( echo '/* Do not modify. This file is auto-generated from ${.IMPSRC:T}. */' ;\ - cat ${.TARGET:R:S/$/.s/}) > ${.TARGET} + env CC=cc perl ${.IMPSRC} linux32 /dev/stdout) > ${.TARGET} .elif defined(ASM_i386) @@ -323,30 +318,25 @@ ASM= ${SRCS:R:S/$/.S/} bn-ppc.S sha256-ppc.S sha256p8-ppc.S all: ${ASM} - rm -f ${ASM:R:S/$/.s/} CLEANFILES= ${ASM} .SUFFIXES: .pl bn-ppc.S: ppc.pl - env CC=cc perl ${.ALLSRC} linux32 ${.TARGET:R:S/$/.s/} ( echo '/* Do not modify. This file is auto-generated from ${.ALLSRC:T}. */' ;\ - cat ${.TARGET:R:S/$/.s/}) > ${.TARGET} + env CC=cc perl ${.ALLSRC} linux32 /dev/stdout) > ${.TARGET} sha256-ppc.S: sha512-ppc.pl - env CC=cc perl ${.ALLSRC} linux32 ${.TARGET:R:S/$/.s/} ( echo '/* Do not modify. This file is auto-generated from ${.ALLSRC:T}. */' ;\ - cat ${.TARGET:R:S/$/.s/}) > ${.TARGET} + env CC=cc perl ${.ALLSRC} linux32 /dev/stdout) > ${.TARGET} sha256p8-ppc.S: sha512p8-ppc.pl - env CC=cc perl ${.ALLSRC} linux32 ${.TARGET:R:S/$/.s/} ( echo '/* Do not modify. This file is auto-generated from ${.ALLSRC:T}. */' ;\ - cat ${.TARGET:R:S/$/.s/}) > ${.TARGET} + env CC=cc perl ${.ALLSRC} linux32 /dev/stdout) > ${.TARGET} .pl.S: - env CC=cc perl ${.IMPSRC} linux32 ${.TARGET:R:S/$/.s/} ( echo '/* Do not modify. This file is auto-generated from ${.ALLSRC:T}. */' ;\ - cat ${.TARGET:R:S/$/.s/}) > ${.TARGET} + env CC=cc perl ${.IMPSRC} linux32 /dev/stdout) > ${.TARGET} .elif defined(ASM_powerpc64) @@ -391,30 +381,25 @@ ASM= ${SRCS:R:S/$/.S/} bn-ppc.S sha256-ppc.S sha256p8-ppc.S all: ${ASM} - rm -f ${ASM:R:S/$/.s/} CLEANFILES= ${ASM} .SUFFIXES: .pl bn-ppc.S: ppc.pl - env CC=cc perl ${.ALLSRC} linux64v2 ${.TARGET:R:S/$/.s/} ( echo '/* Do not modify. This file is auto-generated from ${.ALLSRC:T}. */' ;\ - cat ${.TARGET:R:S/$/.s/}) > ${.TARGET} + env CC=cc perl ${.ALLSRC} linux64v2 /dev/stdout) > ${.TARGET} sha256-ppc.S: sha512-ppc.pl - env CC=cc perl ${.ALLSRC} linux64v2 ${.TARGET:R:S/$/.s/} ( echo '/* Do not modify. This file is auto-generated from ${.ALLSRC:T}. */' ;\ - cat ${.TARGET:R:S/$/.s/}) > ${.TARGET} + env CC=cc perl ${.ALLSRC} linux64v2 /dev/stdout) > ${.TARGET} sha256p8-ppc.S: sha512p8-ppc.pl - env CC=cc perl ${.ALLSRC} linux64v2 ${.TARGET:R:S/$/.s/} ( echo '/* Do not modify. This file is auto-generated from ${.ALLSRC:T}. */' ;\ - cat ${.TARGET:R:S/$/.s/}) > ${.TARGET} + env CC=cc perl ${.ALLSRC} linux64v2 /dev/stdout) > ${.TARGET} .pl.S: - env CC=cc perl ${.IMPSRC} linux64v2 ${.TARGET:R:S/$/.s/} ( echo '/* Do not modify. This file is auto-generated from ${.ALLSRC:T}. */' ;\ - cat ${.TARGET:R:S/$/.s/}) > ${.TARGET} + env CC=cc perl ${.IMPSRC} linux64v2 /dev/stdout) > ${.TARGET} .elif defined(ASM_powerpc64le) @@ -459,30 +444,25 @@ ASM= ${SRCS:R:S/$/.S/} bn-ppc.S sha256-ppc.S sha256p8-ppc.S all: ${ASM} - rm -f ${ASM:R:S/$/.s/} CLEANFILES= ${ASM} .SUFFIXES: .pl bn-ppc.S: ppc.pl - env CC=cc perl ${.ALLSRC} linux64le ${.TARGET:R:S/$/.s/} ( echo '/* Do not modify. This file is auto-generated from ${.ALLSRC:T}. */' ;\ - cat ${.TARGET:R:S/$/.s/}) > ${.TARGET} + env CC=cc perl ${.ALLSRC} linux64le /dev/stdout) > ${.TARGET} sha256-ppc.S: sha512-ppc.pl - env CC=cc perl ${.ALLSRC} linux64le ${.TARGET:R:S/$/.s/} ( echo '/* Do not modify. This file is auto-generated from ${.ALLSRC:T}. */' ;\ - cat ${.TARGET:R:S/$/.s/}) > ${.TARGET} + env CC=cc perl ${.ALLSRC} linux64le /dev/stdout) > ${.TARGET} sha256p8-ppc.S: sha512p8-ppc.pl - env CC=cc perl ${.ALLSRC} linux64le ${.TARGET:R:S/$/.s/} ( echo '/* Do not modify. This file is auto-generated from ${.ALLSRC:T}. */' ;\ - cat ${.TARGET:R:S/$/.s/}) > ${.TARGET} + env CC=cc perl ${.ALLSRC} linux64le /dev/stdout) > ${.TARGET} .pl.S: - env CC=cc perl ${.IMPSRC} linux64le ${.TARGET:R:S/$/.s/} ( echo '/* Do not modify. This file is auto-generated from ${.ALLSRC:T}. */' ;\ - cat ${.TARGET:R:S/$/.s/}) > ${.TARGET} + env CC=cc perl ${.IMPSRC} linux64le /dev/stdout) > ${.TARGET} .endif