1 1.29.4.1 yamt # $NetBSD: Makefile,v 1.29.4.1 2012/10/30 18:58:34 yamt Exp $ 2 1.6 cgd 3 1.13 christos .include <bsd.own.mk> 4 1.13 christos 5 1.28 skrll .if ${USE_COMPILERCRTSTUFF} != "yes" 6 1.28 skrll 7 1.29.4.1 yamt .if defined(CSU_MACHINE_ARCH) 8 1.29.4.1 yamt . if !exists(${.CURDIR}/arch/${CSU_MACHINE_ARCH}/Makefile.inc) 9 1.29.4.1 yamt . error CSU_MACHINE_ARCH (${CSU_MACHINE_ARCH}) is unsupported 10 1.29.4.1 yamt . endif 11 1.29.4.1 yamt .elif exists(${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc) 12 1.29.4.1 yamt CSU_MACHINE_ARCH= ${MACHINE_ARCH} 13 1.29.4.1 yamt .elif exists(${.CURDIR}/arch/${MACHINE_CPU}/Makefile.inc) 14 1.29.4.1 yamt CSU_MACHINE_ARCH= ${MACHINE_CPU} 15 1.29.4.1 yamt .else 16 1.29.4.1 yamt .error Architecture (${MACHINE_ARCH} or ${MACHINE_CPU}) unsupported 17 1.29.4.1 yamt .endif 18 1.29.4.1 yamt 19 1.29 drochner ARCHDIR:= ${.CURDIR}/arch/${CSU_MACHINE_ARCH} 20 1.29.4.1 yamt 21 1.27 joerg .PATH: ${ARCHDIR} 22 1.27 joerg . include "${ARCHDIR}/Makefile.inc" 23 1.27 joerg 24 1.29 drochner . include "${.CURDIR}/common/Makefile.inc" 25 1.28 skrll 26 1.27 joerg .else 27 1.27 joerg 28 1.29.4.1 yamt CSU_MACHINE_ARCH?= ${MACHINE_ARCH} 29 1.29.4.1 yamt 30 1.27 joerg . if exists(${CSU_MACHINE_ARCH}_elf/Makefile) 31 1.25 mrg SUBDIR= ${CSU_MACHINE_ARCH}_elf 32 1.27 joerg . elif exists(${CSU_MACHINE_ARCH}/Makefile) 33 1.27 joerg SUBDIR= ${CSU_MACHINE_ARCH} 34 1.27 joerg . elif exists(${MACHINE_CPU}_elf/Makefile) 35 1.23 enami SUBDIR= ${MACHINE_CPU}_elf 36 1.27 joerg . elif exists(${MACHINE_CPU}/Makefile) 37 1.22 itojun SUBDIR= ${MACHINE_CPU} 38 1.27 joerg . else 39 1.22 itojun .BEGIN: 40 1.23 enami @echo no SUBDIR for ${MACHINE_ARCH}_elf, ${MACHINE_ARCH} nor \ 41 1.23 enami ${MACHINE_CPU} 42 1.22 itojun @false 43 1.27 joerg . endif 44 1.27 joerg 45 1.27 joerg . include <bsd.subdir.mk> 46 1.13 christos .endif 47