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}}
This commit is contained in:
tv 1998-05-22 16:43:42 +00:00
parent d9096e5b70
commit f671e5fcc3

View file

@ -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 \