Use the new MACHINE_GNU_ARCH to identify a GNU architecture name.

In c++filt, add real dependencies for underscore.c so it isn't rebuilt
every time.
This commit is contained in:
tv 1998-07-25 18:58:42 +00:00
parent 50f955ff49
commit 8f87ff5686
2 changed files with 7 additions and 12 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.2 1998/05/22 02:23:42 tv Exp $
# $NetBSD: Makefile.inc,v 1.3 1998/07/25 18:58:42 tv Exp $
.if !defined(__MAKEFILE_INC_INCLUDED__)
__MAKEFILE_INC_INCLUDED__=1
@ -15,12 +15,7 @@ VERSION=2.8.1
DIST_NAME=binutils-${VERSION}
# Override this to make cross tools. (Not yet guaranteed.)
.if (${MACHINE_ARCH} == "arm32")
# XXX. We need a better system for mapping NetBSD arch -> GNU arch.
TARGET_ARCH?=arm
.else
TARGET_ARCH?=${MACHINE_ARCH}
.endif
TARGET_ARCH?=${MACHINE_GNU_ARCH}
# XXX. Need to pull proper target definition from <bsd.own.mk>.
.include <bsd.own.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.3 1998/05/28 20:52:26 cgd Exp $
# $NetBSD: Makefile,v 1.4 1998/07/25 18:58:43 tv Exp $
PROG= c++filt
SRCS= cplus-dem.c underscore.c
@ -7,12 +7,12 @@ CPPFLAGS+=-DMAIN -DVERSION='"${VERSION}"'
CLEANFILES+=underscore.c ${PROG}.1
underscore.c: .PHONY
sh ${.CURDIR}/mkunderscore.sh ${TARGET_ARCH}-unknown-netbsd ${TOP}/dist/bfd/config.bfd > \
${.TARGET}
.include <bsd.prog.mk>
underscore.c: mkunderscore.sh ${dist}/bfd/config.bfd
sh ${.CURDIR}/mkunderscore.sh ${MACHINE_GNU_ARCH}-unknown-netbsd \
${dist}/bfd/config.bfd > ${.TARGET}
.PATH: ${dist}/libiberty
${PROG}.1: ${srcdir}/cxxfilt.man