add support for i386-unixware target, m68k-vxworks5.1 target, i960-vxworks5.1 target... always configure with --enable-gdbtk
This commit is contained in:
parent
db78f2aeb1
commit
1b9016457d
1 changed files with 74 additions and 35 deletions
105
test-build.mk
105
test-build.mk
|
@ -37,8 +37,9 @@ include $(TREE)/release-info
|
||||||
TIME :=
|
TIME :=
|
||||||
|
|
||||||
CONFIG_SHELL :=
|
CONFIG_SHELL :=
|
||||||
GCC := $(host)-gcc -O2
|
GCC := $(host)-gcc
|
||||||
GNUC := CC="$(GCC)"
|
GNUCFLAGS := -g -O2
|
||||||
|
GNUC := CC="$(GCC)" CFLAGS="$(GNUCFLAGS)"
|
||||||
CFLAGS := -g
|
CFLAGS := -g
|
||||||
CXXFLAGS := -g -O2
|
CXXFLAGS := -g -O2
|
||||||
GNU_MAKE := /usr/latest/bin/make -w
|
GNU_MAKE := /usr/latest/bin/make -w
|
||||||
|
@ -85,9 +86,10 @@ BISON := byacc
|
||||||
CC := $(host)-gcc
|
CC := $(host)-gcc
|
||||||
CC_FOR_BUILD := gcc
|
CC_FOR_BUILD := gcc
|
||||||
CC_FOR_TARGET := $(target)-gcc
|
CC_FOR_TARGET := $(target)-gcc
|
||||||
|
CFLAGS := $(GNUCFLAGS)
|
||||||
CXX := $(host)-gcc
|
CXX := $(host)-gcc
|
||||||
CXX_FOR_TARGET := $(target)-gcc
|
CXX_FOR_TARGET := $(target)-gcc
|
||||||
GCC := $(host)-gcc -O2
|
GCC := $(host)-gcc
|
||||||
GXX := $(host)-g++
|
GXX := $(host)-g++
|
||||||
GXX_FOR_TARGET := $(target)-g++
|
GXX_FOR_TARGET := $(target)-g++
|
||||||
HOST_PREFIX := $(build)-
|
HOST_PREFIX := $(build)-
|
||||||
|
@ -174,6 +176,10 @@ ifeq ($(host),hppa1.1-hp-hpux)
|
||||||
CC := cc -Wp,-H256000
|
CC := cc -Wp,-H256000
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(host),m68k-hp-hpux)
|
||||||
|
CC := cc -Wp,-P,-H256000
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(host),mips-mips-riscos5sysv)
|
ifeq ($(host),mips-mips-riscos5sysv)
|
||||||
CC := cc -non_shared -systype sysv
|
CC := cc -non_shared -systype sysv
|
||||||
endif
|
endif
|
||||||
|
@ -186,30 +192,33 @@ ifeq ($(host),m68k-sun-sunos4.1.1)
|
||||||
CC := cc -J
|
CC := cc -J
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# Support gdbtk everywhere
|
||||||
|
configargs = --enable-gdbtk
|
||||||
|
|
||||||
# We want to use stabs for MIPS targets.
|
# We want to use stabs for MIPS targets.
|
||||||
ifeq ($(target),mips-idt-ecoff)
|
ifeq ($(target),mips-idt-ecoff)
|
||||||
configargs = -with-stabs
|
configargs := $(configargs) --with-stabs
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(target),mips-dec-ultrix)
|
ifeq ($(target),mips-dec-ultrix)
|
||||||
configargs = -with-stabs
|
configargs := $(configargs) --with-stabs
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(target),mips-sgi-irix4)
|
ifeq ($(target),mips-sgi-irix4)
|
||||||
configargs = -with-stabs
|
configargs := $(configargs) --with-stabs
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(target),mips-sgi-irix5.2)
|
ifeq ($(target),mips-sgi-irix5)
|
||||||
configargs = -with-stabs
|
configargs := $(configargs) --with-stabs
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(target),alpha-dec-osf1.3)
|
ifeq ($(patsubst alpha-dec-osf%,alpha,$(target)),alpha)
|
||||||
configargs = -with-stabs
|
configargs := $(configargs) --with-stabs
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# We must use stabs for SVR4 targets.
|
# We must use stabs for SVR4 targets.
|
||||||
ifeq ($(target),i386-sysv4.2)
|
ifeq ($(target),i386-sysv4.2)
|
||||||
configargs = -with-stabs
|
configargs := $(configargs) --with-stabs
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq ($(CC), 'cc')
|
ifneq ($(CC), 'cc')
|
||||||
|
@ -280,13 +289,37 @@ configargs := $(configargs) --with-headers=/s1/cygnus/dejagnu/$(target)/include
|
||||||
--with-libs=/s1/cygnus/dejagnu/$(target)/lib
|
--with-libs=/s1/cygnus/dejagnu/$(target)/lib
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(patsubst %-i386-netware,i386-netware,$(target)),i386-netware)
|
||||||
|
configargs := $(configargs) \
|
||||||
|
--with-headers=/s1/cygnus/dejagnu/$(target)/include \
|
||||||
|
--with-libs=/s1/cygnus/dejagnu/$(target)/lib
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(patsubst %-sparc-sun-sunos4.1.3,sparc-sun-sunos4.1.3,$(target)),sparc-sun-sunos4.1.3)
|
ifeq ($(patsubst %-sparc-sun-sunos4.1.3,sparc-sun-sunos4.1.3,$(target)),sparc-sun-sunos4.1.3)
|
||||||
configargs := $(configargs) --with-headers=/s1/cygnus/dejagnu/$(target)/include \
|
configargs := $(configargs) \
|
||||||
|
--with-headers=/s1/cygnus/dejagnu/$(target)/include \
|
||||||
--with-libs=/s1/cygnus/dejagnu/$(target)/lib
|
--with-libs=/s1/cygnus/dejagnu/$(target)/lib
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(patsubst %-sparc-sun-solaris2,sparc-sun-solaris2,$(target)),sparc-sun-solaris2)
|
ifeq ($(patsubst %-sparc-sun-solaris2,sparc-sun-solaris2,$(target)),sparc-sun-solaris2)
|
||||||
configargs := $(configargs) --with-headers=/s1/cygnus/dejagnu/$(target)/include \
|
configargs := $(configargs) \
|
||||||
|
--with-headers=/s1/cygnus/dejagnu/$(target)/include \
|
||||||
|
--with-libs=/s1/cygnus/dejagnu/$(target)/lib
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(patsubst %-i960-vxworks5.1,i960-vxworks5.1,$(target)),i960-vxworks5.1)
|
||||||
|
configargs := $(configargs) \
|
||||||
|
--with-headers=/s1/cygnus/dejagnu/$(target)/include
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(patsubst %-m68k-vxworks5.1,m68k-vxworks5.1,$(target)),m68k-vxworks5.1)
|
||||||
|
configargs := $(configargs) \
|
||||||
|
--with-headers=/s1/cygnus/dejagnu/$(target)/include
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(patsubst %-i386-unixware,i386-unixware,$(target)),i386-unixware)
|
||||||
|
configargs := $(configargs) \
|
||||||
|
--with-headers=/s1/cygnus/dejagnu/$(target)/include \
|
||||||
--with-libs=/s1/cygnus/dejagnu/$(target)/lib
|
--with-libs=/s1/cygnus/dejagnu/$(target)/lib
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -545,6 +578,9 @@ $(host)-stamp-stage1-installed: $(host)-stamp-stage1-checked
|
||||||
$(SET_NATIVE_HOLES) cd $(WORKING_DIR) ; $(TIME) $(MAKE) $(FLAGS_TO_PASS) "CFLAGS=$(CFLAGS)" install-info host=$(host)
|
$(SET_NATIVE_HOLES) cd $(WORKING_DIR) ; $(TIME) $(MAKE) $(FLAGS_TO_PASS) "CFLAGS=$(CFLAGS)" install-info host=$(host)
|
||||||
ifeq ($(host),rs6000-ibm-aix)
|
ifeq ($(host),rs6000-ibm-aix)
|
||||||
-rm $(relbindir)/make
|
-rm $(relbindir)/make
|
||||||
|
endif
|
||||||
|
ifeq ($(host),rs6000-ibm-aix3.2.5)
|
||||||
|
-rm $(relbindir)/make
|
||||||
endif
|
endif
|
||||||
touch $@
|
touch $@
|
||||||
|
|
||||||
|
@ -568,9 +604,9 @@ do2: $(HOLESDIR) $(host)-stamp-stage2
|
||||||
|
|
||||||
do2-vault: $(HOLESSTAMP) $(host)-stamp-stage2-built
|
do2-vault: $(HOLESSTAMP) $(host)-stamp-stage2-built
|
||||||
if [ -d $(WORKING_DIR).2 ] ; then \
|
if [ -d $(WORKING_DIR).2 ] ; then \
|
||||||
$(SET_CYGNUS_PATH) cd $(WORKING_DIR).2 ; $(MAKE) $(FLAGS_TO_PASS) host=$(host) "CFLAGS=$(CFLAGS)" vault-install ; \
|
$(SET_CYGNUS_PATH) cd $(WORKING_DIR).2 ; $(MAKE) $(FLAGS_TO_PASS) host=$(host) "CFLAGS=$(GNUCFLAGS)" vault-install ; \
|
||||||
else \
|
else \
|
||||||
$(SET_CYGNUS_PATH) cd $(WORKING_DIR) ; $(MAKE) $(FLAGS_TO_PASS) host=$(host) "CFLAGS=$(CFLAGS)" vault-install ; \
|
$(SET_CYGNUS_PATH) cd $(WORKING_DIR) ; $(MAKE) $(FLAGS_TO_PASS) host=$(host) "CFLAGS=$(GNUCFLAGS)" vault-install ; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
@ -592,17 +628,17 @@ $(host)-stamp-stage2:
|
||||||
# we delete the installed make program.
|
# we delete the installed make program.
|
||||||
$(host)-stamp-stage2-installed: $(host)-stamp-stage2-checked
|
$(host)-stamp-stage2-installed: $(host)-stamp-stage2-checked
|
||||||
-rm -f $(relbindir)/make
|
-rm -f $(relbindir)/make
|
||||||
$(SET_CYGNUS_PATH) cd $(WORKING_DIR) ; $(TIME) $(GNU_MAKE) -w $(FLAGS_TO_PASS) $(GNUC) "CFLAGS=$(CFLAGS)" install host=$(host)
|
$(SET_CYGNUS_PATH) cd $(WORKING_DIR) ; $(TIME) $(GNU_MAKE) -w $(FLAGS_TO_PASS) $(GNUC) install host=$(host)
|
||||||
$(SET_CYGNUS_PATH) cd $(WORKING_DIR) ; $(TIME) $(MAKE) -w $(FLAGS_TO_PASS) $(GNUC) "CFLAGS=$(CFLAGS)" install-info host=$(host)
|
$(SET_CYGNUS_PATH) cd $(WORKING_DIR) ; $(TIME) $(MAKE) -w $(FLAGS_TO_PASS) $(GNUC) install-info host=$(host)
|
||||||
touch $@
|
touch $@
|
||||||
|
|
||||||
$(host)-stamp-stage2-checked: $(host)-stamp-stage2-built
|
$(host)-stamp-stage2-checked: $(host)-stamp-stage2-built
|
||||||
# $(SET_CYGNUS_PATH) cd $(WORKING_DIR) ; $(TIME) $(MAKE) -w $(FLAGS_TO_PASS) $(GNUC) "CFLAGS=$(CFLAGS)" check host=$(host)
|
# $(SET_CYGNUS_PATH) cd $(WORKING_DIR) ; $(TIME) $(MAKE) -w $(FLAGS_TO_PASS) $(GNUC) check host=$(host)
|
||||||
touch $@
|
touch $@
|
||||||
|
|
||||||
$(host)-stamp-stage2-built: $(host)-stamp-stage2-configured
|
$(host)-stamp-stage2-built: $(host)-stamp-stage2-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) all host=$(host)
|
||||||
$(SET_CYGNUS_PATH) cd $(WORKING_DIR) ; $(TIME) $(MAKE) -w $(FLAGS_TO_PASS) $(GNUC) "CFLAGS=$(CFLAGS)" info host=$(host)
|
$(SET_CYGNUS_PATH) cd $(WORKING_DIR) ; $(TIME) $(MAKE) -w $(FLAGS_TO_PASS) $(GNUC) info host=$(host)
|
||||||
touch $@
|
touch $@
|
||||||
|
|
||||||
$(host)-stamp-stage2-configured:
|
$(host)-stamp-stage2-configured:
|
||||||
|
@ -616,9 +652,9 @@ do3: $(HOLESDIR) $(host)-stamp-stage3
|
||||||
|
|
||||||
do3-vault: $(HOLESSTAMP) $(host)-stamp-stage3-built
|
do3-vault: $(HOLESSTAMP) $(host)-stamp-stage3-built
|
||||||
if [ -d $(WORKING_DIR).3 ] ; then \
|
if [ -d $(WORKING_DIR).3 ] ; then \
|
||||||
$(SET_CYGNUS_PATH) cd $(WORKING_DIR).3 ; $(MAKE) $(FLAGS_TO_PASS) host=$(host) "CFLAGS=$(CFLAGS)" vault-install ; \
|
$(SET_CYGNUS_PATH) cd $(WORKING_DIR).3 ; $(MAKE) $(FLAGS_TO_PASS) host=$(host) "CFLAGS=$(GNUCFLAGS)" vault-install ; \
|
||||||
else \
|
else \
|
||||||
$(SET_CYGNUS_PATH) cd $(WORKING_DIR) ; $(MAKE) $(FLAGS_TO_PASS) host=$(host) "CFLAGS=$(CFLAGS)" vault-install ; \
|
$(SET_CYGNUS_PATH) cd $(WORKING_DIR) ; $(MAKE) $(FLAGS_TO_PASS) host=$(host) "CFLAGS=$(GNUCFLAGS)" vault-install ; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
$(host)-stamp-stage3:
|
$(host)-stamp-stage3:
|
||||||
|
@ -638,24 +674,24 @@ $(host)-stamp-stage3:
|
||||||
# we delete the installed make program.
|
# we delete the installed make program.
|
||||||
$(host)-stamp-stage3-installed: $(host)-stamp-stage3-checked
|
$(host)-stamp-stage3-installed: $(host)-stamp-stage3-checked
|
||||||
-rm -f $(relbindir)/make
|
-rm -f $(relbindir)/make
|
||||||
$(SET_CYGNUS_PATH) cd $(WORKING_DIR) ; $(TIME) $(GNU_MAKE) -w $(FLAGS_TO_PASS) $(GNUC) "CFLAGS=$(CFLAGS)" install host=$(host)
|
$(SET_CYGNUS_PATH) cd $(WORKING_DIR) ; $(TIME) $(GNU_MAKE) -w $(FLAGS_TO_PASS) $(GNUC) install host=$(host)
|
||||||
$(SET_CYGNUS_PATH) cd $(WORKING_DIR) ; $(TIME) $(MAKE) -w $(FLAGS_TO_PASS) $(GNUC) "CFLAGS=$(CFLAGS)" install-info host=$(host)
|
$(SET_CYGNUS_PATH) cd $(WORKING_DIR) ; $(TIME) $(MAKE) -w $(FLAGS_TO_PASS) $(GNUC) install-info host=$(host)
|
||||||
if [ -f VAULT-INSTALL ] ; then \
|
if [ -f VAULT-INSTALL ] ; then \
|
||||||
$(SET_CYGNUS_PATH) cd $(CYGNUSDIR) ; $(MAKE) $(FLAGS_TO_PASS) $(GNUC) vault-install ; \
|
$(SET_CYGNUS_PATH) cd $(CYGNUSDIR) ; $(MAKE) $(FLAGS_TO_PASS) $(GNUC) vault-install ; \
|
||||||
else true ; fi
|
else true ; fi
|
||||||
touch $@
|
touch $@
|
||||||
|
|
||||||
$(host)-stamp-stage3-checked: $(host)-stamp-stage3-built
|
$(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)
|
# $(SET_CYGNUS_PATH) cd $(WORKING_DIR) ; $(TIME) $(MAKE) -w $(FLAGS_TO_PASS) $(GNUC) check host=$(host)
|
||||||
touch $@
|
touch $@
|
||||||
|
|
||||||
$(host)-check-3stage: $(host)-stamp-stage3
|
$(host)-check-3stage: $(host)-stamp-stage3
|
||||||
$(SET_CYGNUS_PATH) cd $(STAGE3DIR) ; $(TIME) $(MAKE) -w $(FLAGS_TO_PASS) $(GNUC) "CFLAGS=$(CFLAGS)" check host=$(host)
|
$(SET_CYGNUS_PATH) cd $(STAGE3DIR) ; $(TIME) $(MAKE) -k -w $(FLAGS_TO_PASS) $(GNUC) check host=$(host)
|
||||||
touch $@
|
touch $@
|
||||||
|
|
||||||
$(host)-stamp-stage3-built: $(host)-stamp-stage3-configured
|
$(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) all host=$(host)
|
||||||
$(SET_CYGNUS_PATH) cd $(WORKING_DIR) ; $(TIME) $(MAKE) -w $(FLAGS_TO_PASS) $(GNUC) "CFLAGS=$(CFLAGS)" info host=$(host)
|
$(SET_CYGNUS_PATH) cd $(WORKING_DIR) ; $(TIME) $(MAKE) -w $(FLAGS_TO_PASS) $(GNUC) info host=$(host)
|
||||||
touch $@
|
touch $@
|
||||||
|
|
||||||
$(host)-stamp-stage3-configured:
|
$(host)-stamp-stage3-configured:
|
||||||
|
@ -679,17 +715,17 @@ $(host)-stamp-stage4:
|
||||||
|
|
||||||
|
|
||||||
$(host)-stamp-stage4-installed: $(host)-stamp-stage4-checked
|
$(host)-stamp-stage4-installed: $(host)-stamp-stage4-checked
|
||||||
$(SET_CYGNUS_PATH) cd $(WORKING_DIR) ; $(TIME) $(MAKE) -w $(FLAGS_TO_PASS) $(GNUC) "CFLAGS=$(CFLAGS)" install host=$(host)
|
$(SET_CYGNUS_PATH) cd $(WORKING_DIR) ; $(TIME) $(MAKE) -w $(FLAGS_TO_PASS) $(GNUC) install host=$(host)
|
||||||
$(SET_CYGNUS_PATH) cd $(WORKING_DIR) ; $(TIME) $(MAKE) -w $(FLAGS_TO_PASS) $(GNUC) "CFLAGS=$(CFLAGS)" install-info host=$(host)
|
$(SET_CYGNUS_PATH) cd $(WORKING_DIR) ; $(TIME) $(MAKE) -w $(FLAGS_TO_PASS) $(GNUC) install-info host=$(host)
|
||||||
touch $@
|
touch $@
|
||||||
|
|
||||||
$(host)-stamp-stage4-checked: $(host)-stamp-stage4-built
|
$(host)-stamp-stage4-checked: $(host)-stamp-stage4-built
|
||||||
# $(SET_CYGNUS_PATH) cd $(WORKING_DIR) ; $(TIME) $(MAKE) -w $(FLAGS_TO_PASS) $(GNUC) "CFLAGS=$(CFLAGS)" check host=$(host)
|
# $(SET_CYGNUS_PATH) cd $(WORKING_DIR) ; $(TIME) $(MAKE) -w $(FLAGS_TO_PASS) $(GNUC) check host=$(host)
|
||||||
touch $@
|
touch $@
|
||||||
|
|
||||||
$(host)-stamp-stage4-built: $(host)-stamp-stage4-configured
|
$(host)-stamp-stage4-built: $(host)-stamp-stage4-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) all host=$(host)
|
||||||
$(SET_CYGNUS_PATH) cd $(WORKING_DIR) ; $(TIME) $(MAKE) -w $(FLAGS_TO_PASS) $(GNUC) "CFLAGS=$(CFLAGS)" info host=$(host)
|
$(SET_CYGNUS_PATH) cd $(WORKING_DIR) ; $(TIME) $(MAKE) -w $(FLAGS_TO_PASS) $(GNUC) info host=$(host)
|
||||||
touch $@
|
touch $@
|
||||||
|
|
||||||
$(host)-stamp-stage4-configured:
|
$(host)-stamp-stage4-configured:
|
||||||
|
@ -743,6 +779,7 @@ HOLES := \
|
||||||
sh \
|
sh \
|
||||||
sleep \
|
sleep \
|
||||||
sort \
|
sort \
|
||||||
|
tail \
|
||||||
tar \
|
tar \
|
||||||
test \
|
test \
|
||||||
time \
|
time \
|
||||||
|
@ -751,6 +788,7 @@ HOLES := \
|
||||||
true \
|
true \
|
||||||
uname \
|
uname \
|
||||||
uniq \
|
uniq \
|
||||||
|
uptime \
|
||||||
uudecode \
|
uudecode \
|
||||||
wc \
|
wc \
|
||||||
whoami
|
whoami
|
||||||
|
@ -804,6 +842,7 @@ HOLE_DIRS := \
|
||||||
/bin \
|
/bin \
|
||||||
/usr/bin \
|
/usr/bin \
|
||||||
/usr/ucb \
|
/usr/ucb \
|
||||||
|
/etc /usr/etc \
|
||||||
/usr/unsupported/bin
|
/usr/unsupported/bin
|
||||||
|
|
||||||
### look in these directories for alternate versions of some tools.
|
### look in these directories for alternate versions of some tools.
|
||||||
|
|
Loading…
Reference in a new issue