NetBSD/lib/libposix/sys/Makefile.inc

26 lines
765 B
PHP
Raw Normal View History

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
.PATH: ${.CURDIR}/sys
1997-05-19 00:14:21 +04:00
# stubs providing an entry "foo" but calling "__posix_foo()"
PSEUDO= chown.S fchown.S lchown.S rename.S
1997-05-19 00:14:21 +04:00
SRCS+= ${PSEUDO}
CLEANFILES+= ${PSEUDO}
1997-05-19 00:14:21 +04: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
# Lint stubs for all automatically-generated assembly stubs (GENERATED)
2002-01-29 22:03:01 +03:00
.if ${MKLINT} != "no"
LSRCS+= LintSysPseudo.c
DPSRCS+= LintSysPseudo.c
2002-01-29 22:03:01 +03:00
.endif
LintSysPseudo.c: ${.CURDIR}/../libc/sys/makelintstub \
${DESTDIR}/usr/include/sys/syscall.h
sh ${.CURDIR}/../libc/sys/makelintstub -o ${.TARGET} -p \
-s ${DESTDIR}/usr/include/sys/syscall.h ${PSEUDO}