1 1.35 matt # $NetBSD: Makefile,v 1.35 2014/08/10 23:25:49 matt Exp $ 2 1.6 cgd 3 1.13 christos .include <bsd.own.mk> 4 1.13 christos 5 1.33 matt CSU_MACHINE_ARCH?= ${MACHINE_ARCH} 6 1.35 matt CSU_MACHINE_CPU?= ${MACHINE_CPU} 7 1.33 matt 8 1.33 matt .if !empty(CSU_MACHINE_ARCH:Mearm*) 9 1.33 matt ARCHDIR:= ${.CURDIR}/arch/earm 10 1.33 matt .elif exists(${.CURDIR}/arch/${CSU_MACHINE_ARCH}/Makefile.inc) 11 1.33 matt ARCHDIR:= ${.CURDIR}/arch/${CSU_MACHINE_ARCH} 12 1.35 matt .elif exists(${.CURDIR}/arch/${CSU_MACHINE_CPU}/Makefile.inc) 13 1.35 matt ARCHDIR:= ${.CURDIR}/arch/${CSU_MACHINE_CPU} 14 1.30 joerg .else 15 1.35 matt .error Architecture (${CSU_MACHINE_ARCH} or ${CSU_MACHINE_CPU}) unsupported 16 1.30 joerg .endif 17 1.28 skrll 18 1.31 joerg 19 1.27 joerg .PATH: ${ARCHDIR} 20 1.34 joerg .include "${ARCHDIR}/Makefile.inc" 21 1.34 joerg .include "${.CURDIR}/common/Makefile.inc" 22