some coverity fixes.
[minix.git] / lib / csu / Makefile
blobd212be07e26a4babd42531dc142dbdec23f778b0
1 # $NetBSD: Makefile,v 1.28 2010/11/28 18:40:56 skrll Exp $
3 .include <bsd.own.mk>
5 CSU_MACHINE_ARCH?= ${MACHINE_ARCH}
7 .if ${USE_COMPILERCRTSTUFF} != "yes"
9 ARCHDIR:= ${.PARSEDIR}/arch/${CSU_MACHINE_ARCH}
10 .PATH: ${ARCHDIR}
11 . include "${ARCHDIR}/Makefile.inc"
13 . include "${.PARSEDIR}/common/Makefile.inc"
15 .else
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}
25 . else
26 .BEGIN:
27 @echo no SUBDIR for ${MACHINE_ARCH}_elf, ${MACHINE_ARCH} nor \
28 ${MACHINE_CPU}
29 @false
30 . endif
32 . include <bsd.subdir.mk>
33 .endif