1#	$NetBSD: Makefile.inc,v 1.11 2009/12/14 00:42:06 matt Exp $
2
3WARNS?=		3	# XXX: fails -Wsign-compare
4
5.include <bsd.own.mk>
6
7.PATH:		${.CURDIR}/../common
8
9# Special cases first, then check for a MACHINE_ARCH specific
10# subdir before looking for MACHINE_CPU.
11.if ${MACHINE_ARCH} == "mips64eb" || ${MACHINE_ARCH} == "mips64el"
12ARCHSUBDIR=	mips64
13.elif exists(${.CURDIR}/../arch/${MACHINE_ARCH})
14ARCHSUBDIR=	${MACHINE_ARCH}
15.else
16ARCHSUBDIR=	${MACHINE_CPU}
17.endif
18
19CPPFLAGS+=	-I${.CURDIR}/../arch/${ARCHSUBDIR}
20CPPFLAGS+=	-I${.CURDIR}/../common
21
22.if exists(${.CURDIR}/../../Makefile.inc)
23.include "${.CURDIR}/../../Makefile.inc"
24.endif
25