Makefile.inc revision 1.24
11.24Srillig#	$NetBSD: Makefile.inc,v 1.24 2023/07/08 11:18:16 rillig Exp $
21.9Sthorpej
31.9Sthorpej.include <bsd.own.mk>
41.4Sjmc
51.7Sthorpej.PATH:		${.CURDIR}/../common
61.7Sthorpej
71.12Smrg# Special cases first, then check for a MACHINE_ARCH specific
81.12Smrg# subdir before looking for MACHINE_CPU.
91.13Smatt.if exists(${.CURDIR}/../arch/${MACHINE_ARCH})
101.12SmrgARCHSUBDIR=	${MACHINE_ARCH}
111.13Smatt.elif exists(${.CURDIR}/../arch/${MACHINE_ARCH:C/e[lb]$//})
121.13SmattARCHSUBDIR=	${MACHINE_ARCH:C/e[lb]$//}
131.8Sthorpej.else
141.8SthorpejARCHSUBDIR=	${MACHINE_CPU}
151.8Sthorpej.endif
161.8Sthorpej
171.8SthorpejCPPFLAGS+=	-I${.CURDIR}/../arch/${ARCHSUBDIR}
181.7SthorpejCPPFLAGS+=	-I${.CURDIR}/../common
191.1Slukem
201.15SrilligCLEANFILES+=	*.gcno *.gcda *.gcov
211.15Srillig
221.23Smartin.if ${MACHINE_CPU} != "alpha"
231.21SrilligCFLAGS+=	${ACTIVE_CC:Mgcc:%=-ftrapv}
241.23Smartin.endif
251.21Srillig
261.2Sveego.if exists(${.CURDIR}/../../Makefile.inc)
271.1Slukem.include "${.CURDIR}/../../Makefile.inc"
281.1Slukem.endif
291.22Srillig
301.24SrilligLINTFLAGS+=	-aa	# warn about all lossy conversions
311.24SrilligLINTFLAGS+=	-e	# strict enum mode
321.24SrilligLINTFLAGS+=	-T	# strict bool mode
331.22SrilligLINTFLAGS+=	-w	# treat warnings as errors
34