This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: PATCH: Fix alpha
- From: "H . J . Lu" <hjl at lucon dot org>
- To: Nick Clifton <nickc at redhat dot com>
- Cc: binutils at sourceware dot cygnus dot com
- Date: Fri, 16 Nov 2001 08:42:11 -0800
- Subject: Re: PATCH: Fix alpha
- References: <20011115232047.A25487@lucon.org> <m3y9l7cb59.fsf@north-pole.nickc.cambridge.redhat.com>
On Fri, Nov 16, 2001 at 09:34:10AM +0000, Nick Clifton wrote:
> Hi H.J.
>
> > 2001-11-15 H.J. Lu <hjl@gnu.org>
> >
> > * config/tc-alpha.c (md_apply_fix3): Fix a typo.
>
> > 2001-11-15 H.J. Lu <hjl@gnu.org>
> >
> > * config/tc-hppa.c (md_apply_fix3): Fix a typo.
>
> Thanks for checking these in.
>
> I have now set up built trees for these targets, so I should not
> repeat this mistake.
>
FWIW, this is Makefile I use for gnu make. I do
# make full
# make check.full
# make complete
# make complete.check
as my release test. You can add as many targets as you like.
H.J.
---
# Where the tools are installed.
TOOL-PREFIX=/export/tools
# Where the source of gcc/binutils as well as glibc header files and
# libraries are.
TOOL-SOURCE-DIR=/work/gnu/src/binutils
TOOL-SOURCE-DIR=/home/hjl/work/linux/import/binutils
BUILD-ARCH:=$(shell arch)
# What arch the tools are for.
ifndef ARCH
ARCH=$(BUILD-ARCH)
endif
HPPA64=hppa64
HPPA64=
ALL-ARCHES=alpha arm cris hppa $(HPPA64) i386 ia64 m68k mips mips64 \
mips64el mipsel ppc s390 s390x sh sparc sparc64
NUM-CPUS:=$(shell /usr/bin/getconf _NPROCESSORS_ONLN)
VENDOR=
comma:= ,
empty:=
space:= $(empty) $(empty)
ifeq (full,$(ARCH))
TARGET-FLAGS=--enable-64-bit-bfd
TARGET=$(BUILD-ARCH)-$(VENDOR)linux
ALL-TARGETS=all
ALL-TARGET-FLAGS=--enable-targets=$(ALL-TARGETS)
BUILD-DIR=build-full-$(TARGET)
else
ifneq (,$(ALL-ARCHES))
ALL-TARGETS=$(subst $(space),$(comma),$(addsuffix -$(VENDOR)linux,$(ALL-ARCHES)))
TARGETS=$(subst $(comma),$(space),$(ALL-TARGETS)))
ALL-TARGET-FLAGS=--enable-targets=$(ALL-TARGETS)
endif
TARGET=$(ARCH)-$(VENDOR)linux
TARGET-FLAGS=--target=$(TARGET)
BUILD-DIR=build-$(TARGET)
endif
PARALLELMFLAGS:=-j `expr $(NUM-CPUS) + $(NUM-CPUS)`
ifeq (mipsel,$(ARCH))
ifeq (mips,$(BUILD-ARCH))
TARGET-FLAGS=$(TARGET)
PARALLELMFLAGS:=-j 1
endif
endif
ifeq (m32r,$(ARCH))
TARGET=$(ARCH)-elf
endif
ifeq (pj,$(ARCH))
TARGET=$(ARCH)-elf
endif
ifeq (fr30,$(ARCH))
TARGET=$(ARCH)-elf
endif
ifeq (rs6000,$(ARCH))
TARGET=$(ARCH)-aix
endif
#TARGET-FLAGS+=--enable-maintainer-mode
tools: config all
.DEFAULT check:
$(MAKE) $(PARALLELMFLAGS) -C $(BUILD-DIR) $@
install:
@echo Do not do install!
$(ALL-ARCHES) full:
$(MAKE) ARCH=$@
check.%:
$(MAKE) ARCH=$(subst check.,,$@) check
complete:
set -e; \
for a in $(ALL-ARCHES); do \
$(MAKE) ARCH=$$a ALL-ARCHES=; \
done
complete.check:
for a in $(ALL-ARCHES); do \
$(MAKE) -k ARCH=$$a ALL-ARCHES= check; \
done
config: clobber
mkdir -p $(BUILD-DIR)
cd $(BUILD-DIR); \
$(TOOL-SOURCE-DIR)/configure \
$(TARGET-FLAGS) \
$(ALL-TARGET-FLAGS) \
--prefix=$(TOOL-PREFIX) \
--with-local-prefix=$(TOOL-PREFIX) \
&& $(MAKE) -C bfd headers;
clobber:
rm -rf $(BUILD-DIR)