* config.guess: For i[34]86-unknown-sysv4 use UNAME_MACHINE for
[deliverable/binutils-gdb.git] / build-all.mk
index 384e71de6fb0307daab67a011d34f287c47457fe..1684c7e9e1dbf18e018d457e063e960bfedaff71 100644 (file)
@@ -6,21 +6,20 @@
 #
 
 TREE   = devo
+include $(TREE)/release-info
 
-NATIVE  = native
-
-DATE   = 930511
-
-TAG    = latest-$(DATE)
+TEST_INSTALL_DISK = /cirdan/abc
 
-INSTALLDIR = /rtl/justice/devo-test/$(TAG)
+INSTALLDIR = $(TEST_INSTALL_DISK)/$(TREE)-test/$(RELEASE_TAG)
 
 ifndef host
 host := $(shell $(TREE)/config.guess)
 endif
 
-GCC = gcc -O 
-CFLAGS = -g
+NATIVE  = native
+
+GCC     = gcc -O 
+CFLAGS  = -g
 
 log    = 1>$(canonhost)-build-log 2>&1
 tlog    = 1> $(canonhost)-x-$$i-build-log 2>&1
@@ -40,6 +39,9 @@ endif
 ifeq ($(canonhost),i486-unknown-sco3.2v4.0)
 canonhost := i386-sco3.2v4
 endif
+ifeq ($(canonhost),i386-unknown-go32)
+canonhost := i386-go32
+endif
 
 ifeq ($(canonhost),sparc-sun-sunos4.1.1)
 TARGETS = $(NATIVE)    i386-go32       m68k-aout       m68k-vxworks \
@@ -106,18 +108,29 @@ TARGETS = $(NATIVE) i386-aout
 all: all-cygnus
 endif
 
+ifeq ($(canonhost),i386-go32)
+TARGETS = m68k-aout a29k-amd-udi m68k-coff i386-aout sparclite-aout \
+         h8300-sim mips-idt-ecoff
+ifndef build
+build := $(shell $(TREE)/config.guess)
+endif
+CC = i386-go32-gcc
+GCC = i386-go32-gcc -O
+all: all-cross
+endif
+
 FLAGS_TO_PASS := \
        "GCC=$(GCC)" \
        "CC=$(CC)" \
        "CFLAGS=$(CFLAGS)" \
        "host=$(canonhost)" \
-       "RELEASE_TAG=$(TAG)"
+       "RELEASE_TAG=$(RELEASE_TAG)"
 
 all-emacs:
        @echo build started at `date`
        [ -d $(INSTALLDIR) ] || mkdir $(INSTALLDIR)
-       rm -f /usr/cygnus/$(TAG)
-       ln -s $(INSTALLDIR) /usr/cygnus/$(TAG) 
+       rm -f $(ROOTING)/$(RELEASE_TAG)
+       ln -s $(INSTALLDIR) $(ROOTING)/$(RELEASE_TAG) 
        $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) do1 > $(canonhost)-native-log 2>&1 
        $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) do-latest > $(canonhost)-latest-log 2>&1 
        @echo done at `date`
@@ -125,8 +138,8 @@ all-emacs:
 all-cygnus:
        @echo build started at `date`
        [ -d $(INSTALLDIR) ] || mkdir $(INSTALLDIR)
-       rm -f /usr/cygnus/$(TAG)
-       ln -s $(INSTALLDIR) /usr/cygnus/$(TAG) 
+       rm -f $(ROOTING)/$(RELEASE_TAG)
+       ln -s $(INSTALLDIR) $(ROOTING)/$(RELEASE_TAG) 
        @for i in $(TARGETS) ; do \
          if [ "$$i" = "native" ] ; then \
             if [ ! -f $(canonhost)-3stage-done ] ; then \
@@ -145,8 +158,8 @@ all-cygnus:
 native:
        @echo build started at `date`
        [ -d $(INSTALLDIR) ] || mkdir $(INSTALLDIR)
-       rm -f /usr/cygnus/$(TAG)
-       ln -s $(INSTALLDIR) /usr/cygnus/$(TAG) 
+       rm -f $(ROOTING)/$(RELEASE_TAG)
+       ln -s $(INSTALLDIR) $(ROOTING)/$(RELEASE_TAG) 
        $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) $(canonhost)-stamp-3stage-done $(log)
        @echo done at `date`
 
@@ -168,12 +181,22 @@ build-cygnus:
        @echo done at `date`
 
 all-native:
+       [ -d $(INSTALLDIR) ] || mkdir $(INSTALLDIR)
+       rm -f $(ROOTING)/$(RELEASE_TAG)
+       ln -s $(INSTALLDIR) $(ROOTING)/$(RELEASE_TAG)
+       @for i in $(TARGETS) ; do \
+           echo "building $(canonhost) cross to $$i" ; \
+            $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) target=$$i do-native $(tlog) && \
+              echo "     completed successfully" ; \
+       done
+
+all-cross:
        [ -d $(INSTALLDIR) ] || mkdir $(INSTALLDIR)
        rm -f /usr/cygnus/$(TAG)
        ln -s $(INSTALLDIR) /usr/cygnus/$(TAG)
        @for i in $(TARGETS) ; do \
            echo "building $(canonhost) cross to $$i" ; \
-            $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) target=$$i do-native $(tlog) && \
+            $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) target=$$i build=$(build) do-cygnus $(tlog) && \
               echo "     completed successfully" ; \
        done
 
This page took 0.025819 seconds and 4 git commands to generate.