2012-03-31 00:35:32 +02:00
|
|
|
# $NetBSD: Makefile,v 1.28 2010/11/28 18:40:56 skrll Exp $
|
|
|
|
|
2010-06-25 20:29:09 +02:00
|
|
|
.include <bsd.own.mk>
|
2010-02-16 15:41:33 +01:00
|
|
|
|
2012-03-31 00:35:32 +02:00
|
|
|
CSU_MACHINE_ARCH?= ${MACHINE_ARCH}
|
|
|
|
|
|
|
|
.if ${USE_COMPILERCRTSTUFF} != "yes"
|
|
|
|
|
|
|
|
ARCHDIR:= ${.PARSEDIR}/arch/${CSU_MACHINE_ARCH}
|
|
|
|
.PATH: ${ARCHDIR}
|
|
|
|
. include "${ARCHDIR}/Makefile.inc"
|
|
|
|
|
|
|
|
. include "${.PARSEDIR}/common/Makefile.inc"
|
|
|
|
|
|
|
|
.else
|
|
|
|
|
|
|
|
. if exists(${CSU_MACHINE_ARCH}_elf/Makefile)
|
|
|
|
SUBDIR= ${CSU_MACHINE_ARCH}_elf
|
|
|
|
. elif exists(${CSU_MACHINE_ARCH}/Makefile)
|
|
|
|
SUBDIR= ${CSU_MACHINE_ARCH}
|
|
|
|
. elif exists(${MACHINE_CPU}_elf/Makefile)
|
|
|
|
SUBDIR= ${MACHINE_CPU}_elf
|
|
|
|
. elif exists(${MACHINE_CPU}/Makefile)
|
|
|
|
SUBDIR= ${MACHINE_CPU}
|
|
|
|
. else
|
|
|
|
.BEGIN:
|
|
|
|
@echo no SUBDIR for ${MACHINE_ARCH}_elf, ${MACHINE_ARCH} nor \
|
|
|
|
${MACHINE_CPU}
|
|
|
|
@false
|
|
|
|
. endif
|
2010-02-16 15:41:33 +01:00
|
|
|
|
2012-03-31 00:35:32 +02:00
|
|
|
. include <bsd.subdir.mk>
|
|
|
|
.endif
|