diff --git a/lib/libc/sys/Makefile.inc b/lib/libc/sys/Makefile.inc index 1af9159ffc76..7e1a0f3f437a 100644 --- a/lib/libc/sys/Makefile.inc +++ b/lib/libc/sys/Makefile.inc @@ -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 # sys sources @@ -91,19 +91,19 @@ PSEUDONOERR= _exit.S SRCS+= ${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} -${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} - - - -${NOERR}: ${ARCHDIR}/SYS.h ${DESTDIR}/usr/include/sys/syscall.h +${NOERR}: ${ASMDEPS} 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} LintSysNormal.c: ${.CURDIR}/sys/makelintstub \ diff --git a/lib/libposix/sys/Makefile.inc b/lib/libposix/sys/Makefile.inc index e457fe544174..fbaf4e298265 100644 --- a/lib/libposix/sys/Makefile.inc +++ b/lib/libposix/sys/Makefile.inc @@ -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 .PATH: ${.CURDIR}/sys @@ -9,7 +9,10 @@ PSEUDO= chown.S fchown.S lchown.S rename.S SRCS+= ${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' \ >${.TARGET}