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 IPA objects from common/


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

commit 36bc18a810a13f884d826842abbdd6d744ff6481
Author: Simon Marchi <simon.marchi@polymtl.ca>
Date:   Mon Mar 13 18:44:04 2017 -0400

    gdbserver: Use pattern rule for IPA objects from common/
    
    gdb/gdbserver/ChangeLog:
    
    	* Makefile.in (%-ipa.o: ../common/%.c): New rule.
    	(print-utils-ipa.o: ../common/print-utils.c): Remove.
    	(rsp-low-ipa.o: ../common/rsp-low.c): Remove.
    	(errors-ipa.o: ../common/errors.c): Remove.
    	(format-ipa.o: ../common/format.c): Remove.
    	(common-utils-ipa.o: ../common/common-utils.c): Remove.

Diff:
---
 gdb/gdbserver/ChangeLog   |  9 +++++++++
 gdb/gdbserver/Makefile.in | 20 +++++---------------
 2 files changed, 14 insertions(+), 15 deletions(-)

diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index d871dbf..9d56d0da 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,5 +1,14 @@
 2017-03-13  Simon Marchi  <simon.marchi@polymtl.ca>
 
+	* Makefile.in (%-ipa.o: ../common/%.c): New rule.
+	(print-utils-ipa.o: ../common/print-utils.c): Remove.
+	(rsp-low-ipa.o: ../common/rsp-low.c): Remove.
+	(errors-ipa.o: ../common/errors.c): Remove.
+	(format-ipa.o: ../common/format.c): Remove.
+	(common-utils-ipa.o: ../common/common-utils.c): Remove.
+
+2017-03-13  Simon Marchi  <simon.marchi@polymtl.ca>
+
 	* Makefile.in (%-ipa.o: %.c): New rule.
 	(tracepoint-ipa.o: tracepoint.c): Remove.
 	(utils-ipa.o: utils.c): Remove.
diff --git a/gdb/gdbserver/Makefile.in b/gdb/gdbserver/Makefile.in
index 2048611..87dbad1 100644
--- a/gdb/gdbserver/Makefile.in
+++ b/gdb/gdbserver/Makefile.in
@@ -544,12 +544,6 @@ IPAGENT_COMPILE = $(COMPILE.pre) $(IPAGENT_CFLAGS) $(COMPILE.post)
 ax-ipa.o: ax.c
 	$(IPAGENT_COMPILE) $(WARN_CFLAGS_NO_FORMAT) $<
 	$(POSTCOMPILE)
-format-ipa.o: ../common/format.c
-	$(IPAGENT_COMPILE) $<
-	$(POSTCOMPILE)
-common-utils-ipa.o: ../common/common-utils.c
-	$(IPAGENT_COMPILE) $<
-	$(POSTCOMPILE)
 linux-i386-ipa.o: linux-i386-ipa.c
 	$(IPAGENT_COMPILE) $<
 	$(POSTCOMPILE)
@@ -565,15 +559,7 @@ linux-s390-ipa.o: linux-s390-ipa.c
 linux-ppc-ipa.o: linux-ppc-ipa.c
 	$(IPAGENT_COMPILE) $<
 	$(POSTCOMPILE)
-print-utils-ipa.o: ../common/print-utils.c
-	$(IPAGENT_COMPILE) $<
-	$(POSTCOMPILE)
-rsp-low-ipa.o: ../common/rsp-low.c
-	$(IPAGENT_COMPILE) $<
-	$(POSTCOMPILE)
-errors-ipa.o: ../common/errors.c
-	$(IPAGENT_COMPILE) $<
-	$(POSTCOMPILE)
+
 
 ax.o: ax.c
 	$(COMPILE) $(WARN_CFLAGS_NO_FORMAT) $<
@@ -585,6 +571,10 @@ ax.o: ax.c
 	$(IPAGENT_COMPILE) $<
 	$(POSTCOMPILE)
 
+%-ipa.o: ../common/%.c
+	$(IPAGENT_COMPILE) $<
+	$(POSTCOMPILE)
+
 # Rules for objects that go in the gdbserver binary.
 
 %.o: %.c


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