sim: build: respect AM_MAKEFLAGS when entering subdirs
Commit Message
This doesn't matter right now, but it will as we add more flags to
the recursive make step to pass state down.
---
sim/Makefile.am | 4 ++--
sim/Makefile.in | 14 +++++++-------
sim/erc32/local.mk | 2 +-
sim/m32c/local.mk | 2 +-
sim/ppc/local.mk | 2 +-
sim/rl78/local.mk | 2 +-
sim/rx/local.mk | 2 +-
7 files changed, 14 insertions(+), 14 deletions(-)
@@ -188,10 +188,10 @@ endif
## have Makefiles in subdirs.
%/libsim.a: | $(SIM_ALL_RECURSIVE_DEPS)
- $(MAKE) -C $(@D) $(@F)
+ $(MAKE) $(AM_MAKEFLAGS) -C $(@D) $(@F)
%/nrun.o: common/nrun.c | %/libsim.a $(SIM_ALL_RECURSIVE_DEPS)
- $(MAKE) -C $(@D) $(@F)
+ $(MAKE) $(AM_MAKEFLAGS) -C $(@D) $(@F)
all-recursive: $(SIM_ALL_RECURSIVE_DEPS)
@@ -28,7 +28,7 @@
## Helper targets for running make from the top-level due to run's sis.o.
%D%/%.o: %D%/%.c | %D%/libsim.a $(SIM_ALL_RECURSIVE_DEPS)
- $(MAKE) -C $(@D) $(@F)
+ $(MAKE) $(AM_MAKEFLAGS) -C $(@D) $(@F)
noinst_PROGRAMS += %D%/run %D%/sis
@@ -26,7 +26,7 @@ noinst_PROGRAMS += %D%/run
## Helper targets for running make from the top-level due to run's main.o.
%D%/%.o: %D%/%.c | %D%/libsim.a $(SIM_ALL_RECURSIVE_DEPS)
- $(MAKE) -C $(@D) $(@F)
+ $(MAKE) $(AM_MAKEFLAGS) -C $(@D) $(@F)
%C%_BUILD_OUTPUTS = \
%D%/opc2c$(EXEEXT) \
@@ -26,7 +26,7 @@
## Helper targets for running make from the top-level due to run's sis.o.
%D%/%.o: %D%/%.c | %D%/libsim.a $(SIM_ALL_RECURSIVE_DEPS)
- $(MAKE) -C $(@D) $(@F)
+ $(MAKE) $(AM_MAKEFLAGS) -C $(@D) $(@F)
noinst_PROGRAMS += %D%/run %D%/psim
@@ -26,4 +26,4 @@ noinst_PROGRAMS += %D%/run
## Helper targets for running make from the top-level due to run's main.o.
%D%/%.o: %D%/%.c | %D%/libsim.a $(SIM_ALL_RECURSIVE_DEPS)
- $(MAKE) -C $(@D) $(@F)
+ $(MAKE) $(AM_MAKEFLAGS) -C $(@D) $(@F)
@@ -26,7 +26,7 @@ noinst_PROGRAMS += %D%/run
## Helper targets for running make from the top-level due to run's main.o.
%D%/%.o: %D%/%.c | %D%/libsim.a $(SIM_ALL_RECURSIVE_DEPS)
- $(MAKE) -C $(@D) $(@F)
+ $(MAKE) $(AM_MAKEFLAGS) -C $(@D) $(@F)
%C%docdir = $(docdir)/%C%
%C%doc_DATA = %D%/README.txt