1# $NetBSD$ 2 3# Makefile fragment shared across several parts that want to look 4# inside libc's include tree. 5 6.if defined(LIBC_MACHINE_ARCH) && \ 7 exists(${NETBSDSRCDIR}/lib/libc/arch/${LIBC_MACHINE_ARCH}/SYS.h) 8ARCHSUBDIR= ${LIBC_MACHINE_ARCH} 9.elif exists(${NETBSDSRCDIR}/lib/libc/arch/${MACHINE_ARCH}/SYS.h) 10ARCHSUBDIR= ${MACHINE_ARCH} 11.elif exists(${NETBSDSRCDIR}/lib/libc/arch/${MACHINE_CPU}/SYS.h) 12ARCHSUBDIR= ${MACHINE_CPU} 13.else 14.BEGIN: 15 @echo no ARCHDIR for ${MACHINE_ARCH} nor ${MACHINE_CPU} 16 @false 17.endif 18 19ARCHDIR= ${NETBSDSRCDIR}/lib/libc/arch/${ARCHSUBDIR} 20