This is the mail archive of the gdb-patches@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]

[PATCH 5/8] 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.
---
 gdb/gdbserver/Makefile.in | 20 +++-----------------
 1 file changed, 3 insertions(+), 17 deletions(-)

diff --git a/gdb/gdbserver/Makefile.in b/gdb/gdbserver/Makefile.in
index bcf12d017e..3baa96f4a9 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)
 
-- 
2.12.0


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