Cross Reference: Makefile.inc
xref: /src/usr.bin/xlint/Makefile.inc
  • Home
  • History
  • AnnotateAnnotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /src/usr.bin/xlint/
11.29Srillig#	$NetBSD: Makefile.inc,v 1.29 2024/03/29 08:35:31 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.25Srillig.if ${MACHINE_CPU:Nalpha:Nvax}
231.21SrilligCFLAGS+=	${ACTIVE_CC:Mgcc:%=-ftrapv}
241.23Smartin.endif
251.21Srillig
261.1Slukem.include "${.CURDIR}/../../Makefile.inc"
271.22Srillig
281.24SrilligLINTFLAGS+=	-aa	# warn about all lossy conversions
291.24SrilligLINTFLAGS+=	-e	# strict enum mode
301.24SrilligLINTFLAGS+=	-T	# strict bool mode
311.22SrilligLINTFLAGS+=	-w	# treat warnings as errors
32

Indexes created Mon Nov 10 17:20:41 GMT 2025