1 # $NetBSD: libcincludes.mk,v 1.2 2014/08/10 23:39:08 matt Exp $
3 # Makefile fragment shared across several parts that want to look
4 # inside libc's include tree.
6 LIBC_MACHINE_ARCH?
= ${MACHINE_ARCH}
7 LIBC_MACHINE_CPU?
= ${MACHINE_CPU}
9 .if defined
(LIBC_MACHINE_ARCH
) && \
10 exists
(${NETBSDSRCDIR}/lib
/libc
/arch
/${LIBC_MACHINE_ARCH}/SYS.h
)
11 ARCHSUBDIR
= ${LIBC_MACHINE_ARCH}
12 .elif exists
(${NETBSDSRCDIR}/lib
/libc
/arch
/${LIBC_MACHINE_CPU}/SYS.h
)
13 ARCHSUBDIR
= ${LIBC_MACHINE_CPU}
16 @echo no ARCHDIR for
${LIBC_MACHINE_ARCH} nor
${LIBC_MACHINE_CPU}
20 ARCHDIR
= ${NETBSDSRCDIR}/lib
/libc
/arch
/${ARCHSUBDIR}