Unbreak compat.

This commit is contained in:
joerg 2012-06-16 19:19:14 +00:00
parent ee99db43bc
commit c91e3eb75b
1 changed files with 10 additions and 4 deletions

View File

@ -1,17 +1,23 @@
# $NetBSD: Makefile,v 1.30 2012/06/16 18:19:39 joerg Exp $
# $NetBSD: Makefile,v 1.31 2012/06/16 19:19:14 joerg Exp $
.include <bsd.own.mk>
.if ${USE_COMPILERCRTSTUFF} != "yes"
.if exists(${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc)
ARCHDIR:= ${.CURDIR}/arch/${MACHINE_ARCH}
.if defined(CSU_MACHINE_ARCH)
. if !exists(${.CURDIR}/arch/${CSU_MACHINE_ARCH}/Makefile.inc)
. error CSU_MACHINE_ARCH (${CSU_MACHINE_ARCH}) is unsupported
. endif
.elif exists(${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc)
CSU_MACHINE_ARCH= ${MACHINE_ARCH}
.elif exists(${.CURDIR}/arch/${MACHINE_CPU}/Makefile.inc)
ARCHDIR:= ${.CURDIR}/arch/${MACHINE_CPU}
CSU_MACHINE_ARCH= ${MACHINE_CPU}
.else
.error Architecture (${MACHINE_ARCH} or ${MACHINE_CPU}) unsupported
.endif
ARCHDIR:= ${.CURDIR}/arch/${CSU_MACHINE_ARCH}
.PATH: ${ARCHDIR}
. include "${ARCHDIR}/Makefile.inc"