2011-02-14 20:36:03 +01:00
|
|
|
# $NetBSD: libcincludes.mk,v 1.1 2008/10/26 07:28:06 mrg Exp $
|
|
|
|
|
|
|
|
# Makefile fragment shared across several parts that want to look
|
|
|
|
# inside libc's include tree.
|
|
|
|
|
2011-02-15 17:31:16 +01:00
|
|
|
.if defined(__MINIX)
|
2011-02-22 10:22:26 +01:00
|
|
|
MACHINE_ARCH= ${MACHINE}
|
|
|
|
MACHINE_CPU= ${MACHINE}
|
2011-02-14 20:36:03 +01:00
|
|
|
.if defined(LIBC_MACHINE_ARCH) && \
|
2011-02-15 13:19:40 +01:00
|
|
|
exists(${MINIXSRCDIR}/lib/nbsd_libc/arch/${LIBC_MACHINE_ARCH}/SYS.h)
|
2011-02-14 20:36:03 +01:00
|
|
|
ARCHSUBDIR= ${LIBC_MACHINE_ARCH}
|
2011-02-15 13:19:40 +01:00
|
|
|
.elif exists(${MINIXSRCDIR}/lib/nbsd_libc/arch/${MACHINE_ARCH}/SYS.h)
|
2011-02-14 20:36:03 +01:00
|
|
|
ARCHSUBDIR= ${MACHINE_ARCH}
|
2011-02-15 13:19:40 +01:00
|
|
|
.elif exists(${MINIXSRCDIR}/lib/nbsd_libc/arch/${MACHINE_CPU}/SYS.h)
|
2011-02-14 20:36:03 +01:00
|
|
|
ARCHSUBDIR= ${MACHINE_CPU}
|
|
|
|
.else
|
|
|
|
.BEGIN:
|
|
|
|
@echo no ARCHDIR for ${MACHINE_ARCH} nor ${MACHINE_CPU}
|
|
|
|
@false
|
|
|
|
.endif
|
|
|
|
|
2011-02-15 13:19:40 +01:00
|
|
|
ARCHDIR= ${MINIXSRCCDIR}/lib/nbsd_libc/arch/${ARCHSUBDIR}
|
2011-02-15 17:31:16 +01:00
|
|
|
.else
|
|
|
|
.if defined(LIBC_MACHINE_ARCH) && \
|
|
|
|
exists(${NETBSDSRCDIR}/lib/libc/arch/${LIBC_MACHINE_ARCH}/SYS.h)
|
|
|
|
ARCHSUBDIR= ${LIBC_MACHINE_ARCH}
|
|
|
|
.elif exists(${NETBSDSRCDIR}/lib/libc/arch/${MACHINE_ARCH}/SYS.h)
|
|
|
|
ARCHSUBDIR= ${MACHINE_ARCH}
|
|
|
|
.elif exists(${NETBSDSRCDIR}/lib/libc/arch/${MACHINE_CPU}/SYS.h)
|
|
|
|
ARCHSUBDIR= ${MACHINE_CPU}
|
|
|
|
.else
|
|
|
|
.BEGIN:
|
|
|
|
@echo no ARCHDIR for ${MACHINE_ARCH} nor ${MACHINE_CPU}
|
|
|
|
@false
|
|
|
|
.endif
|
|
|
|
|
|
|
|
ARCHDIR= ${NETBSDSRCDIR}/lib/libc/arch/${ARCHSUBDIR}
|
|
|
|
.endif
|