Makefile.inc revision 1.13
11.13Smatt#	$NetBSD: Makefile.inc,v 1.13 2013/01/28 14:25:18 matt Exp $
21.10Slukem
31.10SlukemWARNS?=		3	# XXX: fails -Wsign-compare
41.9Sthorpej
51.9Sthorpej.include <bsd.own.mk>
61.4Sjmc
71.7Sthorpej.PATH:		${.CURDIR}/../common
81.7Sthorpej
91.12Smrg# Special cases first, then check for a MACHINE_ARCH specific
101.12Smrg# subdir before looking for MACHINE_CPU.
111.13Smatt.if exists(${.CURDIR}/../arch/${MACHINE_ARCH})
121.12SmrgARCHSUBDIR=	${MACHINE_ARCH}
131.13Smatt.elif exists(${.CURDIR}/../arch/${MACHINE_ARCH:C/e[lb]$//})
141.13SmattARCHSUBDIR=	${MACHINE_ARCH:C/e[lb]$//}
151.8Sthorpej.else
161.8SthorpejARCHSUBDIR=	${MACHINE_CPU}
171.8Sthorpej.endif
181.8Sthorpej
191.8SthorpejCPPFLAGS+=	-I${.CURDIR}/../arch/${ARCHSUBDIR}
201.7SthorpejCPPFLAGS+=	-I${.CURDIR}/../common
211.1Slukem
221.2Sveego.if exists(${.CURDIR}/../../Makefile.inc)
231.1Slukem.include "${.CURDIR}/../../Makefile.inc"
241.1Slukem.endif
25