From 12eda6202b10864b374c2e453f10da569d9c45b5 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Thu, 1 Apr 1993 19:56:32 +0000 Subject: * 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. --- build-all.mk | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) (limited to 'build-all.mk') 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: -- cgit v1.1