aboutsummaryrefslogtreecommitdiff
path: root/sim/ppc
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2023-01-02 14:38:01 -0500
committerMike Frysinger <vapier@gentoo.org>2023-01-14 20:51:53 -0500
commit4df74707043bf248f248cd52d9c70c29ec4e679c (patch)
treeaf63f67a338599fcbef7ae3417eced3816bffe6e /sim/ppc
parentee3134d0288c9d9d4f4a9fe325d4864a556edc63 (diff)
downloadgdb-4df74707043bf248f248cd52d9c70c29ec4e679c.zip
gdb-4df74707043bf248f248cd52d9c70c29ec4e679c.tar.gz
gdb-4df74707043bf248f248cd52d9c70c29ec4e679c.tar.bz2
sim: common: move libcommon.a dep to ppc code
Rather than force this to be built ahead of time for all targets, move the dep to the ppc code since it's the only user of it now.
Diffstat (limited to 'sim/ppc')
-rw-r--r--sim/ppc/local.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/sim/ppc/local.mk b/sim/ppc/local.mk
index d8a4cac..fca3b4f 100644
--- a/sim/ppc/local.mk
+++ b/sim/ppc/local.mk
@@ -24,6 +24,12 @@
%D%/psim$(EXEEXT): %D%/run$(EXEEXT)
$(AM_V_GEN)ln $< $@ 2>/dev/null || $(LN_S) $< $@ 2>/dev/null || cp -p $< $@
+## This makes sure common parts are available before building the arch-subdirs
+## which will refer to these.
+SIM_ALL_RECURSIVE_DEPS += common/libcommon.a
+%D%/libsim.a: common/libcommon.a
+ $(AM_V_at)$(MAKE) $(AM_MAKEFLAGS) -C $(@D) $(@F)
+
## 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) $(AM_MAKEFLAGS) -C $(@D) $(@F)