Sync usage with man page.
[netbsd-mini2440.git] / lib / libc / libcincludes.mk
blob027934ce5738dc2350b046109cfb6590383767c7
1 # $NetBSD$
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}
13 .else
14 .BEGIN:
15 @echo no ARCHDIR for ${MACHINE_ARCH} nor ${MACHINE_CPU}
16 @false
17 .endif
19 ARCHDIR= ${NETBSDSRCDIR}/lib/libc/arch/${ARCHSUBDIR}