This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 5/8] gdbserver: Use pattern rule for objects from arch/
- From: Simon Marchi <simon dot marchi at polymtl dot ca>
- To: gdb-patches at sourceware dot org
- Cc: Simon Marchi <simon dot marchi at polymtl dot ca>
- Date: Fri, 10 Mar 2017 16:23:20 -0500
- Subject: [PATCH 5/8] gdbserver: Use pattern rule for objects from arch/
- Authentication-results: sourceware.org; auth=none
- References: <20170310212323.15369-1-simon.marchi@polymtl.ca>
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