Make the generated .S files depend on ${.CURDIR}/sys/Makefile.inc.

This commit is contained in:
thorpej 2003-01-28 00:33:23 +00:00
parent 6bae70db81
commit 2dcac9e4eb
2 changed files with 13 additions and 10 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.134 2003/01/27 20:55:56 nathanw Exp $ # $NetBSD: Makefile.inc,v 1.135 2003/01/28 00:33:23 thorpej Exp $
# @(#)Makefile.inc 8.3 (Berkeley) 10/24/94 # @(#)Makefile.inc 8.3 (Berkeley) 10/24/94
# sys sources # sys sources
@ -91,19 +91,19 @@ PSEUDONOERR= _exit.S
SRCS+= ${ASM} ${WEAKASM} ${NOERR} ${PSEUDONOERR} SRCS+= ${ASM} ${WEAKASM} ${NOERR} ${PSEUDONOERR}
CLEANFILES+= ${ASM} ${WEAKASM} ${NOERR} ${PSEUDONOERR} CLEANFILES+= ${ASM} ${WEAKASM} ${NOERR} ${PSEUDONOERR}
${ASM}: ${ARCHDIR}/SYS.h ${DESTDIR}/usr/include/sys/syscall.h ASMDEPS= ${.CURDIR}/sys/Makefile.inc ${ARCHDIR}/SYS.h \
${DESTDIR}/usr/include/sys/syscall.h
${ASM}: ${ASMDEPS}
printf '#include "SYS.h"\nRSYSCALL(${.PREFIX})\n' >${.TARGET} printf '#include "SYS.h"\nRSYSCALL(${.PREFIX})\n' >${.TARGET}
${WEAKASM}: ${ARCHDIR}/SYS.h ${DESTDIR}/usr/include/sys/syscall.h ${WEAKASM}: ${ASMDEPS}
printf '#include "SYS.h"\nWSYSCALL(${.PREFIX},_sys_${.PREFIX})\nWEAK_ALIAS(_${.PREFIX},_sys_${.PREFIX})\n' >${.TARGET} printf '#include "SYS.h"\nWSYSCALL(${.PREFIX},_sys_${.PREFIX})\nWEAK_ALIAS(_${.PREFIX},_sys_${.PREFIX})\n' >${.TARGET}
${NOERR}: ${ASMDEPS}
${NOERR}: ${ARCHDIR}/SYS.h ${DESTDIR}/usr/include/sys/syscall.h
printf '#include "SYS.h"\nRSYSCALL_NOERROR(${.PREFIX})\n' >${.TARGET} printf '#include "SYS.h"\nRSYSCALL_NOERROR(${.PREFIX})\n' >${.TARGET}
${PSEUDONOERR}: ${ARCHDIR}/SYS.h ${DESTDIR}/usr/include/sys/syscall.h ${PSEUDONOERR}: ${ASMDEPS}
printf '#include "SYS.h"\nPSEUDO_NOERROR(${.PREFIX},${.PREFIX:S/_//})\n' >${.TARGET} printf '#include "SYS.h"\nPSEUDO_NOERROR(${.PREFIX},${.PREFIX:S/_//})\n' >${.TARGET}
LintSysNormal.c: ${.CURDIR}/sys/makelintstub \ LintSysNormal.c: ${.CURDIR}/sys/makelintstub \

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.15 2002/09/14 21:16:43 thorpej Exp $ # $NetBSD: Makefile.inc,v 1.16 2003/01/28 00:35:36 thorpej Exp $
# sys sources # sys sources
.PATH: ${.CURDIR}/sys .PATH: ${.CURDIR}/sys
@ -9,7 +9,10 @@ PSEUDO= chown.S fchown.S lchown.S rename.S
SRCS+= ${PSEUDO} SRCS+= ${PSEUDO}
CLEANFILES+= ${PSEUDO} CLEANFILES+= ${PSEUDO}
${PSEUDO}: ${ARCHDIR}/SYS.h ${DESTDIR}/usr/include/sys/syscall.h ASMDEPS= ${.CURDIR}/sys/Makefile.inc ${ARCHDIR}/SYS.h \
${DESTDIR}/usr/include/sys/syscall.h
${PSEUDO}: ${ASMDEPS}
@printf '#include "SYS.h"\nPSEUDO(${.PREFIX},${.PREFIX:S/^/__posix_/})\n' \ @printf '#include "SYS.h"\nPSEUDO(${.PREFIX},${.PREFIX:S/^/__posix_/})\n' \
>${.TARGET} >${.TARGET}