Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib Make the generated .S files depend on ${.CURDIR}/sys/Mak...



details:   https://anonhg.NetBSD.org/src/rev/049c33c7f93a
branches:  trunk
changeset: 542409:049c33c7f93a
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Tue Jan 28 00:33:23 2003 +0000

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

diffstat:

 lib/libc/sys/Makefile.inc     |  16 ++++++++--------
 lib/libposix/sys/Makefile.inc |   7 +++++--
 2 files changed, 13 insertions(+), 10 deletions(-)

diffs (57 lines):

diff -r 98255ba51d14 -r 049c33c7f93a lib/libc/sys/Makefile.inc
--- a/lib/libc/sys/Makefile.inc Mon Jan 27 23:31:19 2003 +0000
+++ b/lib/libc/sys/Makefile.inc Tue Jan 28 00:33:23 2003 +0000
@@ -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 @@
 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 -r 98255ba51d14 -r 049c33c7f93a lib/libposix/sys/Makefile.inc
--- a/lib/libposix/sys/Makefile.inc     Mon Jan 27 23:31:19 2003 +0000
+++ b/lib/libposix/sys/Makefile.inc     Tue Jan 28 00:33:23 2003 +0000
@@ -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 @@
 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}
 



Home | Main Index | Thread Index | Old Index