OSDN Git Service

* libF77/signal_.c (G77_signal_0): Make return type sig_pf as well.
[pf3gnuchains/gcc-fork.git] / Makefile.in
index af7fb16..b7f9c27 100644 (file)
@@ -893,7 +893,7 @@ local-clean:
        -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E
 
 local-distclean:
-       -rm -f Makefile config.status config.cache
+       -rm -f Makefile config.status config.cache mh-frag mt-frag
        -if [ "$(TARGET_SUBDIR)" != "." ]; then \
          rm -rf $(TARGET_SUBDIR); \
        else true; fi
@@ -1273,16 +1273,55 @@ all-gcc:
          true; \
        fi
 
-.PHONY: all-bootstrap
-all-bootstrap:
-       @if [ -f ./gcc/Makefile ] ; then \
-         r=`pwd`; export r; \
-         s=`cd $(srcdir); pwd`; export s; \
-         $(SET_LIB_PATH) \
-         (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) bootstrap); \
-       else \
-         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 bootstrap2 bootstrap3
+bootstrap bootstrap2 bootstrap3: 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"; \
+       cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) $@
+       @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) compare
+       @echo "Building runtime libraries"; \
+       $(MAKE) all
+
+.PHONY: bootstrap-lean
+bootstrap-lean: 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"; \
+       cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) $@
+       @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) compare-lean
+       @echo "Building runtime libraries"; \
+       $(MAKE) all
+
+.PHONY: cross
+cross: 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 "Building the C and C++ compiler"; \
+       cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) LANGUAGES="c c++"
+       @echo "Building runtime libraries"; \
+       $(MAKE) all LANGUAGES="c c++"
 
 .PHONY: check-gcc
 check-gcc:
@@ -1353,7 +1392,6 @@ all-gash: all-tcl
 all-gawk:
 ALL_GCC = all-gcc
 all-gcc: all-bison all-byacc all-binutils all-gas all-ld
-all-bootstrap: all-libiberty all-bison all-byacc all-binutils all-gas all-ld
 GDB_TK = all-tk all-tcl all-itcl all-tix
 all-gdb: all-libiberty all-opcodes all-bfd all-mmalloc all-readline all-bison all-byacc all-sim $(gdbnlmrequirements) $(GDB_TK)
 all-gnuserv: