NetBSD/lib/csu/Makefile

41 lines
983 B
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.30 2012/06/16 18:19:39 joerg Exp $
.include <bsd.own.mk>
.if ${USE_COMPILERCRTSTUFF} != "yes"
.if exists(${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc)
ARCHDIR:= ${.CURDIR}/arch/${MACHINE_ARCH}
.elif exists(${.CURDIR}/arch/${MACHINE_CPU}/Makefile.inc)
ARCHDIR:= ${.CURDIR}/arch/${MACHINE_CPU}
.else
.error Architecture (${MACHINE_ARCH} or ${MACHINE_CPU}) unsupported
.endif
.PATH: ${ARCHDIR}
. include "${ARCHDIR}/Makefile.inc"
. include "${.CURDIR}/common/Makefile.inc"
.else
CSU_MACHINE_ARCH?= ${MACHINE_ARCH}
. 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)
2001-01-10 16:20:17 +03:00
SUBDIR= ${MACHINE_CPU}_elf
. elif exists(${MACHINE_CPU}/Makefile)
SUBDIR= ${MACHINE_CPU}
. else
.BEGIN:
2001-01-10 16:20:17 +03:00
@echo no SUBDIR for ${MACHINE_ARCH}_elf, ${MACHINE_ARCH} nor \
${MACHINE_CPU}
@false
. endif
. include <bsd.subdir.mk>
.endif