Thu Apr 1 08:25:42 1993 Ian Lance Taylor (ian@cygnus.com)
+ * 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.
+
* test-build.mk: Don't use /usr/unsupported/bin/as on AIX.
* configure.in: Build gas for mips-*-*.
#
#
-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
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
"GCC=$(GCC)" \
"CC=$(CC)" \
"CFLAGS=$(CFLAGS)" \
- "host=$(canonhost)"
+ "host=$(canonhost)" \
+ "RELEASE_TAG=$(TAG)"
all-cygnus:
@echo build started at `date`
fi ; \
done
-endif # host
-
### Local Variables:
### fill-column: 131
### End:
"CFLAGS=$(CFLAGS)" \
"TIME=$(TIME)" \
"MF=$(MF)" \
- "host=$(host)"
+ "host=$(host)" \
+ "RELEASE_TAG=$(RELEASE_TAG)"
ifneq '$(CC)' 'cc'
FLAGS_TO_PASS := "CC=$(CC)" $(FLAGS_TO_PASS)
prefixes = --prefix=$(release_root) --exec-prefix=$(release_root)/H-$(host)
relbindir = $(release_root)/H-$(host)/bin
+ifeq ($(host),mips-dec-ultrix)
+configargs = -with-gnu-as
+else
+configargs =
+endif
### general config stuff
WORKING_DIR := $(host)-objdir
$(arch)-stamp-native-configured: $(host)-stamp-holes
[ -d $(NATIVEDIR) ] || mkdir $(NATIVEDIR)
- $(SET_NATIVE_HOLES) cd $(NATIVEDIR) ; $(TIME) ../$(TREE)/configure $(config) -v --srcdir=../$(TREE) $(prefixes)
+ $(SET_NATIVE_HOLES) cd $(NATIVEDIR) ; $(TIME) ../$(TREE)/configure $(config) -v --srcdir=../$(TREE) $(prefixes) $(configargs)
touch $@
$(arch)-stamp-cygnus-configured: $(host)-stamp-holes
[ -d $(CYGNUSDIR) ] || mkdir $(CYGNUSDIR)
- $(SET_CYGNUS_PATH) cd $(CYGNUSDIR) ; $(GNUC) $(TIME) ../$(TREE)/configure $(config) -v --srcdir=../$(TREE) $(prefixes)
+ $(SET_CYGNUS_PATH) cd $(CYGNUSDIR) ; $(GNUC) $(TIME) ../$(TREE)/configure $(config) -v --srcdir=../$(TREE) $(prefixes) $(configargs)
touch $@
.PHONY: do-latest
$(arch)-stamp-latest-configured:
[ -d $(LATESTDIR) ] || mkdir $(LATESTDIR)
- $(SET_LATEST_PATH) cd $(LATESTDIR) ; $(GNUC) $(TIME) ../$(TREE)/configure $(config) -v --srcdir=../$(TREE) $(prefixes)
+ $(SET_LATEST_PATH) cd $(LATESTDIR) ; $(GNUC) $(TIME) ../$(TREE)/configure $(config) -v --srcdir=../$(TREE) $(prefixes) $(configargs)
touch $@
touch $@
$(host)-stamp-in-place-configured: $(host)-stamp-in-place-cp
- cd $(INPLACEDIR) ; $(TIME) ./configure $(host) -v $(prefixes)
+ cd $(INPLACEDIR) ; $(TIME) ./configure $(host) -v $(prefixes) $(configargs)
touch $@
$(host)-stamp-in-place-cp:
$(host)-stamp-stage1-configured:
[ -d $(WORKING_DIR) ] || mkdir $(WORKING_DIR)
$(SET_NATIVE_HOLES) cd $(WORKING_DIR) ; \
- $(TIME) ../$(TREE)/configure $(host) -v --srcdir=../$(TREE) $(prefixes)
+ $(TIME) ../$(TREE)/configure $(host) -v --srcdir=../$(TREE) $(prefixes) $(configargs)
touch $@
.PHONY: do2
$(host)-stamp-stage2-configured:
[ -d $(WORKING_DIR) ] || mkdir $(WORKING_DIR)
$(SET_CYGNUS_PATH) cd $(WORKING_DIR) ; \
- $(GNUC) $(TIME) ../$(TREE)/configure $(host) -v --srcdir=../$(TREE) $(prefixes)
+ $(GNUC) $(TIME) ../$(TREE)/configure $(host) -v --srcdir=../$(TREE) $(prefixes) $(configargs)
touch $@
.PHONY: do3
$(host)-stamp-stage3-configured:
[ -d $(WORKING_DIR) ] || mkdir $(WORKING_DIR)
$(SET_CYGNUS_PATH) cd $(WORKING_DIR) ; \
- $(GNUC) $(TIME) ../$(TREE)/configure $(host) -v --srcdir=../$(TREE) $(prefixes)
+ $(GNUC) $(TIME) ../$(TREE)/configure $(host) -v --srcdir=../$(TREE) $(prefixes) $(configargs)
touch $@
# These things are needed by a three-stage, but are not included locally.