From 36bc18a810a13f884d826842abbdd6d744ff6481 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Mon, 13 Mar 2017 18:44:04 -0400 Subject: [PATCH] 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. --- 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..9d56d0d 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,5 +1,14 @@ 2017-03-13 Simon Marchi + * 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 + * 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 -- 2.7.4