* c-typeprint.c (c_print_type): Assume demangled arguments
[deliverable/binutils-gdb.git] / test-build.mk
index e72243f6fc659cf3ef3243bbae44ca072522f2eb..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 := \
@@ -139,9 +145,9 @@ FLAGS_TO_PASS := \
        "TIME=$(TIME)" \
        "MAKEINFOFLAGS=$(MAKEINFOFLAGS)" \
        "MF=$(MF)" \
-       "SHELL=$(SHELL)" \
        "host=$(host)" \
-       "RELEASE_TAG=$(RELEASE_TAG)"
+       "RELEASE_TAG=$(RELEASE_TAG)" \
+       "SHELL=$(SHELL)" 
 
 configenv :=
 
@@ -153,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)
@@ -168,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)
@@ -358,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
@@ -564,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)
@@ -659,6 +693,7 @@ HOLES := \
        rmdir \
        sed \
        sh \
+       sleep \
        sort \
        tar \
        test \
@@ -691,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) \
@@ -713,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
 
@@ -844,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 ; \
@@ -877,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.024992 seconds and 4 git commands to generate.