Makefile.inc revision 1.14
1# $NetBSD: Makefile.inc,v 1.14 2002/08/19 09:41:33 lukem Exp $ 2 3# sys sources 4.PATH: ${.CURDIR}/sys 5 6# stubs providing an entry "foo" but calling "__posix_foo()" 7PSEUDO= chown.S fchown.S lchown.S rename.S 8 9SRCS+= ${PSEUDO} 10CLEANFILES+= ${PSEUDO} 11 12${PSEUDO}: ${ARCHDIR}/SYS.h ${DESTDIR}/usr/include/sys/syscall.h 13 @printf '#include "SYS.h"\nPSEUDO(${.PREFIX},${.PREFIX:S/^/__posix_/})\n' \ 14 >${.TARGET} 15 16# Lint stubs for all automatically-generated assembly stubs (GENERATED) 17.if ${MKLINT} != "no" 18LSRCS+= LintSysPseudo.c 19DPSRCS+= LintSysPseudo.c 20.endif 21 22LintSysPseudo.c: ${NETBSDSRCDIR}/lib/libc/sys/makelintstub \ 23 ${DESTDIR}/usr/include/sys/syscall.h 24 sh ${NETBSDSRCDIR}/lib/libc/sys/makelintstub -o ${.TARGET} -p \ 25 -s ${DESTDIR}/usr/include/sys/syscall.h ${PSEUDO} 26