1 # $NetBSD: Makefile,v 1.33 2013/09/10 16:45:33 matt Exp $
7 .
endif # defined(__MINIX)
9 .if
${USE_COMPILERCRTSTUFF} != "yes"
11 CSU_MACHINE_ARCH?
= ${MACHINE_ARCH}
13 .if
!empty
(CSU_MACHINE_ARCH
:Mearm
*)
14 ARCHDIR
:= ${.CURDIR
}/arch
/earm
15 .elif exists
(${.CURDIR
}/arch
/${CSU_MACHINE_ARCH}/Makefile.inc
)
16 ARCHDIR
:= ${.CURDIR
}/arch
/${CSU_MACHINE_ARCH}
17 .elif exists
(${.CURDIR
}/arch
/${MACHINE_CPU}/Makefile.inc
)
18 ARCHDIR
:= ${.CURDIR
}/arch
/${MACHINE_CPU}
20 .error Architecture
(${CSU_MACHINE_ARCH} or
${MACHINE_CPU}) unsupported
25 .
include "${ARCHDIR}/Makefile.inc"
27 .
include "${.CURDIR}/common/Makefile.inc"
31 CSU_MACHINE_ARCH?
= ${MACHINE_ARCH}
33 . if exists
(${CSU_MACHINE_ARCH}_elf
/Makefile
)
34 SUBDIR
= ${CSU_MACHINE_ARCH}_elf
35 . elif exists
(${CSU_MACHINE_ARCH}/Makefile
)
36 SUBDIR
= ${CSU_MACHINE_ARCH}
37 . elif exists
(${MACHINE_CPU}_elf
/Makefile
)
38 SUBDIR
= ${MACHINE_CPU}_elf
39 . elif exists
(${MACHINE_CPU}/Makefile
)
40 SUBDIR
= ${MACHINE_CPU}
43 @echo no SUBDIR for
${MACHINE_ARCH}_elf
, ${MACHINE_ARCH} nor \
48 .
include <bsd.subdir.mk
>