Makefile.inc revision 1.16
1#	$NetBSD: Makefile.inc,v 1.16 2021/11/01 19:10:07 rillig Exp $
2
3.include <bsd.own.mk>
4
5.PATH:		${.CURDIR}/../common
6
7# Special cases first, then check for a MACHINE_ARCH specific
8# subdir before looking for MACHINE_CPU.
9.if exists(${.CURDIR}/../arch/${MACHINE_ARCH})
10ARCHSUBDIR=	${MACHINE_ARCH}
11.elif exists(${.CURDIR}/../arch/${MACHINE_ARCH:C/e[lb]$//})
12ARCHSUBDIR=	${MACHINE_ARCH:C/e[lb]$//}
13.else
14ARCHSUBDIR=	${MACHINE_CPU}
15.endif
16
17CPPFLAGS+=	-I${.CURDIR}/../arch/${ARCHSUBDIR}
18CPPFLAGS+=	-I${.CURDIR}/../common
19CWARNFLAGS+=	-Wdeclaration-after-statement	# it's a build tool
20
21CLEANFILES+=	*.gcno *.gcda *.gcov
22
23.if exists(${.CURDIR}/../../Makefile.inc)
24.include "${.CURDIR}/../../Makefile.inc"
25.endif
26