Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/sys Build system call stubs using system includes f...
details: https://anonhg.NetBSD.org/src/rev/876f59028fdd
branches: trunk
changeset: 474371:876f59028fdd
user: sommerfeld <sommerfeld%NetBSD.org@localhost>
date: Sun Jul 04 15:46:10 1999 +0000
description:
Build system call stubs using system includes from ${DESTDIR}/usr/include
if DESTDIR is set.
This allows you to build a working libc which include syscall stubs
for new syscalls not defined in /usr/include/sys/syscall.h
diffstat:
lib/libc/sys/Makefile.inc | 26 ++++++++++++++++----------
1 files changed, 16 insertions(+), 10 deletions(-)
diffs (100 lines):
diff -r 61658818cb99 -r 876f59028fdd lib/libc/sys/Makefile.inc
--- a/lib/libc/sys/Makefile.inc Sun Jul 04 15:24:35 1999 +0000
+++ b/lib/libc/sys/Makefile.inc Sun Jul 04 15:46:10 1999 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.inc,v 1.94 1999/06/30 01:32:14 wrstuden Exp $
+# $NetBSD: Makefile.inc,v 1.95 1999/07/04 15:46:10 sommerfeld Exp $
# @(#)Makefile.inc 8.3 (Berkeley) 10/24/94
# sys sources
@@ -72,13 +72,19 @@
PPSEUDONOERR= ${PSEUDONOERR:.o=.po}
SPSEUDONOERR= ${PSEUDONOERR:.o=.so}
+ACPPFLAGS=${CPPFLAGS:M-[ID]*}
+.if defined(DESTDIR)
+ACPPFLAGS+= -nostdinc -idirafter ${DESTDIR}/usr/include
+.endif
+
OBJS+= ${ASM} ${NOERR} ${PSEUDONOERR}
${PASM}: ${ARCHDIR}/SYS.h \
${DESTDIR}/usr/include/sys/syscall.h
@echo creating ${.TARGET}
@printf '#include "SYS.h"\nRSYSCALL(${.PREFIX})\n' | \
- ${CPP} -DPROF ${CPPFLAGS:M-[ID]*} ${AINC} | ${AS} -o ${.TARGET}.o
+ ${CPP} -DPROF ${ACPPFLAGS} ${AINC} | \
+ ${AS} -o ${.TARGET}.o
@${LD} -X -r ${.TARGET}.o -o ${.TARGET}
@rm -f ${.TARGET}.o
@@ -86,14 +92,14 @@
${DESTDIR}/usr/include/sys/syscall.h
@echo creating ${.TARGET}
@printf '#include "SYS.h"\nRSYSCALL(${.PREFIX})\n' | \
- ${CPP} ${CPPPICFLAGS} ${CPPFLAGS:M-[ID]*} ${AINC} | \
+ ${CPP} ${CPPPICFLAGS} ${ACPPFLAGS} ${AINC} | \
${AS} ${APICFLAGS} -o ${.TARGET}
${ASM}: ${ARCHDIR}/SYS.h \
${DESTDIR}/usr/include/sys/syscall.h
@echo creating ${.TARGET}
@printf '#include "SYS.h"\nRSYSCALL(${.PREFIX})\n' | \
- ${CPP} ${CPPFLAGS:M-[ID]*} ${AINC} | ${AS} -o ${.TARGET}.o
+ ${CPP} ${ACPPFLAGS} ${AINC} | ${AS} -o ${.TARGET}.o
@${LD} -x -r ${.TARGET}.o -o ${.TARGET}
@rm -f ${.TARGET}.o
@@ -101,7 +107,7 @@
${DESTDIR}/usr/include/sys/syscall.h
@echo creating ${.TARGET}
@printf '#include "SYS.h"\nRSYSCALL_NOERROR(${.PREFIX})\n' | \
- ${CPP} -DPROF ${CPPFLAGS:M-[ID]*} ${AINC} | ${AS} -o ${.TARGET}.o
+ ${CPP} -DPROF ${ACPPFLAGS} ${AINC} | ${AS} -o ${.TARGET}.o
@${LD} -X -r ${.TARGET}.o -o ${.TARGET}
@rm -f ${.TARGET}.o
@@ -109,14 +115,14 @@
${DESTDIR}/usr/include/sys/syscall.h
@echo creating ${.TARGET}
@printf '#include "SYS.h"\nRSYSCALL_NOERROR(${.PREFIX})\n' | \
- ${CPP} ${CPPPICFLAGS} ${CPPFLAGS:M-[ID]*} ${AINC} | \
+ ${CPP} ${CPPPICFLAGS} ${ACPPFLAGS} ${AINC} | \
${AS} ${APICFLAGS} -o ${.TARGET}
${NOERR}: ${ARCHDIR}/SYS.h \
${DESTDIR}/usr/include/sys/syscall.h
@echo creating ${.TARGET}
@printf '#include "SYS.h"\nRSYSCALL_NOERROR(${.PREFIX})\n' | \
- ${CPP} ${CPPFLAGS:M-[ID]*} ${AINC} | ${AS} -o ${.TARGET}.o
+ ${CPP} ${ACPPFLAGS} ${AINC} | ${AS} -o ${.TARGET}.o
@${LD} -x -r ${.TARGET}.o -o ${.TARGET}
@rm -f ${.TARGET}.o
@@ -125,7 +131,7 @@
@echo creating ${.TARGET}
@printf '#include "SYS.h"\n \
PSEUDO_NOERROR(${.PREFIX},${.PREFIX:S/_//})\n' | \
- ${CPP} -DPROF ${CPPFLAGS:M-[ID]*} ${AINC} | ${AS} -o ${.TARGET}.o
+ ${CPP} -DPROF ${ACPPFLAGS} ${AINC} | ${AS} -o ${.TARGET}.o
@${LD} -X -r ${.TARGET}.o -o ${.TARGET}
@rm -f ${.TARGET}.o
@@ -134,7 +140,7 @@
@echo creating ${.TARGET}
@printf '#include "SYS.h"\n \
PSEUDO_NOERROR(${.PREFIX},${.PREFIX:S/_//})\n' | \
- ${CPP} ${CPPPICFLAGS} ${CPPFLAGS:M-[ID]*} ${AINC} | \
+ ${CPP} ${CPPPICFLAGS} ${ACPPFLAGS} ${AINC} | \
${AS} ${APICFLAGS} -o ${.TARGET}
@@ -143,7 +149,7 @@
@echo creating ${.TARGET}
@printf '#include "SYS.h"\n \
PSEUDO_NOERROR(${.PREFIX},${.PREFIX:S/_//})\n' | \
- ${CPP} ${CPPFLAGS:M-[ID]*} ${AINC} | ${AS} -o ${.TARGET}.o
+ ${CPP} ${ACPPFLAGS} ${AINC} | ${AS} -o ${.TARGET}.o
@${LD} -X -r ${.TARGET}.o -o ${.TARGET}
@rm -f ${.TARGET}.o
Home |
Main Index |
Thread Index |
Old Index