-@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:
-
-@if ld-bootstrap
-maybe-configure-stage4-ld: configure-stage4-ld
-configure-stage4-ld:
- @$(MAKE) stage4-start
- @[ -f ld/Makefile ] && exit 0 || : ; \
- r=`${PWD_COMMAND}`; export r; \
- s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
- $(STAGE_HOST_EXPORTS) \
- echo Configuring stage 4 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-stage4-ld: all-stage4-ld
-all-stage4-ld: configure-stage4-ld
- @$(MAKE) stage4-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-stage4-ld: clean-stage4-ld
-clean-stage4-ld:
- @[ -f ld/Makefile ] || [ -f stage4-ld/Makefile ] \
- || exit 0 ; \
- [ -f ld/Makefile ] || $(MAKE) stage4-start ; \
- cd ld && \
- $(MAKE) $(FLAGS_TO_PASS) \
- $(POSTSTAGE1_FLAGS_TO_PASS) \
- clean
-@endif ld-bootstrap
-
-
-.PHONY: configure-stage4-libcpp maybe-configure-stage4-libcpp
-.PHONY: all-stage4-libcpp maybe-all-stage4-libcpp
-.PHONY: clean-stage4-libcpp maybe-clean-stage4-libcpp
-
-maybe-configure-stage4-libcpp:
-maybe-all-stage4-libcpp:
-maybe-clean-stage4-libcpp:
-
-@if libcpp-bootstrap
-maybe-configure-stage4-libcpp: configure-stage4-libcpp
-configure-stage4-libcpp:
- @$(MAKE) stage4-start
- @[ -f libcpp/Makefile ] && exit 0 || : ; \
- r=`${PWD_COMMAND}`; export r; \
- s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
- $(STAGE_HOST_EXPORTS) \
- echo Configuring stage 4 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-stage4-libcpp: all-stage4-libcpp
-all-stage4-libcpp: configure-stage4-libcpp
- @$(MAKE) stage4-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-stage4-libcpp: clean-stage4-libcpp
-clean-stage4-libcpp:
- @[ -f libcpp/Makefile ] || [ -f stage4-libcpp/Makefile ] \
- || exit 0 ; \
- [ -f libcpp/Makefile ] || $(MAKE) stage4-start ; \
- cd libcpp && \
- $(MAKE) $(FLAGS_TO_PASS) \
- $(POSTSTAGE1_FLAGS_TO_PASS) \
- clean
-@endif libcpp-bootstrap
-
-
-.PHONY: configure-stage4-libiberty maybe-configure-stage4-libiberty
-.PHONY: all-stage4-libiberty maybe-all-stage4-libiberty
-.PHONY: clean-stage4-libiberty maybe-clean-stage4-libiberty
-
-maybe-configure-stage4-libiberty:
-maybe-all-stage4-libiberty:
-maybe-clean-stage4-libiberty:
-
-@if libiberty-bootstrap
-maybe-configure-stage4-libiberty: configure-stage4-libiberty
-configure-stage4-libiberty:
- @$(MAKE) stage4-start
- @[ -f libiberty/Makefile ] && exit 0 || : ; \
- r=`${PWD_COMMAND}`; export r; \
- s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
- $(STAGE_HOST_EXPORTS) \
- echo Configuring stage 4 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-stage4-libiberty: all-stage4-libiberty
-all-stage4-libiberty: configure-stage4-libiberty
- @$(MAKE) stage4-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-stage4-libiberty: clean-stage4-libiberty
-clean-stage4-libiberty:
- @[ -f libiberty/Makefile ] || [ -f stage4-libiberty/Makefile ] \
- || exit 0 ; \
- [ -f libiberty/Makefile ] || $(MAKE) stage4-start ; \
- cd libiberty && \
- $(MAKE) $(FLAGS_TO_PASS) \
- $(POSTSTAGE1_FLAGS_TO_PASS) \
- clean
-@endif libiberty-bootstrap
-
-
-.PHONY: configure-stage4-zlib maybe-configure-stage4-zlib
-.PHONY: all-stage4-zlib maybe-all-stage4-zlib
-.PHONY: clean-stage4-zlib maybe-clean-stage4-zlib
-
-maybe-configure-stage4-zlib:
-maybe-all-stage4-zlib:
-maybe-clean-stage4-zlib:
-
-@if zlib-bootstrap
-maybe-configure-stage4-zlib: configure-stage4-zlib
-configure-stage4-zlib:
- @$(MAKE) stage4-start
- @[ -f zlib/Makefile ] && exit 0 || : ; \
- r=`${PWD_COMMAND}`; export r; \
- s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
- $(STAGE_HOST_EXPORTS) \
- echo Configuring stage 4 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-stage4-zlib: all-stage4-zlib
-all-stage4-zlib: configure-stage4-zlib
- @$(MAKE) stage4-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-stage4-zlib: clean-stage4-zlib
-clean-stage4-zlib:
- @[ -f zlib/Makefile ] || [ -f stage4-zlib/Makefile ] \
- || exit 0 ; \
- [ -f zlib/Makefile ] || $(MAKE) stage4-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
-
-compare3:
- @if test -f stage3-lean; then \
- echo Cannot compare object files as stage 3 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 stage4-gcc; \
- files=`find . -name "*$(objext)" -print` ; \
- cd .. ; \
- for file in $${files} ; do \
- f1=$$r/stage3-gcc/$$file; f2=$$r/stage4-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) compare3
- @bootstrap_lean@-rm -rf stage3-* ; $(STAMP) stage3-lean
-
-
-
-.PHONY: bootstrap4
-bootstrap4: stage4-bubble compare3 all
-
-
-# Rules to wipe a stage and all the following ones, also used for cleanstrap
-distclean-stage3:: distclean-stage4
-.PHONY: distclean-stage4
-distclean-stage4::
- [ -f stage_current ] && $(MAKE) `cat stage_current`-end || :
- rm -rf stage4-* compare3
-
-
-@endif gcc-bootstrap
-
-
-.PHONY: stageprofile-start stageprofile-end
-
-stageprofile-start::
- @[ -f stage_current ] && $(MAKE) `cat stage_current`-end || : ; \
- echo stageprofile > stage_current ; \
- echo stageprofile > stage_last
-@if bfd
- @[ -d stageprofile-bfd ] || mkdir stageprofile-bfd; \
- set stageprofile-bfd bfd ; @CREATE_LINK_TO_DIR@ ; \
- set stage1-bfd prev-bfd ; @CREATE_LINK_TO_DIR@
-@endif bfd
-@if opcodes
- @[ -d stageprofile-opcodes ] || mkdir stageprofile-opcodes; \
- set stageprofile-opcodes opcodes ; @CREATE_LINK_TO_DIR@ ; \
- set stage1-opcodes prev-opcodes ; @CREATE_LINK_TO_DIR@
-@endif opcodes
-@if binutils
- @[ -d stageprofile-binutils ] || mkdir stageprofile-binutils; \
- set stageprofile-binutils binutils ; @CREATE_LINK_TO_DIR@ ; \
- set stage1-binutils prev-binutils ; @CREATE_LINK_TO_DIR@
-@endif binutils
-@if gas
- @[ -d stageprofile-gas ] || mkdir stageprofile-gas; \
- set stageprofile-gas gas ; @CREATE_LINK_TO_DIR@ ; \
- set stage1-gas prev-gas ; @CREATE_LINK_TO_DIR@
-@endif gas
-@if gcc
- @[ -d stageprofile-gcc ] || mkdir stageprofile-gcc; \
- set stageprofile-gcc gcc ; @CREATE_LINK_TO_DIR@ ; \
- set stage1-gcc prev-gcc ; @CREATE_LINK_TO_DIR@
-@endif gcc
-@if intl
- @[ -d stageprofile-intl ] || mkdir stageprofile-intl; \
- set stageprofile-intl intl ; @CREATE_LINK_TO_DIR@ ; \
- set stage1-intl prev-intl ; @CREATE_LINK_TO_DIR@
-@endif intl
-@if ld
- @[ -d stageprofile-ld ] || mkdir stageprofile-ld; \
- set stageprofile-ld ld ; @CREATE_LINK_TO_DIR@ ; \
- set stage1-ld prev-ld ; @CREATE_LINK_TO_DIR@
-@endif ld
-@if libcpp
- @[ -d stageprofile-libcpp ] || mkdir stageprofile-libcpp; \
- set stageprofile-libcpp libcpp ; @CREATE_LINK_TO_DIR@ ; \
- set stage1-libcpp prev-libcpp ; @CREATE_LINK_TO_DIR@
-@endif libcpp
-@if libiberty
- @[ -d stageprofile-libiberty ] || mkdir stageprofile-libiberty; \
- set stageprofile-libiberty libiberty ; @CREATE_LINK_TO_DIR@ ; \
- set stage1-libiberty prev-libiberty ; @CREATE_LINK_TO_DIR@
-@endif libiberty
-@if zlib
- @[ -d stageprofile-zlib ] || mkdir stageprofile-zlib; \
- set stageprofile-zlib zlib ; @CREATE_LINK_TO_DIR@ ; \
- set stage1-zlib prev-zlib ; @CREATE_LINK_TO_DIR@
-@endif zlib
-
-stageprofile-end::
- @rm -f stage_current
-@if bfd
- @set bfd stageprofile-bfd ; @UNDO_LINK_TO_DIR@ ; \
- set prev-bfd stage1-bfd ; @UNDO_LINK_TO_DIR@
-@endif bfd
-@if opcodes
- @set opcodes stageprofile-opcodes ; @UNDO_LINK_TO_DIR@ ; \
- set prev-opcodes stage1-opcodes ; @UNDO_LINK_TO_DIR@
-@endif opcodes
-@if binutils
- @set binutils stageprofile-binutils ; @UNDO_LINK_TO_DIR@ ; \
- set prev-binutils stage1-binutils ; @UNDO_LINK_TO_DIR@
-@endif binutils
-@if gas
- @set gas stageprofile-gas ; @UNDO_LINK_TO_DIR@ ; \
- set prev-gas stage1-gas ; @UNDO_LINK_TO_DIR@
-@endif gas
-@if gcc
- @set gcc stageprofile-gcc ; @UNDO_LINK_TO_DIR@ ; \
- set prev-gcc stage1-gcc ; @UNDO_LINK_TO_DIR@
-@endif gcc
-@if intl
- @set intl stageprofile-intl ; @UNDO_LINK_TO_DIR@ ; \
- set prev-intl stage1-intl ; @UNDO_LINK_TO_DIR@
-@endif intl
-@if ld
- @set ld stageprofile-ld ; @UNDO_LINK_TO_DIR@ ; \
- set prev-ld stage1-ld ; @UNDO_LINK_TO_DIR@
-@endif ld
-@if libcpp
- @set libcpp stageprofile-libcpp ; @UNDO_LINK_TO_DIR@ ; \
- set prev-libcpp stage1-libcpp ; @UNDO_LINK_TO_DIR@
-@endif libcpp
-@if libiberty
- @set libiberty stageprofile-libiberty ; @UNDO_LINK_TO_DIR@ ; \
- set prev-libiberty stage1-libiberty ; @UNDO_LINK_TO_DIR@
-@endif libiberty
-@if zlib
- @set zlib stageprofile-zlib ; @UNDO_LINK_TO_DIR@ ; \
- set prev-zlib stage1-zlib ; @UNDO_LINK_TO_DIR@
-@endif zlib
-
-# Bubble a bugfix through all the stages up to stage profile. They
-# are remade, but not reconfigured. The next stage (if any) will not
-# be reconfigured as well.
-.PHONY: stageprofile-bubble
-stageprofile-bubble:: stage1-bubble
- @if test -f stageprofile-lean || test -f stage1-lean ; then \
- echo Skipping rebuild of stageprofile ; \
- else \
- $(MAKE) $(RECURSE_FLAGS_TO_PASS) NOTPARALLEL= all-stageprofile; \
- fi
-
-.PHONY: all-stageprofile clean-stageprofile
-all-stageprofile: \
- maybe-all-stageprofile-bfd \
- maybe-all-stageprofile-opcodes \
- maybe-all-stageprofile-binutils \
- maybe-all-stageprofile-gas \
- maybe-all-stageprofile-gcc \
- maybe-all-stageprofile-intl \
- maybe-all-stageprofile-ld \
- maybe-all-stageprofile-libcpp \
- maybe-all-stageprofile-libiberty \
- maybe-all-stageprofile-zlib
-
-do-clean: clean-stageprofile
-clean-stageprofile: \
- maybe-clean-stageprofile-bfd \
- maybe-clean-stageprofile-opcodes \
- maybe-clean-stageprofile-binutils \
- maybe-clean-stageprofile-gas \
- maybe-clean-stageprofile-gcc \
- maybe-clean-stageprofile-intl \
- maybe-clean-stageprofile-ld \
- maybe-clean-stageprofile-libcpp \
- maybe-clean-stageprofile-libiberty \
- maybe-clean-stageprofile-zlib
-
-
-.PHONY: configure-stageprofile-bfd maybe-configure-stageprofile-bfd
-.PHONY: all-stageprofile-bfd maybe-all-stageprofile-bfd
-.PHONY: clean-stageprofile-bfd maybe-clean-stageprofile-bfd
-
-maybe-configure-stageprofile-bfd:
-maybe-all-stageprofile-bfd:
-maybe-clean-stageprofile-bfd:
-
-@if bfd-bootstrap
-maybe-configure-stageprofile-bfd: configure-stageprofile-bfd
-configure-stageprofile-bfd:
- @$(MAKE) stageprofile-start
- @[ -f bfd/Makefile ] && exit 0 || : ; \
- r=`${PWD_COMMAND}`; export r; \
- s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
- $(STAGE_HOST_EXPORTS) \
- echo Configuring stage profile 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-stageprofile-bfd: all-stageprofile-bfd
-all-stageprofile-bfd: configure-stageprofile-bfd
- @$(MAKE) stageprofile-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) \
- CFLAGS="$(BOOT_CFLAGS) -fprofile-generate"
-
-maybe-clean-stageprofile-bfd: clean-stageprofile-bfd
-clean-stageprofile-bfd:
- @[ -f bfd/Makefile ] || [ -f stageprofile-bfd/Makefile ] \
- || exit 0 ; \
- [ -f bfd/Makefile ] || $(MAKE) stageprofile-start ; \
- cd bfd && \
- $(MAKE) $(FLAGS_TO_PASS) \
- $(POSTSTAGE1_FLAGS_TO_PASS) \
- CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" clean
-@endif bfd-bootstrap
-
-
-.PHONY: configure-stageprofile-opcodes maybe-configure-stageprofile-opcodes
-.PHONY: all-stageprofile-opcodes maybe-all-stageprofile-opcodes
-.PHONY: clean-stageprofile-opcodes maybe-clean-stageprofile-opcodes
-
-maybe-configure-stageprofile-opcodes:
-maybe-all-stageprofile-opcodes:
-maybe-clean-stageprofile-opcodes:
-
-@if opcodes-bootstrap
-maybe-configure-stageprofile-opcodes: configure-stageprofile-opcodes
-configure-stageprofile-opcodes:
- @$(MAKE) stageprofile-start
- @[ -f opcodes/Makefile ] && exit 0 || : ; \
- r=`${PWD_COMMAND}`; export r; \
- s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
- $(STAGE_HOST_EXPORTS) \
- echo Configuring stage profile 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-stageprofile-opcodes: all-stageprofile-opcodes
-all-stageprofile-opcodes: configure-stageprofile-opcodes
- @$(MAKE) stageprofile-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) \
- CFLAGS="$(BOOT_CFLAGS) -fprofile-generate"
-
-maybe-clean-stageprofile-opcodes: clean-stageprofile-opcodes
-clean-stageprofile-opcodes:
- @[ -f opcodes/Makefile ] || [ -f stageprofile-opcodes/Makefile ] \
- || exit 0 ; \
- [ -f opcodes/Makefile ] || $(MAKE) stageprofile-start ; \
- cd opcodes && \
- $(MAKE) $(FLAGS_TO_PASS) \
- $(POSTSTAGE1_FLAGS_TO_PASS) \
- CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" clean
-@endif opcodes-bootstrap