From f671e5fcc3c03e8b98bac40b95d089104f81d558 Mon Sep 17 00:00:00 2001 From: tv Date: Fri, 22 May 1998 16:43:42 +0000 Subject: [PATCH] Add the ability to map a MACHINE_ARCH to a GNU architecture name: - ${GNU_ARCH.${TARGET_ARCH}} will produce a target architecture name in mainline sources - ${MACHINE_GNU_ARCH} is equivalent to ${GNU_ARCH.${MACHINE_ARCH}} --- mk/bsd.own.mk | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/mk/bsd.own.mk b/mk/bsd.own.mk index fe3153716f23..27cd69465af8 100644 --- a/mk/bsd.own.mk +++ b/mk/bsd.own.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.own.mk,v 1.1 1998/04/20 10:16:24 agc Exp $ +# $NetBSD: bsd.own.mk,v 1.2 1998/05/22 16:43:42 tv Exp $ .if !defined(_BSD_OWN_MK_) _BSD_OWN_MK_=1 @@ -107,6 +107,19 @@ NOPROFILE= NOSHLIB= .endif +# GNU sources and packages sometimes see architecture names differently. +# This table maps an architecture name to its GNU counterpart. +# Use as so: ${GNU_ARCH.${TARGET_ARCH}} or ${MACHINE_GNU_ARCH} +GNU_ARCH.alpha=alpha +GNU_ARCH.arm32=arm +GNU_ARCH.i386=i386 +GNU_ARCH.m68k=m68k +GNU_ARCH.mips=mips +GNU_ARCH.ns32k=ns32k +GNU_ARCH.powerpc=powerpc +GNU_ARCH.vax=vax +MACHINE_GNU_ARCH=${GNU_ARCH.${MACHINE_ARCH}} + TARGETS+= all clean cleandir depend includes install lint obj regress \ tags .PHONY: all clean cleandir depend includes install lint obj regress \