1 # $NetBSD: Makefile,v 1.28 2010/11/28 18:40:56 skrll Exp $
5 CSU_MACHINE_ARCH?
= ${MACHINE_ARCH}
7 .if
${USE_COMPILERCRTSTUFF} != "yes"
9 ARCHDIR
:= ${.PARSEDIR
}/arch
/${CSU_MACHINE_ARCH}
11 .
include "${ARCHDIR}/Makefile.inc"
13 .
include "${.PARSEDIR}/common/Makefile.inc"
17 . if exists
(${CSU_MACHINE_ARCH}_elf
/Makefile
)
18 SUBDIR
= ${CSU_MACHINE_ARCH}_elf
19 . elif exists
(${CSU_MACHINE_ARCH}/Makefile
)
20 SUBDIR
= ${CSU_MACHINE_ARCH}
21 . elif exists
(${MACHINE_CPU}_elf
/Makefile
)
22 SUBDIR
= ${MACHINE_CPU}_elf
23 . elif exists
(${MACHINE_CPU}/Makefile
)
24 SUBDIR
= ${MACHINE_CPU}
27 @echo no SUBDIR for
${MACHINE_ARCH}_elf
, ${MACHINE_ARCH} nor \
32 .
include <bsd.subdir.mk
>