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 08a6b58997d0747d03f86c9b57234d05f0459f1e..bfad881b7caaad822af0493df8f1b05fb6348d3e 100644 (file)
@@ -1,3 +1,11 @@
+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.
index bcf12d017ec2728e441d8667df72d923f244a569..3baa96f4a95b4ce02cd8d3e2fd04352131015cbc 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)