1# $NetBSD: Makefile.inc,v 1.8 2002/02/04 00:18:32 thorpej Exp $
| 1# $NetBSD: Makefile.inc,v 1.8 2002/02/04 00:18:32 thorpej Exp $
|
2# $FreeBSD: head/usr.bin/xlint/Makefile.inc 233644 2012-03-29 02:54:35Z jmallett $
| 2# $FreeBSD: head/usr.bin/xlint/Makefile.inc 239272 2012-08-15 03:21:56Z gonzo $
|
3 4WARNS?= 0 5 6.PATH: ${.CURDIR}/../common 7 8# These assignments duplicate much of the functionality of 9# MACHINE_CPUARCH, but there's no easy way to export make functions... 10.if defined(TARGET_ARCH)
| 3 4WARNS?= 0 5 6.PATH: ${.CURDIR}/../common 7 8# These assignments duplicate much of the functionality of 9# MACHINE_CPUARCH, but there's no easy way to export make functions... 10.if defined(TARGET_ARCH)
|
11TARGET_CPUARCH= ${TARGET_ARCH:C/mips(n32|64)?(el)?/mips/:C/armeb/arm/}
| 11TARGET_CPUARCH= ${TARGET_ARCH:C/mips(n32|64)?(el)?/mips/:C/arm(v6)?(eb)?/arm/}
|
12.else 13TARGET_CPUARCH= ${MACHINE_CPUARCH} 14TARGET_ARCH= ${MACHINE_ARCH} 15.endif 16.if exists(${.CURDIR}/../arch/${TARGET_ARCH}) 17CFLAGS+= -I${.CURDIR}/../arch/${TARGET_ARCH} 18.else 19CFLAGS+= -I${.CURDIR}/../arch/${TARGET_CPUARCH} 20.endif 21CFLAGS+= -I${.CURDIR}/../common 22 23OBJECT_FMT= ELF
| 12.else 13TARGET_CPUARCH= ${MACHINE_CPUARCH} 14TARGET_ARCH= ${MACHINE_ARCH} 15.endif 16.if exists(${.CURDIR}/../arch/${TARGET_ARCH}) 17CFLAGS+= -I${.CURDIR}/../arch/${TARGET_ARCH} 18.else 19CFLAGS+= -I${.CURDIR}/../arch/${TARGET_CPUARCH} 20.endif 21CFLAGS+= -I${.CURDIR}/../common 22 23OBJECT_FMT= ELF
|