This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: Fix alpha


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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]