2002-01-29 22:03:01 +03:00
|
|
|
# $NetBSD: Makefile.inc,v 1.13 2002/01/29 19:03:01 tv Exp $
|
1997-05-19 00:14:21 +04:00
|
|
|
|
|
|
|
# sys sources
|
1999-07-05 19:54:18 +04:00
|
|
|
.PATH: ${.CURDIR}/sys
|
1997-05-19 00:14:21 +04:00
|
|
|
|
1998-02-14 23:44:06 +03:00
|
|
|
# stubs providing an entry "foo" but calling "__posix_foo()"
|
2001-11-13 21:55:00 +03:00
|
|
|
PSEUDO= chown.S fchown.S lchown.S rename.S
|
1997-05-19 00:14:21 +04:00
|
|
|
|
2001-11-13 21:55:00 +03:00
|
|
|
SRCS+= ${PSEUDO}
|
|
|
|
CLEANFILES+= ${PSEUDO}
|
1997-05-19 00:14:21 +04:00
|
|
|
|
2001-11-13 21:55:00 +03:00
|
|
|
${PSEUDO}: ${ARCHDIR}/SYS.h ${DESTDIR}/usr/include/sys/syscall.h
|
|
|
|
@printf '#include "SYS.h"\nPSEUDO(${.PREFIX},${.PREFIX:S/^/__posix_/})\n' \
|
|
|
|
>${.TARGET}
|
1997-05-19 00:14:21 +04:00
|
|
|
|
1997-11-05 08:46:18 +03:00
|
|
|
# Lint stubs for all automatically-generated assembly stubs (GENERATED)
|
2002-01-29 22:03:01 +03:00
|
|
|
.if ${MKLINT} != "no"
|
2001-11-13 21:55:00 +03:00
|
|
|
LSRCS+= LintSysPseudo.c
|
|
|
|
DPSRCS+= LintSysPseudo.c
|
2002-01-29 22:03:01 +03:00
|
|
|
.endif
|
1997-11-05 08:46:18 +03:00
|
|
|
|
|
|
|
LintSysPseudo.c: ${.CURDIR}/../libc/sys/makelintstub \
|
|
|
|
${DESTDIR}/usr/include/sys/syscall.h
|
2001-11-13 21:55:00 +03:00
|
|
|
sh ${.CURDIR}/../libc/sys/makelintstub -o ${.TARGET} -p \
|
1997-11-05 08:46:18 +03:00
|
|
|
-s ${DESTDIR}/usr/include/sys/syscall.h ${PSEUDO}
|