Now that we build these objects in the top dir & generate modules.c
there, we don't need to generate them all first -- we can let the
normal dependency graph take care of building things in parallel.
---
sim/Makefile.in | 281 +++++++++++++++++++++----------------------
sim/bpf/local.mk | 3 +-
sim/cr16/local.mk | 3 +-
sim/cris/local.mk | 3 +-
sim/d10v/local.mk | 3 +-
sim/frv/local.mk | 3 +-
sim/iq2000/local.mk | 3 +-
sim/lm32/local.mk | 3 +-
sim/m32c/local.mk | 3 +-
sim/m32r/local.mk | 3 +-
sim/m68hc11/local.mk | 3 +-
sim/mips/local.mk | 3 +-
sim/mn10300/local.mk | 3 +-
sim/or1k/local.mk | 3 +-
sim/sh/local.mk | 3 +-
sim/v850/local.mk | 3 +-
16 files changed, 153 insertions(+), 173 deletions(-)
@@ -73,8 +73,7 @@ BUILT_SOURCES += \
%D%/mloop-be.c \
%D%/stamp-mloop-be
-## This makes sure build tools are available before building the arch-subdirs.
-SIM_ALL_RECURSIVE_DEPS += $(%C%_BUILD_OUTPUTS)
+## Generating modules.c requires all sources to scan.
%D%/modules.c: | $(%C%_BUILD_OUTPUTS)
%D%/mloop-le.c %D%/eng-le.h: %D%/stamp-mloop-le ; @true
@@ -47,8 +47,7 @@ BUILT_SOURCES += %D%/simops.h
%D%/gencode$(EXEEXT) \
%D%/table.c
-## This makes sure build tools are available before building the arch-subdirs.
-SIM_ALL_RECURSIVE_DEPS += $(%C%_BUILD_OUTPUTS)
+## Generating modules.c requires all sources to scan.
%D%/modules.c: | $(%C%_BUILD_OUTPUTS)
%C%_gencode_SOURCES = %D%/gencode.c
@@ -77,8 +77,7 @@ BUILT_SOURCES += \
%D%/mloopv32f.c \
%D%/stamp-mloop-v32f
-## This makes sure build tools are available before building the arch-subdirs.
-SIM_ALL_RECURSIVE_DEPS += $(%C%_BUILD_OUTPUTS)
+## Generating modules.c requires all sources to scan.
%D%/modules.c: | $(%C%_BUILD_OUTPUTS)
## FIXME: What is mono and what does "Use of `mono' is wip" mean (other
@@ -48,8 +48,7 @@ BUILT_SOURCES += %D%/simops.h
%D%/gencode$(EXEEXT) \
%D%/table.c
-## This makes sure build tools are available before building the arch-subdirs.
-SIM_ALL_RECURSIVE_DEPS += $(%C%_BUILD_OUTPUTS)
+## Generating modules.c requires all sources to scan.
%D%/modules.c: | $(%C%_BUILD_OUTPUTS)
%C%_gencode_SOURCES = %D%/gencode.c
@@ -83,8 +83,7 @@ BUILT_SOURCES += %D%/eng.h
%D%/mloop.c \
%D%/stamp-mloop
-## This makes sure build tools are available before building the arch-subdirs.
-SIM_ALL_RECURSIVE_DEPS += $(%C%_BUILD_OUTPUTS)
+## Generating modules.c requires all sources to scan.
%D%/modules.c: | $(%C%_BUILD_OUTPUTS)
## FIXME: Use of `mono' is wip.
@@ -58,8 +58,7 @@ BUILT_SOURCES += %D%/eng.h
%D%/mloop.c \
%D%/stamp-mloop
-## This makes sure build tools are available before building the arch-subdirs.
-SIM_ALL_RECURSIVE_DEPS += $(%C%_BUILD_OUTPUTS)
+## Generating modules.c requires all sources to scan.
%D%/modules.c: | $(%C%_BUILD_OUTPUTS)
## FIXME: Use of `mono' is wip.
@@ -63,8 +63,7 @@ BUILT_SOURCES += %D%/eng.h
%D%/mloop.c \
%D%/stamp-mloop
-## This makes sure build tools are available before building the arch-subdirs.
-SIM_ALL_RECURSIVE_DEPS += $(%C%_BUILD_OUTPUTS)
+## Generating modules.c requires all sources to scan.
%D%/modules.c: | $(%C%_BUILD_OUTPUTS)
## FIXME: Use of `mono' is wip.
@@ -53,8 +53,7 @@ noinst_PROGRAMS += %D%/run
%D%/m32c.c \
%D%/r8c.c
-## This makes sure build tools are available before building the arch-subdirs.
-SIM_ALL_RECURSIVE_DEPS += $(%C%_BUILD_OUTPUTS)
+## Generating modules.c requires all sources to scan.
%D%/modules.c: | $(%C%_BUILD_OUTPUTS)
%C%_opc2c_SOURCES = %D%/opc2c.c
@@ -96,8 +96,7 @@ BUILT_SOURCES += \
%D%/mloop2.c \
%D%/stamp-mloop-2
-## This makes sure build tools are available before building the arch-subdirs.
-SIM_ALL_RECURSIVE_DEPS += $(%C%_BUILD_OUTPUTS)
+## Generating modules.c requires all sources to scan.
%D%/modules.c: | $(%C%_BUILD_OUTPUTS)
## FIXME: Use of `mono' is wip.
@@ -63,8 +63,7 @@ noinst_PROGRAMS += %D%/run
%D%/m68hc11int.c \
%D%/m68hc12int.c
-## This makes sure build tools are available before building the arch-subdirs.
-SIM_ALL_RECURSIVE_DEPS += $(%C%_BUILD_OUTPUTS)
+## Generating modules.c requires all sources to scan.
%D%/modules.c: | $(%C%_BUILD_OUTPUTS)
%C%_gencode_SOURCES = %D%/gencode.c
@@ -154,8 +154,7 @@ if SIM_MIPS_GEN_MODE_MULTI
%D%/stamp-gen-mode-multi-run
endif
-## This makes sure build tools are available before building the arch-subdirs.
-SIM_ALL_RECURSIVE_DEPS += $(%C%_BUILD_OUTPUTS)
+## Generating modules.c requires all sources to scan.
%D%/modules.c: | $(%C%_BUILD_OUTPUTS)
$(%C%_BUILT_SRC_FROM_IGEN_ITABLE): %D%/stamp-igen-itable
@@ -83,8 +83,7 @@ BUILT_SOURCES += \
$(%C%_BUILT_SRC_FROM_IGEN) \
%D%/stamp-igen
-## This makes sure build tools are available before building the arch-subdirs.
-SIM_ALL_RECURSIVE_DEPS += $(%C%_BUILD_OUTPUTS)
+## Generating modules.c requires all sources to scan.
%D%/modules.c: | $(%C%_BUILD_OUTPUTS)
$(%C%_BUILT_SRC_FROM_IGEN): %D%/stamp-igen
@@ -65,8 +65,7 @@ BUILT_SOURCES += %D%/eng.h
%D%/mloop.c \
%D%/stamp-mloop
-## This makes sure build tools are available before building the arch-subdirs.
-SIM_ALL_RECURSIVE_DEPS += $(%C%_BUILD_OUTPUTS)
+## Generating modules.c requires all sources to scan.
%D%/modules.c: | $(%C%_BUILD_OUTPUTS)
## FIXME: Use of `mono' is wip.
@@ -49,8 +49,7 @@ BUILT_SOURCES += \
%D%/gencode$(EXEEXT) \
%D%/table.c
-## This makes sure build tools are available before building the arch-subdirs.
-SIM_ALL_RECURSIVE_DEPS += $(%C%_BUILD_OUTPUTS)
+## Generating modules.c requires all sources to scan.
%D%/modules.c: | $(%C%_BUILD_OUTPUTS)
%C%_gencode_SOURCES = %D%/gencode.c
@@ -78,8 +78,7 @@ BUILT_SOURCES += \
$(%C%_BUILT_SRC_FROM_IGEN) \
%D%/stamp-igen
-## This makes sure build tools are available before building the arch-subdirs.
-SIM_ALL_RECURSIVE_DEPS += $(%C%_BUILD_OUTPUTS)
+## Generating modules.c requires all sources to scan.
%D%/modules.c: | $(%C%_BUILD_OUTPUTS)
$(%C%_BUILT_SRC_FROM_IGEN): %D%/stamp-igen