From 99df82b9b41385cbe0e0d58f51417b05212234b2 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Wed, 1 Sep 2004 07:48:07 +0000 Subject: [PATCH] 2004-09-01 Paolo Bonzini * Makefile.tpl (sorry): Remove. (clean-stage[+id+], clean-stage[+id+]-module): New targets. (cleanstrap targets): Depend on distclean, not distclean-stage1. (do-clean): Clean per-stage directories too. (do-distclean): Run distclean-stage1 too. (.NOTPARALLEL): Enable during toplevel bootstrap. (stage[+id+]-bubble): Enable parallel execution during the recursive invocation. * Makefile.in: Regenerate. Sync from gcc (moving the Makefile.in change to Makefile.tpl): 2004-08-31 Robert Bowdidge * Makefile.in: Move BOOT_CFLAGS above host makefile fragment include. * configure.in: add test for powerpc-*-darwin* to specify makefile frag * configure: regenerate * config/mh-ppc-darwin: create file, override BOOT_CFLAGS for -mdynamic-no-pic --- ChangeLog | 29 ++ Makefile.in | 1010 ++++++++++++++++++++++++++++++++++++++++++++++++-- Makefile.tpl | 52 ++- configure | 123 +++--- configure.in | 3 + 5 files changed, 1100 insertions(+), 117 deletions(-) diff --git a/ChangeLog b/ChangeLog index 21f6d997a..82346c4d4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,32 @@ +2004-09-01 Paolo Bonzini + + * Makefile.tpl (sorry): Remove. + (clean-stage[+id+], clean-stage[+id+]-module): New targets. + (cleanstrap targets): Depend on distclean, not distclean-stage1. + (do-clean): Clean per-stage directories too. + (do-distclean): Run distclean-stage1 too. + (.NOTPARALLEL): Enable during toplevel bootstrap. + (stage[+id+]-bubble): Enable parallel execution during + the recursive invocation. + * Makefile.in: Regenerate. + + Sync from gcc (moving the Makefile.in change to Makefile.tpl): + + 2004-08-31 Robert Bowdidge + + * Makefile.in: Move BOOT_CFLAGS above host makefile fragment include. + * configure.in: add test for powerpc-*-darwin* to specify makefile frag + * configure: regenerate + * config/mh-ppc-darwin: create file, override BOOT_CFLAGS for + -mdynamic-no-pic + +2004-08-31 Paolo Bonzini + + * Makefile.tpl: Move BOOT_CFLAGS above host makefile fragment + include. + * configure.in: Fix indentation. + * configure: Regenerate. + 2004-08-31 Paolo Bonzini * Makefile.def (build_modules): Add fixincludes. diff --git a/Makefile.in b/Makefile.in index 468d8b0b4..be99c5bdf 100644 --- a/Makefile.in +++ b/Makefile.in @@ -245,6 +245,10 @@ CXX_FOR_BUILD = $(CXX) BUILD_PREFIX = @BUILD_PREFIX@ BUILD_PREFIX_1 = @BUILD_PREFIX_1@ +# Flags to pass to stage2 and later makes. They are defined +# here so that they can be overridden by Makefile fragments. +BOOT_CFLAGS= -g -O2 + CONFIGURED_BISON = @CONFIGURED_BISON@ BISON = `if [ -f $$r/$(BUILD_SUBDIR)/bison/tests/bison ] ; then \ echo $$r/$(BUILD_SUBDIR)/bison/tests/bison ; \ @@ -478,14 +482,6 @@ PICFLAG_FOR_TARGET = # Miscellaneous targets and flag lists # ------------------------------------ -@if gcc-bootstrap -# Let's leave this as the first rule in the file until toplevel -# bootstrap is fleshed out completely. -sorry: - @echo Toplevel bootstrap temporarily out of commission. - @echo Please reconfigure without --enable-bootstrap -@endif gcc-bootstrap - # The first rule in the file had better be this one. Don't put any above it. # This lives here to allow makefile fragments to contain dependencies. @default_target@: @@ -28185,7 +28181,9 @@ stage: # (both in a combined tree, or separately). This however requires some # change to the gcc driver, again in order to avoid comparison failures. -# Bugs: This is almost certainly not parallel-make safe. +# Bugs: This is crippled when doing parallel make, the `make all-host' +# and `make all-target' phases can be parallelized. + # 'touch' doesn't work right on some platforms. STAMP = echo timestamp > @@ -28203,7 +28201,6 @@ STAGE1_LANGUAGES=@stage1_languages@ objext = .o # Flags to pass to stage2 and later makes. -BOOT_CFLAGS= -g -O2 POSTSTAGE1_FLAGS_TO_PASS = \ CC="$${CC}" CC_FOR_BUILD="$${CC_FOR_BUILD}" \ STAGE_PREFIX=$$r/stage-gcc/ \ @@ -28315,10 +28312,10 @@ stage1-bubble:: @if test -f stage1-lean ; then \ echo Skipping rebuild of stage1 ; \ else \ - $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage1; \ + $(MAKE) $(RECURSE_FLAGS_TO_PASS) NOTPARALLEL= all-stage1; \ fi -.PHONY: all-stage1 +.PHONY: all-stage1 clean-stage1 all-stage1: \ maybe-all-stage1-bfd \ maybe-all-stage1-opcodes \ @@ -28332,12 +28329,28 @@ all-stage1: \ maybe-all-stage1-libiberty \ maybe-all-stage1-zlib +do-clean: clean-stage1 +clean-stage1: \ + maybe-clean-stage1-bfd \ + maybe-clean-stage1-opcodes \ + maybe-clean-stage1-binutils \ + maybe-clean-stage1-gas \ + maybe-clean-stage1-gcc \ + maybe-clean-stage1-intl \ + maybe-clean-stage1-ld \ + maybe-clean-stage1-libcpp \ + maybe-clean-stage1-libbanshee \ + maybe-clean-stage1-libiberty \ + maybe-clean-stage1-zlib + .PHONY: configure-stage1-bfd maybe-configure-stage1-bfd .PHONY: all-stage1-bfd maybe-all-stage1-bfd +.PHONY: clean-stage1-bfd maybe-clean-stage1-bfd maybe-configure-stage1-bfd: maybe-all-stage1-bfd: +maybe-clean-stage1-bfd: @if bfd-bootstrap maybe-configure-stage1-bfd: configure-stage1-bfd @@ -28373,13 +28386,25 @@ all-stage1-bfd: configure-stage1-bfd cd bfd && \ $(MAKE) $(FLAGS_TO_PASS) \ CFLAGS="$(STAGE1_CFLAGS)" + +maybe-clean-stage1-bfd: clean-stage1-bfd +clean-stage1-bfd: + @[ -f bfd/Makefile ] || [ -f stage1-bfd/Makefile ] \ + || exit 0 ; \ + [ -f bfd/Makefile ] || $(MAKE) stage1-start ; \ + cd bfd && \ + $(MAKE) $(FLAGS_TO_PASS) \ + CFLAGS="$(STAGE1_CFLAGS)" clean @endif bfd-bootstrap + .PHONY: configure-stage1-opcodes maybe-configure-stage1-opcodes .PHONY: all-stage1-opcodes maybe-all-stage1-opcodes +.PHONY: clean-stage1-opcodes maybe-clean-stage1-opcodes maybe-configure-stage1-opcodes: maybe-all-stage1-opcodes: +maybe-clean-stage1-opcodes: @if opcodes-bootstrap maybe-configure-stage1-opcodes: configure-stage1-opcodes @@ -28415,13 +28440,25 @@ all-stage1-opcodes: configure-stage1-opcodes cd opcodes && \ $(MAKE) $(FLAGS_TO_PASS) \ CFLAGS="$(STAGE1_CFLAGS)" + +maybe-clean-stage1-opcodes: clean-stage1-opcodes +clean-stage1-opcodes: + @[ -f opcodes/Makefile ] || [ -f stage1-opcodes/Makefile ] \ + || exit 0 ; \ + [ -f opcodes/Makefile ] || $(MAKE) stage1-start ; \ + cd opcodes && \ + $(MAKE) $(FLAGS_TO_PASS) \ + CFLAGS="$(STAGE1_CFLAGS)" clean @endif opcodes-bootstrap + .PHONY: configure-stage1-binutils maybe-configure-stage1-binutils .PHONY: all-stage1-binutils maybe-all-stage1-binutils +.PHONY: clean-stage1-binutils maybe-clean-stage1-binutils maybe-configure-stage1-binutils: maybe-all-stage1-binutils: +maybe-clean-stage1-binutils: @if binutils-bootstrap maybe-configure-stage1-binutils: configure-stage1-binutils @@ -28457,13 +28494,25 @@ all-stage1-binutils: configure-stage1-binutils cd binutils && \ $(MAKE) $(FLAGS_TO_PASS) \ CFLAGS="$(STAGE1_CFLAGS)" + +maybe-clean-stage1-binutils: clean-stage1-binutils +clean-stage1-binutils: + @[ -f binutils/Makefile ] || [ -f stage1-binutils/Makefile ] \ + || exit 0 ; \ + [ -f binutils/Makefile ] || $(MAKE) stage1-start ; \ + cd binutils && \ + $(MAKE) $(FLAGS_TO_PASS) \ + CFLAGS="$(STAGE1_CFLAGS)" clean @endif binutils-bootstrap + .PHONY: configure-stage1-gas maybe-configure-stage1-gas .PHONY: all-stage1-gas maybe-all-stage1-gas +.PHONY: clean-stage1-gas maybe-clean-stage1-gas maybe-configure-stage1-gas: maybe-all-stage1-gas: +maybe-clean-stage1-gas: @if gas-bootstrap maybe-configure-stage1-gas: configure-stage1-gas @@ -28499,13 +28548,25 @@ all-stage1-gas: configure-stage1-gas cd gas && \ $(MAKE) $(FLAGS_TO_PASS) \ CFLAGS="$(STAGE1_CFLAGS)" + +maybe-clean-stage1-gas: clean-stage1-gas +clean-stage1-gas: + @[ -f gas/Makefile ] || [ -f stage1-gas/Makefile ] \ + || exit 0 ; \ + [ -f gas/Makefile ] || $(MAKE) stage1-start ; \ + cd gas && \ + $(MAKE) $(FLAGS_TO_PASS) \ + CFLAGS="$(STAGE1_CFLAGS)" clean @endif gas-bootstrap + .PHONY: configure-stage1-gcc maybe-configure-stage1-gcc .PHONY: all-stage1-gcc maybe-all-stage1-gcc +.PHONY: clean-stage1-gcc maybe-clean-stage1-gcc maybe-configure-stage1-gcc: maybe-all-stage1-gcc: +maybe-clean-stage1-gcc: @if gcc-bootstrap maybe-configure-stage1-gcc: configure-stage1-gcc @@ -28541,13 +28602,25 @@ all-stage1-gcc: configure-stage1-gcc cd gcc && \ $(MAKE) $(FLAGS_TO_PASS) \ CFLAGS="$(STAGE1_CFLAGS)" $(EXTRA_GCC_FLAGS) + +maybe-clean-stage1-gcc: clean-stage1-gcc +clean-stage1-gcc: + @[ -f gcc/Makefile ] || [ -f stage1-gcc/Makefile ] \ + || exit 0 ; \ + [ -f gcc/Makefile ] || $(MAKE) stage1-start ; \ + cd gcc && \ + $(MAKE) $(FLAGS_TO_PASS) \ + CFLAGS="$(STAGE1_CFLAGS)" $(EXTRA_GCC_FLAGS) clean @endif gcc-bootstrap + .PHONY: configure-stage1-intl maybe-configure-stage1-intl .PHONY: all-stage1-intl maybe-all-stage1-intl +.PHONY: clean-stage1-intl maybe-clean-stage1-intl maybe-configure-stage1-intl: maybe-all-stage1-intl: +maybe-clean-stage1-intl: @if intl-bootstrap maybe-configure-stage1-intl: configure-stage1-intl @@ -28583,13 +28656,25 @@ all-stage1-intl: configure-stage1-intl cd intl && \ $(MAKE) $(FLAGS_TO_PASS) \ CFLAGS="$(STAGE1_CFLAGS)" + +maybe-clean-stage1-intl: clean-stage1-intl +clean-stage1-intl: + @[ -f intl/Makefile ] || [ -f stage1-intl/Makefile ] \ + || exit 0 ; \ + [ -f intl/Makefile ] || $(MAKE) stage1-start ; \ + cd intl && \ + $(MAKE) $(FLAGS_TO_PASS) \ + CFLAGS="$(STAGE1_CFLAGS)" clean @endif intl-bootstrap + .PHONY: configure-stage1-ld maybe-configure-stage1-ld .PHONY: all-stage1-ld maybe-all-stage1-ld +.PHONY: clean-stage1-ld maybe-clean-stage1-ld maybe-configure-stage1-ld: maybe-all-stage1-ld: +maybe-clean-stage1-ld: @if ld-bootstrap maybe-configure-stage1-ld: configure-stage1-ld @@ -28625,13 +28710,25 @@ all-stage1-ld: configure-stage1-ld cd ld && \ $(MAKE) $(FLAGS_TO_PASS) \ CFLAGS="$(STAGE1_CFLAGS)" + +maybe-clean-stage1-ld: clean-stage1-ld +clean-stage1-ld: + @[ -f ld/Makefile ] || [ -f stage1-ld/Makefile ] \ + || exit 0 ; \ + [ -f ld/Makefile ] || $(MAKE) stage1-start ; \ + cd ld && \ + $(MAKE) $(FLAGS_TO_PASS) \ + CFLAGS="$(STAGE1_CFLAGS)" clean @endif ld-bootstrap + .PHONY: configure-stage1-libcpp maybe-configure-stage1-libcpp .PHONY: all-stage1-libcpp maybe-all-stage1-libcpp +.PHONY: clean-stage1-libcpp maybe-clean-stage1-libcpp maybe-configure-stage1-libcpp: maybe-all-stage1-libcpp: +maybe-clean-stage1-libcpp: @if libcpp-bootstrap maybe-configure-stage1-libcpp: configure-stage1-libcpp @@ -28667,13 +28764,25 @@ all-stage1-libcpp: configure-stage1-libcpp cd libcpp && \ $(MAKE) $(FLAGS_TO_PASS) \ CFLAGS="$(STAGE1_CFLAGS)" + +maybe-clean-stage1-libcpp: clean-stage1-libcpp +clean-stage1-libcpp: + @[ -f libcpp/Makefile ] || [ -f stage1-libcpp/Makefile ] \ + || exit 0 ; \ + [ -f libcpp/Makefile ] || $(MAKE) stage1-start ; \ + cd libcpp && \ + $(MAKE) $(FLAGS_TO_PASS) \ + CFLAGS="$(STAGE1_CFLAGS)" clean @endif libcpp-bootstrap + .PHONY: configure-stage1-libbanshee maybe-configure-stage1-libbanshee .PHONY: all-stage1-libbanshee maybe-all-stage1-libbanshee +.PHONY: clean-stage1-libbanshee maybe-clean-stage1-libbanshee maybe-configure-stage1-libbanshee: maybe-all-stage1-libbanshee: +maybe-clean-stage1-libbanshee: @if libbanshee-bootstrap maybe-configure-stage1-libbanshee: configure-stage1-libbanshee @@ -28709,13 +28818,25 @@ all-stage1-libbanshee: configure-stage1-libbanshee cd libbanshee && \ $(MAKE) $(FLAGS_TO_PASS) \ CFLAGS="$(STAGE1_CFLAGS)" + +maybe-clean-stage1-libbanshee: clean-stage1-libbanshee +clean-stage1-libbanshee: + @[ -f libbanshee/Makefile ] || [ -f stage1-libbanshee/Makefile ] \ + || exit 0 ; \ + [ -f libbanshee/Makefile ] || $(MAKE) stage1-start ; \ + cd libbanshee && \ + $(MAKE) $(FLAGS_TO_PASS) \ + CFLAGS="$(STAGE1_CFLAGS)" clean @endif libbanshee-bootstrap + .PHONY: configure-stage1-libiberty maybe-configure-stage1-libiberty .PHONY: all-stage1-libiberty maybe-all-stage1-libiberty +.PHONY: clean-stage1-libiberty maybe-clean-stage1-libiberty maybe-configure-stage1-libiberty: maybe-all-stage1-libiberty: +maybe-clean-stage1-libiberty: @if libiberty-bootstrap maybe-configure-stage1-libiberty: configure-stage1-libiberty @@ -28751,13 +28872,25 @@ all-stage1-libiberty: configure-stage1-libiberty cd libiberty && \ $(MAKE) $(FLAGS_TO_PASS) \ CFLAGS="$(STAGE1_CFLAGS)" + +maybe-clean-stage1-libiberty: clean-stage1-libiberty +clean-stage1-libiberty: + @[ -f libiberty/Makefile ] || [ -f stage1-libiberty/Makefile ] \ + || exit 0 ; \ + [ -f libiberty/Makefile ] || $(MAKE) stage1-start ; \ + cd libiberty && \ + $(MAKE) $(FLAGS_TO_PASS) \ + CFLAGS="$(STAGE1_CFLAGS)" clean @endif libiberty-bootstrap + .PHONY: configure-stage1-zlib maybe-configure-stage1-zlib .PHONY: all-stage1-zlib maybe-all-stage1-zlib +.PHONY: clean-stage1-zlib maybe-clean-stage1-zlib maybe-configure-stage1-zlib: maybe-all-stage1-zlib: +maybe-clean-stage1-zlib: @if zlib-bootstrap maybe-configure-stage1-zlib: configure-stage1-zlib @@ -28793,9 +28926,19 @@ all-stage1-zlib: configure-stage1-zlib cd zlib && \ $(MAKE) $(FLAGS_TO_PASS) \ CFLAGS="$(STAGE1_CFLAGS)" + +maybe-clean-stage1-zlib: clean-stage1-zlib +clean-stage1-zlib: + @[ -f zlib/Makefile ] || [ -f stage1-zlib/Makefile ] \ + || exit 0 ; \ + [ -f zlib/Makefile ] || $(MAKE) stage1-start ; \ + cd zlib && \ + $(MAKE) $(FLAGS_TO_PASS) \ + CFLAGS="$(STAGE1_CFLAGS)" 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 @@ -28803,10 +28946,9 @@ all-stage1-zlib: configure-stage1-zlib +# Rules to wipe a stage and all the following ones, also used for cleanstrap + .PHONY: distclean-stage1 - -# Rules to wipe a stage and all the following ones, used for cleanstrap - distclean-stage1:: [ -f stage_current ] && $(MAKE) `cat stage_current`-end || : rm -rf stage1-* @@ -28932,10 +29074,10 @@ stage2-bubble:: stage1-bubble @if test -f stage2-lean || test -f stage1-lean ; then \ echo Skipping rebuild of stage2 ; \ else \ - $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage2; \ + $(MAKE) $(RECURSE_FLAGS_TO_PASS) NOTPARALLEL= all-stage2; \ fi -.PHONY: all-stage2 +.PHONY: all-stage2 clean-stage2 all-stage2: \ maybe-all-stage2-bfd \ maybe-all-stage2-opcodes \ @@ -28949,12 +29091,28 @@ all-stage2: \ maybe-all-stage2-libiberty \ maybe-all-stage2-zlib +do-clean: clean-stage2 +clean-stage2: \ + maybe-clean-stage2-bfd \ + maybe-clean-stage2-opcodes \ + maybe-clean-stage2-binutils \ + maybe-clean-stage2-gas \ + maybe-clean-stage2-gcc \ + maybe-clean-stage2-intl \ + maybe-clean-stage2-ld \ + maybe-clean-stage2-libcpp \ + maybe-clean-stage2-libbanshee \ + maybe-clean-stage2-libiberty \ + maybe-clean-stage2-zlib + .PHONY: configure-stage2-bfd maybe-configure-stage2-bfd .PHONY: all-stage2-bfd maybe-all-stage2-bfd +.PHONY: clean-stage2-bfd maybe-clean-stage2-bfd maybe-configure-stage2-bfd: maybe-all-stage2-bfd: +maybe-clean-stage2-bfd: @if bfd-bootstrap maybe-configure-stage2-bfd: configure-stage2-bfd @@ -28991,13 +29149,26 @@ all-stage2-bfd: configure-stage2-bfd $(MAKE) $(FLAGS_TO_PASS) \ $(POSTSTAGE1_FLAGS_TO_PASS) \ + +maybe-clean-stage2-bfd: clean-stage2-bfd +clean-stage2-bfd: + @[ -f bfd/Makefile ] || [ -f stage2-bfd/Makefile ] \ + || exit 0 ; \ + [ -f bfd/Makefile ] || $(MAKE) stage2-start ; \ + cd bfd && \ + $(MAKE) $(FLAGS_TO_PASS) \ + $(POSTSTAGE1_FLAGS_TO_PASS) \ + clean @endif bfd-bootstrap + .PHONY: configure-stage2-opcodes maybe-configure-stage2-opcodes .PHONY: all-stage2-opcodes maybe-all-stage2-opcodes +.PHONY: clean-stage2-opcodes maybe-clean-stage2-opcodes maybe-configure-stage2-opcodes: maybe-all-stage2-opcodes: +maybe-clean-stage2-opcodes: @if opcodes-bootstrap maybe-configure-stage2-opcodes: configure-stage2-opcodes @@ -29034,13 +29205,26 @@ all-stage2-opcodes: configure-stage2-opcodes $(MAKE) $(FLAGS_TO_PASS) \ $(POSTSTAGE1_FLAGS_TO_PASS) \ + +maybe-clean-stage2-opcodes: clean-stage2-opcodes +clean-stage2-opcodes: + @[ -f opcodes/Makefile ] || [ -f stage2-opcodes/Makefile ] \ + || exit 0 ; \ + [ -f opcodes/Makefile ] || $(MAKE) stage2-start ; \ + cd opcodes && \ + $(MAKE) $(FLAGS_TO_PASS) \ + $(POSTSTAGE1_FLAGS_TO_PASS) \ + clean @endif opcodes-bootstrap + .PHONY: configure-stage2-binutils maybe-configure-stage2-binutils .PHONY: all-stage2-binutils maybe-all-stage2-binutils +.PHONY: clean-stage2-binutils maybe-clean-stage2-binutils maybe-configure-stage2-binutils: maybe-all-stage2-binutils: +maybe-clean-stage2-binutils: @if binutils-bootstrap maybe-configure-stage2-binutils: configure-stage2-binutils @@ -29077,13 +29261,26 @@ all-stage2-binutils: configure-stage2-binutils $(MAKE) $(FLAGS_TO_PASS) \ $(POSTSTAGE1_FLAGS_TO_PASS) \ + +maybe-clean-stage2-binutils: clean-stage2-binutils +clean-stage2-binutils: + @[ -f binutils/Makefile ] || [ -f stage2-binutils/Makefile ] \ + || exit 0 ; \ + [ -f binutils/Makefile ] || $(MAKE) stage2-start ; \ + cd binutils && \ + $(MAKE) $(FLAGS_TO_PASS) \ + $(POSTSTAGE1_FLAGS_TO_PASS) \ + clean @endif binutils-bootstrap + .PHONY: configure-stage2-gas maybe-configure-stage2-gas .PHONY: all-stage2-gas maybe-all-stage2-gas +.PHONY: clean-stage2-gas maybe-clean-stage2-gas maybe-configure-stage2-gas: maybe-all-stage2-gas: +maybe-clean-stage2-gas: @if gas-bootstrap maybe-configure-stage2-gas: configure-stage2-gas @@ -29120,13 +29317,26 @@ all-stage2-gas: configure-stage2-gas $(MAKE) $(FLAGS_TO_PASS) \ $(POSTSTAGE1_FLAGS_TO_PASS) \ + +maybe-clean-stage2-gas: clean-stage2-gas +clean-stage2-gas: + @[ -f gas/Makefile ] || [ -f stage2-gas/Makefile ] \ + || exit 0 ; \ + [ -f gas/Makefile ] || $(MAKE) stage2-start ; \ + cd gas && \ + $(MAKE) $(FLAGS_TO_PASS) \ + $(POSTSTAGE1_FLAGS_TO_PASS) \ + clean @endif gas-bootstrap + .PHONY: configure-stage2-gcc maybe-configure-stage2-gcc .PHONY: all-stage2-gcc maybe-all-stage2-gcc +.PHONY: clean-stage2-gcc maybe-clean-stage2-gcc maybe-configure-stage2-gcc: maybe-all-stage2-gcc: +maybe-clean-stage2-gcc: @if gcc-bootstrap maybe-configure-stage2-gcc: configure-stage2-gcc @@ -29163,13 +29373,26 @@ all-stage2-gcc: configure-stage2-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 @@ -29206,13 +29429,26 @@ all-stage2-intl: configure-stage2-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 @@ -29249,13 +29485,26 @@ all-stage2-ld: configure-stage2-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 @@ -29292,13 +29541,26 @@ all-stage2-libcpp: configure-stage2-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-libbanshee maybe-configure-stage2-libbanshee .PHONY: all-stage2-libbanshee maybe-all-stage2-libbanshee +.PHONY: clean-stage2-libbanshee maybe-clean-stage2-libbanshee maybe-configure-stage2-libbanshee: maybe-all-stage2-libbanshee: +maybe-clean-stage2-libbanshee: @if libbanshee-bootstrap maybe-configure-stage2-libbanshee: configure-stage2-libbanshee @@ -29335,13 +29597,26 @@ all-stage2-libbanshee: configure-stage2-libbanshee $(MAKE) $(FLAGS_TO_PASS) \ $(POSTSTAGE1_FLAGS_TO_PASS) \ + +maybe-clean-stage2-libbanshee: clean-stage2-libbanshee +clean-stage2-libbanshee: + @[ -f libbanshee/Makefile ] || [ -f stage2-libbanshee/Makefile ] \ + || exit 0 ; \ + [ -f libbanshee/Makefile ] || $(MAKE) stage2-start ; \ + cd libbanshee && \ + $(MAKE) $(FLAGS_TO_PASS) \ + $(POSTSTAGE1_FLAGS_TO_PASS) \ + clean @endif libbanshee-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 @@ -29378,13 +29653,26 @@ all-stage2-libiberty: configure-stage2-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 @@ -29421,9 +29709,20 @@ all-stage2-zlib: configure-stage2-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 @@ -29434,10 +29733,9 @@ all-stage2-zlib: configure-stage2-zlib bootstrap2: stage2-bubble all -.PHONY: distclean-stage2 - -# Rules to wipe a stage and all the following ones, used for cleanstrap +# 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-* @@ -29564,10 +29862,10 @@ stage3-bubble:: stage2-bubble @if test -f stage3-lean || test -f stage2-lean ; then \ echo Skipping rebuild of stage3 ; \ else \ - $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage3; \ + $(MAKE) $(RECURSE_FLAGS_TO_PASS) NOTPARALLEL= all-stage3; \ fi -.PHONY: all-stage3 +.PHONY: all-stage3 clean-stage3 all-stage3: \ maybe-all-stage3-bfd \ maybe-all-stage3-opcodes \ @@ -29581,12 +29879,28 @@ all-stage3: \ 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-libbanshee \ + 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 @@ -29623,13 +29937,26 @@ all-stage3-bfd: configure-stage3-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 @@ -29666,13 +29993,26 @@ all-stage3-opcodes: configure-stage3-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 @@ -29709,13 +30049,26 @@ all-stage3-binutils: configure-stage3-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 @@ -29752,13 +30105,26 @@ all-stage3-gas: configure-stage3-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 @@ -29795,13 +30161,26 @@ all-stage3-gcc: configure-stage3-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 @@ -29838,13 +30217,26 @@ all-stage3-intl: configure-stage3-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 @@ -29881,13 +30273,26 @@ all-stage3-ld: configure-stage3-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 @@ -29924,13 +30329,26 @@ all-stage3-libcpp: configure-stage3-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-libbanshee maybe-configure-stage3-libbanshee .PHONY: all-stage3-libbanshee maybe-all-stage3-libbanshee +.PHONY: clean-stage3-libbanshee maybe-clean-stage3-libbanshee maybe-configure-stage3-libbanshee: maybe-all-stage3-libbanshee: +maybe-clean-stage3-libbanshee: @if libbanshee-bootstrap maybe-configure-stage3-libbanshee: configure-stage3-libbanshee @@ -29967,13 +30385,26 @@ all-stage3-libbanshee: configure-stage3-libbanshee $(MAKE) $(FLAGS_TO_PASS) \ $(POSTSTAGE1_FLAGS_TO_PASS) \ + +maybe-clean-stage3-libbanshee: clean-stage3-libbanshee +clean-stage3-libbanshee: + @[ -f libbanshee/Makefile ] || [ -f stage3-libbanshee/Makefile ] \ + || exit 0 ; \ + [ -f libbanshee/Makefile ] || $(MAKE) stage3-start ; \ + cd libbanshee && \ + $(MAKE) $(FLAGS_TO_PASS) \ + $(POSTSTAGE1_FLAGS_TO_PASS) \ + clean @endif libbanshee-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 @@ -30010,13 +30441,26 @@ all-stage3-libiberty: configure-stage3-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 @@ -30053,9 +30497,20 @@ all-stage3-zlib: configure-stage3-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 @@ -30093,17 +30548,16 @@ compare: bootstrap: stage3-bubble compare all -.PHONY: distclean-stage3 - -# Rules to wipe a stage and all the following ones, used for cleanstrap +# 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-stage1 bootstrap +cleanstrap: distclean bootstrap @endif gcc-bootstrap @@ -30226,10 +30680,10 @@ stage4-bubble:: stage3-bubble @if test -f stage4-lean || test -f stage3-lean ; then \ echo Skipping rebuild of stage4 ; \ else \ - $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage4; \ + $(MAKE) $(RECURSE_FLAGS_TO_PASS) NOTPARALLEL= all-stage4; \ fi -.PHONY: all-stage4 +.PHONY: all-stage4 clean-stage4 all-stage4: \ maybe-all-stage4-bfd \ maybe-all-stage4-opcodes \ @@ -30243,12 +30697,28 @@ all-stage4: \ 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-libbanshee \ + 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 @@ -30285,13 +30755,26 @@ all-stage4-bfd: configure-stage4-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 @@ -30328,13 +30811,26 @@ all-stage4-opcodes: configure-stage4-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 @@ -30371,13 +30867,26 @@ all-stage4-binutils: configure-stage4-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 @@ -30414,13 +30923,26 @@ all-stage4-gas: configure-stage4-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 @@ -30457,13 +30979,26 @@ all-stage4-gcc: configure-stage4-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 @@ -30500,13 +31035,26 @@ all-stage4-intl: configure-stage4-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 @@ -30543,13 +31091,26 @@ all-stage4-ld: configure-stage4-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 @@ -30586,13 +31147,26 @@ all-stage4-libcpp: configure-stage4-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-libbanshee maybe-configure-stage4-libbanshee .PHONY: all-stage4-libbanshee maybe-all-stage4-libbanshee +.PHONY: clean-stage4-libbanshee maybe-clean-stage4-libbanshee maybe-configure-stage4-libbanshee: maybe-all-stage4-libbanshee: +maybe-clean-stage4-libbanshee: @if libbanshee-bootstrap maybe-configure-stage4-libbanshee: configure-stage4-libbanshee @@ -30629,13 +31203,26 @@ all-stage4-libbanshee: configure-stage4-libbanshee $(MAKE) $(FLAGS_TO_PASS) \ $(POSTSTAGE1_FLAGS_TO_PASS) \ + +maybe-clean-stage4-libbanshee: clean-stage4-libbanshee +clean-stage4-libbanshee: + @[ -f libbanshee/Makefile ] || [ -f stage4-libbanshee/Makefile ] \ + || exit 0 ; \ + [ -f libbanshee/Makefile ] || $(MAKE) stage4-start ; \ + cd libbanshee && \ + $(MAKE) $(FLAGS_TO_PASS) \ + $(POSTSTAGE1_FLAGS_TO_PASS) \ + clean @endif libbanshee-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 @@ -30672,13 +31259,26 @@ all-stage4-libiberty: configure-stage4-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 @@ -30715,9 +31315,20 @@ all-stage4-zlib: configure-stage4-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 @@ -30755,10 +31366,9 @@ compare3: bootstrap4: stage4-bubble compare3 all -.PHONY: distclean-stage4 - -# Rules to wipe a stage and all the following ones, used for cleanstrap +# 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 @@ -30884,10 +31494,10 @@ 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) all-stageprofile; \ + $(MAKE) $(RECURSE_FLAGS_TO_PASS) NOTPARALLEL= all-stageprofile; \ fi -.PHONY: all-stageprofile +.PHONY: all-stageprofile clean-stageprofile all-stageprofile: \ maybe-all-stageprofile-bfd \ maybe-all-stageprofile-opcodes \ @@ -30901,12 +31511,28 @@ all-stageprofile: \ 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-libbanshee \ + 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 @@ -30943,13 +31569,26 @@ all-stageprofile-bfd: configure-stageprofile-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 @@ -30986,13 +31625,26 @@ all-stageprofile-opcodes: configure-stageprofile-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 + .PHONY: configure-stageprofile-binutils maybe-configure-stageprofile-binutils .PHONY: all-stageprofile-binutils maybe-all-stageprofile-binutils +.PHONY: clean-stageprofile-binutils maybe-clean-stageprofile-binutils maybe-configure-stageprofile-binutils: maybe-all-stageprofile-binutils: +maybe-clean-stageprofile-binutils: @if binutils-bootstrap maybe-configure-stageprofile-binutils: configure-stageprofile-binutils @@ -31029,13 +31681,26 @@ all-stageprofile-binutils: configure-stageprofile-binutils $(MAKE) $(FLAGS_TO_PASS) \ $(POSTSTAGE1_FLAGS_TO_PASS) \ CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" + +maybe-clean-stageprofile-binutils: clean-stageprofile-binutils +clean-stageprofile-binutils: + @[ -f binutils/Makefile ] || [ -f stageprofile-binutils/Makefile ] \ + || exit 0 ; \ + [ -f binutils/Makefile ] || $(MAKE) stageprofile-start ; \ + cd binutils && \ + $(MAKE) $(FLAGS_TO_PASS) \ + $(POSTSTAGE1_FLAGS_TO_PASS) \ + CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" clean @endif binutils-bootstrap + .PHONY: configure-stageprofile-gas maybe-configure-stageprofile-gas .PHONY: all-stageprofile-gas maybe-all-stageprofile-gas +.PHONY: clean-stageprofile-gas maybe-clean-stageprofile-gas maybe-configure-stageprofile-gas: maybe-all-stageprofile-gas: +maybe-clean-stageprofile-gas: @if gas-bootstrap maybe-configure-stageprofile-gas: configure-stageprofile-gas @@ -31072,13 +31737,26 @@ all-stageprofile-gas: configure-stageprofile-gas $(MAKE) $(FLAGS_TO_PASS) \ $(POSTSTAGE1_FLAGS_TO_PASS) \ CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" + +maybe-clean-stageprofile-gas: clean-stageprofile-gas +clean-stageprofile-gas: + @[ -f gas/Makefile ] || [ -f stageprofile-gas/Makefile ] \ + || exit 0 ; \ + [ -f gas/Makefile ] || $(MAKE) stageprofile-start ; \ + cd gas && \ + $(MAKE) $(FLAGS_TO_PASS) \ + $(POSTSTAGE1_FLAGS_TO_PASS) \ + CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" clean @endif gas-bootstrap + .PHONY: configure-stageprofile-gcc maybe-configure-stageprofile-gcc .PHONY: all-stageprofile-gcc maybe-all-stageprofile-gcc +.PHONY: clean-stageprofile-gcc maybe-clean-stageprofile-gcc maybe-configure-stageprofile-gcc: maybe-all-stageprofile-gcc: +maybe-clean-stageprofile-gcc: @if gcc-bootstrap maybe-configure-stageprofile-gcc: configure-stageprofile-gcc @@ -31115,13 +31793,26 @@ all-stageprofile-gcc: configure-stageprofile-gcc $(MAKE) $(FLAGS_TO_PASS) \ $(POSTSTAGE1_FLAGS_TO_PASS) \ CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" $(EXTRA_GCC_FLAGS) + +maybe-clean-stageprofile-gcc: clean-stageprofile-gcc +clean-stageprofile-gcc: + @[ -f gcc/Makefile ] || [ -f stageprofile-gcc/Makefile ] \ + || exit 0 ; \ + [ -f gcc/Makefile ] || $(MAKE) stageprofile-start ; \ + cd gcc && \ + $(MAKE) $(FLAGS_TO_PASS) \ + $(POSTSTAGE1_FLAGS_TO_PASS) \ + CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" $(EXTRA_GCC_FLAGS) clean @endif gcc-bootstrap + .PHONY: configure-stageprofile-intl maybe-configure-stageprofile-intl .PHONY: all-stageprofile-intl maybe-all-stageprofile-intl +.PHONY: clean-stageprofile-intl maybe-clean-stageprofile-intl maybe-configure-stageprofile-intl: maybe-all-stageprofile-intl: +maybe-clean-stageprofile-intl: @if intl-bootstrap maybe-configure-stageprofile-intl: configure-stageprofile-intl @@ -31158,13 +31849,26 @@ all-stageprofile-intl: configure-stageprofile-intl $(MAKE) $(FLAGS_TO_PASS) \ $(POSTSTAGE1_FLAGS_TO_PASS) \ CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" + +maybe-clean-stageprofile-intl: clean-stageprofile-intl +clean-stageprofile-intl: + @[ -f intl/Makefile ] || [ -f stageprofile-intl/Makefile ] \ + || exit 0 ; \ + [ -f intl/Makefile ] || $(MAKE) stageprofile-start ; \ + cd intl && \ + $(MAKE) $(FLAGS_TO_PASS) \ + $(POSTSTAGE1_FLAGS_TO_PASS) \ + CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" clean @endif intl-bootstrap + .PHONY: configure-stageprofile-ld maybe-configure-stageprofile-ld .PHONY: all-stageprofile-ld maybe-all-stageprofile-ld +.PHONY: clean-stageprofile-ld maybe-clean-stageprofile-ld maybe-configure-stageprofile-ld: maybe-all-stageprofile-ld: +maybe-clean-stageprofile-ld: @if ld-bootstrap maybe-configure-stageprofile-ld: configure-stageprofile-ld @@ -31201,13 +31905,26 @@ all-stageprofile-ld: configure-stageprofile-ld $(MAKE) $(FLAGS_TO_PASS) \ $(POSTSTAGE1_FLAGS_TO_PASS) \ CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" + +maybe-clean-stageprofile-ld: clean-stageprofile-ld +clean-stageprofile-ld: + @[ -f ld/Makefile ] || [ -f stageprofile-ld/Makefile ] \ + || exit 0 ; \ + [ -f ld/Makefile ] || $(MAKE) stageprofile-start ; \ + cd ld && \ + $(MAKE) $(FLAGS_TO_PASS) \ + $(POSTSTAGE1_FLAGS_TO_PASS) \ + CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" clean @endif ld-bootstrap + .PHONY: configure-stageprofile-libcpp maybe-configure-stageprofile-libcpp .PHONY: all-stageprofile-libcpp maybe-all-stageprofile-libcpp +.PHONY: clean-stageprofile-libcpp maybe-clean-stageprofile-libcpp maybe-configure-stageprofile-libcpp: maybe-all-stageprofile-libcpp: +maybe-clean-stageprofile-libcpp: @if libcpp-bootstrap maybe-configure-stageprofile-libcpp: configure-stageprofile-libcpp @@ -31244,13 +31961,26 @@ all-stageprofile-libcpp: configure-stageprofile-libcpp $(MAKE) $(FLAGS_TO_PASS) \ $(POSTSTAGE1_FLAGS_TO_PASS) \ CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" + +maybe-clean-stageprofile-libcpp: clean-stageprofile-libcpp +clean-stageprofile-libcpp: + @[ -f libcpp/Makefile ] || [ -f stageprofile-libcpp/Makefile ] \ + || exit 0 ; \ + [ -f libcpp/Makefile ] || $(MAKE) stageprofile-start ; \ + cd libcpp && \ + $(MAKE) $(FLAGS_TO_PASS) \ + $(POSTSTAGE1_FLAGS_TO_PASS) \ + CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" clean @endif libcpp-bootstrap + .PHONY: configure-stageprofile-libbanshee maybe-configure-stageprofile-libbanshee .PHONY: all-stageprofile-libbanshee maybe-all-stageprofile-libbanshee +.PHONY: clean-stageprofile-libbanshee maybe-clean-stageprofile-libbanshee maybe-configure-stageprofile-libbanshee: maybe-all-stageprofile-libbanshee: +maybe-clean-stageprofile-libbanshee: @if libbanshee-bootstrap maybe-configure-stageprofile-libbanshee: configure-stageprofile-libbanshee @@ -31287,13 +32017,26 @@ all-stageprofile-libbanshee: configure-stageprofile-libbanshee $(MAKE) $(FLAGS_TO_PASS) \ $(POSTSTAGE1_FLAGS_TO_PASS) \ CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" + +maybe-clean-stageprofile-libbanshee: clean-stageprofile-libbanshee +clean-stageprofile-libbanshee: + @[ -f libbanshee/Makefile ] || [ -f stageprofile-libbanshee/Makefile ] \ + || exit 0 ; \ + [ -f libbanshee/Makefile ] || $(MAKE) stageprofile-start ; \ + cd libbanshee && \ + $(MAKE) $(FLAGS_TO_PASS) \ + $(POSTSTAGE1_FLAGS_TO_PASS) \ + CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" clean @endif libbanshee-bootstrap + .PHONY: configure-stageprofile-libiberty maybe-configure-stageprofile-libiberty .PHONY: all-stageprofile-libiberty maybe-all-stageprofile-libiberty +.PHONY: clean-stageprofile-libiberty maybe-clean-stageprofile-libiberty maybe-configure-stageprofile-libiberty: maybe-all-stageprofile-libiberty: +maybe-clean-stageprofile-libiberty: @if libiberty-bootstrap maybe-configure-stageprofile-libiberty: configure-stageprofile-libiberty @@ -31330,13 +32073,26 @@ all-stageprofile-libiberty: configure-stageprofile-libiberty $(MAKE) $(FLAGS_TO_PASS) \ $(POSTSTAGE1_FLAGS_TO_PASS) \ CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" + +maybe-clean-stageprofile-libiberty: clean-stageprofile-libiberty +clean-stageprofile-libiberty: + @[ -f libiberty/Makefile ] || [ -f stageprofile-libiberty/Makefile ] \ + || exit 0 ; \ + [ -f libiberty/Makefile ] || $(MAKE) stageprofile-start ; \ + cd libiberty && \ + $(MAKE) $(FLAGS_TO_PASS) \ + $(POSTSTAGE1_FLAGS_TO_PASS) \ + CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" clean @endif libiberty-bootstrap + .PHONY: configure-stageprofile-zlib maybe-configure-stageprofile-zlib .PHONY: all-stageprofile-zlib maybe-all-stageprofile-zlib +.PHONY: clean-stageprofile-zlib maybe-clean-stageprofile-zlib maybe-configure-stageprofile-zlib: maybe-all-stageprofile-zlib: +maybe-clean-stageprofile-zlib: @if zlib-bootstrap maybe-configure-stageprofile-zlib: configure-stageprofile-zlib @@ -31373,9 +32129,20 @@ all-stageprofile-zlib: configure-stageprofile-zlib $(MAKE) $(FLAGS_TO_PASS) \ $(POSTSTAGE1_FLAGS_TO_PASS) \ CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" + +maybe-clean-stageprofile-zlib: clean-stageprofile-zlib +clean-stageprofile-zlib: + @[ -f zlib/Makefile ] || [ -f stageprofile-zlib/Makefile ] \ + || exit 0 ; \ + [ -f zlib/Makefile ] || $(MAKE) stageprofile-start ; \ + cd zlib && \ + $(MAKE) $(FLAGS_TO_PASS) \ + $(POSTSTAGE1_FLAGS_TO_PASS) \ + CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" 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 @@ -31383,10 +32150,9 @@ all-stageprofile-zlib: configure-stageprofile-zlib -.PHONY: distclean-stageprofile - -# Rules to wipe a stage and all the following ones, used for cleanstrap +# Rules to wipe a stage and all the following ones, also used for cleanstrap distclean-stage1:: distclean-stageprofile +.PHONY: distclean-stageprofile distclean-stageprofile:: [ -f stage_current ] && $(MAKE) `cat stage_current`-end || : rm -rf stageprofile-* @@ -31512,10 +32278,10 @@ stagefeedback-bubble:: stage1-bubble @if test -f stagefeedback-lean || test -f stage1-lean ; then \ echo Skipping rebuild of stagefeedback ; \ else \ - $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stagefeedback; \ + $(MAKE) $(RECURSE_FLAGS_TO_PASS) NOTPARALLEL= all-stagefeedback; \ fi -.PHONY: all-stagefeedback +.PHONY: all-stagefeedback clean-stagefeedback all-stagefeedback: \ maybe-all-stagefeedback-bfd \ maybe-all-stagefeedback-opcodes \ @@ -31529,12 +32295,28 @@ all-stagefeedback: \ maybe-all-stagefeedback-libiberty \ maybe-all-stagefeedback-zlib +do-clean: clean-stagefeedback +clean-stagefeedback: \ + maybe-clean-stagefeedback-bfd \ + maybe-clean-stagefeedback-opcodes \ + maybe-clean-stagefeedback-binutils \ + maybe-clean-stagefeedback-gas \ + maybe-clean-stagefeedback-gcc \ + maybe-clean-stagefeedback-intl \ + maybe-clean-stagefeedback-ld \ + maybe-clean-stagefeedback-libcpp \ + maybe-clean-stagefeedback-libbanshee \ + maybe-clean-stagefeedback-libiberty \ + maybe-clean-stagefeedback-zlib + .PHONY: configure-stagefeedback-bfd maybe-configure-stagefeedback-bfd .PHONY: all-stagefeedback-bfd maybe-all-stagefeedback-bfd +.PHONY: clean-stagefeedback-bfd maybe-clean-stagefeedback-bfd maybe-configure-stagefeedback-bfd: maybe-all-stagefeedback-bfd: +maybe-clean-stagefeedback-bfd: @if bfd-bootstrap maybe-configure-stagefeedback-bfd: configure-stagefeedback-bfd @@ -31571,13 +32353,26 @@ all-stagefeedback-bfd: configure-stagefeedback-bfd $(MAKE) $(FLAGS_TO_PASS) \ $(POSTSTAGE1_FLAGS_TO_PASS) \ CFLAGS="$(BOOT_CFLAGS) -fprofile-use" + +maybe-clean-stagefeedback-bfd: clean-stagefeedback-bfd +clean-stagefeedback-bfd: + @[ -f bfd/Makefile ] || [ -f stagefeedback-bfd/Makefile ] \ + || exit 0 ; \ + [ -f bfd/Makefile ] || $(MAKE) stagefeedback-start ; \ + cd bfd && \ + $(MAKE) $(FLAGS_TO_PASS) \ + $(POSTSTAGE1_FLAGS_TO_PASS) \ + CFLAGS="$(BOOT_CFLAGS) -fprofile-use" clean @endif bfd-bootstrap + .PHONY: configure-stagefeedback-opcodes maybe-configure-stagefeedback-opcodes .PHONY: all-stagefeedback-opcodes maybe-all-stagefeedback-opcodes +.PHONY: clean-stagefeedback-opcodes maybe-clean-stagefeedback-opcodes maybe-configure-stagefeedback-opcodes: maybe-all-stagefeedback-opcodes: +maybe-clean-stagefeedback-opcodes: @if opcodes-bootstrap maybe-configure-stagefeedback-opcodes: configure-stagefeedback-opcodes @@ -31614,13 +32409,26 @@ all-stagefeedback-opcodes: configure-stagefeedback-opcodes $(MAKE) $(FLAGS_TO_PASS) \ $(POSTSTAGE1_FLAGS_TO_PASS) \ CFLAGS="$(BOOT_CFLAGS) -fprofile-use" + +maybe-clean-stagefeedback-opcodes: clean-stagefeedback-opcodes +clean-stagefeedback-opcodes: + @[ -f opcodes/Makefile ] || [ -f stagefeedback-opcodes/Makefile ] \ + || exit 0 ; \ + [ -f opcodes/Makefile ] || $(MAKE) stagefeedback-start ; \ + cd opcodes && \ + $(MAKE) $(FLAGS_TO_PASS) \ + $(POSTSTAGE1_FLAGS_TO_PASS) \ + CFLAGS="$(BOOT_CFLAGS) -fprofile-use" clean @endif opcodes-bootstrap + .PHONY: configure-stagefeedback-binutils maybe-configure-stagefeedback-binutils .PHONY: all-stagefeedback-binutils maybe-all-stagefeedback-binutils +.PHONY: clean-stagefeedback-binutils maybe-clean-stagefeedback-binutils maybe-configure-stagefeedback-binutils: maybe-all-stagefeedback-binutils: +maybe-clean-stagefeedback-binutils: @if binutils-bootstrap maybe-configure-stagefeedback-binutils: configure-stagefeedback-binutils @@ -31657,13 +32465,26 @@ all-stagefeedback-binutils: configure-stagefeedback-binutils $(MAKE) $(FLAGS_TO_PASS) \ $(POSTSTAGE1_FLAGS_TO_PASS) \ CFLAGS="$(BOOT_CFLAGS) -fprofile-use" + +maybe-clean-stagefeedback-binutils: clean-stagefeedback-binutils +clean-stagefeedback-binutils: + @[ -f binutils/Makefile ] || [ -f stagefeedback-binutils/Makefile ] \ + || exit 0 ; \ + [ -f binutils/Makefile ] || $(MAKE) stagefeedback-start ; \ + cd binutils && \ + $(MAKE) $(FLAGS_TO_PASS) \ + $(POSTSTAGE1_FLAGS_TO_PASS) \ + CFLAGS="$(BOOT_CFLAGS) -fprofile-use" clean @endif binutils-bootstrap + .PHONY: configure-stagefeedback-gas maybe-configure-stagefeedback-gas .PHONY: all-stagefeedback-gas maybe-all-stagefeedback-gas +.PHONY: clean-stagefeedback-gas maybe-clean-stagefeedback-gas maybe-configure-stagefeedback-gas: maybe-all-stagefeedback-gas: +maybe-clean-stagefeedback-gas: @if gas-bootstrap maybe-configure-stagefeedback-gas: configure-stagefeedback-gas @@ -31700,13 +32521,26 @@ all-stagefeedback-gas: configure-stagefeedback-gas $(MAKE) $(FLAGS_TO_PASS) \ $(POSTSTAGE1_FLAGS_TO_PASS) \ CFLAGS="$(BOOT_CFLAGS) -fprofile-use" + +maybe-clean-stagefeedback-gas: clean-stagefeedback-gas +clean-stagefeedback-gas: + @[ -f gas/Makefile ] || [ -f stagefeedback-gas/Makefile ] \ + || exit 0 ; \ + [ -f gas/Makefile ] || $(MAKE) stagefeedback-start ; \ + cd gas && \ + $(MAKE) $(FLAGS_TO_PASS) \ + $(POSTSTAGE1_FLAGS_TO_PASS) \ + CFLAGS="$(BOOT_CFLAGS) -fprofile-use" clean @endif gas-bootstrap + .PHONY: configure-stagefeedback-gcc maybe-configure-stagefeedback-gcc .PHONY: all-stagefeedback-gcc maybe-all-stagefeedback-gcc +.PHONY: clean-stagefeedback-gcc maybe-clean-stagefeedback-gcc maybe-configure-stagefeedback-gcc: maybe-all-stagefeedback-gcc: +maybe-clean-stagefeedback-gcc: @if gcc-bootstrap maybe-configure-stagefeedback-gcc: configure-stagefeedback-gcc @@ -31743,13 +32577,26 @@ all-stagefeedback-gcc: configure-stagefeedback-gcc $(MAKE) $(FLAGS_TO_PASS) \ $(POSTSTAGE1_FLAGS_TO_PASS) \ CFLAGS="$(BOOT_CFLAGS) -fprofile-use" $(EXTRA_GCC_FLAGS) + +maybe-clean-stagefeedback-gcc: clean-stagefeedback-gcc +clean-stagefeedback-gcc: + @[ -f gcc/Makefile ] || [ -f stagefeedback-gcc/Makefile ] \ + || exit 0 ; \ + [ -f gcc/Makefile ] || $(MAKE) stagefeedback-start ; \ + cd gcc && \ + $(MAKE) $(FLAGS_TO_PASS) \ + $(POSTSTAGE1_FLAGS_TO_PASS) \ + CFLAGS="$(BOOT_CFLAGS) -fprofile-use" $(EXTRA_GCC_FLAGS) clean @endif gcc-bootstrap + .PHONY: configure-stagefeedback-intl maybe-configure-stagefeedback-intl .PHONY: all-stagefeedback-intl maybe-all-stagefeedback-intl +.PHONY: clean-stagefeedback-intl maybe-clean-stagefeedback-intl maybe-configure-stagefeedback-intl: maybe-all-stagefeedback-intl: +maybe-clean-stagefeedback-intl: @if intl-bootstrap maybe-configure-stagefeedback-intl: configure-stagefeedback-intl @@ -31786,13 +32633,26 @@ all-stagefeedback-intl: configure-stagefeedback-intl $(MAKE) $(FLAGS_TO_PASS) \ $(POSTSTAGE1_FLAGS_TO_PASS) \ CFLAGS="$(BOOT_CFLAGS) -fprofile-use" + +maybe-clean-stagefeedback-intl: clean-stagefeedback-intl +clean-stagefeedback-intl: + @[ -f intl/Makefile ] || [ -f stagefeedback-intl/Makefile ] \ + || exit 0 ; \ + [ -f intl/Makefile ] || $(MAKE) stagefeedback-start ; \ + cd intl && \ + $(MAKE) $(FLAGS_TO_PASS) \ + $(POSTSTAGE1_FLAGS_TO_PASS) \ + CFLAGS="$(BOOT_CFLAGS) -fprofile-use" clean @endif intl-bootstrap + .PHONY: configure-stagefeedback-ld maybe-configure-stagefeedback-ld .PHONY: all-stagefeedback-ld maybe-all-stagefeedback-ld +.PHONY: clean-stagefeedback-ld maybe-clean-stagefeedback-ld maybe-configure-stagefeedback-ld: maybe-all-stagefeedback-ld: +maybe-clean-stagefeedback-ld: @if ld-bootstrap maybe-configure-stagefeedback-ld: configure-stagefeedback-ld @@ -31829,13 +32689,26 @@ all-stagefeedback-ld: configure-stagefeedback-ld $(MAKE) $(FLAGS_TO_PASS) \ $(POSTSTAGE1_FLAGS_TO_PASS) \ CFLAGS="$(BOOT_CFLAGS) -fprofile-use" + +maybe-clean-stagefeedback-ld: clean-stagefeedback-ld +clean-stagefeedback-ld: + @[ -f ld/Makefile ] || [ -f stagefeedback-ld/Makefile ] \ + || exit 0 ; \ + [ -f ld/Makefile ] || $(MAKE) stagefeedback-start ; \ + cd ld && \ + $(MAKE) $(FLAGS_TO_PASS) \ + $(POSTSTAGE1_FLAGS_TO_PASS) \ + CFLAGS="$(BOOT_CFLAGS) -fprofile-use" clean @endif ld-bootstrap + .PHONY: configure-stagefeedback-libcpp maybe-configure-stagefeedback-libcpp .PHONY: all-stagefeedback-libcpp maybe-all-stagefeedback-libcpp +.PHONY: clean-stagefeedback-libcpp maybe-clean-stagefeedback-libcpp maybe-configure-stagefeedback-libcpp: maybe-all-stagefeedback-libcpp: +maybe-clean-stagefeedback-libcpp: @if libcpp-bootstrap maybe-configure-stagefeedback-libcpp: configure-stagefeedback-libcpp @@ -31872,13 +32745,26 @@ all-stagefeedback-libcpp: configure-stagefeedback-libcpp $(MAKE) $(FLAGS_TO_PASS) \ $(POSTSTAGE1_FLAGS_TO_PASS) \ CFLAGS="$(BOOT_CFLAGS) -fprofile-use" + +maybe-clean-stagefeedback-libcpp: clean-stagefeedback-libcpp +clean-stagefeedback-libcpp: + @[ -f libcpp/Makefile ] || [ -f stagefeedback-libcpp/Makefile ] \ + || exit 0 ; \ + [ -f libcpp/Makefile ] || $(MAKE) stagefeedback-start ; \ + cd libcpp && \ + $(MAKE) $(FLAGS_TO_PASS) \ + $(POSTSTAGE1_FLAGS_TO_PASS) \ + CFLAGS="$(BOOT_CFLAGS) -fprofile-use" clean @endif libcpp-bootstrap + .PHONY: configure-stagefeedback-libbanshee maybe-configure-stagefeedback-libbanshee .PHONY: all-stagefeedback-libbanshee maybe-all-stagefeedback-libbanshee +.PHONY: clean-stagefeedback-libbanshee maybe-clean-stagefeedback-libbanshee maybe-configure-stagefeedback-libbanshee: maybe-all-stagefeedback-libbanshee: +maybe-clean-stagefeedback-libbanshee: @if libbanshee-bootstrap maybe-configure-stagefeedback-libbanshee: configure-stagefeedback-libbanshee @@ -31915,13 +32801,26 @@ all-stagefeedback-libbanshee: configure-stagefeedback-libbanshee $(MAKE) $(FLAGS_TO_PASS) \ $(POSTSTAGE1_FLAGS_TO_PASS) \ CFLAGS="$(BOOT_CFLAGS) -fprofile-use" + +maybe-clean-stagefeedback-libbanshee: clean-stagefeedback-libbanshee +clean-stagefeedback-libbanshee: + @[ -f libbanshee/Makefile ] || [ -f stagefeedback-libbanshee/Makefile ] \ + || exit 0 ; \ + [ -f libbanshee/Makefile ] || $(MAKE) stagefeedback-start ; \ + cd libbanshee && \ + $(MAKE) $(FLAGS_TO_PASS) \ + $(POSTSTAGE1_FLAGS_TO_PASS) \ + CFLAGS="$(BOOT_CFLAGS) -fprofile-use" clean @endif libbanshee-bootstrap + .PHONY: configure-stagefeedback-libiberty maybe-configure-stagefeedback-libiberty .PHONY: all-stagefeedback-libiberty maybe-all-stagefeedback-libiberty +.PHONY: clean-stagefeedback-libiberty maybe-clean-stagefeedback-libiberty maybe-configure-stagefeedback-libiberty: maybe-all-stagefeedback-libiberty: +maybe-clean-stagefeedback-libiberty: @if libiberty-bootstrap maybe-configure-stagefeedback-libiberty: configure-stagefeedback-libiberty @@ -31958,13 +32857,26 @@ all-stagefeedback-libiberty: configure-stagefeedback-libiberty $(MAKE) $(FLAGS_TO_PASS) \ $(POSTSTAGE1_FLAGS_TO_PASS) \ CFLAGS="$(BOOT_CFLAGS) -fprofile-use" + +maybe-clean-stagefeedback-libiberty: clean-stagefeedback-libiberty +clean-stagefeedback-libiberty: + @[ -f libiberty/Makefile ] || [ -f stagefeedback-libiberty/Makefile ] \ + || exit 0 ; \ + [ -f libiberty/Makefile ] || $(MAKE) stagefeedback-start ; \ + cd libiberty && \ + $(MAKE) $(FLAGS_TO_PASS) \ + $(POSTSTAGE1_FLAGS_TO_PASS) \ + CFLAGS="$(BOOT_CFLAGS) -fprofile-use" clean @endif libiberty-bootstrap + .PHONY: configure-stagefeedback-zlib maybe-configure-stagefeedback-zlib .PHONY: all-stagefeedback-zlib maybe-all-stagefeedback-zlib +.PHONY: clean-stagefeedback-zlib maybe-clean-stagefeedback-zlib maybe-configure-stagefeedback-zlib: maybe-all-stagefeedback-zlib: +maybe-clean-stagefeedback-zlib: @if zlib-bootstrap maybe-configure-stagefeedback-zlib: configure-stagefeedback-zlib @@ -32001,9 +32913,20 @@ all-stagefeedback-zlib: configure-stagefeedback-zlib $(MAKE) $(FLAGS_TO_PASS) \ $(POSTSTAGE1_FLAGS_TO_PASS) \ CFLAGS="$(BOOT_CFLAGS) -fprofile-use" + +maybe-clean-stagefeedback-zlib: clean-stagefeedback-zlib +clean-stagefeedback-zlib: + @[ -f zlib/Makefile ] || [ -f stagefeedback-zlib/Makefile ] \ + || exit 0 ; \ + [ -f zlib/Makefile ] || $(MAKE) stagefeedback-start ; \ + cd zlib && \ + $(MAKE) $(FLAGS_TO_PASS) \ + $(POSTSTAGE1_FLAGS_TO_PASS) \ + CFLAGS="$(BOOT_CFLAGS) -fprofile-use" 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 @@ -32011,10 +32934,9 @@ all-stagefeedback-zlib: configure-stagefeedback-zlib -.PHONY: distclean-stagefeedback - -# Rules to wipe a stage and all the following ones, used for cleanstrap +# Rules to wipe a stage and all the following ones, also used for cleanstrap distclean-stage1:: distclean-stagefeedback +.PHONY: distclean-stagefeedback distclean-stagefeedback:: [ -f stage_current ] && $(MAKE) `cat stage_current`-end || : rm -rf stagefeedback-* @@ -32054,6 +32976,12 @@ profiledbootstrap: $(MAKE) stagefeedback-bubble stagefeedback-end @endif gcc-bootstrap +@if gcc-bootstrap +NOTPARALLEL = .NOTPARALLEL +$(NOTPARALLEL): +do-distclean: distclean-stage1 +@endif gcc-bootstrap + # -------------------------------------- # Dependencies between different modules # -------------------------------------- diff --git a/Makefile.tpl b/Makefile.tpl index fed682475..8dbf237f1 100644 --- a/Makefile.tpl +++ b/Makefile.tpl @@ -248,6 +248,10 @@ CXX_FOR_BUILD = $(CXX) BUILD_PREFIX = @BUILD_PREFIX@ BUILD_PREFIX_1 = @BUILD_PREFIX_1@ +# Flags to pass to stage2 and later makes. They are defined +# here so that they can be overridden by Makefile fragments. +BOOT_CFLAGS= -g -O2 + CONFIGURED_BISON = @CONFIGURED_BISON@ BISON = `if [ -f $$r/$(BUILD_SUBDIR)/bison/tests/bison ] ; then \ echo $$r/$(BUILD_SUBDIR)/bison/tests/bison ; \ @@ -481,14 +485,6 @@ PICFLAG_FOR_TARGET = # Miscellaneous targets and flag lists # ------------------------------------ -@if gcc-bootstrap -# Let's leave this as the first rule in the file until toplevel -# bootstrap is fleshed out completely. -sorry: - @echo Toplevel bootstrap temporarily out of commission. - @echo Please reconfigure without --enable-bootstrap -@endif gcc-bootstrap - # The first rule in the file had better be this one. Don't put any above it. # This lives here to allow makefile fragments to contain dependencies. @default_target@: @@ -1338,7 +1334,9 @@ stage: # (both in a combined tree, or separately). This however requires some # change to the gcc driver, again in order to avoid comparison failures. -# Bugs: This is almost certainly not parallel-make safe. +# Bugs: This is crippled when doing parallel make, the `make all-host' +# and `make all-target' phases can be parallelized. + # 'touch' doesn't work right on some platforms. STAMP = echo timestamp > @@ -1356,7 +1354,6 @@ STAGE1_LANGUAGES=@stage1_languages@ objext = .o # Flags to pass to stage2 and later makes. -BOOT_CFLAGS= -g -O2 POSTSTAGE1_FLAGS_TO_PASS = \ CC="$${CC}" CC_FOR_BUILD="$${CC_FOR_BUILD}" \ STAGE_PREFIX=$$r/stage[+prev+]-gcc/ \ @@ -1402,20 +1399,27 @@ stage[+id+]-bubble:: [+ IF prev +]stage[+prev+]-bubble[+ ENDIF +][+IF lean +] IF prev +]|| test -f stage[+prev+]-lean [+ ENDIF prev +] ; then \ echo Skipping rebuild of stage[+id+] ; \ else \ - $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage[+id+]; \ + $(MAKE) $(RECURSE_FLAGS_TO_PASS) NOTPARALLEL= all-stage[+id+]; \ fi -.PHONY: all-stage[+id+] +.PHONY: all-stage[+id+] clean-stage[+id+] all-stage[+id+]: [+ FOR host_modules +][+ IF bootstrap +]\ maybe-all-stage[+id+]-[+module+][+ ENDIF bootstrap+] [+ ENDFOR host_modules +] +do-clean: clean-stage[+id+] +clean-stage[+id+]: [+ FOR host_modules +][+ IF bootstrap +]\ + maybe-clean-stage[+id+]-[+module+][+ +ENDIF bootstrap+] [+ ENDFOR host_modules +] + [+ FOR host_modules +][+ IF bootstrap +] .PHONY: configure-stage[+id+]-[+module+] maybe-configure-stage[+id+]-[+module+] .PHONY: all-stage[+id+]-[+module+] maybe-all-stage[+id+]-[+module+] +.PHONY: clean-stage[+id+]-[+module+] maybe-clean-stage[+id+]-[+module+] maybe-configure-stage[+id+]-[+module+]: maybe-all-stage[+id+]-[+module+]: +maybe-clean-stage[+id+]-[+module+]: @if [+module+]-bootstrap maybe-configure-stage[+id+]-[+module+]: configure-stage[+id+]-[+module+] @@ -1454,7 +1458,18 @@ all-stage[+id+]-[+module+]: configure-stage[+id+]-[+module+] $(MAKE) $(FLAGS_TO_PASS) [+ IF prev +] \ $(POSTSTAGE1_FLAGS_TO_PASS) [+ ENDIF prev +] \ [+stage_make_flags+] [+extra_make_flags+] + +maybe-clean-stage[+id+]-[+module+]: clean-stage[+id+]-[+module+] +clean-stage[+id+]-[+module+]: + @[ -f [+module+]/Makefile ] || [ -f stage[+id+]-[+module+]/Makefile ] \ + || exit 0 ; \ + [ -f [+module+]/Makefile ] || $(MAKE) stage[+id+]-start ; \ + cd [+module+] && \ + $(MAKE) $(FLAGS_TO_PASS) [+ IF prev +] \ + $(POSTSTAGE1_FLAGS_TO_PASS) [+ ENDIF prev +] \ + [+stage_make_flags+] [+extra_make_flags+] clean @endif [+module+]-bootstrap + [+ ENDIF bootstrap +][+ ENDFOR host_modules +] # FIXME: Will not need to be conditional when toplevel bootstrap is the @@ -1494,10 +1509,9 @@ all-stage[+id+]-[+module+]: configure-stage[+id+]-[+module+] [+bootstrap-target+]: stage[+id+]-bubble [+compare-target+] all [+ ENDIF bootstrap-target +] -.PHONY: distclean-stage[+id+] - -# Rules to wipe a stage and all the following ones, used for cleanstrap +# Rules to wipe a stage and all the following ones, also used for cleanstrap [+ IF prev +]distclean-stage[+prev+]:: distclean-stage[+id+] [+ ENDIF prev +] +.PHONY: distclean-stage[+id+] distclean-stage[+id+]:: [ -f stage_current ] && $(MAKE) `cat stage_current`-end || : rm -rf stage[+id+]-* [+ @@ -1505,7 +1519,7 @@ distclean-stage[+id+]:: [+ IF cleanstrap-target +] .PHONY: [+cleanstrap-target+] -[+cleanstrap-target+]: distclean-stage1 [+bootstrap-target+] +[+cleanstrap-target+]: distclean [+bootstrap-target+] [+ ENDIF cleanstrap-target +] @endif gcc-bootstrap @@ -1541,6 +1555,12 @@ profiledbootstrap: $(MAKE) stagefeedback-bubble stagefeedback-end @endif gcc-bootstrap +@if gcc-bootstrap +NOTPARALLEL = .NOTPARALLEL +$(NOTPARALLEL): +do-distclean: distclean-stage1 +@endif gcc-bootstrap + # -------------------------------------- # Dependencies between different modules # -------------------------------------- diff --git a/configure b/configure index 834a3101b..c021b71b2 100755 --- a/configure +++ b/configure @@ -1723,6 +1723,9 @@ case "${host}" in tentative_cc="/usr/cygnus/progressive/bin/gcc" host_makefile_frag="config/mh-lynxrs6k" ;; + powerpc-*-darwin*) + host_makefile_frag="config/mh-ppc-darwin" + ;; *-*-lynxos*) # /bin/cc is less than useful for our purposes. Always use GCC tentative_cc="/bin/gcc" @@ -1785,7 +1788,7 @@ else # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1789: checking for $ac_word" >&5 +echo "configure:1792: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1815,7 +1818,7 @@ if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1819: checking for $ac_word" >&5 +echo "configure:1822: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1866,7 +1869,7 @@ fi # Extract the first word of "cl", so it can be a program name with args. set dummy cl; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1870: checking for $ac_word" >&5 +echo "configure:1873: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1898,7 +1901,7 @@ fi fi echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 -echo "configure:1902: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 +echo "configure:1905: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. @@ -1909,12 +1912,12 @@ cross_compiling=$ac_cv_prog_cc_cross cat > conftest.$ac_ext << EOF -#line 1913 "configure" +#line 1916 "configure" #include "confdefs.h" main(){return(0);} EOF -if { (eval echo configure:1918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ac_cv_prog_cc_works=yes # If we can't run a trivial program, we are probably using a cross compiler. if (./conftest; exit) 2>/dev/null; then @@ -1940,12 +1943,12 @@ if test $ac_cv_prog_cc_works = no; then { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } fi echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 -echo "configure:1944: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 +echo "configure:1947: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 cross_compiling=$ac_cv_prog_cc_cross echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 -echo "configure:1949: checking whether we are using GNU C" >&5 +echo "configure:1952: checking whether we are using GNU C" >&5 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1954,7 +1957,7 @@ else yes; #endif EOF -if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1958: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then +if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1961: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then ac_cv_prog_gcc=yes else ac_cv_prog_gcc=no @@ -1973,7 +1976,7 @@ ac_test_CFLAGS="${CFLAGS+set}" ac_save_CFLAGS="$CFLAGS" CFLAGS= echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 -echo "configure:1977: checking whether ${CC-cc} accepts -g" >&5 +echo "configure:1980: checking whether ${CC-cc} accepts -g" >&5 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2040,7 +2043,7 @@ fi # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args. set dummy ${ac_tool_prefix}gnatbind; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2044: checking for $ac_word" >&5 +echo "configure:2047: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2072,7 +2075,7 @@ if test -n "$ac_tool_prefix"; then # Extract the first word of "gnatbind", so it can be a program name with args. set dummy gnatbind; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2076: checking for $ac_word" >&5 +echo "configure:2079: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2105,7 +2108,7 @@ fi fi echo $ac_n "checking whether compiler driver understands Ada""... $ac_c" 1>&6 -echo "configure:2109: checking whether compiler driver understands Ada" >&5 +echo "configure:2112: checking whether compiler driver understands Ada" >&5 if eval "test \"`echo '$''{'acx_cv_cc_gcc_supports_ada'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2138,7 +2141,7 @@ else fi echo $ac_n "checking how to compare bootstrapped objects""... $ac_c" 1>&6 -echo "configure:2142: checking how to compare bootstrapped objects" >&5 +echo "configure:2145: checking how to compare bootstrapped objects" >&5 if eval "test \"`echo '$''{'gcc_cv_prog_cmp_skip'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2236,9 +2239,9 @@ saved_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS $gmpinc" # Check GMP actually works echo $ac_n "checking for correct version of gmp.h""... $ac_c" 1>&6 -echo "configure:2240: checking for correct version of gmp.h" >&5 +echo "configure:2243: checking for correct version of gmp.h" >&5 cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:2256: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* echo "$ac_t""yes" 1>&6 else @@ -2262,12 +2265,12 @@ rm -f conftest* if test x"$have_gmp" = xyes; then echo $ac_n "checking for MPFR""... $ac_c" 1>&6 -echo "configure:2266: checking for MPFR" >&5 +echo "configure:2269: checking for MPFR" >&5 saved_LIBS="$LIBS" LIBS="$LIBS $gmplibs" cat > conftest.$ac_ext < #include @@ -2275,7 +2278,7 @@ int main() { mpfr_t n; mpfr_init(n); ; return 0; } EOF -if { (eval echo configure:2279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* echo "$ac_t""yes" 1>&6 else @@ -2759,7 +2762,7 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2763: checking for $ac_word" >&5 +echo "configure:2766: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_BISON'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2794,7 +2797,7 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2798: checking for $ac_word" >&5 +echo "configure:2801: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_YACC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2829,7 +2832,7 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2833: checking for $ac_word" >&5 +echo "configure:2836: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_M4'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2864,7 +2867,7 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2868: checking for $ac_word" >&5 +echo "configure:2871: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_FLEX'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2899,7 +2902,7 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2903: checking for $ac_word" >&5 +echo "configure:2906: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_LEX'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2934,7 +2937,7 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2938: checking for $ac_word" >&5 +echo "configure:2941: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_MAKEINFO'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3568,7 +3571,7 @@ test -n "$target_alias" && ncn_target_tool_prefix=$target_alias- # Extract the first word of "${ncn_tool_prefix}ar", so it can be a program name with args. set dummy ${ncn_tool_prefix}ar; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:3572: checking for $ac_word" >&5 +echo "configure:3575: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3601,7 +3604,7 @@ if test -z "$ac_cv_prog_AR" ; then # Extract the first word of "ar", so it can be a program name with args. set dummy ar; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:3605: checking for $ac_word" >&5 +echo "configure:3608: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_AR'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3640,7 +3643,7 @@ fi # Extract the first word of "${ncn_tool_prefix}as", so it can be a program name with args. set dummy ${ncn_tool_prefix}as; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:3644: checking for $ac_word" >&5 +echo "configure:3647: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3673,7 +3676,7 @@ if test -z "$ac_cv_prog_AS" ; then # Extract the first word of "as", so it can be a program name with args. set dummy as; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:3677: checking for $ac_word" >&5 +echo "configure:3680: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_AS'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3712,7 +3715,7 @@ fi # Extract the first word of "${ncn_tool_prefix}dlltool", so it can be a program name with args. set dummy ${ncn_tool_prefix}dlltool; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:3716: checking for $ac_word" >&5 +echo "configure:3719: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3745,7 +3748,7 @@ if test -z "$ac_cv_prog_DLLTOOL" ; then # Extract the first word of "dlltool", so it can be a program name with args. set dummy dlltool; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:3749: checking for $ac_word" >&5 +echo "configure:3752: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_DLLTOOL'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3784,7 +3787,7 @@ fi # Extract the first word of "${ncn_tool_prefix}ld", so it can be a program name with args. set dummy ${ncn_tool_prefix}ld; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:3788: checking for $ac_word" >&5 +echo "configure:3791: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3817,7 +3820,7 @@ if test -z "$ac_cv_prog_LD" ; then # Extract the first word of "ld", so it can be a program name with args. set dummy ld; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:3821: checking for $ac_word" >&5 +echo "configure:3824: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_LD'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3856,7 +3859,7 @@ fi # Extract the first word of "${ncn_tool_prefix}nm", so it can be a program name with args. set dummy ${ncn_tool_prefix}nm; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:3860: checking for $ac_word" >&5 +echo "configure:3863: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3889,7 +3892,7 @@ if test -z "$ac_cv_prog_NM" ; then # Extract the first word of "nm", so it can be a program name with args. set dummy nm; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:3893: checking for $ac_word" >&5 +echo "configure:3896: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_NM'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3928,7 +3931,7 @@ fi # Extract the first word of "${ncn_tool_prefix}ranlib", so it can be a program name with args. set dummy ${ncn_tool_prefix}ranlib; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:3932: checking for $ac_word" >&5 +echo "configure:3935: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3961,7 +3964,7 @@ if test -z "$ac_cv_prog_RANLIB" ; then # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:3965: checking for $ac_word" >&5 +echo "configure:3968: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_RANLIB'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -4000,7 +4003,7 @@ fi # Extract the first word of "${ncn_tool_prefix}windres", so it can be a program name with args. set dummy ${ncn_tool_prefix}windres; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:4004: checking for $ac_word" >&5 +echo "configure:4007: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -4033,7 +4036,7 @@ if test -z "$ac_cv_prog_WINDRES" ; then # Extract the first word of "windres", so it can be a program name with args. set dummy windres; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:4037: checking for $ac_word" >&5 +echo "configure:4040: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_WINDRES'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -4072,7 +4075,7 @@ fi # Extract the first word of "${ncn_tool_prefix}objcopy", so it can be a program name with args. set dummy ${ncn_tool_prefix}objcopy; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:4076: checking for $ac_word" >&5 +echo "configure:4079: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -4105,7 +4108,7 @@ if test -z "$ac_cv_prog_OBJCOPY" ; then # Extract the first word of "objcopy", so it can be a program name with args. set dummy objcopy; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:4109: checking for $ac_word" >&5 +echo "configure:4112: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_OBJCOPY'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -4144,7 +4147,7 @@ fi # Extract the first word of "${ncn_tool_prefix}objdump", so it can be a program name with args. set dummy ${ncn_tool_prefix}objdump; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:4148: checking for $ac_word" >&5 +echo "configure:4151: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -4177,7 +4180,7 @@ if test -z "$ac_cv_prog_OBJDUMP" ; then # Extract the first word of "objdump", so it can be a program name with args. set dummy objdump; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:4181: checking for $ac_word" >&5 +echo "configure:4184: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_OBJDUMP'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -4223,7 +4226,7 @@ fi # Extract the first word of "${ncn_target_tool_prefix}ar", so it can be a program name with args. set dummy ${ncn_target_tool_prefix}ar; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:4227: checking for $ac_word" >&5 +echo "configure:4230: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_AR_FOR_TARGET'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -4256,7 +4259,7 @@ if test -z "$ac_cv_prog_CONFIGURED_AR_FOR_TARGET" ; then # Extract the first word of "ar", so it can be a program name with args. set dummy ar; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:4260: checking for $ac_word" >&5 +echo "configure:4263: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -4295,7 +4298,7 @@ fi # Extract the first word of "${ncn_target_tool_prefix}as", so it can be a program name with args. set dummy ${ncn_target_tool_prefix}as; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:4299: checking for $ac_word" >&5 +echo "configure:4302: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_AS_FOR_TARGET'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -4328,7 +4331,7 @@ if test -z "$ac_cv_prog_CONFIGURED_AS_FOR_TARGET" ; then # Extract the first word of "as", so it can be a program name with args. set dummy as; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:4332: checking for $ac_word" >&5 +echo "configure:4335: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -4367,7 +4370,7 @@ fi # Extract the first word of "${ncn_target_tool_prefix}dlltool", so it can be a program name with args. set dummy ${ncn_target_tool_prefix}dlltool; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:4371: checking for $ac_word" >&5 +echo "configure:4374: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -4400,7 +4403,7 @@ if test -z "$ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET" ; then # Extract the first word of "dlltool", so it can be a program name with args. set dummy dlltool; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:4404: checking for $ac_word" >&5 +echo "configure:4407: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -4439,7 +4442,7 @@ fi # Extract the first word of "${ncn_target_tool_prefix}ld", so it can be a program name with args. set dummy ${ncn_target_tool_prefix}ld; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:4443: checking for $ac_word" >&5 +echo "configure:4446: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_LD_FOR_TARGET'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -4472,7 +4475,7 @@ if test -z "$ac_cv_prog_CONFIGURED_LD_FOR_TARGET" ; then # Extract the first word of "ld", so it can be a program name with args. set dummy ld; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:4476: checking for $ac_word" >&5 +echo "configure:4479: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -4511,7 +4514,7 @@ fi # Extract the first word of "${ncn_target_tool_prefix}nm", so it can be a program name with args. set dummy ${ncn_target_tool_prefix}nm; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:4515: checking for $ac_word" >&5 +echo "configure:4518: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_NM_FOR_TARGET'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -4544,7 +4547,7 @@ if test -z "$ac_cv_prog_CONFIGURED_NM_FOR_TARGET" ; then # Extract the first word of "nm", so it can be a program name with args. set dummy nm; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:4548: checking for $ac_word" >&5 +echo "configure:4551: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -4583,7 +4586,7 @@ fi # Extract the first word of "${ncn_target_tool_prefix}ranlib", so it can be a program name with args. set dummy ${ncn_target_tool_prefix}ranlib; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:4587: checking for $ac_word" >&5 +echo "configure:4590: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -4616,7 +4619,7 @@ if test -z "$ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET" ; then # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:4620: checking for $ac_word" >&5 +echo "configure:4623: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -4655,7 +4658,7 @@ fi # Extract the first word of "${ncn_target_tool_prefix}windres", so it can be a program name with args. set dummy ${ncn_target_tool_prefix}windres; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:4659: checking for $ac_word" >&5 +echo "configure:4662: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -4688,7 +4691,7 @@ if test -z "$ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET" ; then # Extract the first word of "windres", so it can be a program name with args. set dummy windres; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:4692: checking for $ac_word" >&5 +echo "configure:4695: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -4773,7 +4776,7 @@ RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target} NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target} echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6 -echo "configure:4777: checking whether to enable maintainer-specific portions of Makefiles" >&5 +echo "configure:4780: checking whether to enable maintainer-specific portions of Makefiles" >&5 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. if test "${enable_maintainer_mode+set}" = set; then enableval="$enable_maintainer_mode" @@ -4820,7 +4823,7 @@ esac # gcc for stageN-gcc and stagePREV-gcc for stage(N-1). In case this is not # possible, however, we can resort to mv. echo $ac_n "checking if symbolic links between directories work""... $ac_c" 1>&6 -echo "configure:4824: checking if symbolic links between directories work" >&5 +echo "configure:4827: checking if symbolic links between directories work" >&5 if eval "test \"`echo '$''{'gcc_cv_prog_ln_s_dir'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else diff --git a/configure.in b/configure.in index 8c11c6d8c..546879ac0 100644 --- a/configure.in +++ b/configure.in @@ -939,6 +939,9 @@ case "${host}" in tentative_cc="/usr/cygnus/progressive/bin/gcc" host_makefile_frag="config/mh-lynxrs6k" ;; + powerpc-*-darwin*) + host_makefile_frag="config/mh-ppc-darwin" + ;; *-*-lynxos*) # /bin/cc is less than useful for our purposes. Always use GCC tentative_cc="/bin/gcc"