From 31d47575462b7e48a336cadbc40bdc6a0de939eb Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Thu, 9 May 1996 11:30:51 +0000 Subject: [PATCH] Make rules reentrant. --- lib/libc/sys/Makefile.inc | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/libc/sys/Makefile.inc b/lib/libc/sys/Makefile.inc index 0e23be3451a6..411c3d94570c 100644 --- a/lib/libc/sys/Makefile.inc +++ b/lib/libc/sys/Makefile.inc @@ -1,5 +1,5 @@ # @(#)Makefile.inc 8.1 (Berkeley) 6/17/93 -# $Id: $ +# $Id: Makefile.inc,v 1.17 1996/05/07 23:16:38 wosch Exp $ # sys sources .PATH: ${.CURDIR}/${MACHINE}/sys ${.CURDIR}/sys @@ -44,16 +44,16 @@ ${ASM}: ${.CURDIR}/${MACHINE}/SYS.h /usr/include/sys/syscall.h @${ECHO} creating ${.PREFIX}.o @printf '#include "SYS.h"\nRSYSCALL(${.PREFIX})\n' | \ ${CPP} ${CFLAGS:M-[ID]*} ${AINC} | ${AS} -o ${.PREFIX}.o - @${LD} -x -r ${.PREFIX}.o - @mv -f a.out ${.PREFIX}.o + @${LD} -o ${.PREFIX}.tmp -x -r ${.PREFIX}.o + @mv -f ${.PREFIX}.tmp ${.PREFIX}.o PASM= ${ASM:.o=.po} ${PASM}: ${.CURDIR}/${MACHINE}/SYS.h /usr/include/sys/syscall.h @${ECHO} creating ${.PREFIX}.po @printf '#include "SYS.h"\nRSYSCALL(${.PREFIX})\n' | \ ${CPP} -DPROF ${CFLAGS:M-[ID]*} ${AINC} | ${AS} -o ${.PREFIX}.po - @${LD} -x -r ${.PREFIX}.po - @mv -f a.out ${.PREFIX}.po + @${LD} -o ${.PREFIX}.tmp -x -r ${.PREFIX}.po + @mv -f ${.PREFIX}.tmp ${.PREFIX}.po SASM= ${ASM:.o=.so} ${SASM}: ${.CURDIR}/${MACHINE}/SYS.h /usr/include/sys/syscall.h @@ -65,16 +65,16 @@ ${PSEUDO}: ${.CURDIR}/${MACHINE}/SYS.h /usr/include/sys/syscall.h @${ECHO} creating ${.PREFIX}.o @printf '#include "SYS.h"\nPSEUDO(${.PREFIX},${.PREFIX:S/_//})\n' | \ ${CPP} ${CFLAGS:M-[ID]*} ${AINC} | ${AS} -o ${.PREFIX}.o - @${LD} -x -r ${.PREFIX}.o - @mv -f a.out ${.PREFIX}.o + @${LD} -o ${.PREFIX}.tmp -x -r ${.PREFIX}.o + @mv -f ${.PREFIX}.tmp ${.PREFIX}.o PPSEUDO=${PSEUDO:.o=.po} ${PPSEUDO}: ${.CURDIR}/${MACHINE}/SYS.h /usr/include/sys/syscall.h @${ECHO} creating ${.PREFIX}.po @printf '#include "SYS.h"\nPSEUDO(${.PREFIX},${.PREFIX:S/_//})\n' | \ ${CPP} -DPROF ${CFLAGS:M-[ID]*} ${AINC} | ${AS} -o ${.PREFIX}.po - @${LD} -x -r ${.PREFIX}.po - @mv -f a.out ${.PREFIX}.po + @${LD} -o ${.PREFIX}.tmp -x -r ${.PREFIX}.po + @mv -f ${.PREFIX}.tmp ${.PREFIX}.po SPSEUDO=${PSEUDO:.o=.so} ${SPSEUDO}: ${.CURDIR}/${MACHINE}/SYS.h /usr/include/sys/syscall.h