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
|
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
|
|
|
|
2003-01-28 03:33:23 +03: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' \
|
2001-11-13 21:55:00 +03:00
|
|
|
>${.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
|
2003-08-01 21:03:41 +04:00
|
|
|
CLEANFILES+= LintSysPseudo.c
|
2002-01-29 22:03:01 +03:00
|
|
|
.endif
|
1997-11-05 08:46:18 +03:00
|
|
|
|
2002-08-19 13:41:27 +04:00
|
|
|
LintSysPseudo.c: ${NETBSDSRCDIR}/lib/libc/sys/makelintstub \
|
1997-11-05 08:46:18 +03:00
|
|
|
${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 \
|
2002-09-15 01:16:43 +04:00
|
|
|
-o ${.TARGET} -p -s ${DESTDIR}/usr/include/sys/syscall.h ${PSEUDO}
|