2002-03-03 13:17:00 +00:00
|
|
|
# $NetBSD: Makefile.inc,v 1.8 2002/02/04 00:18:32 thorpej Exp $
|
2002-03-03 15:12:50 +00:00
|
|
|
# $FreeBSD$
|
2002-03-03 13:17:00 +00:00
|
|
|
|
2004-02-23 20:25:27 +00:00
|
|
|
WARNS?= 0
|
2002-03-03 13:17:00 +00:00
|
|
|
|
|
|
|
.PATH: ${.CURDIR}/../common
|
|
|
|
|
2010-09-13 01:00:48 +00:00
|
|
|
# These assignments duplicate much of the functionality of
|
|
|
|
# MACHINE_CPUARCH, but there's no easy way to export make functions...
|
|
|
|
.if defined(TARGET_ARCH)
|
2010-09-13 06:35:35 +00:00
|
|
|
TARGET_CPUARCH= ${TARGET_ARCH:C/mipse[bl]/mips/:C/armeb/arm/}
|
2010-09-13 01:00:48 +00:00
|
|
|
.else
|
2010-09-13 06:35:35 +00:00
|
|
|
TARGET_CPUARCH= ${MACHINE_CPUARCH}
|
|
|
|
TARGET_ARCH= ${MACHINE_ARCH}
|
2010-09-13 01:00:48 +00:00
|
|
|
.endif
|
2010-09-13 06:35:35 +00:00
|
|
|
.if exists(${.CURDIR}/../arch/${TARGET_ARCH}
|
|
|
|
CFLAGS+= -I${.CURDIR}/../arch/${TARGET_ARCH}
|
|
|
|
.else
|
2010-09-13 01:00:48 +00:00
|
|
|
CFLAGS+= -I${.CURDIR}/../arch/${TARGET_CPUARCH}
|
2010-09-13 06:35:35 +00:00
|
|
|
.enidf
|
2002-03-03 15:12:50 +00:00
|
|
|
CFLAGS+= -I${.CURDIR}/../common
|
2002-03-03 13:17:00 +00:00
|
|
|
|
2002-03-03 15:12:50 +00:00
|
|
|
OBJECT_FMT= ELF
|