Make rules reentrant.

This commit is contained in:
Poul-Henning Kamp 1996-05-09 11:30:51 +00:00
parent 0502c52ac9
commit 31d4757546

View File

@ -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