blob: f6e70f861deed3a09356cb0bbe50a45966174085 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# $NetBSD: Makefile.inc,v 1.23 2022/04/10 13:21:34 martin Exp $
.include <bsd.own.mk>
.PATH: ${.CURDIR}/../common
# Special cases first, then check for a MACHINE_ARCH specific
# subdir before looking for MACHINE_CPU.
.if exists(${.CURDIR}/../arch/${MACHINE_ARCH})
ARCHSUBDIR= ${MACHINE_ARCH}
.elif exists(${.CURDIR}/../arch/${MACHINE_ARCH:C/e[lb]$//})
ARCHSUBDIR= ${MACHINE_ARCH:C/e[lb]$//}
.else
ARCHSUBDIR= ${MACHINE_CPU}
.endif
CPPFLAGS+= -I${.CURDIR}/../arch/${ARCHSUBDIR}
CPPFLAGS+= -I${.CURDIR}/../common
CLEANFILES+= *.gcno *.gcda *.gcov
.if ${MACHINE_CPU} != "alpha"
CFLAGS+= ${ACTIVE_CC:Mgcc:%=-ftrapv}
.endif
.if exists(${.CURDIR}/../../Makefile.inc)
.include "${.CURDIR}/../../Makefile.inc"
.endif
LINTFLAGS+= -w # treat warnings as errors
|