Commit 45f366ab by Paolo Bonzini

Makefile.tpl (sorry): Remove.

2004-09-01  Paolo Bonzini  <bonzini@gnu.org>

	* 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.

	Fix previous checkin:

	* Makefile.tpl: Move BOOT_CFLAGS above host makefile fragment
	include.
	* configure.in: Fix indentation.
	* configure: Regenerate.

From-SVN: r86878
parent 727c2407
2004-09-01 Paolo Bonzini <bonzini@gnu.org>
* 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.
Fix previous checkin:
* Makefile.tpl: Move BOOT_CFLAGS above host makefile fragment
include.
* configure.in: Fix indentation.
* configure: Regenerate.
2004-08-31 Robert Bowdidge <bowdidge@apple.com> 2004-08-31 Robert Bowdidge <bowdidge@apple.com>
* Makefile.in: Move BOOT_CFLAGS above host makefile fragment include. * Makefile.in: Move BOOT_CFLAGS above host makefile fragment include.
* configure.in: add test for powerpc-*-darwin* to specify makefile frag * configure.in: add test for powerpc-*-darwin* to specify makefile frag
* configure: regenerate * configure: regenerate
* config/mh-ppc-darwin: create file, override BOOT_CFLAGS for * config/mh-ppc-darwin: create file, override BOOT_CFLAGS for
-mdynamic-no-pic -mdynamic-no-pic
2004-08-31 Paolo Bonzini <bonzini@gnu.org> 2004-08-31 Paolo Bonzini <bonzini@gnu.org>
......
...@@ -248,6 +248,10 @@ CXX_FOR_BUILD = $(CXX) ...@@ -248,6 +248,10 @@ CXX_FOR_BUILD = $(CXX)
BUILD_PREFIX = @BUILD_PREFIX@ BUILD_PREFIX = @BUILD_PREFIX@
BUILD_PREFIX_1 = @BUILD_PREFIX_1@ 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@ CONFIGURED_BISON = @CONFIGURED_BISON@
BISON = `if [ -f $$r/$(BUILD_SUBDIR)/bison/tests/bison ] ; then \ BISON = `if [ -f $$r/$(BUILD_SUBDIR)/bison/tests/bison ] ; then \
echo $$r/$(BUILD_SUBDIR)/bison/tests/bison ; \ echo $$r/$(BUILD_SUBDIR)/bison/tests/bison ; \
...@@ -481,14 +485,6 @@ PICFLAG_FOR_TARGET = ...@@ -481,14 +485,6 @@ PICFLAG_FOR_TARGET =
# Miscellaneous targets and flag lists # 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. # 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. # This lives here to allow makefile fragments to contain dependencies.
@default_target@: @default_target@:
...@@ -1338,7 +1334,9 @@ stage: ...@@ -1338,7 +1334,9 @@ stage:
# (both in a combined tree, or separately). This however requires some # (both in a combined tree, or separately). This however requires some
# change to the gcc driver, again in order to avoid comparison failures. # 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. # 'touch' doesn't work right on some platforms.
STAMP = echo timestamp > STAMP = echo timestamp >
...@@ -1356,7 +1354,6 @@ STAGE1_LANGUAGES=@stage1_languages@ ...@@ -1356,7 +1354,6 @@ STAGE1_LANGUAGES=@stage1_languages@
objext = .o objext = .o
# Flags to pass to stage2 and later makes. # Flags to pass to stage2 and later makes.
BOOT_CFLAGS= -g -O2
POSTSTAGE1_FLAGS_TO_PASS = \ POSTSTAGE1_FLAGS_TO_PASS = \
CC="$${CC}" CC_FOR_BUILD="$${CC_FOR_BUILD}" \ CC="$${CC}" CC_FOR_BUILD="$${CC_FOR_BUILD}" \
STAGE_PREFIX=$$r/stage[+prev+]-gcc/ \ STAGE_PREFIX=$$r/stage[+prev+]-gcc/ \
...@@ -1402,20 +1399,27 @@ stage[+id+]-bubble:: [+ IF prev +]stage[+prev+]-bubble[+ ENDIF +][+IF lean +] ...@@ -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 \ IF prev +]|| test -f stage[+prev+]-lean [+ ENDIF prev +] ; then \
echo Skipping rebuild of stage[+id+] ; \ echo Skipping rebuild of stage[+id+] ; \
else \ else \
$(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage[+id+]; \ $(MAKE) $(RECURSE_FLAGS_TO_PASS) NOTPARALLEL= all-stage[+id+]; \
fi fi
.PHONY: all-stage[+id+] .PHONY: all-stage[+id+] clean-stage[+id+]
all-stage[+id+]: [+ FOR host_modules +][+ IF bootstrap +]\ all-stage[+id+]: [+ FOR host_modules +][+ IF bootstrap +]\
maybe-all-stage[+id+]-[+module+][+ maybe-all-stage[+id+]-[+module+][+
ENDIF bootstrap+] [+ ENDFOR host_modules +] 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 +] [+ FOR host_modules +][+ IF bootstrap +]
.PHONY: configure-stage[+id+]-[+module+] maybe-configure-stage[+id+]-[+module+] .PHONY: configure-stage[+id+]-[+module+] maybe-configure-stage[+id+]-[+module+]
.PHONY: all-stage[+id+]-[+module+] maybe-all-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-configure-stage[+id+]-[+module+]:
maybe-all-stage[+id+]-[+module+]: maybe-all-stage[+id+]-[+module+]:
maybe-clean-stage[+id+]-[+module+]:
@if [+module+]-bootstrap @if [+module+]-bootstrap
maybe-configure-stage[+id+]-[+module+]: configure-stage[+id+]-[+module+] maybe-configure-stage[+id+]-[+module+]: configure-stage[+id+]-[+module+]
...@@ -1454,7 +1458,18 @@ all-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 +] \ $(MAKE) $(FLAGS_TO_PASS) [+ IF prev +] \
$(POSTSTAGE1_FLAGS_TO_PASS) [+ ENDIF prev +] \ $(POSTSTAGE1_FLAGS_TO_PASS) [+ ENDIF prev +] \
[+stage_make_flags+] [+extra_make_flags+] [+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 [+module+]-bootstrap
[+ ENDIF bootstrap +][+ ENDFOR host_modules +] [+ ENDIF bootstrap +][+ ENDFOR host_modules +]
# FIXME: Will not need to be conditional when toplevel bootstrap is the # FIXME: Will not need to be conditional when toplevel bootstrap is the
...@@ -1494,10 +1509,9 @@ all-stage[+id+]-[+module+]: configure-stage[+id+]-[+module+] ...@@ -1494,10 +1509,9 @@ all-stage[+id+]-[+module+]: configure-stage[+id+]-[+module+]
[+bootstrap-target+]: stage[+id+]-bubble [+compare-target+] all [+bootstrap-target+]: stage[+id+]-bubble [+compare-target+] all
[+ ENDIF bootstrap-target +] [+ ENDIF bootstrap-target +]
.PHONY: distclean-stage[+id+] # Rules to wipe a stage and all the following ones, also used for cleanstrap
# Rules to wipe a stage and all the following ones, used for cleanstrap
[+ IF prev +]distclean-stage[+prev+]:: distclean-stage[+id+] [+ ENDIF prev +] [+ IF prev +]distclean-stage[+prev+]:: distclean-stage[+id+] [+ ENDIF prev +]
.PHONY: distclean-stage[+id+]
distclean-stage[+id+]:: distclean-stage[+id+]::
[ -f stage_current ] && $(MAKE) `cat stage_current`-end || : [ -f stage_current ] && $(MAKE) `cat stage_current`-end || :
rm -rf stage[+id+]-* [+ rm -rf stage[+id+]-* [+
...@@ -1505,7 +1519,7 @@ distclean-stage[+id+]:: ...@@ -1505,7 +1519,7 @@ distclean-stage[+id+]::
[+ IF cleanstrap-target +] [+ IF cleanstrap-target +]
.PHONY: [+cleanstrap-target+] .PHONY: [+cleanstrap-target+]
[+cleanstrap-target+]: distclean-stage1 [+bootstrap-target+] [+cleanstrap-target+]: distclean [+bootstrap-target+]
[+ ENDIF cleanstrap-target +] [+ ENDIF cleanstrap-target +]
@endif gcc-bootstrap @endif gcc-bootstrap
...@@ -1541,6 +1555,12 @@ profiledbootstrap: ...@@ -1541,6 +1555,12 @@ profiledbootstrap:
$(MAKE) stagefeedback-bubble stagefeedback-end $(MAKE) stagefeedback-bubble stagefeedback-end
@endif gcc-bootstrap @endif gcc-bootstrap
@if gcc-bootstrap
NOTPARALLEL = .NOTPARALLEL
$(NOTPARALLEL):
do-distclean: distclean-stage1
@endif gcc-bootstrap
# -------------------------------------- # --------------------------------------
# Dependencies between different modules # Dependencies between different modules
# -------------------------------------- # --------------------------------------
......
...@@ -1723,7 +1723,7 @@ case "${host}" in ...@@ -1723,7 +1723,7 @@ case "${host}" in
tentative_cc="/usr/cygnus/progressive/bin/gcc" tentative_cc="/usr/cygnus/progressive/bin/gcc"
host_makefile_frag="config/mh-lynxrs6k" host_makefile_frag="config/mh-lynxrs6k"
;; ;;
powerpc-*-darwin*) powerpc-*-darwin*)
host_makefile_frag="config/mh-ppc-darwin" host_makefile_frag="config/mh-ppc-darwin"
;; ;;
*-*-lynxos*) *-*-lynxos*)
......
...@@ -939,7 +939,7 @@ case "${host}" in ...@@ -939,7 +939,7 @@ case "${host}" in
tentative_cc="/usr/cygnus/progressive/bin/gcc" tentative_cc="/usr/cygnus/progressive/bin/gcc"
host_makefile_frag="config/mh-lynxrs6k" host_makefile_frag="config/mh-lynxrs6k"
;; ;;
powerpc-*-darwin*) powerpc-*-darwin*)
host_makefile_frag="config/mh-ppc-darwin" host_makefile_frag="config/mh-ppc-darwin"
;; ;;
*-*-lynxos*) *-*-lynxos*)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment