1 # $NetBSD: Makefile.inc,v 1.18 2003/08/01 17:03:59 lukem Exp $
6 # stubs providing an entry "foo" but calling "__posix_foo()"
7 PSEUDO= chown.S fchown.S lchown.S rename.S
10 CLEANFILES+= ${PSEUDO}
12 ASMDEPS= ${.CURDIR}/sys/Makefile.inc ${ARCHDIR}/SYS.h \
13 ${DESTDIR}/usr/include/sys/syscall.h
17 printf '#include "SYS.h"\nPSEUDO(${.PREFIX},${.PREFIX:S/^/__posix_/})\n' \
20 # Lint stubs for all automatically-generated assembly stubs (GENERATED)
22 LSRCS+= LintSysPseudo.c
23 DPSRCS+= LintSysPseudo.c
24 CLEANFILES+= LintSysPseudo.c
27 LintSysPseudo.c: ${NETBSDSRCDIR}/lib/libc/sys/makelintstub \
28 ${DESTDIR}/usr/include/sys/syscall.h
30 CPP=${CPP:Q} ${HOST_SH} ${NETBSDSRCDIR}/lib/libc/sys/makelintstub \
31 -o ${.TARGET} -p -s ${DESTDIR}/usr/include/sys/syscall.h ${PSEUDO}