summaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1997-09-11 03:32:08 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1997-09-11 03:32:08 +0000
commit6b071baa766f07aa7daf5b7bc549a2b11e7406c2 (patch)
tree34e094da35a5bdcee9f6eb802b64c4104bcf3ed6 /Makefile.in
parent8cd7064ecfb7fadfa8d99ca44f2faa1bc66d498d (diff)
downloadgcc-6b071baa766f07aa7daf5b7bc549a2b11e7406c2.tar.gz
* Makefile.in (bootstrap): New target.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@15399 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in25
1 files changed, 25 insertions, 0 deletions
diff --git a/Makefile.in b/Makefile.in
index af7fb16c276..ee4a50dda2c 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -1284,6 +1284,31 @@ all-bootstrap:
true; \
fi
+# Building GCC uses some tools for rebuilding "source" files
+# like texinfo, bison/byacc, etc. So we must depend on those.
+#
+# While building GCC, it may be necessary to run various target
+# programs like the assembler, linker, etc. So we depend on
+# those too.
+#
+# In theory, on an SMP all those dependencies can be resolved
+# in parallel.
+#
+.PHONY: bootstrap
+bootstrap: all-texinfo all-bison all-byacc all-binutils all-gas all-ld
+ @r=`pwd`; export r; \
+ s=`cd $(srcdir); pwd`; export s; \
+ $(SET_LIB_PATH) \
+ echo "Bootstrapping the compiler with -O2 -g"; \
+ cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) BOOT_CFLAGS="-O2 -g" bootstrap
+ @r=`pwd`; export r; \
+ s=`cd $(srcdir); pwd`; export s; \
+ $(SET_LIB_PATH) \
+ echo "Comparing stage2 and stage3 of the compiler"; \
+ cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) BOOT_CFLAGS="-O2 -g" compare
+ @echo "Building runtime libraries"; \
+ $(MAKE) all
+
.PHONY: check-gcc
check-gcc:
@if [ -f ./gcc/Makefile ] ; then \