1 1.29 drochner # $NetBSD: Makefile,v 1.29 2011/01/31 17:54:20 drochner Exp $ 2 1.6 cgd 3 1.13 christos .include <bsd.own.mk> 4 1.13 christos 5 1.27 joerg CSU_MACHINE_ARCH?= ${MACHINE_ARCH} 6 1.27 joerg 7 1.28 skrll .if ${USE_COMPILERCRTSTUFF} != "yes" 8 1.28 skrll 9 1.29 drochner ARCHDIR:= ${.CURDIR}/arch/${CSU_MACHINE_ARCH} 10 1.27 joerg .PATH: ${ARCHDIR} 11 1.27 joerg . include "${ARCHDIR}/Makefile.inc" 12 1.27 joerg 13 1.29 drochner . include "${.CURDIR}/common/Makefile.inc" 14 1.28 skrll 15 1.27 joerg .else 16 1.27 joerg 17 1.27 joerg . if exists(${CSU_MACHINE_ARCH}_elf/Makefile) 18 1.25 mrg SUBDIR= ${CSU_MACHINE_ARCH}_elf 19 1.27 joerg . elif exists(${CSU_MACHINE_ARCH}/Makefile) 20 1.27 joerg SUBDIR= ${CSU_MACHINE_ARCH} 21 1.27 joerg . elif exists(${MACHINE_CPU}_elf/Makefile) 22 1.23 enami SUBDIR= ${MACHINE_CPU}_elf 23 1.27 joerg . elif exists(${MACHINE_CPU}/Makefile) 24 1.22 itojun SUBDIR= ${MACHINE_CPU} 25 1.27 joerg . else 26 1.22 itojun .BEGIN: 27 1.23 enami @echo no SUBDIR for ${MACHINE_ARCH}_elf, ${MACHINE_ARCH} nor \ 28 1.23 enami ${MACHINE_CPU} 29 1.22 itojun @false 30 1.27 joerg . endif 31 1.27 joerg 32 1.27 joerg . include <bsd.subdir.mk> 33 1.13 christos .endif 34