NetBSD/lib/libposix/sys/Makefile.inc

32 lines
924 B
PHP
Raw Normal View History

2004-02-09 01:52:41 +03:00
# $NetBSD: Makefile.inc,v 1.19 2004/02/08 22:55:27 lukem 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
ASMDEPS= ${.CURDIR}/sys/Makefile.inc ${ARCHDIR}/SYS.h \
${DESTDIR}/usr/include/sys/syscall.h
${PSEUDO}: ${ASMDEPS}
2004-02-09 01:52:41 +03:00
${_MKTARGET_CREATE}
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
CLEANFILES+= LintSysPseudo.c
2002-01-29 22:03:01 +03:00
.endif
LintSysPseudo.c: ${NETBSDSRCDIR}/lib/libc/sys/makelintstub \
${DESTDIR}/usr/include/sys/syscall.h
2004-02-09 01:52:41 +03:00
${_MKTARGET_CREATE}
2003-05-08 17:23:14 +04:00
CPP=${CPP:Q} ${HOST_SH} ${NETBSDSRCDIR}/lib/libc/sys/makelintstub \
-o ${.TARGET} -p -s ${DESTDIR}/usr/include/sys/syscall.h ${PSEUDO}