3 # Makefile fragment shared across several parts that want to look
4 # inside libc's include tree.
6 .if defined
(LIBC_MACHINE_ARCH
) && \
7 exists
(${NETBSDSRCDIR}/lib
/libc
/arch
/${LIBC_MACHINE_ARCH}/SYS.h
)
8 ARCHSUBDIR
= ${LIBC_MACHINE_ARCH}
9 .elif exists
(${NETBSDSRCDIR}/lib
/libc
/arch
/${MACHINE_ARCH}/SYS.h
)
10 ARCHSUBDIR
= ${MACHINE_ARCH}
11 .elif exists
(${NETBSDSRCDIR}/lib
/libc
/arch
/${MACHINE_CPU}/SYS.h
)
12 ARCHSUBDIR
= ${MACHINE_CPU}
15 @echo no ARCHDIR for
${MACHINE_ARCH} nor
${MACHINE_CPU}
19 ARCHDIR
= ${NETBSDSRCDIR}/lib
/libc
/arch
/${ARCHSUBDIR}