aboutsummaryrefslogtreecommitdiff
path: root/sim/ppc/local.mk
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2024-01-02 08:28:34 -0500
committerMike Frysinger <vapier@gentoo.org>2024-01-03 01:21:48 -0500
commite0e9cd645f3e421a39e67b0cc32d5f7551318b9e (patch)
tree908a6b89a98a63439826ef3ee988c6e2989cb705 /sim/ppc/local.mk
parent4b2b14460026fb5d7718d8cd936583fef2865c2a (diff)
downloadgdb-e0e9cd645f3e421a39e67b0cc32d5f7551318b9e.zip
gdb-e0e9cd645f3e421a39e67b0cc32d5f7551318b9e.tar.gz
gdb-e0e9cd645f3e421a39e67b0cc32d5f7551318b9e.tar.bz2
sim: ppc: move main.o compilation to top-level
Diffstat (limited to 'sim/ppc/local.mk')
-rw-r--r--sim/ppc/local.mk19
1 files changed, 13 insertions, 6 deletions
diff --git a/sim/ppc/local.mk b/sim/ppc/local.mk
index 155d83a..3c36b60 100644
--- a/sim/ppc/local.mk
+++ b/sim/ppc/local.mk
@@ -15,9 +15,20 @@
## You should have received a copy of the GNU General Public License
## along with this program. If not, see <http://www.gnu.org/licenses/>.
-%C%_run_SOURCES =
+AM_CPPFLAGS_%C% = \
+ -DHAVE_COMMON_FPU \
+ $(sim_ppc_smp) \
+ $(sim_ppc_xor_endian) \
+ $(sim_ppc_bitsize) \
+ $(sim_ppc_timebase) \
+ $(sim_ppc_float) \
+ $(sim_ppc_monitor) \
+ $(sim_ppc_model) $(sim_ppc_default_model) $(sim_ppc_model_issue) \
+ $(sim_ppc_switch)
+
+%C%_run_SOURCES = \
+ %D%/main.c
%C%_run_LDADD = \
- %D%/main.o \
%D%/libsim.a \
$(SIM_COMMON_LIBS)
@@ -27,10 +38,6 @@ 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%/main.o: %D%/%.o: %D%/%.c | %D%/libsim.a $(SIM_ALL_RECURSIVE_DEPS)
- $(MAKE) $(AM_MAKEFLAGS) -C $(@D) $(@F)
-
noinst_PROGRAMS += %D%/run
SIM_ALL_RECURSIVE_DEPS += %D%/defines.h