aboutsummaryrefslogtreecommitdiff
path: root/sim/ppc/local.mk
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2024-01-02 09:58:07 -0500
committerMike Frysinger <vapier@gentoo.org>2024-01-03 01:21:48 -0500
commit2c3bcf2537c2eddbdfc5d9f8e5e285b310c9fe7f (patch)
treef0355d21c57bac3f91a8aa4dd80e36ffc712b6f1 /sim/ppc/local.mk
parent10e1edb7373416dfd76906f230c9411317162fb8 (diff)
downloadbinutils-2c3bcf2537c2eddbdfc5d9f8e5e285b310c9fe7f.zip
binutils-2c3bcf2537c2eddbdfc5d9f8e5e285b310c9fe7f.tar.gz
binutils-2c3bcf2537c2eddbdfc5d9f8e5e285b310c9fe7f.tar.bz2
sim: ppc: hoist compilation up to top-level
This removes all recursive makes from the ppc port.
Diffstat (limited to 'sim/ppc/local.mk')
-rw-r--r--sim/ppc/local.mk7
1 files changed, 2 insertions, 5 deletions
diff --git a/sim/ppc/local.mk b/sim/ppc/local.mk
index 90f9489..01cc125 100644
--- a/sim/ppc/local.mk
+++ b/sim/ppc/local.mk
@@ -25,6 +25,7 @@ AM_CPPFLAGS_%C% = \
$(sim_ppc_monitor) \
$(sim_ppc_model) $(sim_ppc_default_model) $(sim_ppc_model_issue) \
$(sim_ppc_switch)
+AM_CPPFLAGS_%C%_options.o = '-DOPCODE_RULES="$(IGEN_OPCODE_RULES)"' '-DIGEN_FLAGS="$(ppc_IGEN_FLAGS)"'
%C%_libsim_a_SOURCES = \
$(common_libcommon_a_SOURCES)
@@ -79,11 +80,6 @@ noinst_LIBRARIES += %D%/libsim.a
%D%/libsim.a \
$(SIM_COMMON_LIBS)
-## This makes sure common parts are available before building the arch-subdirs
-## which will refer to these.
-%D%/%.o: %D%/%.c | common/libcommon.a %D%/defines.h %D%/stamp-igen %D%/hw.c %D%/hw.h
- $(AM_V_at)$(MAKE) $(AM_MAKEFLAGS) -C $(@D) $(@F)
-
noinst_PROGRAMS += %D%/run
%D%/defines.h: %D%/stamp-defines ; @true
@@ -92,6 +88,7 @@ noinst_PROGRAMS += %D%/run
$(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/defines.hin %D%/defines.h
$(AM_V_at)touch $@
+BUILT_SOURCES += %D%/defines.h
MOSTLYCLEANFILES += %D%/defines.h %D%/stamp-defines
%D%/spreg.c: @MAINT@ %D%/ppc-spr-table %D%/spreg-gen.py %D%/$(am__dirstamp)