summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorcgd <cgd@NetBSD.org>1996-12-22 11:37:37 +0000
committercgd <cgd@NetBSD.org>1996-12-22 11:37:37 +0000
commit132d3e56e8be72e4aa9eef8a1c74ef00c151a18a (patch)
tree0b289a42b2cc5ba4d505479e380b3a3547b1cdc4 /lib/libc
parent2a7f3ba91e5b9ee39068b13774d84878351bafd4 (diff)
add LASM, LNOERR, and LPSEUDO variables, analogous to e.g. PASM, PNOERR, and
PPSEUDO but for .ln files rather than .po files. Add the new variables to LOBJS, as well. The rules to build those objects them call a helper script (sys/makelintstub) and pipe the result to lint. Unfortunately, dependency handling for these built .ln files is a bit sub-optimal right now, but that can be fixed later.
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/sys/Makefile.inc17
1 files changed, 16 insertions, 1 deletions
diff --git a/lib/libc/sys/Makefile.inc b/lib/libc/sys/Makefile.inc
index fba0d2b9b3c..f15b05e5168 100644
--- a/lib/libc/sys/Makefile.inc
+++ b/lib/libc/sys/Makefile.inc
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.inc,v 1.46 1996/11/19 02:48:26 jtc Exp $
+# $NetBSD: Makefile.inc,v 1.47 1996/12/22 11:37:37 cgd Exp $
# @(#)Makefile.inc 8.1 (Berkeley) 6/17/93
# sys sources
@@ -44,16 +44,20 @@ ASM= accept.o access.o acct.o adjtime.o bind.o chdir.o chflags.o chmod.o \
PASM= ${ASM:.o=.po}
SASM= ${ASM:.o=.so}
+LASM= ${ASM:.o=.ln}
NOERR= getegid.o geteuid.o getgid.o getpid.o getppid.o getuid.o sync.o
PNOERR= ${NOERR:.o=.po}
SNOERR= ${NOERR:.o=.so}
+LNOERR= ${NOERR:.o=.ln}
PSEUDO= _exit.o
PPSEUDO=${PSEUDO:.o=.po}
SPSEUDO=${PSEUDO:.o=.so}
+LPSEUDO=${PSEUDO:.o=.ln}
OBJS+= ${ASM} ${NOERR} ${PSEUDO}
+LOBJS+= ${LASM} ${LNOERR} ${LPSEUDO}
${PASM}: ${.CURDIR}/arch/${MACHINE_ARCH}/SYS.h /usr/include/sys/syscall.h
@echo creating ${.TARGET}
@@ -81,6 +85,12 @@ ${ASM}: ${.CURDIR}/arch/${MACHINE_ARCH}/SYS.h /usr/include/sys/syscall.h
@${LD} -x -r ${.TARGET}.o -o ${.TARGET}
@rm -f ${.TARGET}.o
+${LASM} ${LNOERR}: /usr/include/sys/syscall.h \
+ ${.CURDIR}/sys/makelintstub
+ @echo creating ${.TARGET}
+ @${.CURDIR}/sys/makelintstub ${.PREFIX} | \
+ ${LINT} -z ${LINTFLAGS} ${CFLAGS:M-[IDU]*} -i -o ${.TARGET} -
+
${PNOERR}: ${.CURDIR}/arch/${MACHINE_ARCH}/SYS.h /usr/include/sys/syscall.h
@echo creating ${.TARGET}
@printf '#include "SYS.h"\nRSYSCALL_NOERROR(${.PREFIX})\n' | \
@@ -133,6 +143,11 @@ ${PSEUDO}: ${.CURDIR}/arch/${MACHINE_ARCH}/SYS.h /usr/include/sys/syscall.h
@${LD} -X -r ${.TARGET}.o -o ${.TARGET}
@rm -f ${.TARGET}.o
+${LPSEUDO}: /usr/include/sys/syscall.h ${.CURDIR}/sys/makelintstub
+ @echo creating ${.TARGET}
+ @${.CURDIR}/sys/makelintstub ${.PREFIX:S/_//} ${.PREFIX} | \
+ ${LINT} -z ${LINTFLAGS} ${CFLAGS:M-[IDU]*} -i -o ${.TARGET} -
+
MAN+= accept.2 access.2 acct.2 adjtime.2 bind.2 brk.2 chdir.2 chflags.2 \
chmod.2 chown.2 chroot.2 close.2 connect.2 dup.2 execve.2 _exit.2 \
fcntl.2 flock.2 fork.2 fsync.2 getdirentries.2 getfh.2 getfsstat.2 \