Use MACHINE_CPU instead of MACHINE_ARCH with pattern matching

Include bsd.own.mk to use MACHINE_CPU.

Advised by matt@
This commit is contained in:
ozaki-r 2014-03-16 06:51:43 +00:00
parent 3e0a08dd80
commit e2fc5c59a0

View File

@ -1,7 +1,9 @@
# $NetBSD: Makefile,v 1.8 2014/03/16 05:11:19 ozaki-r Exp $
# $NetBSD: Makefile,v 1.9 2014/03/16 06:51:43 ozaki-r Exp $
# $FreeBSD: src/cddl/lib/libdtrace/Makefile,v 1.2.2.1 2009/08/03 08:13:06 kensmith Exp $
.include <bsd.own.mk>
.include "../../Makefile.inc"
LIB= dtrace
@ -86,7 +88,7 @@ COPTS.dt_subr.c += -Wno-stack-protector
CPPFLAGS+= -I${OPENSOLARIS_SYS_DISTDIR}/uts/intel
.elif ${MACHINE_ARCH} == "sparc64"
CPPFLAGS+= -I${OPENSOLARIS_SYS_DISTDIR}/uts/sparc
.elif !empty(MACHINE_ARCH:M*arm*)
.elif ${MACHINE_CPU} == "arm"
CPPFLAGS+= -I${OPENSOLARIS_SYS_DISTDIR}/uts/arm
.PATH: ${.CURDIR}/../../dist/lib/libdtrace/arm
SRCS+= dt_isadep.c