Expand PMF_FN_* macros.
[netbsd-mini2440.git] / lib / libposix / sys / Makefile.inc
blob3b2ca31af078d7109bb19d4f31b4731da3c797ea
1 #       $NetBSD: Makefile.inc,v 1.18 2003/08/01 17:03:59 lukem Exp $
3 # sys sources
4 .PATH: ${.CURDIR}/sys
6 # stubs providing an entry "foo" but calling "__posix_foo()"
7 PSEUDO=         chown.S fchown.S lchown.S rename.S
9 SRCS+=          ${PSEUDO}
10 CLEANFILES+=    ${PSEUDO}
12 ASMDEPS=        ${.CURDIR}/sys/Makefile.inc ${ARCHDIR}/SYS.h \
13                 ${DESTDIR}/usr/include/sys/syscall.h
15 ${PSEUDO}: ${ASMDEPS}
16         ${_MKTARGET_CREATE}
17         printf '#include "SYS.h"\nPSEUDO(${.PREFIX},${.PREFIX:S/^/__posix_/})\n' \
18                 >${.TARGET}
20 # Lint stubs for all automatically-generated assembly stubs (GENERATED)
21 .if ${MKLINT} != "no"
22 LSRCS+=         LintSysPseudo.c
23 DPSRCS+=        LintSysPseudo.c
24 CLEANFILES+=    LintSysPseudo.c
25 .endif
27 LintSysPseudo.c: ${NETBSDSRCDIR}/lib/libc/sys/makelintstub \
28     ${DESTDIR}/usr/include/sys/syscall.h
29         ${_MKTARGET_CREATE}
30         CPP=${CPP:Q} ${HOST_SH} ${NETBSDSRCDIR}/lib/libc/sys/makelintstub \
31             -o ${.TARGET} -p -s ${DESTDIR}/usr/include/sys/syscall.h ${PSEUDO}