This is the mail archive of the gdb-cvs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] gdbserver: Use pattern rule for objects from arch/


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=50cfacb78f3998e5ecc653090e4f1a11dfb3d8dd

commit 50cfacb78f3998e5ecc653090e4f1a11dfb3d8dd
Author: Simon Marchi <simon.marchi@polymtl.ca>
Date:   Mon Mar 13 18:44:03 2017 -0400

    gdbserver: Use pattern rule for objects from arch/
    
    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.

Diff:
---
 gdb/gdbserver/ChangeLog   |  8 ++++++++
 gdb/gdbserver/Makefile.in | 20 +++-----------------
 2 files changed, 11 insertions(+), 17 deletions(-)

diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index 08a6b58..bfad881 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -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.
diff --git a/gdb/gdbserver/Makefile.in b/gdb/gdbserver/Makefile.in
index bcf12d0..3baa96f 100644
--- a/gdb/gdbserver/Makefile.in
+++ b/gdb/gdbserver/Makefile.in
@@ -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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]