sim: introduce {COMPILE,LINK}_FOR_BUILD
authorMike Frysinger <vapier@gentoo.org>
Mon, 8 Mar 2021 06:41:35 +0000 (01:41 -0500)
committerMike Frysinger <vapier@gentoo.org>
Sat, 13 Mar 2021 16:15:46 +0000 (11:15 -0500)
commitc6c7769d9dd166c45bd9d422e91ca537752c0382
tree487321af5a03f0644e8d22048484d642b54a5bf8
parent367c5eb75095f4b9bc4c1b310a092bcac45da137
sim: introduce {COMPILE,LINK}_FOR_BUILD

These use the same pattern as seen in the opcodes/ dir and in automake
in general (ish).  This helps simplify the boilerplate for building and
linking build-time code, and fixes some inconsistency in flag usage.

For rules that were compiling+linking in a single step, split them into
separate steps so we can apply the correct set of options.  This matches
automake behavior too.
16 files changed:
sim/common/ChangeLog
sim/common/Make-common.in
sim/cr16/ChangeLog
sim/cr16/Makefile.in
sim/d10v/ChangeLog
sim/d10v/Makefile.in
sim/igen/ChangeLog
sim/igen/Makefile.in
sim/m32c/ChangeLog
sim/m32c/Makefile.in
sim/m68hc11/ChangeLog
sim/m68hc11/Makefile.in
sim/ppc/ChangeLog
sim/ppc/Makefile.in
sim/sh/ChangeLog
sim/sh/Makefile.in