aboutsummaryrefslogtreecommitdiff
path: root/sim/m32r/local.mk
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2023-01-01 21:31:01 -0500
committerMike Frysinger <vapier@gentoo.org>2023-01-02 20:31:29 -0500
commitcf764309dc62076148eda5be342e27c22330157b (patch)
treeb78c6afd0f209237533d63b55370151574a597b4 /sim/m32r/local.mk
parent869585833a048849a36a59c096a5a2dfd70d3014 (diff)
downloadfsf-binutils-gdb-cf764309dc62076148eda5be342e27c22330157b.zip
fsf-binutils-gdb-cf764309dc62076148eda5be342e27c22330157b.tar.gz
fsf-binutils-gdb-cf764309dc62076148eda5be342e27c22330157b.tar.bz2
sim: m32r: hoist cgen rules to top-level
Diffstat (limited to 'sim/m32r/local.mk')
-rw-r--r--sim/m32r/local.mk19
1 files changed, 19 insertions, 0 deletions
diff --git a/sim/m32r/local.mk b/sim/m32r/local.mk
index 15585cd..a5e5d88 100644
--- a/sim/m32r/local.mk
+++ b/sim/m32r/local.mk
@@ -75,3 +75,22 @@ SIM_ALL_RECURSIVE_DEPS += $(%C%_BUILD_OUTPUTS)
$(AM_V_at)touch $@
MOSTLYCLEANFILES += $(%C%_BUILD_OUTPUTS)
+
+## Target that triggers all cgen targets that works when --disable-cgen-maint.
+%D%/cgen: %D%/cgen-arch %D%/cgen-cpu-decode %D%/cgen-cpu-decode-x %D%/cgen-cpu-decode-2
+
+%D%/cgen-arch:
+ $(AM_V_GEN)mach=all FLAGS="with-scache with-profile=fn"; $(CGEN_GEN_ARCH)
+%D%/arch.h %D%/arch.c %D%/cpuall.h: @CGEN_MAINT@ %D%/cgen-arch
+
+%D%/cgen-cpu-decode:
+ $(AM_V_GEN)cpu=m32rbf mach=m32r FLAGS="with-scache with-profile=fn" EXTRAFILES="$(CGEN_CPU_SEM) $(CGEN_CPU_SEMSW)"; $(CGEN_GEN_CPU_DECODE)
+%D%/cpu.h %D%/sem.c %D%/sem-switch.c %D%/model.c %D%/decode.c %D%/decode.h: @CGEN_MAINT@ %D%/cgen-cpu-decode
+
+%D%/cgen-cpu-decode-x:
+ $(AM_V_GEN)cpu=m32rxf mach=m32rx SUFFIX=x FLAGS="with-scache with-profile=fn" EXTRAFILES="$(CGEN_CPU_SEMSW)"; $(CGEN_GEN_CPU_DECODE)
+%D%/cpux.h %D%/semx-switch.c %D%/modelx.c %D%/decodex.c %D%/decodex.h: @CGEN_MAINT@ %D%/cgen-cpu-decode-x
+
+%D%/cgen-cpu-decode-2:
+ $(AM_V_GEN)cpu=m32r2f mach=m32r2 SUFFIX=2 FLAGS="with-scache with-profile=fn" EXTRAFILES="$(CGEN_CPU_SEMSW)"; $(CGEN_GEN_CPU_DECODE)
+%D%/cpu2.h %D%/sem2-switch.c %D%/model2.c %D%/decode2.c %D%/decode2.h: @CGEN_MAINT@ %D%/cgen-cpu-decode-2