2013-01-28 18:25:18 +04:00
|
|
|
# $NetBSD: Makefile.inc,v 1.13 2013/01/28 14:25:18 matt Exp $
|
2009-04-14 13:09:59 +04:00
|
|
|
|
|
|
|
WARNS?= 3 # XXX: fails -Wsign-compare
|
2002-02-04 11:37:37 +03:00
|
|
|
|
|
|
|
.include <bsd.own.mk>
|
2001-10-22 09:19:31 +04:00
|
|
|
|
2002-01-18 23:39:17 +03:00
|
|
|
.PATH: ${.CURDIR}/../common
|
|
|
|
|
2010-03-22 08:12:24 +03:00
|
|
|
# Special cases first, then check for a MACHINE_ARCH specific
|
|
|
|
# subdir before looking for MACHINE_CPU.
|
2013-01-28 18:25:18 +04:00
|
|
|
.if exists(${.CURDIR}/../arch/${MACHINE_ARCH})
|
2010-03-22 08:12:24 +03:00
|
|
|
ARCHSUBDIR= ${MACHINE_ARCH}
|
2013-01-28 18:25:18 +04:00
|
|
|
.elif exists(${.CURDIR}/../arch/${MACHINE_ARCH:C/e[lb]$//})
|
|
|
|
ARCHSUBDIR= ${MACHINE_ARCH:C/e[lb]$//}
|
2002-02-04 03:18:32 +03:00
|
|
|
.else
|
|
|
|
ARCHSUBDIR= ${MACHINE_CPU}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
CPPFLAGS+= -I${.CURDIR}/../arch/${ARCHSUBDIR}
|
2002-01-18 23:39:17 +03:00
|
|
|
CPPFLAGS+= -I${.CURDIR}/../common
|
1997-10-20 08:28:24 +04:00
|
|
|
|
1997-10-24 16:14:57 +04:00
|
|
|
.if exists(${.CURDIR}/../../Makefile.inc)
|
1997-10-20 08:28:24 +04:00
|
|
|
.include "${.CURDIR}/../../Makefile.inc"
|
|
|
|
.endif
|