* config/i386/*aix*, i386aix-nat.c: New files.
[binutils-gdb.git] / build-all.mk
index 1684c7e9e1dbf18e018d457e063e960bfedaff71..11c76027fc6bcc7580431355a7126523ca063e79 100644 (file)
@@ -18,8 +18,9 @@ endif
 
 NATIVE  = native
 
-GCC     = gcc -O 
-CFLAGS  = -g
+GCC     = gcc -O 
+CFLAGS  = -g
+CXXFLAGS = -g -O
 
 log    = 1>$(canonhost)-build-log 2>&1
 tlog    = 1> $(canonhost)-x-$$i-build-log 2>&1
@@ -27,6 +28,9 @@ tlog    = 1> $(canonhost)-x-$$i-build-log 2>&1
 canonhost := $(shell $(TREE)/config.sub $(host))
 
 # Convert config.guess results to a simpler form.
+ifeq ($(canonhost),sparc-sun-solaris2.1)
+canonhost := sparc-sun-solaris2
+endif
 ifeq ($(canonhost),mips-dec-ultrix4.2)
 canonhost := mips-dec-ultrix
 endif
@@ -99,7 +103,7 @@ TARGETS = i960-vxworks m68k-aout m68k-vxworks m68k-hp-hpux
 #        i960-vxworks  m68k-coff       m68k-vxworks \
 #        sparc-aout                    sparc-vxworks \
 #        sparclite-aout                sparclitefrwcompat-aout
-CC = cc 
+CC = cc +Obb2000
 all: all-native
 endif
 
@@ -123,6 +127,7 @@ FLAGS_TO_PASS := \
        "GCC=$(GCC)" \
        "CC=$(CC)" \
        "CFLAGS=$(CFLAGS)" \
+       "CXXFLAGS=$(CXXFLAGS)" \
        "host=$(canonhost)" \
        "RELEASE_TAG=$(RELEASE_TAG)"
 
@@ -142,10 +147,12 @@ all-cygnus:
        ln -s $(INSTALLDIR) $(ROOTING)/$(RELEASE_TAG) 
        @for i in $(TARGETS) ; do \
          if [ "$$i" = "native" ] ; then \
-            if [ ! -f $(canonhost)-3stage-done ] ; then \
+            if [ ! -f $(canonhost)-stamp-3stage-done ] ; then \
              echo "3staging $(canonhost) native" ; \
              $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) $(canonhost)-stamp-3stage-done $(log) && \
                 echo "     completed successfully" ; \
+           else \
+             true ; \
            fi \
          else \
            echo "building $(canonhost) cross to $$i" ; \
@@ -192,8 +199,8 @@ all-native:
 
 all-cross:
        [ -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 \
            echo "building $(canonhost) cross to $$i" ; \
             $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) target=$$i build=$(build) do-cygnus $(tlog) && \