aboutsummaryrefslogtreecommitdiff
path: root/build-all.mk
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1993-04-01 19:56:32 +0000
committerIan Lance Taylor <ian@airs.com>1993-04-01 19:56:32 +0000
commit12eda6202b10864b374c2e453f10da569d9c45b5 (patch)
treee9b40bef0d9c1715661e37db981f5874829c8f08 /build-all.mk
parente08c332141447411e93fc059a64b2ec33f7950fd (diff)
downloadfsf-binutils-gdb-12eda6202b10864b374c2e453f10da569d9c45b5.zip
fsf-binutils-gdb-12eda6202b10864b374c2e453f10da569d9c45b5.tar.gz
fsf-binutils-gdb-12eda6202b10864b374c2e453f10da569d9c45b5.tar.bz2
* build-all.mk: If host not specified, use config.guess. Pass TAG
to test-build.mk as RELEASE_TAG. * test-build.mk (configargs): New variable containing arguments to pass to configure. Set to -with-gnu-as on mips-dec-ultrix. (FLAGS_TO_PASS): Pass down RELEASE_TAG. * config.guess: Use /bin/uname when checking -X argument on SCO, to avoid invoking GNU uname which doesn't understand -X.
Diffstat (limited to 'build-all.mk')
-rw-r--r--build-all.mk27
1 files changed, 16 insertions, 11 deletions
diff --git a/build-all.mk b/build-all.mk
index 0919e04..6eea5e0 100644
--- a/build-all.mk
+++ b/build-all.mk
@@ -5,22 +5,20 @@
#
#
-ifndef host
-error:; @echo You must set the variable \"host\" to use this Makefile ; exit 1
-else
-
-# the rest of the makefile
-
TREE = devo
NATIVE = native
-DATE = 930309
+DATE = 930401
TAG = latest-$(DATE)
INSTALLDIR = /build/ian/devo-test/$(TAG)
+ifndef host
+host := $(shell $(TREE)/config.guess)
+endif
+
GCC = gcc -O
CFLAGS = -g
@@ -28,7 +26,15 @@ log = 1>$(canonhost)-build-log 2>&1
tlog = 1> $(canonhost)-x-$$i-build-log 2>&1
canonhost := $(shell $(TREE)/config.sub $(host))
-ifeq ($(canonhost),i386-unknown-sco3.2v4)
+
+# Convert config.guess results to a simpler form.
+ifeq ($(canonhost),mips-dec-ultrix4.2)
+canonhost := mips-dec-ultrix
+endif
+ifeq ($(canonhost),mips-sgi-irix4.0.1)
+canonhost := mips-sgi-irix4
+endif
+ifeq ($(canonhost),i486-unknown-sco3.2v4.0)
canonhost := i386-sco3.2v4
endif
@@ -98,7 +104,8 @@ FLAGS_TO_PASS := \
"GCC=$(GCC)" \
"CC=$(CC)" \
"CFLAGS=$(CFLAGS)" \
- "host=$(canonhost)"
+ "host=$(canonhost)" \
+ "RELEASE_TAG=$(TAG)"
all-cygnus:
@echo build started at `date`
@@ -195,8 +202,6 @@ build:
fi ; \
done
-endif # host
-
### Local Variables:
### fill-column: 131
### End: