1998-02-14 23:44:06 +03:00
|
|
|
# $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
|
|
|
|
|
1998-02-14 23:44:06 +03:00
|
|
|
# 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 \
|
1997-06-01 01:21:13 +04:00
|
|
|
${DESTDIR}/usr/include/sys/syscall.h
|
1997-05-19 00:14:21 +04:00
|
|
|
@echo creating ${.TARGET}
|
|
|
|
@printf '#include "SYS.h"\n \
|
1998-02-14 23:44:06 +03:00
|
|
|
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 \
|
1997-06-01 01:21:13 +04:00
|
|
|
${DESTDIR}/usr/include/sys/syscall.h
|
1997-05-19 00:14:21 +04:00
|
|
|
@echo creating ${.TARGET}
|
|
|
|
@printf '#include "SYS.h"\n \
|
1998-02-14 23:44:06 +03:00
|
|
|
PSEUDO(${.PREFIX},${.PREFIX:S/^/__posix_/})\n' | \
|
1997-10-23 06:53:50 +04:00
|
|
|
${CPP} ${CPPPICFLAGS} ${CPPFLAGS:M-[ID]*} ${AINC} | \
|
1997-05-24 07:29:22 +04:00
|
|
|
${AS} ${APICFLAGS} -o ${.TARGET}
|
1997-05-19 00:14:21 +04:00
|
|
|
|
|
|
|
${PSEUDO}: ${.CURDIR}/../libc/arch/${MACHINE_ARCH}/SYS.h \
|
1997-06-01 01:21:13 +04:00
|
|
|
${DESTDIR}/usr/include/sys/syscall.h
|
1997-05-19 00:14:21 +04:00
|
|
|
@echo creating ${.TARGET}
|
|
|
|
@printf '#include "SYS.h"\n \
|
1998-02-14 23:44:06 +03:00
|
|
|
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
|
|
|
|
|
1997-11-05 08:46:18 +03:00
|
|
|
# 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}
|
1997-11-07 01:34:01 +03:00
|
|
|
@sh ${.CURDIR}/../libc/sys/makelintstub -o ${.TARGET} \
|
1997-11-05 08:46:18 +03:00
|
|
|
-s ${DESTDIR}/usr/include/sys/syscall.h ${ASM}
|
|
|
|
|
|
|
|
LintSysNoerr.c: ${.CURDIR}/../libc/sys/makelintstub \
|
|
|
|
${DESTDIR}/usr/include/sys/syscall.h
|
|
|
|
@echo creating ${.TARGET}
|
1997-11-07 01:34:01 +03:00
|
|
|
@sh ${.CURDIR}/../libc/sys/makelintstub -o ${.TARGET} -n \
|
1997-11-05 08:46:18 +03:00
|
|
|
-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}
|
1997-11-07 01:34:01 +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}
|