Cross Reference: Makefile.inc
xref: /src/usr.bin/xlint/Makefile.inc
  • Home
  • History
  • AnnotateAnnotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /src/usr.bin/xlint/
Makefile.inc revision 1.23
11.23Smartin#	$NetBSD: Makefile.inc,v 1.23 2022/04/10 13:21:34 martin 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.22SrilligLINTFLAGS+=	-w	# treat warnings as errors
31

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