NetBSD/usr.bin/xlint/Makefile.inc

25 lines
633 B
Makefile

# $NetBSD: Makefile.inc,v 1.12 2010/03/22 05:12:24 mrg Exp $
WARNS?= 3 # XXX: fails -Wsign-compare
.include <bsd.own.mk>
.PATH: ${.CURDIR}/../common
# Special cases first, then check for a MACHINE_ARCH specific
# subdir before looking for MACHINE_CPU.
.if ${MACHINE_ARCH} == "mips64eb" || ${MACHINE_ARCH} == "mips64el"
ARCHSUBDIR= mips64
.elif exists(${.CURDIR}/../arch/${MACHINE_ARCH})
ARCHSUBDIR= ${MACHINE_ARCH}
.else
ARCHSUBDIR= ${MACHINE_CPU}
.endif
CPPFLAGS+= -I${.CURDIR}/../arch/${ARCHSUBDIR}
CPPFLAGS+= -I${.CURDIR}/../common
.if exists(${.CURDIR}/../../Makefile.inc)
.include "${.CURDIR}/../../Makefile.inc"
.endif