summaryrefslogtreecommitdiff
path: root/sim/iq2000
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2023-01-01 21:20:36 -0500
committerMike Frysinger <vapier@gentoo.org>2023-01-02 20:30:20 -0500
commitd5dd8f5d164db2e833c85dab7a94006b9554ce80 (patch)
tree2187b96553e2df5864de22dff80a6d029c279c56 /sim/iq2000
parentcd313814aa7b2cba1c9b5c948ead1ddb205bc2c2 (diff)
downloadbinutils-gdb-d5dd8f5d164db2e833c85dab7a94006b9554ce80.tar.gz
sim: iq2000: hoist cgen rules to top-level
Diffstat (limited to 'sim/iq2000')
-rw-r--r--sim/iq2000/Makefile.in26
-rw-r--r--sim/iq2000/local.mk11
2 files changed, 11 insertions, 26 deletions
diff --git a/sim/iq2000/Makefile.in b/sim/iq2000/Makefile.in
index ca03dfa7825..c0fb6507ca6 100644
--- a/sim/iq2000/Makefile.in
+++ b/sim/iq2000/Makefile.in
@@ -26,32 +26,6 @@ SIM_OBJS = \
sim-if.o arch.o \
$(IQ2000_OBJS)
-SIM_EXTRA_CLEAN = iq2000-clean
-
## COMMON_POST_CONFIG_FRAG
arch = iq2000
-
-# IQ2000 objs
-
-iq2000-clean:
- rm -f tmp-*
- rm -f stamp-arch stamp-cpu
-
-stamp-arch: $(CGEN_READ_SCM) $(CGEN_ARCH_SCM) $(CPU_DIR)/iq2000.cpu Makefile
- $(MAKE) cgen-arch $(CGEN_FLAGS_TO_PASS) mach=iq2000 \
- archfile=$(CPU_DIR)/iq2000.cpu \
- FLAGS="with-scache with-profile=fn"
- $(SILENCE) touch $@
-arch.h arch.c cpuall.h: $(CGEN_MAINT) stamp-arch
- @true
-
-stamp-cpu: $(CGEN_READ_SCM) $(CGEN_CPU_SCM) $(CGEN_DECODE_SCM) $(CPU_DIR)/iq2000.cpu Makefile
- $(MAKE) cgen-cpu-decode $(CGEN_FLAGS_TO_PASS) \
- cpu=iq2000bf mach=iq2000 \
- archfile=$(CPU_DIR)/iq2000.cpu \
- FLAGS="with-scache with-profile=fn" \
- EXTRAFILES="$(CGEN_CPU_SEM) $(CGEN_CPU_SEMSW)"
- $(SILENCE) touch $@
-cpu.h sem.c sem-switch.c model.c decode.c decode.h: $(CGEN_MAINT) stamp-cpu
- @true
diff --git a/sim/iq2000/local.mk b/sim/iq2000/local.mk
index f2ebbb2a5ea..639a712c1f7 100644
--- a/sim/iq2000/local.mk
+++ b/sim/iq2000/local.mk
@@ -44,3 +44,14 @@ 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-arch:
+ $(AM_V_GEN)mach=iq2000 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=iq2000bf mach=iq2000 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