-maybe-all-stage2-gcc: all-stage2-gcc
-all-stage2-gcc: configure-stage2-gcc
- @$(MAKE) stage2-start
- @r=`${PWD_COMMAND}`; export r; \
- s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
- $(STAGE_HOST_EXPORTS) \
- cd gcc && \
- $(MAKE) $(FLAGS_TO_PASS) \
- $(POSTSTAGE1_FLAGS_TO_PASS) \
- $(EXTRA_GCC_FLAGS)
-
-maybe-clean-stage2-gcc: clean-stage2-gcc
-clean-stage2-gcc:
- @[ -f gcc/Makefile ] || [ -f stage2-gcc/Makefile ] \
- || exit 0 ; \
- [ -f gcc/Makefile ] || $(MAKE) stage2-start ; \
- cd gcc && \
- $(MAKE) $(FLAGS_TO_PASS) \
- $(POSTSTAGE1_FLAGS_TO_PASS) \
- $(EXTRA_GCC_FLAGS) clean
-@endif gcc-bootstrap
-
-
-.PHONY: configure-stage2-intl maybe-configure-stage2-intl
-.PHONY: all-stage2-intl maybe-all-stage2-intl
-.PHONY: clean-stage2-intl maybe-clean-stage2-intl
-
-maybe-configure-stage2-intl:
-maybe-all-stage2-intl:
-maybe-clean-stage2-intl:
-
-@if intl-bootstrap
-maybe-configure-stage2-intl: configure-stage2-intl
-configure-stage2-intl:
- @$(MAKE) stage2-start
- @[ -f intl/Makefile ] && exit 0 || : ; \
- r=`${PWD_COMMAND}`; export r; \
- s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
- $(STAGE_HOST_EXPORTS) \
- echo Configuring stage 2 in intl ; \
- cd intl || exit 1; \
- case $(srcdir) in \
- \.) \
- srcdiroption="--srcdir=."; \
- libsrcdir=".";; \
- /* | [A-Za-z]:[\\/]*) \
- srcdiroption="--srcdir=$(srcdir)/intl"; \
- libsrcdir="$$s/intl";; \
- *) \
- srcdiroption="--srcdir=../$(srcdir)/intl"; \
- libsrcdir="$$s/intl";; \
- esac; \
- $(SHELL) $${libsrcdir}/configure \
- $(HOST_CONFIGARGS) $${srcdiroption} \
- @stage2_werror_flag@
-
-maybe-all-stage2-intl: all-stage2-intl
-all-stage2-intl: configure-stage2-intl
- @$(MAKE) stage2-start
- @r=`${PWD_COMMAND}`; export r; \
- s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
- $(STAGE_HOST_EXPORTS) \
- cd intl && \
- $(MAKE) $(FLAGS_TO_PASS) \
- $(POSTSTAGE1_FLAGS_TO_PASS) \
-
-
-maybe-clean-stage2-intl: clean-stage2-intl
-clean-stage2-intl:
- @[ -f intl/Makefile ] || [ -f stage2-intl/Makefile ] \
- || exit 0 ; \
- [ -f intl/Makefile ] || $(MAKE) stage2-start ; \
- cd intl && \
- $(MAKE) $(FLAGS_TO_PASS) \
- $(POSTSTAGE1_FLAGS_TO_PASS) \
- clean
-@endif intl-bootstrap
-
-
-.PHONY: configure-stage2-ld maybe-configure-stage2-ld
-.PHONY: all-stage2-ld maybe-all-stage2-ld
-.PHONY: clean-stage2-ld maybe-clean-stage2-ld
-
-maybe-configure-stage2-ld:
-maybe-all-stage2-ld:
-maybe-clean-stage2-ld:
-
-@if ld-bootstrap
-maybe-configure-stage2-ld: configure-stage2-ld
-configure-stage2-ld:
- @$(MAKE) stage2-start
- @[ -f ld/Makefile ] && exit 0 || : ; \
- r=`${PWD_COMMAND}`; export r; \
- s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
- $(STAGE_HOST_EXPORTS) \
- echo Configuring stage 2 in ld ; \
- cd ld || exit 1; \
- case $(srcdir) in \
- \.) \
- srcdiroption="--srcdir=."; \
- libsrcdir=".";; \
- /* | [A-Za-z]:[\\/]*) \
- srcdiroption="--srcdir=$(srcdir)/ld"; \
- libsrcdir="$$s/ld";; \
- *) \
- srcdiroption="--srcdir=../$(srcdir)/ld"; \
- libsrcdir="$$s/ld";; \
- esac; \
- $(SHELL) $${libsrcdir}/configure \
- $(HOST_CONFIGARGS) $${srcdiroption} \
- @stage2_werror_flag@
-
-maybe-all-stage2-ld: all-stage2-ld
-all-stage2-ld: configure-stage2-ld
- @$(MAKE) stage2-start
- @r=`${PWD_COMMAND}`; export r; \
- s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
- $(STAGE_HOST_EXPORTS) \
- cd ld && \
- $(MAKE) $(FLAGS_TO_PASS) \
- $(POSTSTAGE1_FLAGS_TO_PASS) \
-
-
-maybe-clean-stage2-ld: clean-stage2-ld
-clean-stage2-ld:
- @[ -f ld/Makefile ] || [ -f stage2-ld/Makefile ] \
- || exit 0 ; \
- [ -f ld/Makefile ] || $(MAKE) stage2-start ; \
- cd ld && \
- $(MAKE) $(FLAGS_TO_PASS) \
- $(POSTSTAGE1_FLAGS_TO_PASS) \
- clean
-@endif ld-bootstrap
-
-
-.PHONY: configure-stage2-libcpp maybe-configure-stage2-libcpp
-.PHONY: all-stage2-libcpp maybe-all-stage2-libcpp
-.PHONY: clean-stage2-libcpp maybe-clean-stage2-libcpp
-
-maybe-configure-stage2-libcpp:
-maybe-all-stage2-libcpp:
-maybe-clean-stage2-libcpp:
-
-@if libcpp-bootstrap
-maybe-configure-stage2-libcpp: configure-stage2-libcpp
-configure-stage2-libcpp:
- @$(MAKE) stage2-start
- @[ -f libcpp/Makefile ] && exit 0 || : ; \
- r=`${PWD_COMMAND}`; export r; \
- s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
- $(STAGE_HOST_EXPORTS) \
- echo Configuring stage 2 in libcpp ; \
- cd libcpp || exit 1; \
- case $(srcdir) in \
- \.) \
- srcdiroption="--srcdir=."; \
- libsrcdir=".";; \
- /* | [A-Za-z]:[\\/]*) \
- srcdiroption="--srcdir=$(srcdir)/libcpp"; \
- libsrcdir="$$s/libcpp";; \
- *) \
- srcdiroption="--srcdir=../$(srcdir)/libcpp"; \
- libsrcdir="$$s/libcpp";; \
- esac; \
- $(SHELL) $${libsrcdir}/configure \
- $(HOST_CONFIGARGS) $${srcdiroption} \
- @stage2_werror_flag@
-
-maybe-all-stage2-libcpp: all-stage2-libcpp
-all-stage2-libcpp: configure-stage2-libcpp
- @$(MAKE) stage2-start
- @r=`${PWD_COMMAND}`; export r; \
- s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
- $(STAGE_HOST_EXPORTS) \
- cd libcpp && \
- $(MAKE) $(FLAGS_TO_PASS) \
- $(POSTSTAGE1_FLAGS_TO_PASS) \
-
-
-maybe-clean-stage2-libcpp: clean-stage2-libcpp
-clean-stage2-libcpp:
- @[ -f libcpp/Makefile ] || [ -f stage2-libcpp/Makefile ] \
- || exit 0 ; \
- [ -f libcpp/Makefile ] || $(MAKE) stage2-start ; \
- cd libcpp && \
- $(MAKE) $(FLAGS_TO_PASS) \
- $(POSTSTAGE1_FLAGS_TO_PASS) \
- clean
-@endif libcpp-bootstrap
-
-
-.PHONY: configure-stage2-libiberty maybe-configure-stage2-libiberty
-.PHONY: all-stage2-libiberty maybe-all-stage2-libiberty
-.PHONY: clean-stage2-libiberty maybe-clean-stage2-libiberty
-
-maybe-configure-stage2-libiberty:
-maybe-all-stage2-libiberty:
-maybe-clean-stage2-libiberty:
-
-@if libiberty-bootstrap
-maybe-configure-stage2-libiberty: configure-stage2-libiberty
-configure-stage2-libiberty:
- @$(MAKE) stage2-start
- @[ -f libiberty/Makefile ] && exit 0 || : ; \
- r=`${PWD_COMMAND}`; export r; \
- s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
- $(STAGE_HOST_EXPORTS) \
- echo Configuring stage 2 in libiberty ; \
- cd libiberty || exit 1; \
- case $(srcdir) in \
- \.) \
- srcdiroption="--srcdir=."; \
- libsrcdir=".";; \
- /* | [A-Za-z]:[\\/]*) \
- srcdiroption="--srcdir=$(srcdir)/libiberty"; \
- libsrcdir="$$s/libiberty";; \
- *) \
- srcdiroption="--srcdir=../$(srcdir)/libiberty"; \
- libsrcdir="$$s/libiberty";; \
- esac; \
- $(SHELL) $${libsrcdir}/configure \
- $(HOST_CONFIGARGS) $${srcdiroption} \
- @stage2_werror_flag@
-
-maybe-all-stage2-libiberty: all-stage2-libiberty
-all-stage2-libiberty: configure-stage2-libiberty
- @$(MAKE) stage2-start
- @r=`${PWD_COMMAND}`; export r; \
- s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
- $(STAGE_HOST_EXPORTS) \
- cd libiberty && \
- $(MAKE) $(FLAGS_TO_PASS) \
- $(POSTSTAGE1_FLAGS_TO_PASS) \
-
-
-maybe-clean-stage2-libiberty: clean-stage2-libiberty
-clean-stage2-libiberty:
- @[ -f libiberty/Makefile ] || [ -f stage2-libiberty/Makefile ] \
- || exit 0 ; \
- [ -f libiberty/Makefile ] || $(MAKE) stage2-start ; \
- cd libiberty && \
- $(MAKE) $(FLAGS_TO_PASS) \
- $(POSTSTAGE1_FLAGS_TO_PASS) \
- clean
-@endif libiberty-bootstrap
-
-
-.PHONY: configure-stage2-zlib maybe-configure-stage2-zlib
-.PHONY: all-stage2-zlib maybe-all-stage2-zlib
-.PHONY: clean-stage2-zlib maybe-clean-stage2-zlib
-
-maybe-configure-stage2-zlib:
-maybe-all-stage2-zlib:
-maybe-clean-stage2-zlib:
-
-@if zlib-bootstrap
-maybe-configure-stage2-zlib: configure-stage2-zlib
-configure-stage2-zlib:
- @$(MAKE) stage2-start
- @[ -f zlib/Makefile ] && exit 0 || : ; \
- r=`${PWD_COMMAND}`; export r; \
- s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
- $(STAGE_HOST_EXPORTS) \
- echo Configuring stage 2 in zlib ; \
- cd zlib || exit 1; \
- case $(srcdir) in \
- \.) \
- srcdiroption="--srcdir=."; \
- libsrcdir=".";; \
- /* | [A-Za-z]:[\\/]*) \
- srcdiroption="--srcdir=$(srcdir)/zlib"; \
- libsrcdir="$$s/zlib";; \
- *) \
- srcdiroption="--srcdir=../$(srcdir)/zlib"; \
- libsrcdir="$$s/zlib";; \
- esac; \
- $(SHELL) $${libsrcdir}/configure \
- $(HOST_CONFIGARGS) $${srcdiroption} \
- @stage2_werror_flag@
-
-maybe-all-stage2-zlib: all-stage2-zlib
-all-stage2-zlib: configure-stage2-zlib
- @$(MAKE) stage2-start
- @r=`${PWD_COMMAND}`; export r; \
- s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
- $(STAGE_HOST_EXPORTS) \
- cd zlib && \
- $(MAKE) $(FLAGS_TO_PASS) \
- $(POSTSTAGE1_FLAGS_TO_PASS) \
-
-
-maybe-clean-stage2-zlib: clean-stage2-zlib
-clean-stage2-zlib:
- @[ -f zlib/Makefile ] || [ -f stage2-zlib/Makefile ] \
- || exit 0 ; \
- [ -f zlib/Makefile ] || $(MAKE) stage2-start ; \
- cd zlib && \
- $(MAKE) $(FLAGS_TO_PASS) \
- $(POSTSTAGE1_FLAGS_TO_PASS) \
- clean
-@endif zlib-bootstrap
-
-
-
-# FIXME: Will not need to be conditional when toplevel bootstrap is the
-# only possibility, but now it conflicts with no-bootstrap rules
-@if gcc-bootstrap
-
-
-
-.PHONY: bootstrap2
-bootstrap2: stage2-bubble all
-
-
-# Rules to wipe a stage and all the following ones, also used for cleanstrap
-distclean-stage1:: distclean-stage2
-.PHONY: distclean-stage2
-distclean-stage2::
- [ -f stage_current ] && $(MAKE) `cat stage_current`-end || :
- rm -rf stage2-*
-
-
-@endif gcc-bootstrap
-
-
-.PHONY: stage3-start stage3-end
-
-stage3-start::
- @[ -f stage_current ] && $(MAKE) `cat stage_current`-end || : ; \
- echo stage3 > stage_current ; \
- echo stage3 > stage_last
-@if bfd
- @[ -d stage3-bfd ] || mkdir stage3-bfd; \
- set stage3-bfd bfd ; @CREATE_LINK_TO_DIR@ ; \
- set stage2-bfd prev-bfd ; @CREATE_LINK_TO_DIR@
-@endif bfd
-@if opcodes
- @[ -d stage3-opcodes ] || mkdir stage3-opcodes; \
- set stage3-opcodes opcodes ; @CREATE_LINK_TO_DIR@ ; \
- set stage2-opcodes prev-opcodes ; @CREATE_LINK_TO_DIR@
-@endif opcodes
-@if binutils
- @[ -d stage3-binutils ] || mkdir stage3-binutils; \
- set stage3-binutils binutils ; @CREATE_LINK_TO_DIR@ ; \
- set stage2-binutils prev-binutils ; @CREATE_LINK_TO_DIR@
-@endif binutils
-@if gas
- @[ -d stage3-gas ] || mkdir stage3-gas; \
- set stage3-gas gas ; @CREATE_LINK_TO_DIR@ ; \
- set stage2-gas prev-gas ; @CREATE_LINK_TO_DIR@
-@endif gas
-@if gcc
- @[ -d stage3-gcc ] || mkdir stage3-gcc; \
- set stage3-gcc gcc ; @CREATE_LINK_TO_DIR@ ; \
- set stage2-gcc prev-gcc ; @CREATE_LINK_TO_DIR@
-@endif gcc
-@if intl
- @[ -d stage3-intl ] || mkdir stage3-intl; \
- set stage3-intl intl ; @CREATE_LINK_TO_DIR@ ; \
- set stage2-intl prev-intl ; @CREATE_LINK_TO_DIR@
-@endif intl
-@if ld
- @[ -d stage3-ld ] || mkdir stage3-ld; \
- set stage3-ld ld ; @CREATE_LINK_TO_DIR@ ; \
- set stage2-ld prev-ld ; @CREATE_LINK_TO_DIR@
-@endif ld
-@if libcpp
- @[ -d stage3-libcpp ] || mkdir stage3-libcpp; \
- set stage3-libcpp libcpp ; @CREATE_LINK_TO_DIR@ ; \
- set stage2-libcpp prev-libcpp ; @CREATE_LINK_TO_DIR@
-@endif libcpp
-@if libiberty
- @[ -d stage3-libiberty ] || mkdir stage3-libiberty; \
- set stage3-libiberty libiberty ; @CREATE_LINK_TO_DIR@ ; \
- set stage2-libiberty prev-libiberty ; @CREATE_LINK_TO_DIR@
-@endif libiberty
-@if zlib
- @[ -d stage3-zlib ] || mkdir stage3-zlib; \
- set stage3-zlib zlib ; @CREATE_LINK_TO_DIR@ ; \
- set stage2-zlib prev-zlib ; @CREATE_LINK_TO_DIR@
-@endif zlib
-
-stage3-end::
- @rm -f stage_current
-@if bfd
- @set bfd stage3-bfd ; @UNDO_LINK_TO_DIR@ ; \
- set prev-bfd stage2-bfd ; @UNDO_LINK_TO_DIR@
-@endif bfd
-@if opcodes
- @set opcodes stage3-opcodes ; @UNDO_LINK_TO_DIR@ ; \
- set prev-opcodes stage2-opcodes ; @UNDO_LINK_TO_DIR@
-@endif opcodes
-@if binutils
- @set binutils stage3-binutils ; @UNDO_LINK_TO_DIR@ ; \
- set prev-binutils stage2-binutils ; @UNDO_LINK_TO_DIR@
-@endif binutils
-@if gas
- @set gas stage3-gas ; @UNDO_LINK_TO_DIR@ ; \
- set prev-gas stage2-gas ; @UNDO_LINK_TO_DIR@
-@endif gas
-@if gcc
- @set gcc stage3-gcc ; @UNDO_LINK_TO_DIR@ ; \
- set prev-gcc stage2-gcc ; @UNDO_LINK_TO_DIR@
-@endif gcc
-@if intl
- @set intl stage3-intl ; @UNDO_LINK_TO_DIR@ ; \
- set prev-intl stage2-intl ; @UNDO_LINK_TO_DIR@
-@endif intl
-@if ld
- @set ld stage3-ld ; @UNDO_LINK_TO_DIR@ ; \
- set prev-ld stage2-ld ; @UNDO_LINK_TO_DIR@
-@endif ld
-@if libcpp
- @set libcpp stage3-libcpp ; @UNDO_LINK_TO_DIR@ ; \
- set prev-libcpp stage2-libcpp ; @UNDO_LINK_TO_DIR@
-@endif libcpp
-@if libiberty
- @set libiberty stage3-libiberty ; @UNDO_LINK_TO_DIR@ ; \
- set prev-libiberty stage2-libiberty ; @UNDO_LINK_TO_DIR@
-@endif libiberty
-@if zlib
- @set zlib stage3-zlib ; @UNDO_LINK_TO_DIR@ ; \
- set prev-zlib stage2-zlib ; @UNDO_LINK_TO_DIR@
-@endif zlib
-
-# Bubble a bugfix through all the stages up to stage 3. They
-# are remade, but not reconfigured. The next stage (if any) will not
-# be reconfigured as well.
-.PHONY: stage3-bubble
-stage3-bubble:: stage2-bubble
- @bootstrap_lean@-rm -rf stage1-* ; $(STAMP) stage1-lean
- @if test -f stage3-lean || test -f stage2-lean ; then \
- echo Skipping rebuild of stage3 ; \
- else \
- $(MAKE) $(RECURSE_FLAGS_TO_PASS) NOTPARALLEL= all-stage3; \
- fi
-
-.PHONY: all-stage3 clean-stage3
-all-stage3: \
- maybe-all-stage3-bfd \
- maybe-all-stage3-opcodes \
- maybe-all-stage3-binutils \
- maybe-all-stage3-gas \
- maybe-all-stage3-gcc \
- maybe-all-stage3-intl \
- maybe-all-stage3-ld \
- maybe-all-stage3-libcpp \
- maybe-all-stage3-libiberty \
- maybe-all-stage3-zlib
-
-do-clean: clean-stage3
-clean-stage3: \
- maybe-clean-stage3-bfd \
- maybe-clean-stage3-opcodes \
- maybe-clean-stage3-binutils \
- maybe-clean-stage3-gas \
- maybe-clean-stage3-gcc \
- maybe-clean-stage3-intl \
- maybe-clean-stage3-ld \
- maybe-clean-stage3-libcpp \
- maybe-clean-stage3-libiberty \
- maybe-clean-stage3-zlib
-
-
-.PHONY: configure-stage3-bfd maybe-configure-stage3-bfd
-.PHONY: all-stage3-bfd maybe-all-stage3-bfd
-.PHONY: clean-stage3-bfd maybe-clean-stage3-bfd
-
-maybe-configure-stage3-bfd:
-maybe-all-stage3-bfd:
-maybe-clean-stage3-bfd:
-
-@if bfd-bootstrap
-maybe-configure-stage3-bfd: configure-stage3-bfd
-configure-stage3-bfd:
- @$(MAKE) stage3-start
- @[ -f bfd/Makefile ] && exit 0 || : ; \
- r=`${PWD_COMMAND}`; export r; \
- s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
- $(STAGE_HOST_EXPORTS) \
- echo Configuring stage 3 in bfd ; \
- cd bfd || exit 1; \
- case $(srcdir) in \
- \.) \
- srcdiroption="--srcdir=."; \
- libsrcdir=".";; \
- /* | [A-Za-z]:[\\/]*) \
- srcdiroption="--srcdir=$(srcdir)/bfd"; \
- libsrcdir="$$s/bfd";; \
- *) \
- srcdiroption="--srcdir=../$(srcdir)/bfd"; \
- libsrcdir="$$s/bfd";; \
- esac; \
- $(SHELL) $${libsrcdir}/configure \
- $(HOST_CONFIGARGS) $${srcdiroption} \
- @stage2_werror_flag@
-
-maybe-all-stage3-bfd: all-stage3-bfd
-all-stage3-bfd: configure-stage3-bfd
- @$(MAKE) stage3-start
- @r=`${PWD_COMMAND}`; export r; \
- s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
- $(STAGE_HOST_EXPORTS) \
- cd bfd && \
- $(MAKE) $(FLAGS_TO_PASS) \
- $(POSTSTAGE1_FLAGS_TO_PASS) \
-
-
-maybe-clean-stage3-bfd: clean-stage3-bfd
-clean-stage3-bfd:
- @[ -f bfd/Makefile ] || [ -f stage3-bfd/Makefile ] \
- || exit 0 ; \
- [ -f bfd/Makefile ] || $(MAKE) stage3-start ; \
- cd bfd && \
- $(MAKE) $(FLAGS_TO_PASS) \
- $(POSTSTAGE1_FLAGS_TO_PASS) \
- clean
-@endif bfd-bootstrap
-
-
-.PHONY: configure-stage3-opcodes maybe-configure-stage3-opcodes
-.PHONY: all-stage3-opcodes maybe-all-stage3-opcodes
-.PHONY: clean-stage3-opcodes maybe-clean-stage3-opcodes
-
-maybe-configure-stage3-opcodes:
-maybe-all-stage3-opcodes:
-maybe-clean-stage3-opcodes:
-
-@if opcodes-bootstrap
-maybe-configure-stage3-opcodes: configure-stage3-opcodes
-configure-stage3-opcodes:
- @$(MAKE) stage3-start
- @[ -f opcodes/Makefile ] && exit 0 || : ; \
- r=`${PWD_COMMAND}`; export r; \
- s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
- $(STAGE_HOST_EXPORTS) \
- echo Configuring stage 3 in opcodes ; \
- cd opcodes || exit 1; \
- case $(srcdir) in \
- \.) \
- srcdiroption="--srcdir=."; \
- libsrcdir=".";; \
- /* | [A-Za-z]:[\\/]*) \
- srcdiroption="--srcdir=$(srcdir)/opcodes"; \
- libsrcdir="$$s/opcodes";; \
- *) \
- srcdiroption="--srcdir=../$(srcdir)/opcodes"; \
- libsrcdir="$$s/opcodes";; \
- esac; \
- $(SHELL) $${libsrcdir}/configure \
- $(HOST_CONFIGARGS) $${srcdiroption} \
- @stage2_werror_flag@
-
-maybe-all-stage3-opcodes: all-stage3-opcodes
-all-stage3-opcodes: configure-stage3-opcodes
- @$(MAKE) stage3-start
- @r=`${PWD_COMMAND}`; export r; \
- s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
- $(STAGE_HOST_EXPORTS) \
- cd opcodes && \
- $(MAKE) $(FLAGS_TO_PASS) \
- $(POSTSTAGE1_FLAGS_TO_PASS) \
-
-
-maybe-clean-stage3-opcodes: clean-stage3-opcodes
-clean-stage3-opcodes:
- @[ -f opcodes/Makefile ] || [ -f stage3-opcodes/Makefile ] \
- || exit 0 ; \
- [ -f opcodes/Makefile ] || $(MAKE) stage3-start ; \
- cd opcodes && \
- $(MAKE) $(FLAGS_TO_PASS) \
- $(POSTSTAGE1_FLAGS_TO_PASS) \
- clean
-@endif opcodes-bootstrap
-
-
-.PHONY: configure-stage3-binutils maybe-configure-stage3-binutils
-.PHONY: all-stage3-binutils maybe-all-stage3-binutils
-.PHONY: clean-stage3-binutils maybe-clean-stage3-binutils
-
-maybe-configure-stage3-binutils:
-maybe-all-stage3-binutils:
-maybe-clean-stage3-binutils:
-
-@if binutils-bootstrap
-maybe-configure-stage3-binutils: configure-stage3-binutils
-configure-stage3-binutils:
- @$(MAKE) stage3-start
- @[ -f binutils/Makefile ] && exit 0 || : ; \
- r=`${PWD_COMMAND}`; export r; \
- s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
- $(STAGE_HOST_EXPORTS) \
- echo Configuring stage 3 in binutils ; \
- cd binutils || exit 1; \
- case $(srcdir) in \
- \.) \
- srcdiroption="--srcdir=."; \
- libsrcdir=".";; \
- /* | [A-Za-z]:[\\/]*) \
- srcdiroption="--srcdir=$(srcdir)/binutils"; \
- libsrcdir="$$s/binutils";; \
- *) \
- srcdiroption="--srcdir=../$(srcdir)/binutils"; \
- libsrcdir="$$s/binutils";; \
- esac; \
- $(SHELL) $${libsrcdir}/configure \
- $(HOST_CONFIGARGS) $${srcdiroption} \
- @stage2_werror_flag@
-
-maybe-all-stage3-binutils: all-stage3-binutils
-all-stage3-binutils: configure-stage3-binutils
- @$(MAKE) stage3-start
- @r=`${PWD_COMMAND}`; export r; \
- s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
- $(STAGE_HOST_EXPORTS) \
- cd binutils && \
- $(MAKE) $(FLAGS_TO_PASS) \
- $(POSTSTAGE1_FLAGS_TO_PASS) \
-
-
-maybe-clean-stage3-binutils: clean-stage3-binutils
-clean-stage3-binutils:
- @[ -f binutils/Makefile ] || [ -f stage3-binutils/Makefile ] \
- || exit 0 ; \
- [ -f binutils/Makefile ] || $(MAKE) stage3-start ; \
- cd binutils && \
- $(MAKE) $(FLAGS_TO_PASS) \
- $(POSTSTAGE1_FLAGS_TO_PASS) \
- clean
-@endif binutils-bootstrap
-
-
-.PHONY: configure-stage3-gas maybe-configure-stage3-gas
-.PHONY: all-stage3-gas maybe-all-stage3-gas
-.PHONY: clean-stage3-gas maybe-clean-stage3-gas
-
-maybe-configure-stage3-gas:
-maybe-all-stage3-gas:
-maybe-clean-stage3-gas:
-
-@if gas-bootstrap
-maybe-configure-stage3-gas: configure-stage3-gas
-configure-stage3-gas:
- @$(MAKE) stage3-start
- @[ -f gas/Makefile ] && exit 0 || : ; \
- r=`${PWD_COMMAND}`; export r; \
- s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
- $(STAGE_HOST_EXPORTS) \
- echo Configuring stage 3 in gas ; \
- cd gas || exit 1; \
- case $(srcdir) in \
- \.) \
- srcdiroption="--srcdir=."; \
- libsrcdir=".";; \
- /* | [A-Za-z]:[\\/]*) \
- srcdiroption="--srcdir=$(srcdir)/gas"; \
- libsrcdir="$$s/gas";; \
- *) \
- srcdiroption="--srcdir=../$(srcdir)/gas"; \
- libsrcdir="$$s/gas";; \
- esac; \
- $(SHELL) $${libsrcdir}/configure \
- $(HOST_CONFIGARGS) $${srcdiroption} \
- @stage2_werror_flag@
-
-maybe-all-stage3-gas: all-stage3-gas
-all-stage3-gas: configure-stage3-gas
- @$(MAKE) stage3-start
- @r=`${PWD_COMMAND}`; export r; \
- s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
- $(STAGE_HOST_EXPORTS) \
- cd gas && \
- $(MAKE) $(FLAGS_TO_PASS) \
- $(POSTSTAGE1_FLAGS_TO_PASS) \
-
-
-maybe-clean-stage3-gas: clean-stage3-gas
-clean-stage3-gas:
- @[ -f gas/Makefile ] || [ -f stage3-gas/Makefile ] \
- || exit 0 ; \
- [ -f gas/Makefile ] || $(MAKE) stage3-start ; \
- cd gas && \
- $(MAKE) $(FLAGS_TO_PASS) \
- $(POSTSTAGE1_FLAGS_TO_PASS) \
- clean
-@endif gas-bootstrap
-
-
-.PHONY: configure-stage3-gcc maybe-configure-stage3-gcc
-.PHONY: all-stage3-gcc maybe-all-stage3-gcc
-.PHONY: clean-stage3-gcc maybe-clean-stage3-gcc
-
-maybe-configure-stage3-gcc:
-maybe-all-stage3-gcc:
-maybe-clean-stage3-gcc:
-
-@if gcc-bootstrap
-maybe-configure-stage3-gcc: configure-stage3-gcc
-configure-stage3-gcc:
- @$(MAKE) stage3-start
- @[ -f gcc/Makefile ] && exit 0 || : ; \
- r=`${PWD_COMMAND}`; export r; \
- s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
- $(STAGE_HOST_EXPORTS) \
- echo Configuring stage 3 in gcc ; \
- cd gcc || exit 1; \
- case $(srcdir) in \
- \.) \
- srcdiroption="--srcdir=."; \
- libsrcdir=".";; \
- /* | [A-Za-z]:[\\/]*) \
- srcdiroption="--srcdir=$(srcdir)/gcc"; \
- libsrcdir="$$s/gcc";; \
- *) \
- srcdiroption="--srcdir=../$(srcdir)/gcc"; \
- libsrcdir="$$s/gcc";; \
- esac; \
- $(SHELL) $${libsrcdir}/configure \
- $(HOST_CONFIGARGS) $${srcdiroption} \
- @stage2_werror_flag@
-
-maybe-all-stage3-gcc: all-stage3-gcc
-all-stage3-gcc: configure-stage3-gcc
- @$(MAKE) stage3-start
- @r=`${PWD_COMMAND}`; export r; \
- s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
- $(STAGE_HOST_EXPORTS) \
- cd gcc && \
- $(MAKE) $(FLAGS_TO_PASS) \
- $(POSTSTAGE1_FLAGS_TO_PASS) \
- $(EXTRA_GCC_FLAGS)
-
-maybe-clean-stage3-gcc: clean-stage3-gcc
-clean-stage3-gcc:
- @[ -f gcc/Makefile ] || [ -f stage3-gcc/Makefile ] \
- || exit 0 ; \
- [ -f gcc/Makefile ] || $(MAKE) stage3-start ; \
- cd gcc && \
- $(MAKE) $(FLAGS_TO_PASS) \
- $(POSTSTAGE1_FLAGS_TO_PASS) \
- $(EXTRA_GCC_FLAGS) clean
-@endif gcc-bootstrap
-
-
-.PHONY: configure-stage3-intl maybe-configure-stage3-intl
-.PHONY: all-stage3-intl maybe-all-stage3-intl
-.PHONY: clean-stage3-intl maybe-clean-stage3-intl
-
-maybe-configure-stage3-intl:
-maybe-all-stage3-intl:
-maybe-clean-stage3-intl:
-
-@if intl-bootstrap
-maybe-configure-stage3-intl: configure-stage3-intl
-configure-stage3-intl:
- @$(MAKE) stage3-start
- @[ -f intl/Makefile ] && exit 0 || : ; \
- r=`${PWD_COMMAND}`; export r; \
- s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
- $(STAGE_HOST_EXPORTS) \
- echo Configuring stage 3 in intl ; \
- cd intl || exit 1; \
- case $(srcdir) in \
- \.) \
- srcdiroption="--srcdir=."; \
- libsrcdir=".";; \
- /* | [A-Za-z]:[\\/]*) \
- srcdiroption="--srcdir=$(srcdir)/intl"; \
- libsrcdir="$$s/intl";; \
- *) \
- srcdiroption="--srcdir=../$(srcdir)/intl"; \
- libsrcdir="$$s/intl";; \
- esac; \
- $(SHELL) $${libsrcdir}/configure \
- $(HOST_CONFIGARGS) $${srcdiroption} \
- @stage2_werror_flag@
-
-maybe-all-stage3-intl: all-stage3-intl
-all-stage3-intl: configure-stage3-intl
- @$(MAKE) stage3-start
- @r=`${PWD_COMMAND}`; export r; \
- s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
- $(STAGE_HOST_EXPORTS) \
- cd intl && \
- $(MAKE) $(FLAGS_TO_PASS) \
- $(POSTSTAGE1_FLAGS_TO_PASS) \
-
-
-maybe-clean-stage3-intl: clean-stage3-intl
-clean-stage3-intl:
- @[ -f intl/Makefile ] || [ -f stage3-intl/Makefile ] \
- || exit 0 ; \
- [ -f intl/Makefile ] || $(MAKE) stage3-start ; \
- cd intl && \
- $(MAKE) $(FLAGS_TO_PASS) \
- $(POSTSTAGE1_FLAGS_TO_PASS) \
- clean
-@endif intl-bootstrap
-
-
-.PHONY: configure-stage3-ld maybe-configure-stage3-ld
-.PHONY: all-stage3-ld maybe-all-stage3-ld
-.PHONY: clean-stage3-ld maybe-clean-stage3-ld
-
-maybe-configure-stage3-ld:
-maybe-all-stage3-ld:
-maybe-clean-stage3-ld:
-
-@if ld-bootstrap
-maybe-configure-stage3-ld: configure-stage3-ld
-configure-stage3-ld:
- @$(MAKE) stage3-start
- @[ -f ld/Makefile ] && exit 0 || : ; \
- r=`${PWD_COMMAND}`; export r; \
- s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
- $(STAGE_HOST_EXPORTS) \
- echo Configuring stage 3 in ld ; \
- cd ld || exit 1; \
- case $(srcdir) in \
- \.) \
- srcdiroption="--srcdir=."; \
- libsrcdir=".";; \
- /* | [A-Za-z]:[\\/]*) \
- srcdiroption="--srcdir=$(srcdir)/ld"; \
- libsrcdir="$$s/ld";; \
- *) \
- srcdiroption="--srcdir=../$(srcdir)/ld"; \
- libsrcdir="$$s/ld";; \
- esac; \
- $(SHELL) $${libsrcdir}/configure \
- $(HOST_CONFIGARGS) $${srcdiroption} \
- @stage2_werror_flag@
-
-maybe-all-stage3-ld: all-stage3-ld
-all-stage3-ld: configure-stage3-ld
- @$(MAKE) stage3-start
- @r=`${PWD_COMMAND}`; export r; \
- s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
- $(STAGE_HOST_EXPORTS) \
- cd ld && \
- $(MAKE) $(FLAGS_TO_PASS) \
- $(POSTSTAGE1_FLAGS_TO_PASS) \
-
-
-maybe-clean-stage3-ld: clean-stage3-ld
-clean-stage3-ld:
- @[ -f ld/Makefile ] || [ -f stage3-ld/Makefile ] \
- || exit 0 ; \
- [ -f ld/Makefile ] || $(MAKE) stage3-start ; \
- cd ld && \
- $(MAKE) $(FLAGS_TO_PASS) \
- $(POSTSTAGE1_FLAGS_TO_PASS) \
- clean
-@endif ld-bootstrap
-
-
-.PHONY: configure-stage3-libcpp maybe-configure-stage3-libcpp
-.PHONY: all-stage3-libcpp maybe-all-stage3-libcpp
-.PHONY: clean-stage3-libcpp maybe-clean-stage3-libcpp
-
-maybe-configure-stage3-libcpp:
-maybe-all-stage3-libcpp:
-maybe-clean-stage3-libcpp:
-
-@if libcpp-bootstrap
-maybe-configure-stage3-libcpp: configure-stage3-libcpp
-configure-stage3-libcpp:
- @$(MAKE) stage3-start
- @[ -f libcpp/Makefile ] && exit 0 || : ; \
- r=`${PWD_COMMAND}`; export r; \
- s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
- $(STAGE_HOST_EXPORTS) \
- echo Configuring stage 3 in libcpp ; \
- cd libcpp || exit 1; \
- case $(srcdir) in \
- \.) \
- srcdiroption="--srcdir=."; \
- libsrcdir=".";; \
- /* | [A-Za-z]:[\\/]*) \
- srcdiroption="--srcdir=$(srcdir)/libcpp"; \
- libsrcdir="$$s/libcpp";; \
- *) \
- srcdiroption="--srcdir=../$(srcdir)/libcpp"; \
- libsrcdir="$$s/libcpp";; \
- esac; \
- $(SHELL) $${libsrcdir}/configure \
- $(HOST_CONFIGARGS) $${srcdiroption} \
- @stage2_werror_flag@
-
-maybe-all-stage3-libcpp: all-stage3-libcpp
-all-stage3-libcpp: configure-stage3-libcpp
- @$(MAKE) stage3-start
- @r=`${PWD_COMMAND}`; export r; \
- s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
- $(STAGE_HOST_EXPORTS) \
- cd libcpp && \
- $(MAKE) $(FLAGS_TO_PASS) \
- $(POSTSTAGE1_FLAGS_TO_PASS) \
-
-
-maybe-clean-stage3-libcpp: clean-stage3-libcpp
-clean-stage3-libcpp:
- @[ -f libcpp/Makefile ] || [ -f stage3-libcpp/Makefile ] \
- || exit 0 ; \
- [ -f libcpp/Makefile ] || $(MAKE) stage3-start ; \
- cd libcpp && \
- $(MAKE) $(FLAGS_TO_PASS) \
- $(POSTSTAGE1_FLAGS_TO_PASS) \
- clean
-@endif libcpp-bootstrap
-
-
-.PHONY: configure-stage3-libiberty maybe-configure-stage3-libiberty
-.PHONY: all-stage3-libiberty maybe-all-stage3-libiberty
-.PHONY: clean-stage3-libiberty maybe-clean-stage3-libiberty
-
-maybe-configure-stage3-libiberty:
-maybe-all-stage3-libiberty:
-maybe-clean-stage3-libiberty:
-
-@if libiberty-bootstrap
-maybe-configure-stage3-libiberty: configure-stage3-libiberty
-configure-stage3-libiberty:
- @$(MAKE) stage3-start
- @[ -f libiberty/Makefile ] && exit 0 || : ; \
- r=`${PWD_COMMAND}`; export r; \
- s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
- $(STAGE_HOST_EXPORTS) \
- echo Configuring stage 3 in libiberty ; \
- cd libiberty || exit 1; \
- case $(srcdir) in \
- \.) \
- srcdiroption="--srcdir=."; \
- libsrcdir=".";; \
- /* | [A-Za-z]:[\\/]*) \
- srcdiroption="--srcdir=$(srcdir)/libiberty"; \
- libsrcdir="$$s/libiberty";; \
- *) \
- srcdiroption="--srcdir=../$(srcdir)/libiberty"; \
- libsrcdir="$$s/libiberty";; \
- esac; \
- $(SHELL) $${libsrcdir}/configure \
- $(HOST_CONFIGARGS) $${srcdiroption} \
- @stage2_werror_flag@
-
-maybe-all-stage3-libiberty: all-stage3-libiberty
-all-stage3-libiberty: configure-stage3-libiberty
- @$(MAKE) stage3-start
- @r=`${PWD_COMMAND}`; export r; \
- s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
- $(STAGE_HOST_EXPORTS) \
- cd libiberty && \
- $(MAKE) $(FLAGS_TO_PASS) \
- $(POSTSTAGE1_FLAGS_TO_PASS) \
-
-
-maybe-clean-stage3-libiberty: clean-stage3-libiberty
-clean-stage3-libiberty:
- @[ -f libiberty/Makefile ] || [ -f stage3-libiberty/Makefile ] \
- || exit 0 ; \
- [ -f libiberty/Makefile ] || $(MAKE) stage3-start ; \
- cd libiberty && \
- $(MAKE) $(FLAGS_TO_PASS) \
- $(POSTSTAGE1_FLAGS_TO_PASS) \
- clean
-@endif libiberty-bootstrap
-
-
-.PHONY: configure-stage3-zlib maybe-configure-stage3-zlib
-.PHONY: all-stage3-zlib maybe-all-stage3-zlib
-.PHONY: clean-stage3-zlib maybe-clean-stage3-zlib
-
-maybe-configure-stage3-zlib:
-maybe-all-stage3-zlib:
-maybe-clean-stage3-zlib:
-
-@if zlib-bootstrap
-maybe-configure-stage3-zlib: configure-stage3-zlib
-configure-stage3-zlib:
- @$(MAKE) stage3-start
- @[ -f zlib/Makefile ] && exit 0 || : ; \
- r=`${PWD_COMMAND}`; export r; \
- s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
- $(STAGE_HOST_EXPORTS) \
- echo Configuring stage 3 in zlib ; \
- cd zlib || exit 1; \
- case $(srcdir) in \
- \.) \
- srcdiroption="--srcdir=."; \
- libsrcdir=".";; \
- /* | [A-Za-z]:[\\/]*) \
- srcdiroption="--srcdir=$(srcdir)/zlib"; \
- libsrcdir="$$s/zlib";; \
- *) \
- srcdiroption="--srcdir=../$(srcdir)/zlib"; \
- libsrcdir="$$s/zlib";; \
- esac; \
- $(SHELL) $${libsrcdir}/configure \
- $(HOST_CONFIGARGS) $${srcdiroption} \
- @stage2_werror_flag@
-
-maybe-all-stage3-zlib: all-stage3-zlib
-all-stage3-zlib: configure-stage3-zlib
- @$(MAKE) stage3-start
- @r=`${PWD_COMMAND}`; export r; \
- s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
- $(STAGE_HOST_EXPORTS) \
- cd zlib && \
- $(MAKE) $(FLAGS_TO_PASS) \
- $(POSTSTAGE1_FLAGS_TO_PASS) \
-
-
-maybe-clean-stage3-zlib: clean-stage3-zlib
-clean-stage3-zlib:
- @[ -f zlib/Makefile ] || [ -f stage3-zlib/Makefile ] \
- || exit 0 ; \
- [ -f zlib/Makefile ] || $(MAKE) stage3-start ; \
- cd zlib && \
- $(MAKE) $(FLAGS_TO_PASS) \
- $(POSTSTAGE1_FLAGS_TO_PASS) \
- clean
-@endif zlib-bootstrap
-
-
-
-# FIXME: Will not need to be conditional when toplevel bootstrap is the
-# only possibility, but now it conflicts with no-bootstrap rules
-@if gcc-bootstrap
-
-compare:
- @if test -f stage2-lean; then \
- echo Cannot compare object files as stage 2 was deleted. ; \
- exit 0 ; \
- fi; \
- [ -f stage_current ] && $(MAKE) `cat stage_current`-end || : ; \
- @r=`${PWD_COMMAND}`; export r; \
- s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
- rm -f .bad_compare ; \
- cd stage3-gcc; \
- files=`find . -name "*$(objext)" -print` ; \
- cd .. ; \
- for file in $${files} ; do \
- f1=$$r/stage2-gcc/$$file; f2=$$r/stage3-gcc/$$file; \
- @do_compare@ > /dev/null 2>&1; \
- test $$? -eq 1 && echo $$file differs >> .bad_compare || true; \
- done ; \
- if [ -f .bad_compare ]; then \
- echo "Bootstrap comparison failure!"; \
- cat .bad_compare; \
- exit 1; \
- else \
- true; \
- fi ; \
- $(STAMP) compare
- @bootstrap_lean@-rm -rf stage2-* ; $(STAMP) stage2-lean
-
-
-
-.PHONY: bootstrap
-bootstrap: stage3-bubble compare all
-
-
-# Rules to wipe a stage and all the following ones, also used for cleanstrap
-distclean-stage2:: distclean-stage3
-.PHONY: distclean-stage3
-distclean-stage3::
- [ -f stage_current ] && $(MAKE) `cat stage_current`-end || :
- rm -rf stage3-* compare
-
-
-.PHONY: cleanstrap
-cleanstrap: distclean bootstrap
-
-@endif gcc-bootstrap
-
-
-.PHONY: stage4-start stage4-end
-
-stage4-start::
- @[ -f stage_current ] && $(MAKE) `cat stage_current`-end || : ; \
- echo stage4 > stage_current ; \
- echo stage4 > stage_last
-@if bfd
- @[ -d stage4-bfd ] || mkdir stage4-bfd; \
- set stage4-bfd bfd ; @CREATE_LINK_TO_DIR@ ; \
- set stage3-bfd prev-bfd ; @CREATE_LINK_TO_DIR@
-@endif bfd
-@if opcodes
- @[ -d stage4-opcodes ] || mkdir stage4-opcodes; \
- set stage4-opcodes opcodes ; @CREATE_LINK_TO_DIR@ ; \
- set stage3-opcodes prev-opcodes ; @CREATE_LINK_TO_DIR@
-@endif opcodes
-@if binutils
- @[ -d stage4-binutils ] || mkdir stage4-binutils; \
- set stage4-binutils binutils ; @CREATE_LINK_TO_DIR@ ; \
- set stage3-binutils prev-binutils ; @CREATE_LINK_TO_DIR@
-@endif binutils
-@if gas
- @[ -d stage4-gas ] || mkdir stage4-gas; \
- set stage4-gas gas ; @CREATE_LINK_TO_DIR@ ; \
- set stage3-gas prev-gas ; @CREATE_LINK_TO_DIR@
-@endif gas
-@if gcc
- @[ -d stage4-gcc ] || mkdir stage4-gcc; \
- set stage4-gcc gcc ; @CREATE_LINK_TO_DIR@ ; \
- set stage3-gcc prev-gcc ; @CREATE_LINK_TO_DIR@
-@endif gcc
-@if intl
- @[ -d stage4-intl ] || mkdir stage4-intl; \
- set stage4-intl intl ; @CREATE_LINK_TO_DIR@ ; \
- set stage3-intl prev-intl ; @CREATE_LINK_TO_DIR@
-@endif intl
-@if ld
- @[ -d stage4-ld ] || mkdir stage4-ld; \
- set stage4-ld ld ; @CREATE_LINK_TO_DIR@ ; \
- set stage3-ld prev-ld ; @CREATE_LINK_TO_DIR@
-@endif ld
-@if libcpp
- @[ -d stage4-libcpp ] || mkdir stage4-libcpp; \
- set stage4-libcpp libcpp ; @CREATE_LINK_TO_DIR@ ; \
- set stage3-libcpp prev-libcpp ; @CREATE_LINK_TO_DIR@
-@endif libcpp
-@if libiberty
- @[ -d stage4-libiberty ] || mkdir stage4-libiberty; \
- set stage4-libiberty libiberty ; @CREATE_LINK_TO_DIR@ ; \
- set stage3-libiberty prev-libiberty ; @CREATE_LINK_TO_DIR@
-@endif libiberty
-@if zlib
- @[ -d stage4-zlib ] || mkdir stage4-zlib; \
- set stage4-zlib zlib ; @CREATE_LINK_TO_DIR@ ; \
- set stage3-zlib prev-zlib ; @CREATE_LINK_TO_DIR@
-@endif zlib
-
-stage4-end::
- @rm -f stage_current
-@if bfd
- @set bfd stage4-bfd ; @UNDO_LINK_TO_DIR@ ; \
- set prev-bfd stage3-bfd ; @UNDO_LINK_TO_DIR@
-@endif bfd
-@if opcodes
- @set opcodes stage4-opcodes ; @UNDO_LINK_TO_DIR@ ; \
- set prev-opcodes stage3-opcodes ; @UNDO_LINK_TO_DIR@
-@endif opcodes
-@if binutils
- @set binutils stage4-binutils ; @UNDO_LINK_TO_DIR@ ; \
- set prev-binutils stage3-binutils ; @UNDO_LINK_TO_DIR@
-@endif binutils
-@if gas
- @set gas stage4-gas ; @UNDO_LINK_TO_DIR@ ; \
- set prev-gas stage3-gas ; @UNDO_LINK_TO_DIR@
-@endif gas
-@if gcc
- @set gcc stage4-gcc ; @UNDO_LINK_TO_DIR@ ; \
- set prev-gcc stage3-gcc ; @UNDO_LINK_TO_DIR@
-@endif gcc
-@if intl
- @set intl stage4-intl ; @UNDO_LINK_TO_DIR@ ; \
- set prev-intl stage3-intl ; @UNDO_LINK_TO_DIR@
-@endif intl
-@if ld
- @set ld stage4-ld ; @UNDO_LINK_TO_DIR@ ; \
- set prev-ld stage3-ld ; @UNDO_LINK_TO_DIR@
-@endif ld
-@if libcpp
- @set libcpp stage4-libcpp ; @UNDO_LINK_TO_DIR@ ; \
- set prev-libcpp stage3-libcpp ; @UNDO_LINK_TO_DIR@
-@endif libcpp
-@if libiberty
- @set libiberty stage4-libiberty ; @UNDO_LINK_TO_DIR@ ; \
- set prev-libiberty stage3-libiberty ; @UNDO_LINK_TO_DIR@
-@endif libiberty
-@if zlib
- @set zlib stage4-zlib ; @UNDO_LINK_TO_DIR@ ; \
- set prev-zlib stage3-zlib ; @UNDO_LINK_TO_DIR@
-@endif zlib
-
-# Bubble a bugfix through all the stages up to stage 4. They
-# are remade, but not reconfigured. The next stage (if any) will not
-# be reconfigured as well.
-.PHONY: stage4-bubble
-stage4-bubble:: stage3-bubble
- @bootstrap_lean@-rm -rf stage2-* ; $(STAMP) stage2-lean
- @if test -f stage4-lean || test -f stage3-lean ; then \
- echo Skipping rebuild of stage4 ; \
- else \
- $(MAKE) $(RECURSE_FLAGS_TO_PASS) NOTPARALLEL= all-stage4; \
- fi
-
-.PHONY: all-stage4 clean-stage4
-all-stage4: \
- maybe-all-stage4-bfd \
- maybe-all-stage4-opcodes \
- maybe-all-stage4-binutils \
- maybe-all-stage4-gas \
- maybe-all-stage4-gcc \
- maybe-all-stage4-intl \
- maybe-all-stage4-ld \
- maybe-all-stage4-libcpp \
- maybe-all-stage4-libiberty \
- maybe-all-stage4-zlib
-
-do-clean: clean-stage4
-clean-stage4: \
- maybe-clean-stage4-bfd \
- maybe-clean-stage4-opcodes \
- maybe-clean-stage4-binutils \
- maybe-clean-stage4-gas \
- maybe-clean-stage4-gcc \
- maybe-clean-stage4-intl \
- maybe-clean-stage4-ld \
- maybe-clean-stage4-libcpp \
- maybe-clean-stage4-libiberty \
- maybe-clean-stage4-zlib
-
-
-.PHONY: configure-stage4-bfd maybe-configure-stage4-bfd
-.PHONY: all-stage4-bfd maybe-all-stage4-bfd
-.PHONY: clean-stage4-bfd maybe-clean-stage4-bfd
-
-maybe-configure-stage4-bfd:
-maybe-all-stage4-bfd:
-maybe-clean-stage4-bfd:
-
-@if bfd-bootstrap
-maybe-configure-stage4-bfd: configure-stage4-bfd
-configure-stage4-bfd:
- @$(MAKE) stage4-start
- @[ -f bfd/Makefile ] && exit 0 || : ; \
- r=`${PWD_COMMAND}`; export r; \
- s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
- $(STAGE_HOST_EXPORTS) \
- echo Configuring stage 4 in bfd ; \
- cd bfd || exit 1; \
- case $(srcdir) in \
- \.) \
- srcdiroption="--srcdir=."; \
- libsrcdir=".";; \
- /* | [A-Za-z]:[\\/]*) \
- srcdiroption="--srcdir=$(srcdir)/bfd"; \
- libsrcdir="$$s/bfd";; \
- *) \
- srcdiroption="--srcdir=../$(srcdir)/bfd"; \
- libsrcdir="$$s/bfd";; \
- esac; \
- $(SHELL) $${libsrcdir}/configure \
- $(HOST_CONFIGARGS) $${srcdiroption} \
- @stage2_werror_flag@
-
-maybe-all-stage4-bfd: all-stage4-bfd
-all-stage4-bfd: configure-stage4-bfd
- @$(MAKE) stage4-start
- @r=`${PWD_COMMAND}`; export r; \
- s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
- $(STAGE_HOST_EXPORTS) \
- cd bfd && \
- $(MAKE) $(FLAGS_TO_PASS) \
- $(POSTSTAGE1_FLAGS_TO_PASS) \
-
-
-maybe-clean-stage4-bfd: clean-stage4-bfd
-clean-stage4-bfd:
- @[ -f bfd/Makefile ] || [ -f stage4-bfd/Makefile ] \
- || exit 0 ; \
- [ -f bfd/Makefile ] || $(MAKE) stage4-start ; \
- cd bfd && \
- $(MAKE) $(FLAGS_TO_PASS) \
- $(POSTSTAGE1_FLAGS_TO_PASS) \
- clean
-@endif bfd-bootstrap
-
-
-.PHONY: configure-stage4-opcodes maybe-configure-stage4-opcodes
-.PHONY: all-stage4-opcodes maybe-all-stage4-opcodes
-.PHONY: clean-stage4-opcodes maybe-clean-stage4-opcodes
-
-maybe-configure-stage4-opcodes:
-maybe-all-stage4-opcodes:
-maybe-clean-stage4-opcodes:
-
-@if opcodes-bootstrap
-maybe-configure-stage4-opcodes: configure-stage4-opcodes
-configure-stage4-opcodes:
- @$(MAKE) stage4-start
- @[ -f opcodes/Makefile ] && exit 0 || : ; \
- r=`${PWD_COMMAND}`; export r; \
- s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
- $(STAGE_HOST_EXPORTS) \
- echo Configuring stage 4 in opcodes ; \
- cd opcodes || exit 1; \
- case $(srcdir) in \
- \.) \
- srcdiroption="--srcdir=."; \
- libsrcdir=".";; \
- /* | [A-Za-z]:[\\/]*) \
- srcdiroption="--srcdir=$(srcdir)/opcodes"; \
- libsrcdir="$$s/opcodes";; \
- *) \
- srcdiroption="--srcdir=../$(srcdir)/opcodes"; \
- libsrcdir="$$s/opcodes";; \
- esac; \
- $(SHELL) $${libsrcdir}/configure \
- $(HOST_CONFIGARGS) $${srcdiroption} \
- @stage2_werror_flag@
-
-maybe-all-stage4-opcodes: all-stage4-opcodes
-all-stage4-opcodes: configure-stage4-opcodes
- @$(MAKE) stage4-start
- @r=`${PWD_COMMAND}`; export r; \
- s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
- $(STAGE_HOST_EXPORTS) \
- cd opcodes && \
- $(MAKE) $(FLAGS_TO_PASS) \
- $(POSTSTAGE1_FLAGS_TO_PASS) \
-
-
-maybe-clean-stage4-opcodes: clean-stage4-opcodes
-clean-stage4-opcodes:
- @[ -f opcodes/Makefile ] || [ -f stage4-opcodes/Makefile ] \
- || exit 0 ; \
- [ -f opcodes/Makefile ] || $(MAKE) stage4-start ; \
- cd opcodes && \
- $(MAKE) $(FLAGS_TO_PASS) \
- $(POSTSTAGE1_FLAGS_TO_PASS) \
- clean
-@endif opcodes-bootstrap
-
-
-.PHONY: configure-stage4-binutils maybe-configure-stage4-binutils
-.PHONY: all-stage4-binutils maybe-all-stage4-binutils
-.PHONY: clean-stage4-binutils maybe-clean-stage4-binutils
-
-maybe-configure-stage4-binutils:
-maybe-all-stage4-binutils:
-maybe-clean-stage4-binutils:
-
-@if binutils-bootstrap
-maybe-configure-stage4-binutils: configure-stage4-binutils
-configure-stage4-binutils:
- @$(MAKE) stage4-start
- @[ -f binutils/Makefile ] && exit 0 || : ; \
- r=`${PWD_COMMAND}`; export r; \
- s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
- $(STAGE_HOST_EXPORTS) \
- echo Configuring stage 4 in binutils ; \
- cd binutils || exit 1; \
- case $(srcdir) in \
- \.) \
- srcdiroption="--srcdir=."; \
- libsrcdir=".";; \
- /* | [A-Za-z]:[\\/]*) \
- srcdiroption="--srcdir=$(srcdir)/binutils"; \
- libsrcdir="$$s/binutils";; \
- *) \
- srcdiroption="--srcdir=../$(srcdir)/binutils"; \
- libsrcdir="$$s/binutils";; \
- esac; \
- $(SHELL) $${libsrcdir}/configure \
- $(HOST_CONFIGARGS) $${srcdiroption} \
- @stage2_werror_flag@
-
-maybe-all-stage4-binutils: all-stage4-binutils
-all-stage4-binutils: configure-stage4-binutils
- @$(MAKE) stage4-start
- @r=`${PWD_COMMAND}`; export r; \
- s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
- $(STAGE_HOST_EXPORTS) \
- cd binutils && \
- $(MAKE) $(FLAGS_TO_PASS) \
- $(POSTSTAGE1_FLAGS_TO_PASS) \
-
-
-maybe-clean-stage4-binutils: clean-stage4-binutils
-clean-stage4-binutils:
- @[ -f binutils/Makefile ] || [ -f stage4-binutils/Makefile ] \
- || exit 0 ; \
- [ -f binutils/Makefile ] || $(MAKE) stage4-start ; \
- cd binutils && \
- $(MAKE) $(FLAGS_TO_PASS) \
- $(POSTSTAGE1_FLAGS_TO_PASS) \
- clean
-@endif binutils-bootstrap
-
-
-.PHONY: configure-stage4-gas maybe-configure-stage4-gas
-.PHONY: all-stage4-gas maybe-all-stage4-gas
-.PHONY: clean-stage4-gas maybe-clean-stage4-gas
-
-maybe-configure-stage4-gas:
-maybe-all-stage4-gas:
-maybe-clean-stage4-gas:
-
-@if gas-bootstrap
-maybe-configure-stage4-gas: configure-stage4-gas
-configure-stage4-gas:
- @$(MAKE) stage4-start
- @[ -f gas/Makefile ] && exit 0 || : ; \
- r=`${PWD_COMMAND}`; export r; \
- s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
- $(STAGE_HOST_EXPORTS) \
- echo Configuring stage 4 in gas ; \
- cd gas || exit 1; \
- case $(srcdir) in \
- \.) \
- srcdiroption="--srcdir=."; \
- libsrcdir=".";; \
- /* | [A-Za-z]:[\\/]*) \
- srcdiroption="--srcdir=$(srcdir)/gas"; \
- libsrcdir="$$s/gas";; \
- *) \
- srcdiroption="--srcdir=../$(srcdir)/gas"; \
- libsrcdir="$$s/gas";; \
- esac; \
- $(SHELL) $${libsrcdir}/configure \
- $(HOST_CONFIGARGS) $${srcdiroption} \
- @stage2_werror_flag@
-
-maybe-all-stage4-gas: all-stage4-gas
-all-stage4-gas: configure-stage4-gas
- @$(MAKE) stage4-start
- @r=`${PWD_COMMAND}`; export r; \
- s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
- $(STAGE_HOST_EXPORTS) \
- cd gas && \
- $(MAKE) $(FLAGS_TO_PASS) \
- $(POSTSTAGE1_FLAGS_TO_PASS) \
-
-
-maybe-clean-stage4-gas: clean-stage4-gas
-clean-stage4-gas:
- @[ -f gas/Makefile ] || [ -f stage4-gas/Makefile ] \
- || exit 0 ; \
- [ -f gas/Makefile ] || $(MAKE) stage4-start ; \
- cd gas && \
- $(MAKE) $(FLAGS_TO_PASS) \
- $(POSTSTAGE1_FLAGS_TO_PASS) \
- clean
-@endif gas-bootstrap
-
-
-.PHONY: configure-stage4-gcc maybe-configure-stage4-gcc
-.PHONY: all-stage4-gcc maybe-all-stage4-gcc
-.PHONY: clean-stage4-gcc maybe-clean-stage4-gcc
-
-maybe-configure-stage4-gcc:
-maybe-all-stage4-gcc:
-maybe-clean-stage4-gcc:
-
-@if gcc-bootstrap
-maybe-configure-stage4-gcc: configure-stage4-gcc
-configure-stage4-gcc:
- @$(MAKE) stage4-start
- @[ -f gcc/Makefile ] && exit 0 || : ; \
- r=`${PWD_COMMAND}`; export r; \
- s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
- $(STAGE_HOST_EXPORTS) \
- echo Configuring stage 4 in gcc ; \
- cd gcc || exit 1; \
- case $(srcdir) in \
- \.) \
- srcdiroption="--srcdir=."; \
- libsrcdir=".";; \
- /* | [A-Za-z]:[\\/]*) \
- srcdiroption="--srcdir=$(srcdir)/gcc"; \
- libsrcdir="$$s/gcc";; \
- *) \
- srcdiroption="--srcdir=../$(srcdir)/gcc"; \
- libsrcdir="$$s/gcc";; \
- esac; \
- $(SHELL) $${libsrcdir}/configure \
- $(HOST_CONFIGARGS) $${srcdiroption} \
- @stage2_werror_flag@
-
-maybe-all-stage4-gcc: all-stage4-gcc
-all-stage4-gcc: configure-stage4-gcc
- @$(MAKE) stage4-start
- @r=`${PWD_COMMAND}`; export r; \
- s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
- $(STAGE_HOST_EXPORTS) \
- cd gcc && \
- $(MAKE) $(FLAGS_TO_PASS) \
- $(POSTSTAGE1_FLAGS_TO_PASS) \
- $(EXTRA_GCC_FLAGS)
-
-maybe-clean-stage4-gcc: clean-stage4-gcc
-clean-stage4-gcc:
- @[ -f gcc/Makefile ] || [ -f stage4-gcc/Makefile ] \
- || exit 0 ; \
- [ -f gcc/Makefile ] || $(MAKE) stage4-start ; \
- cd gcc && \
- $(MAKE) $(FLAGS_TO_PASS) \
- $(POSTSTAGE1_FLAGS_TO_PASS) \
- $(EXTRA_GCC_FLAGS) clean
-@endif gcc-bootstrap
-
-
-.PHONY: configure-stage4-intl maybe-configure-stage4-intl
-.PHONY: all-stage4-intl maybe-all-stage4-intl
-.PHONY: clean-stage4-intl maybe-clean-stage4-intl
-
-maybe-configure-stage4-intl:
-maybe-all-stage4-intl:
-maybe-clean-stage4-intl:
-
-@if intl-bootstrap
-maybe-configure-stage4-intl: configure-stage4-intl
-configure-stage4-intl:
- @$(MAKE) stage4-start
- @[ -f intl/Makefile ] && exit 0 || : ; \
- r=`${PWD_COMMAND}`; export r; \
- s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
- $(STAGE_HOST_EXPORTS) \
- echo Configuring stage 4 in intl ; \
- cd intl || exit 1; \
- case $(srcdir) in \
- \.) \
- srcdiroption="--srcdir=."; \
- libsrcdir=".";; \
- /* | [A-Za-z]:[\\/]*) \
- srcdiroption="--srcdir=$(srcdir)/intl"; \
- libsrcdir="$$s/intl";; \
- *) \
- srcdiroption="--srcdir=../$(srcdir)/intl"; \
- libsrcdir="$$s/intl";; \
- esac; \
- $(SHELL) $${libsrcdir}/configure \
- $(HOST_CONFIGARGS) $${srcdiroption} \
- @stage2_werror_flag@
-
-maybe-all-stage4-intl: all-stage4-intl
-all-stage4-intl: configure-stage4-intl
- @$(MAKE) stage4-start
- @r=`${PWD_COMMAND}`; export r; \
- s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
- $(STAGE_HOST_EXPORTS) \
- cd intl && \
- $(MAKE) $(FLAGS_TO_PASS) \
- $(POSTSTAGE1_FLAGS_TO_PASS) \
-
-
-maybe-clean-stage4-intl: clean-stage4-intl
-clean-stage4-intl:
- @[ -f intl/Makefile ] || [ -f stage4-intl/Makefile ] \
- || exit 0 ; \
- [ -f intl/Makefile ] || $(MAKE) stage4-start ; \
- cd intl && \
- $(MAKE) $(FLAGS_TO_PASS) \
- $(POSTSTAGE1_FLAGS_TO_PASS) \
- clean
-@endif intl-bootstrap
-
-
-.PHONY: configure-stage4-ld maybe-configure-stage4-ld
-.PHONY: all-stage4-ld maybe-all-stage4-ld
-.PHONY: clean-stage4-ld maybe-clean-stage4-ld
-
-maybe-configure-stage4-ld:
-maybe-all-stage4-ld:
-maybe-clean-stage4-ld: