use libcincludes.mk

This commit is contained in:
mrg 2008-10-26 07:42:09 +00:00
parent 28d618d682
commit 5019a04ee2
1 changed files with 2 additions and 10 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.3 2007/06/03 17:36:08 christos Exp $
# $NetBSD: Makefile.inc,v 1.4 2008/10/26 07:42:09 mrg Exp $
# @(#)Makefile 8.2 (Berkeley) 2/3/94
#
# All library objects contain sccsid strings by default; they may be
@ -47,15 +47,7 @@ LINTFLAGS+= -w
# ignore 'empty translation unit' warnings.
LINTFLAGS+= -X 272
.if exists(${.CURDIR}/arch/${MACHINE_ARCH})
ARCHSUBDIR= ${MACHINE_ARCH}
.elif exists(${.CURDIR}/arch/${MACHINE_CPU})
ARCHSUBDIR= ${MACHINE_CPU}
.else
.BEGIN:
@echo no ARCHSUBDIR for ${MACHINE_ARCH} nor ${MACHINE_CPU}
@false
.endif
.include "libcincludes.mk"
ARCHDIR= ${.CURDIR}/arch/${ARCHSUBDIR}
AFLAGS+= -I${ARCHDIR}