NetBSD/lib/libposix/sys/Makefile.inc

62 lines
2.2 KiB
PHP
Raw Normal View History

# $NetBSD: Makefile.inc,v 1.8 1998/02/14 20:44:06 kleink Exp $
1997-05-19 00:14:21 +04:00
# sys sources
.PATH: ${.CURDIR}/../libc/arch/${MACHINE_ARCH}/sys ${.CURDIR}/sys
# stubs providing an entry "foo" but calling "__posix_foo()"
PSEUDO= chown.o fchown.o lchown.o rename.o
1997-05-19 00:14:21 +04:00
PPSEUDO=${PSEUDO:.o=.po}
SPSEUDO=${PSEUDO:.o=.so}
OBJS+= ${PSEUDO}
${PPSEUDO}: ${.CURDIR}/../libc/arch/${MACHINE_ARCH}/SYS.h \
${DESTDIR}/usr/include/sys/syscall.h
1997-05-19 00:14:21 +04:00
@echo creating ${.TARGET}
@printf '#include "SYS.h"\n \
PSEUDO(${.PREFIX},${.PREFIX:S/^/__posix_/})\n' | \
1997-10-23 06:53:50 +04:00
${CPP} -DPROF ${CPPFLAGS:M-[ID]*} ${AINC} | ${AS} -o ${.TARGET}.o
1997-05-19 00:14:21 +04:00
@${LD} -X -r ${.TARGET}.o -o ${.TARGET}
@rm -f ${.TARGET}.o
${SPSEUDO}: ${.CURDIR}/../libc/arch/${MACHINE_ARCH}/SYS.h \
${DESTDIR}/usr/include/sys/syscall.h
1997-05-19 00:14:21 +04:00
@echo creating ${.TARGET}
@printf '#include "SYS.h"\n \
PSEUDO(${.PREFIX},${.PREFIX:S/^/__posix_/})\n' | \
1997-10-23 06:53:50 +04:00
${CPP} ${CPPPICFLAGS} ${CPPFLAGS:M-[ID]*} ${AINC} | \
${AS} ${APICFLAGS} -o ${.TARGET}
1997-05-19 00:14:21 +04:00
${PSEUDO}: ${.CURDIR}/../libc/arch/${MACHINE_ARCH}/SYS.h \
${DESTDIR}/usr/include/sys/syscall.h
1997-05-19 00:14:21 +04:00
@echo creating ${.TARGET}
@printf '#include "SYS.h"\n \
PSEUDO(${.PREFIX},${.PREFIX:S/^/__posix_/})\n' | \
1997-10-23 06:53:50 +04:00
${CPP} ${CPPFLAGS:M-[ID]*} ${AINC} | ${AS} -o ${.TARGET}.o
1997-05-19 00:14:21 +04:00
@${LD} -X -r ${.TARGET}.o -o ${.TARGET}
@rm -f ${.TARGET}.o
# Lint stubs for all automatically-generated assembly stubs (GENERATED)
LSRCS+= LintSysNormal.c LintSysNoerr.c LintSysPseudo.c
DPSRCS+= LintSysNormal.c LintSysNoerr.c LintSysPseudo.c
CLEANFILES+= LintSysNormal.c LintSysNoerr.c LintSysPseudo.c
LintSysNormal.c: ${.CURDIR}/../libc/sys/makelintstub \
${DESTDIR}/usr/include/sys/syscall.h
@echo creating ${.TARGET}
@sh ${.CURDIR}/../libc/sys/makelintstub -o ${.TARGET} \
-s ${DESTDIR}/usr/include/sys/syscall.h ${ASM}
LintSysNoerr.c: ${.CURDIR}/../libc/sys/makelintstub \
${DESTDIR}/usr/include/sys/syscall.h
@echo creating ${.TARGET}
@sh ${.CURDIR}/../libc/sys/makelintstub -o ${.TARGET} -n \
-s ${DESTDIR}/usr/include/sys/syscall.h ${NOERR}
LintSysPseudo.c: ${.CURDIR}/../libc/sys/makelintstub \
${DESTDIR}/usr/include/sys/syscall.h
1997-05-19 00:14:21 +04:00
@echo creating ${.TARGET}
@sh ${.CURDIR}/../libc/sys/makelintstub -o ${.TARGET} -p \
-s ${DESTDIR}/usr/include/sys/syscall.h ${PSEUDO}