# Should be substed by configure.in
FLAGS_FOR_TARGET = @FLAGS_FOR_TARGET@
CC_FOR_TARGET = @CC_FOR_TARGET@
-BASE_CC_FOR_TARGET = @BASE_CC_FOR_TARGET@
CXX_FOR_TARGET = @CXX_FOR_TARGET@
RAW_CXX_FOR_TARGET = @RAW_CXX_FOR_TARGET@
CXX_FOR_TARGET_FOR_RECURSIVE_MAKE = @CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@
GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS)
-# This is a list of the configure targets for all of the modules which
-# are compiled using the target tools.
-CONFIGURE_TARGET_MODULES = \
- configure-target-libstdc++-v3 \
- configure-target-newlib \
- configure-target-libf2c \
- configure-target-libobjc \
- configure-target-libtermcap \
- configure-target-winsup \
- configure-target-libgloss \
- configure-target-libiberty \
- configure-target-gperf \
- configure-target-examples \
- configure-target-libffi \
- configure-target-libjava \
- configure-target-zlib \
- configure-target-boehm-gc \
- configure-target-qthreads \
- configure-target-rda
-
-configure-target: $(CONFIGURE_TARGET_MODULES)
+configure-host: @configure_host_modules@
+configure-target: @configure_target_modules@
# This is a list of the targets for which we can do a clean-{target}.
CLEAN_MODULES = \
@all_host_modules@ \
@all_target_modules@
+all-host: @all_host_modules@
all-target: @all_target_modules@
# Do a target for all the subdirectories. A ``make do-X'' will do a
.PHONY: all-ash maybe-all-ash
maybe-all-ash:
-all-ash:
+all-ash: configure-ash
@r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
.PHONY: all-autoconf maybe-all-autoconf
maybe-all-autoconf:
-all-autoconf:
+all-autoconf: configure-autoconf
@r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
.PHONY: all-automake maybe-all-automake
maybe-all-automake:
-all-automake:
+all-automake: configure-automake
@r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
.PHONY: all-bash maybe-all-bash
maybe-all-bash:
-all-bash:
+all-bash: configure-bash
@r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
.PHONY: all-bfd maybe-all-bfd
maybe-all-bfd:
-all-bfd:
+all-bfd: configure-bfd
@r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
.PHONY: all-opcodes maybe-all-opcodes
maybe-all-opcodes:
-all-opcodes:
+all-opcodes: configure-opcodes
@r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
.PHONY: all-binutils maybe-all-binutils
maybe-all-binutils:
-all-binutils:
+all-binutils: configure-binutils
@r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
.PHONY: all-bison maybe-all-bison
maybe-all-bison:
-all-bison:
+all-bison: configure-bison
@r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
.PHONY: all-byacc maybe-all-byacc
maybe-all-byacc:
-all-byacc:
+all-byacc: configure-byacc
@r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
.PHONY: all-bzip2 maybe-all-bzip2
maybe-all-bzip2:
-all-bzip2:
+all-bzip2: configure-bzip2
@r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
.PHONY: all-db maybe-all-db
maybe-all-db:
-all-db:
+all-db: configure-db
@r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
.PHONY: all-dejagnu maybe-all-dejagnu
maybe-all-dejagnu:
-all-dejagnu:
+all-dejagnu: configure-dejagnu
@r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
.PHONY: all-diff maybe-all-diff
maybe-all-diff:
-all-diff:
+all-diff: configure-diff
@r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
.PHONY: all-dosutils maybe-all-dosutils
maybe-all-dosutils:
-all-dosutils:
+all-dosutils: configure-dosutils
@r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
.PHONY: all-etc maybe-all-etc
maybe-all-etc:
-all-etc:
+all-etc: configure-etc
@r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
.PHONY: all-fastjar maybe-all-fastjar
maybe-all-fastjar:
-all-fastjar:
+all-fastjar: configure-fastjar
@r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
.PHONY: all-fileutils maybe-all-fileutils
maybe-all-fileutils:
-all-fileutils:
+all-fileutils: configure-fileutils
@r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
.PHONY: all-findutils maybe-all-findutils
maybe-all-findutils:
-all-findutils:
+all-findutils: configure-findutils
@r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
.PHONY: all-find maybe-all-find
maybe-all-find:
-all-find:
+all-find: configure-find
@r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
.PHONY: all-flex maybe-all-flex
maybe-all-flex:
-all-flex:
+all-flex: configure-flex
@r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
.PHONY: all-gas maybe-all-gas
maybe-all-gas:
-all-gas:
+all-gas: configure-gas
@r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
.PHONY: all-gawk maybe-all-gawk
maybe-all-gawk:
-all-gawk:
+all-gawk: configure-gawk
@r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
.PHONY: all-gettext maybe-all-gettext
maybe-all-gettext:
-all-gettext:
+all-gettext: configure-gettext
@r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
.PHONY: all-gnuserv maybe-all-gnuserv
maybe-all-gnuserv:
-all-gnuserv:
+all-gnuserv: configure-gnuserv
@r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
.PHONY: all-gprof maybe-all-gprof
maybe-all-gprof:
-all-gprof:
+all-gprof: configure-gprof
@r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
.PHONY: all-grep maybe-all-grep
maybe-all-grep:
-all-grep:
+all-grep: configure-grep
@r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
.PHONY: all-gzip maybe-all-gzip
maybe-all-gzip:
-all-gzip:
+all-gzip: configure-gzip
@r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
.PHONY: all-hello maybe-all-hello
maybe-all-hello:
-all-hello:
+all-hello: configure-hello
@r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
.PHONY: all-indent maybe-all-indent
maybe-all-indent:
-all-indent:
+all-indent: configure-indent
@r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
.PHONY: all-intl maybe-all-intl
maybe-all-intl:
-all-intl:
+all-intl: configure-intl
@r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
.PHONY: all-tcl maybe-all-tcl
maybe-all-tcl:
-all-tcl:
+all-tcl: configure-tcl
@r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
.PHONY: all-itcl maybe-all-itcl
maybe-all-itcl:
-all-itcl:
+all-itcl: configure-itcl
@r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
.PHONY: all-ld maybe-all-ld
maybe-all-ld:
-all-ld:
+all-ld: configure-ld
@r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
.PHONY: all-libgui maybe-all-libgui
maybe-all-libgui:
-all-libgui:
+all-libgui: configure-libgui
@r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
.PHONY: all-libiberty maybe-all-libiberty
maybe-all-libiberty:
-all-libiberty:
+all-libiberty: configure-libiberty
@r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
.PHONY: all-libtool maybe-all-libtool
maybe-all-libtool:
-all-libtool:
+all-libtool: configure-libtool
@r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
.PHONY: all-m4 maybe-all-m4
maybe-all-m4:
-all-m4:
+all-m4: configure-m4
@r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
.PHONY: all-make maybe-all-make
maybe-all-make:
-all-make:
+all-make: configure-make
@r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
.PHONY: all-mmalloc maybe-all-mmalloc
maybe-all-mmalloc:
-all-mmalloc:
+all-mmalloc: configure-mmalloc
@r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
.PHONY: all-patch maybe-all-patch
maybe-all-patch:
-all-patch:
+all-patch: configure-patch
@r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
.PHONY: all-perl maybe-all-perl
maybe-all-perl:
-all-perl:
+all-perl: configure-perl
@r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
.PHONY: all-prms maybe-all-prms
maybe-all-prms:
-all-prms:
+all-prms: configure-prms
@r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
.PHONY: all-rcs maybe-all-rcs
maybe-all-rcs:
-all-rcs:
+all-rcs: configure-rcs
@r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
.PHONY: all-readline maybe-all-readline
maybe-all-readline:
-all-readline:
+all-readline: configure-readline
@r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
.PHONY: all-release maybe-all-release
maybe-all-release:
-all-release:
+all-release: configure-release
@r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
.PHONY: all-recode maybe-all-recode
maybe-all-recode:
-all-recode:
+all-recode: configure-recode
@r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
.PHONY: all-sed maybe-all-sed
maybe-all-sed:
-all-sed:
+all-sed: configure-sed
@r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
.PHONY: all-send-pr maybe-all-send-pr
maybe-all-send-pr:
-all-send-pr:
+all-send-pr: configure-send-pr
@r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
.PHONY: all-shellutils maybe-all-shellutils
maybe-all-shellutils:
-all-shellutils:
+all-shellutils: configure-shellutils
@r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
.PHONY: all-sid maybe-all-sid
maybe-all-sid:
-all-sid:
+all-sid: configure-sid
@r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
.PHONY: all-sim maybe-all-sim
maybe-all-sim:
-all-sim:
+all-sim: configure-sim
@r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
.PHONY: all-snavigator maybe-all-snavigator
maybe-all-snavigator:
-all-snavigator:
+all-snavigator: configure-snavigator
@r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
.PHONY: all-tar maybe-all-tar
maybe-all-tar:
-all-tar:
+all-tar: configure-tar
@r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
.PHONY: all-texinfo maybe-all-texinfo
maybe-all-texinfo:
-all-texinfo:
+all-texinfo: configure-texinfo
@r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
.PHONY: all-textutils maybe-all-textutils
maybe-all-textutils:
-all-textutils:
+all-textutils: configure-textutils
@r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
.PHONY: all-time maybe-all-time
maybe-all-time:
-all-time:
+all-time: configure-time
@r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
.PHONY: all-uudecode maybe-all-uudecode
maybe-all-uudecode:
-all-uudecode:
+all-uudecode: configure-uudecode
@r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
.PHONY: all-wdiff maybe-all-wdiff
maybe-all-wdiff:
-all-wdiff:
+all-wdiff: configure-wdiff
@r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
.PHONY: all-zip maybe-all-zip
maybe-all-zip:
-all-zip:
+all-zip: configure-zip
@r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
.PHONY: all-zlib maybe-all-zlib
maybe-all-zlib:
-all-zlib:
+all-zlib: configure-zlib
@r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
.PHONY: all-gdb maybe-all-gdb
maybe-all-gdb:
-all-gdb:
+all-gdb: configure-gdb
@r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
.PHONY: all-expect maybe-all-expect
maybe-all-expect:
-all-expect:
+all-expect: configure-expect
@r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
.PHONY: all-guile maybe-all-guile
maybe-all-guile:
-all-guile:
+all-guile: configure-guile
@r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
.PHONY: all-tclX maybe-all-tclX
maybe-all-tclX:
-all-tclX:
+all-tclX: configure-tclX
@r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
.PHONY: all-tk maybe-all-tk
maybe-all-tk:
-all-tk:
+all-tk: configure-tk
@r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
.PHONY: all-tix maybe-all-tix
maybe-all-tix:
-all-tix:
+all-tix: configure-tix
@r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
.PHONY: all-libtermcap maybe-all-libtermcap
maybe-all-libtermcap:
-all-libtermcap:
+all-libtermcap: configure-libtermcap
@r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
.PHONY: all-utils maybe-all-utils
maybe-all-utils:
-all-utils:
+all-utils: configure-utils
@r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
maybe-configure-target-libstdc++-v3:
configure-target-libstdc++-v3: $(TARGET_SUBDIR)/libstdc++-v3/Makefile
-$(TARGET_SUBDIR)/libstdc++-v3/multilib.out: $(BASE_CC_FOR_TARGET)
+# Don't manually override CC_FOR_TARGET at make time; get it set right
+# at configure time. Otherwise multilibs may be wrong.
+$(TARGET_SUBDIR)/libstdc++-v3/multilib.out: maybe-all-gcc
@[ -d $(TARGET_SUBDIR)/libstdc++-v3 ] || mkdir $(TARGET_SUBDIR)/libstdc++-v3;\
r=`${PWD}`; export r; \
echo "Configuring multilibs for libstdc++-v3"; \
maybe-configure-target-newlib:
configure-target-newlib: $(TARGET_SUBDIR)/newlib/Makefile
-$(TARGET_SUBDIR)/newlib/multilib.out: $(BASE_CC_FOR_TARGET)
+# Don't manually override CC_FOR_TARGET at make time; get it set right
+# at configure time. Otherwise multilibs may be wrong.
+$(TARGET_SUBDIR)/newlib/multilib.out: maybe-all-gcc
@[ -d $(TARGET_SUBDIR)/newlib ] || mkdir $(TARGET_SUBDIR)/newlib;\
r=`${PWD}`; export r; \
echo "Configuring multilibs for newlib"; \
maybe-configure-target-libf2c:
configure-target-libf2c: $(TARGET_SUBDIR)/libf2c/Makefile
-$(TARGET_SUBDIR)/libf2c/multilib.out: $(BASE_CC_FOR_TARGET)
+# Don't manually override CC_FOR_TARGET at make time; get it set right
+# at configure time. Otherwise multilibs may be wrong.
+$(TARGET_SUBDIR)/libf2c/multilib.out: maybe-all-gcc
@[ -d $(TARGET_SUBDIR)/libf2c ] || mkdir $(TARGET_SUBDIR)/libf2c;\
r=`${PWD}`; export r; \
echo "Configuring multilibs for libf2c"; \
maybe-configure-target-libobjc:
configure-target-libobjc: $(TARGET_SUBDIR)/libobjc/Makefile
-$(TARGET_SUBDIR)/libobjc/multilib.out: $(BASE_CC_FOR_TARGET)
+# Don't manually override CC_FOR_TARGET at make time; get it set right
+# at configure time. Otherwise multilibs may be wrong.
+$(TARGET_SUBDIR)/libobjc/multilib.out: maybe-all-gcc
@[ -d $(TARGET_SUBDIR)/libobjc ] || mkdir $(TARGET_SUBDIR)/libobjc;\
r=`${PWD}`; export r; \
echo "Configuring multilibs for libobjc"; \
maybe-configure-target-libtermcap:
configure-target-libtermcap: $(TARGET_SUBDIR)/libtermcap/Makefile
-$(TARGET_SUBDIR)/libtermcap/multilib.out: $(BASE_CC_FOR_TARGET)
+# Don't manually override CC_FOR_TARGET at make time; get it set right
+# at configure time. Otherwise multilibs may be wrong.
+$(TARGET_SUBDIR)/libtermcap/multilib.out: maybe-all-gcc
@[ -d $(TARGET_SUBDIR)/libtermcap ] || mkdir $(TARGET_SUBDIR)/libtermcap;\
r=`${PWD}`; export r; \
echo "Configuring multilibs for libtermcap"; \
maybe-configure-target-winsup:
configure-target-winsup: $(TARGET_SUBDIR)/winsup/Makefile
-$(TARGET_SUBDIR)/winsup/multilib.out: $(BASE_CC_FOR_TARGET)
+# Don't manually override CC_FOR_TARGET at make time; get it set right
+# at configure time. Otherwise multilibs may be wrong.
+$(TARGET_SUBDIR)/winsup/multilib.out: maybe-all-gcc
@[ -d $(TARGET_SUBDIR)/winsup ] || mkdir $(TARGET_SUBDIR)/winsup;\
r=`${PWD}`; export r; \
echo "Configuring multilibs for winsup"; \
maybe-configure-target-libgloss:
configure-target-libgloss: $(TARGET_SUBDIR)/libgloss/Makefile
-$(TARGET_SUBDIR)/libgloss/multilib.out: $(BASE_CC_FOR_TARGET)
+# Don't manually override CC_FOR_TARGET at make time; get it set right
+# at configure time. Otherwise multilibs may be wrong.
+$(TARGET_SUBDIR)/libgloss/multilib.out: maybe-all-gcc
@[ -d $(TARGET_SUBDIR)/libgloss ] || mkdir $(TARGET_SUBDIR)/libgloss;\
r=`${PWD}`; export r; \
echo "Configuring multilibs for libgloss"; \
maybe-configure-target-libiberty:
configure-target-libiberty: $(TARGET_SUBDIR)/libiberty/Makefile
-$(TARGET_SUBDIR)/libiberty/multilib.out: $(BASE_CC_FOR_TARGET)
+# Don't manually override CC_FOR_TARGET at make time; get it set right
+# at configure time. Otherwise multilibs may be wrong.
+$(TARGET_SUBDIR)/libiberty/multilib.out: maybe-all-gcc
@[ -d $(TARGET_SUBDIR)/libiberty ] || mkdir $(TARGET_SUBDIR)/libiberty;\
r=`${PWD}`; export r; \
echo "Configuring multilibs for libiberty"; \
maybe-configure-target-gperf:
configure-target-gperf: $(TARGET_SUBDIR)/gperf/Makefile
-$(TARGET_SUBDIR)/gperf/multilib.out: $(BASE_CC_FOR_TARGET)
+# Don't manually override CC_FOR_TARGET at make time; get it set right
+# at configure time. Otherwise multilibs may be wrong.
+$(TARGET_SUBDIR)/gperf/multilib.out: maybe-all-gcc
@[ -d $(TARGET_SUBDIR)/gperf ] || mkdir $(TARGET_SUBDIR)/gperf;\
r=`${PWD}`; export r; \
echo "Configuring multilibs for gperf"; \
maybe-configure-target-examples:
configure-target-examples: $(TARGET_SUBDIR)/examples/Makefile
-$(TARGET_SUBDIR)/examples/multilib.out: $(BASE_CC_FOR_TARGET)
+# Don't manually override CC_FOR_TARGET at make time; get it set right
+# at configure time. Otherwise multilibs may be wrong.
+$(TARGET_SUBDIR)/examples/multilib.out: maybe-all-gcc
@[ -d $(TARGET_SUBDIR)/examples ] || mkdir $(TARGET_SUBDIR)/examples;\
r=`${PWD}`; export r; \
echo "Configuring multilibs for examples"; \
maybe-configure-target-libffi:
configure-target-libffi: $(TARGET_SUBDIR)/libffi/Makefile
-$(TARGET_SUBDIR)/libffi/multilib.out: $(BASE_CC_FOR_TARGET)
+# Don't manually override CC_FOR_TARGET at make time; get it set right
+# at configure time. Otherwise multilibs may be wrong.
+$(TARGET_SUBDIR)/libffi/multilib.out: maybe-all-gcc
@[ -d $(TARGET_SUBDIR)/libffi ] || mkdir $(TARGET_SUBDIR)/libffi;\
r=`${PWD}`; export r; \
echo "Configuring multilibs for libffi"; \
maybe-configure-target-libjava:
configure-target-libjava: $(TARGET_SUBDIR)/libjava/Makefile
-$(TARGET_SUBDIR)/libjava/multilib.out: $(BASE_CC_FOR_TARGET)
+# Don't manually override CC_FOR_TARGET at make time; get it set right
+# at configure time. Otherwise multilibs may be wrong.
+$(TARGET_SUBDIR)/libjava/multilib.out: maybe-all-gcc
@[ -d $(TARGET_SUBDIR)/libjava ] || mkdir $(TARGET_SUBDIR)/libjava;\
r=`${PWD}`; export r; \
echo "Configuring multilibs for libjava"; \
maybe-configure-target-zlib:
configure-target-zlib: $(TARGET_SUBDIR)/zlib/Makefile
-$(TARGET_SUBDIR)/zlib/multilib.out: $(BASE_CC_FOR_TARGET)
+# Don't manually override CC_FOR_TARGET at make time; get it set right
+# at configure time. Otherwise multilibs may be wrong.
+$(TARGET_SUBDIR)/zlib/multilib.out: maybe-all-gcc
@[ -d $(TARGET_SUBDIR)/zlib ] || mkdir $(TARGET_SUBDIR)/zlib;\
r=`${PWD}`; export r; \
echo "Configuring multilibs for zlib"; \
maybe-configure-target-boehm-gc:
configure-target-boehm-gc: $(TARGET_SUBDIR)/boehm-gc/Makefile
-$(TARGET_SUBDIR)/boehm-gc/multilib.out: $(BASE_CC_FOR_TARGET)
+# Don't manually override CC_FOR_TARGET at make time; get it set right
+# at configure time. Otherwise multilibs may be wrong.
+$(TARGET_SUBDIR)/boehm-gc/multilib.out: maybe-all-gcc
@[ -d $(TARGET_SUBDIR)/boehm-gc ] || mkdir $(TARGET_SUBDIR)/boehm-gc;\
r=`${PWD}`; export r; \
echo "Configuring multilibs for boehm-gc"; \
maybe-configure-target-qthreads:
configure-target-qthreads: $(TARGET_SUBDIR)/qthreads/Makefile
-$(TARGET_SUBDIR)/qthreads/multilib.out: $(BASE_CC_FOR_TARGET)
+# Don't manually override CC_FOR_TARGET at make time; get it set right
+# at configure time. Otherwise multilibs may be wrong.
+$(TARGET_SUBDIR)/qthreads/multilib.out: maybe-all-gcc
@[ -d $(TARGET_SUBDIR)/qthreads ] || mkdir $(TARGET_SUBDIR)/qthreads;\
r=`${PWD}`; export r; \
echo "Configuring multilibs for qthreads"; \
maybe-configure-target-rda:
configure-target-rda: $(TARGET_SUBDIR)/rda/Makefile
-$(TARGET_SUBDIR)/rda/multilib.out: $(BASE_CC_FOR_TARGET)
+# Don't manually override CC_FOR_TARGET at make time; get it set right
+# at configure time. Otherwise multilibs may be wrong.
+$(TARGET_SUBDIR)/rda/multilib.out: maybe-all-gcc
@[ -d $(TARGET_SUBDIR)/rda ] || mkdir $(TARGET_SUBDIR)/rda;\
r=`${PWD}`; export r; \
echo "Configuring multilibs for rda"; \
$(HOST_CONFIGARGS) $${srcdiroption} \
|| exit 1
+# Don't remake gcc if it's already been made by 'bootstrap'; that causes
+# nothing but trouble. This wart will be fixed eventually by moving
+# the bootstrap behavior to this file.
.PHONY: all-gcc maybe-all-gcc
maybe-all-gcc:
-all-gcc:
- @if [ -f ./gcc/Makefile ] ; then \
+all-gcc: configure-gcc
+ @if [ -f gcc/xgcc ] ; then \
+ exit 0 ; \
+ else \
r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
(cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) all); \
- else \
- true; \
fi
# Building GCC uses some tools for rebuilding "source" files
# in parallel.
#
.PHONY: bootstrap bootstrap-lean bootstrap2 bootstrap2-lean bootstrap3 bootstrap3-lean bootstrap4 bootstrap4-lean bubblestrap quickstrap cleanstrap restrap
-bootstrap bootstrap-lean bootstrap2 bootstrap2-lean bootstrap3 bootstrap3-lean bootstrap4 bootstrap4-lean bubblestrap quickstrap cleanstrap restrap: all-bootstrap
+bootstrap bootstrap-lean bootstrap2 bootstrap2-lean bootstrap3 bootstrap3-lean bootstrap4 bootstrap4-lean bubblestrap quickstrap cleanstrap restrap: all-bootstrap configure-gcc
@r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \