Makefile.inc revision 1.23
1# $NetBSD: Makefile.inc,v 1.23 2022/04/10 13:21:34 martin 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 19 20CLEANFILES+= *.gcno *.gcda *.gcov 21 22.if ${MACHINE_CPU} != "alpha" 23CFLAGS+= ${ACTIVE_CC:Mgcc:%=-ftrapv} 24.endif 25 26.if exists(${.CURDIR}/../../Makefile.inc) 27.include "${.CURDIR}/../../Makefile.inc" 28.endif 29 30LINTFLAGS+= -w # treat warnings as errors 31