gdbserver: Use pattern rule for objects from arch/
authorSimon Marchi <simon.marchi@polymtl.ca>
Mon, 13 Mar 2017 22:44:03 +0000 (18:44 -0400)
committerSimon Marchi <simon.marchi@ericsson.com>
Mon, 13 Mar 2017 22:44:03 +0000 (18:44 -0400)
gdb/gdbserver/ChangeLog:

* Makefile.in (%.o: ../arch/%.c): New rule.
(arm.o: ../arch/arm.c): Remove.
(arm-linux.o: ../arch/arm-linux.c): Remove.
(arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
(aarch64-insn.o: ../arch/aarch64-insn.c): Remove.

gdb/gdbserver/ChangeLog
gdb/gdbserver/Makefile.in

index 08a6b58..bfad881 100644 (file)
@@ -1,5 +1,13 @@
 2017-03-13  Simon Marchi  <simon.marchi@polymtl.ca>
 
+       * Makefile.in (%.o: ../arch/%.c): New rule.
+       (arm.o: ../arch/arm.c): Remove.
+       (arm-linux.o: ../arch/arm-linux.c): Remove.
+       (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
+       (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
+
+2017-03-13  Simon Marchi  <simon.marchi@polymtl.ca>
+
        * Makefile.in (%.o: ../nat/%.c): New rule.
        (x86-dregs.o: ../nat/x86-dregs.c): Remove.
        (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
index bcf12d0..3baa96f 100644 (file)
@@ -735,27 +735,13 @@ ax.o: ax.c
        $(COMPILE) $(WARN_CFLAGS_NO_FORMAT) $<
        $(POSTCOMPILE)
 
-# Arch object files rules form ../arch
-
-arm.o: ../arch/arm.c
-       $(COMPILE) $<
-       $(POSTCOMPILE)
-arm-linux.o: ../arch/arm-linux.c
-       $(COMPILE) $<
-       $(POSTCOMPILE)
-arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c
-       $(COMPILE) $<
-       $(POSTCOMPILE)
-
-# Architecture specific object files rules from ../arch
+# Rules for objects that go in the gdbserver binary.
 
-aarch64-insn.o: ../arch/aarch64-insn.c
+%.o: %.c
        $(COMPILE) $<
        $(POSTCOMPILE)
 
-# Rules for objects that go in the gdbserver binary.
-
-%.o: %.c
+%.o: ../arch/%.c
        $(COMPILE) $<
        $(POSTCOMPILE)