sim: ppc: use common version.o too
authorMike Frysinger <vapier@gentoo.org>
Mon, 14 Jun 2021 01:35:05 +0000 (21:35 -0400)
committerMike Frysinger <vapier@gentoo.org>
Mon, 14 Jun 2021 03:04:22 +0000 (23:04 -0400)
The common version.o we're building can be used for the ppc subdir,
so switch it over too.

sim/ppc/ChangeLog
sim/ppc/Makefile.in

index 2b1b2e8a31bb479409fec156238d6e43e6bbb8f0..e2232a59d21739c221232b67d6c7b2f74932b2d6 100644 (file)
@@ -1,3 +1,9 @@
+2021-06-13  Mike Frysinger  <vapier@gentoo.org>
+
+       * Makefile.in (COMMON_OBJS_NAMES, +COMMON_OBJS): New variables.
+       (LIB_OBJ): Replace version.o with $(COMMON_OBJS).
+       (version.c, version.o): Delete rules.
+
 2021-06-12  Mike Frysinger  <vapier@gentoo.org>
 
        * Makefile.in: Add $(EXEEXT) to run and psim.
index af9695d23f064d39c63037d347c7a6f4ee137692..0814a34fbc3d8d4ed8c4dcdec1ab30daffe8ac11 100644 (file)
@@ -493,6 +493,9 @@ MAIN_SRC = \
        gdb-sim.c \
        sim_calls.c
 
+COMMON_OBJS_NAMES = \
+       version.o
+COMMON_OBJS = $(COMMON_OBJS_NAMES:%=../common/common_libcommon_a-%)
 
 # NOTE: semantics, idecode and psim put last so smaller files are compiled
 #       first
@@ -527,7 +530,7 @@ LIB_OBJ = \
        support.o \
        @sim_fpu@ \
        psim.o \
-       version.o \
+       $(COMMON_OBJS) \
        $(PACKAGE_OBJ) \
        $(HW_OBJ) \
        options.o
@@ -554,12 +557,6 @@ $(TARGETLIB): tmp-igen tmp-dgen tmp-hw tmp-pk tmp-defines $(LIB_OBJ) $(GDB_OBJ)
        $(AR) $(AR_FLAGS) $(TARGETLIB) $(LIB_OBJ) $(GDB_OBJ)
        $(RANLIB) $(TARGETLIB)
 
-version.c: Makefile $(srcroot)/gdb/version.in $(srcroot)/bfd/version.h $(srcroot)/sim/common/create-version.sh
-       $(SHELL) $(srcroot)/sim/common/create-version.sh $(srcroot)/gdb $@.tmp
-       $(SHELL) $(srcroot)/move-if-change $@.tmp $@
-       touch $@
-version.o: version.c $(version_h)
-
 psim.o: psim.c $(CPU_H) $(IDECODE_H) $(OPTIONS_H) $(TREE_H) $(BFD_H)
 
 bits.o: bits.c $(BASICS_H)
This page took 0.026245 seconds and 4 git commands to generate.