* c-typeprint.c (c_print_type): Assume demangled arguments
[deliverable/binutils-gdb.git] / test-build.mk
index d7aaf49bdeea16af86d3245dc82d6a8b3c6ce494..1395fa00fe05c3d6d192e225c874330231e58133 100644 (file)
@@ -56,6 +56,12 @@ ifndef target
 target := $(host)
 endif
 
+ifeq ($(patsubst %-lynx,lynx,$(host)),lynx)
+SHELL := /bin/bash
+GNU_MAKE := $(MAKE)
+CONFIG_SHELL   := /bin/bash
+endif
+
 ifneq ($(build),$(host))
 
 # We are building on a machine other than the host.  We rely upon
@@ -87,8 +93,8 @@ RANLIB                := $(host)-ranlib
 RANLIB_FOR_TARGET      := $(target)-ranlib
 YACC           := $(BISON)
 
-ifeq ($(build),hppa1.1-hp-hpux)
-CC_FOR_BUILD   := cc
+ifeq ($(host),i386-go32)
+MAKEINFOFLAGS = --no-split
 endif
 
 FLAGS_TO_PASS := \
@@ -118,6 +124,7 @@ FLAGS_TO_PASS := \
        "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \
        "RELEASE_TAG=$(RELEASE_TAG)" \
        "RUNTEST=$(relbindir)/runtest" \
+       "SHELL=$(SHELL)" \
        "TIME=$(TIME)" \
        "YACC=$(YACC)" \
        "build=$(build)" \
@@ -139,7 +146,8 @@ FLAGS_TO_PASS := \
        "MAKEINFOFLAGS=$(MAKEINFOFLAGS)" \
        "MF=$(MF)" \
        "host=$(host)" \
-       "RELEASE_TAG=$(RELEASE_TAG)"
+       "RELEASE_TAG=$(RELEASE_TAG)" \
+       "SHELL=$(SHELL)" 
 
 configenv :=
 
@@ -151,7 +159,7 @@ CC := cc -Xs
 endif
 
 ifeq ($(host),mips-sgi-irix4)
-CC := cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh1500
+CC := cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000
 endif
 
 ifeq ($(host),mips-mips-riscos5)
@@ -166,10 +174,34 @@ ifeq ($(host),m68k-sun-sunos4.1.1)
 CC := cc -J
 endif
 
+
+# We want to use stabs for MIPS targets.
+ifeq ($(target),mips-idt-ecoff)
+configargs = -with-stabs
+endif
+
+ifeq ($(target),mips-dec-ultrix)
+configargs = -with-stabs
+endif
+
+ifeq ($(target),mips-sgi-irix4)
+configargs = -with-stabs
+endif
+
+# We must use stabs for SVR4 targets.
+ifeq ($(target),i386-sysv4.2)
+configargs = -with-stabs
+endif
+
 ifneq ($(CC), 'cc')
 FLAGS_TO_PASS := "CC=$(CC)" $(FLAGS_TO_PASS)
 endif
 
+#### and on some, we need CONFIG_SHELL
+ifeq ($(patsubst %-lynxos,lynxos,$(host)),lynxos)
+FLAGS_TO_PASS := "CONFIG_SHELL=$(CONFIG_SHELL)" $(FLAGS_TO_PASS)
+endif
+
 
 # These are the prefixes used for Cygnus builds.
 prefixes       = --prefix=$(release_root) --exec-prefix=$(release_root)/H-$(host)
@@ -195,9 +227,9 @@ HOLESDIR    := $(holesys)-holes
 BUILD_HOST_HOLES_DIR   := $(build)-x-$(host)-holes
 BUILD_TARGET_HOLES_DIR := $(build)-x-$(target)-holes
 
-SET_NATIVE_HOLES := SHELL=sh ; PATH=`pwd`/$(HOLESDIR):`pwd`/$(BUILD_HOST_HOLES_DIR):`pwd`/$(BUILD_TARGET_HOLES_DIR) ; export PATH ; export SHELL ;
-SET_CYGNUS_PATH  := SHELL=sh ; PATH=`pwd`/$(HOLESDIR):`pwd`/$(BUILD_HOST_HOLES_DIR):`pwd`/$(BUILD_TARGET_HOLES_DIR) ; export PATH ; export SHELL ;
-SET_LATEST_PATH  := SHELL=sh ; PATH=/usr/latest/bin:`pwd`/$(HOLESDIR):`pwd`/$(BUILD_HOST_HOLES_DIR):`pwd`/$(BUILD_TARGET_HOLES_DIR) ; export PATH ; export SHELL ;
+SET_NATIVE_HOLES := SHELL=$(SHELL) ; PATH=`pwd`/$(HOLESDIR):`pwd`/$(BUILD_HOST_HOLES_DIR):`pwd`/$(BUILD_TARGET_HOLES_DIR) ; export PATH ; export SHELL ;
+SET_CYGNUS_PATH  := SHELL=$(SHELL) ; PATH=`pwd`/$(HOLESDIR):`pwd`/$(BUILD_HOST_HOLES_DIR):`pwd`/$(BUILD_TARGET_HOLES_DIR) ; export PATH ; export SHELL ;
+SET_LATEST_PATH  := SHELL=$(SHELL) ; PATH=/usr/latest/bin:`pwd`/$(HOLESDIR):`pwd`/$(BUILD_HOST_HOLES_DIR):`pwd`/$(BUILD_TARGET_HOLES_DIR) ; export PATH ; export SHELL ;
 
 else
 
@@ -205,9 +237,9 @@ holesys             := $(host)
 HOLESSTAMP     := $(holesys)-stamp-holes
 HOLESDIR       := $(holesys)-holes
 
-SET_NATIVE_HOLES := SHELL=sh ; PATH=`pwd`/$(HOLESDIR) ; export PATH ; export SHELL ;
-SET_CYGNUS_PATH  := SHELL=sh ; PATH=$(relbindir):`pwd`/$(HOLESDIR) ; export PATH ; export SHELL ;
-SET_LATEST_PATH  := SHELL=sh ; PATH=/usr/latest/bin:`pwd`/$(HOLESDIR) ; export PATH ; export SHELL ;
+SET_NATIVE_HOLES := SHELL=$(SHELL) ; PATH=`pwd`/$(HOLESDIR) ; export PATH ; export SHELL ;
+SET_CYGNUS_PATH  := SHELL=$(SHELL) ; PATH=$(relbindir):`pwd`/$(HOLESDIR) ; export PATH ; export SHELL ;
+SET_LATEST_PATH  := SHELL=$(SHELL) ; PATH=/usr/latest/bin:`pwd`/$(HOLESDIR) ; export PATH ; export SHELL ;
 
 endif
 
@@ -356,7 +388,7 @@ $(arch)-stamp-cygnus-installed:  $(HOLESSTAMP) $(arch)-stamp-cygnus-checked
        $(SET_CYGNUS_PATH) cd $(CYGNUSDIR) ; $(TIME) $(MAKE) $(FLAGS_TO_PASS) $(GNUC) install-info
        if [ -f VAULT-INSTALL ] ; then \
          $(SET_CYGNUS_PATH) cd $(CYGNUSDIR) ; $(MAKE) $(FLAGS_TO_PASS) $(GNUC) vault-install ; \
-       fi
+       else true ; fi
        touch $@
 
 $(arch)-stamp-cygnus-checked: $(HOLESSTAMP) $(arch)-stamp-cygnus-built
@@ -562,13 +594,17 @@ $(host)-stamp-stage3-installed: $(host)-stamp-stage3-checked
        $(SET_CYGNUS_PATH) cd $(WORKING_DIR) ; $(TIME) $(MAKE) -w $(FLAGS_TO_PASS) $(GNUC) "CFLAGS=$(CFLAGS)" install-info host=$(host)
        if [ -f VAULT-INSTALL ] ; then \
          $(SET_CYGNUS_PATH) cd $(CYGNUSDIR) ; $(MAKE) $(FLAGS_TO_PASS) $(GNUC) vault-install ; \
-       fi
+       else true ; fi
        touch $@
 
 $(host)-stamp-stage3-checked: $(host)-stamp-stage3-built
 #      $(SET_CYGNUS_PATH) cd $(WORKING_DIR) ; $(TIME) $(MAKE) -w $(FLAGS_TO_PASS) $(GNUC) "CFLAGS=$(CFLAGS)" check host=$(host)
        touch $@
 
+$(host)-check-3stage: $(host)-stamp-stage3
+       $(SET_CYGNUS_PATH) cd $(STAGE3DIR) ; $(TIME) $(MAKE) -w $(FLAGS_TO_PASS) $(GNUC) "CFLAGS=$(CFLAGS)" check host=$(host)
+       touch $@
+
 $(host)-stamp-stage3-built: $(host)-stamp-stage3-configured
        $(SET_CYGNUS_PATH) cd $(WORKING_DIR) ; $(TIME) $(MAKE) -w $(FLAGS_TO_PASS) $(GNUC) "CFLAGS=$(CFLAGS)" all host=$(host)
        $(SET_CYGNUS_PATH) cd $(WORKING_DIR) ; $(TIME) $(MAKE) -w $(FLAGS_TO_PASS) $(GNUC) "CFLAGS=$(CFLAGS)" info host=$(host)
@@ -657,6 +693,7 @@ HOLES := \
        rmdir \
        sed \
        sh \
+       sleep \
        sort \
        tar \
        test \
@@ -679,7 +716,7 @@ endif
 
 ### solaris 2 -- don't use /usr/ucb/cc
 ifeq (sparc-sun-solaris2,$(holesys))
-SET_NATIVE_HOLES := SHELL=sh ; PATH=/opt/SUNWspro/bin:`pwd`/$(HOLESDIR) ; export PATH ; export SHELL ;
+SET_NATIVE_HOLES := SHELL=$(SHELL) ; PATH=/opt/SUNWspro/bin:`pwd`/$(HOLESDIR) ; export PATH ; export SHELL ;
 HOLE_DIRS := /usr/ccs/bin
 CC_HOLE :=
 NUKEM := cc 
@@ -689,6 +726,14 @@ ifeq ($(host),i386-go32)
 DOS_HOLES := aout2exe doschk file
 endif
 
+ifeq ($(host),i386-lynx)
+MAKE_HOLE := make
+endif
+
+ifeq ($(host),m68k-lynx)
+MAKE_HOLE := make
+endif
+
 ### These things are also needed by a three-stage, but in this case, the GNU version of the tool is required.
 PARTIAL_HOLES := \
        $(MAKE_HOLE) \
@@ -711,7 +756,8 @@ PARTIAL_HOLE_DIRS := \
        /usr/progressive/bin \
        $(PARTIAL_HOLE_DIRS) \
        /usr/vintage/bin \
-       /usr/unsupported/bin
+       /usr/unsupported/bin \
+       $(HOLE_DIRS)
 
 $(HOLESDIR): $(holesys)-stamp-holes
 
@@ -842,7 +888,7 @@ comparison-stage3to4: $(host)-stamp-4stage-compared
 
 $(host)-stamp-3stage-compared:
        rm -f .bad-compare
-ifeq ($(patsubst %-lynxos,mips-sgi-irix4,$(subst i386-sco3.2v4,mips-sgi-irix4,$(subst rs6000-ibm-aix,mips-sgi-irix4,$(subst mips-dec-ultrix,mips-sgi-irix4,$(host))))),mips-sgi-irix4)
+ifeq ($(patsubst %-lynx,mips-sgi-irix4,$(subst i386-sco3.2v4,mips-sgi-irix4,$(subst rs6000-ibm-aix,mips-sgi-irix4,$(subst mips-dec-ultrix,mips-sgi-irix4,$(host))))),mips-sgi-irix4)
        for i in `cd $(STAGE3DIR) ; find . -name \*.o -print` ; do \
                tail +10c $(STAGE2DIR)/$$i > foo1 ; \
                tail +10c $(STAGE3DIR)/$$i > foo2 ; \
@@ -875,7 +921,7 @@ endif
 
 $(host)-stamp-4stage-compared:
        rm -f .bad-compare
-ifeq ($(patsubst %-lynxos,mips-sgi-irix4,$(subst i386-sco3.2v4,mips-sgi-irix4,$(subst rs6000-ibm-aix,mips-sgi-irix4,$(subst mips-dec-ultrix,mips-sgi-irix4,$(host))))),mips-sgi-irix4)
+ifeq ($(patsubst %-lynx,mips-sgi-irix4,$(subst i386-sco3.2v4,mips-sgi-irix4,$(subst rs6000-ibm-aix,mips-sgi-irix4,$(subst mips-dec-ultrix,mips-sgi-irix4,$(host))))),mips-sgi-irix4)
        for i in `cd $(STAGE4DIR) ; find . -name \*.o -print` ; do \
                tail +10c $(STAGE3DIR)/$$i > foo1 ; \
                tail +10c $(STAGE4DIR)/$$i > foo2 ; \
This page took 0.02553 seconds and 4 git commands to generate.