From patchwork Fri Mar 10 21:23:18 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Marchi X-Patchwork-Id: 19525 Received: (qmail 117905 invoked by alias); 10 Mar 2017 21:23:34 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 117794 invoked by uid 89); 10 Mar 2017 21:23:34 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-23.5 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_SOFTFAIL autolearn=ham version=3.3.2 spammy= X-HELO: barracuda.ebox.ca Received: from barracuda.ebox.ca (HELO barracuda.ebox.ca) (96.127.255.19) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 10 Mar 2017 21:23:32 +0000 X-ASG-Debug-ID: 1489181010-0c856e65d41829960001-fS2M51 Received: from smtp.electronicbox.net (smtp.electronicbox.net [96.127.255.82]) by barracuda.ebox.ca with ESMTP id DAhsSDVwA66lozCJ (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 10 Mar 2017 16:23:30 -0500 (EST) X-Barracuda-Envelope-From: simon.marchi@polymtl.ca X-Barracuda-RBL-Trusted-Forwarder: 96.127.255.82 Received: from simark.lan (unknown [173.246.11.162]) by smtp.electronicbox.net (Postfix) with ESMTP id D6CE2440E7E; Fri, 10 Mar 2017 16:23:30 -0500 (EST) From: Simon Marchi X-Barracuda-Effective-Source-IP: cable-11.246.173-162.electronicbox.net[173.246.11.162] X-Barracuda-Apparent-Source-IP: 173.246.11.162 X-Barracuda-RBL-IP: 173.246.11.162 To: gdb-patches@sourceware.org Cc: Simon Marchi Subject: [PATCH 3/8] gdbserver: Use pattern rule for objects from common/ Date: Fri, 10 Mar 2017 16:23:18 -0500 X-ASG-Orig-Subj: [PATCH 3/8] gdbserver: Use pattern rule for objects from common/ Message-Id: <20170310212323.15369-4-simon.marchi@polymtl.ca> In-Reply-To: <20170310212323.15369-1-simon.marchi@polymtl.ca> References: <20170310212323.15369-1-simon.marchi@polymtl.ca> X-Barracuda-Connect: smtp.electronicbox.net[96.127.255.82] X-Barracuda-Start-Time: 1489181010 X-Barracuda-Encrypted: DHE-RSA-AES256-SHA X-Barracuda-URL: https://96.127.255.19:443/cgi-mod/mark.cgi X-Barracuda-Scan-Msg-Size: 3946 X-Barracuda-BRTS-Status: 1 X-Barracuda-Spam-Score: 0.00 X-Barracuda-Spam-Status: No, SCORE=0.00 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=8.0 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.37135 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-IsSubscribed: yes gdb/gdbserver/ChangeLog: * Makefile.in (%.o: ../common/%.c): New rule. (signals.o: ../common/signals.c): Remove. (print-utils.o: ../common/print-utils.c): Remove. (rsp-low.o: ../common/rsp-low.c): Remove. (common-utils.o: ../common/common-utils.c): Remove. (posix-strerror.o: ../common/posix-strerror.c): Remove. (mingw-strerror.o: ../common/mingw-strerror.c): Remove. (vec.o: ../common/vec.c): Remove. (gdb_vecs.o: ../common/gdb_vecs.c): Remove. (xml-utils.o: ../common/xml-utils.c): Remove. (ptid.o: ../common/ptid.c): Remove. (buffer.o: ../common/buffer.c): Remove. (format.o: ../common/format.c): Remove. (filestuff.o: ../common/filestuff.c): Remove. (agent.o: ../common/agent.c): Remove. (errors.o: ../common/errors.c): Remove. (environ.o: ../common/environ.c): Remove. (common-debug.o: ../common/common-debug.c): Remove. (cleanups.o: ../common/cleanups.c): Remove. (common-exceptions.o: ../common/common-exceptions.c): Remove. (fileio.o: ../common/fileio.c): Remove. (common-regcache.o: ../common/common-regcache.c): Remove. (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove. (new-op.o: ../common/new-op.c): Remove. (btrace-common.o: ../common/btrace-common.c): Remove. --- gdb/gdbserver/Makefile.in | 77 +++-------------------------------------------- 1 file changed, 4 insertions(+), 73 deletions(-) diff --git a/gdb/gdbserver/Makefile.in b/gdb/gdbserver/Makefile.in index f814366a01..2129f2a4d3 100644 --- a/gdb/gdbserver/Makefile.in +++ b/gdb/gdbserver/Makefile.in @@ -735,76 +735,6 @@ ax.o: ax.c $(COMPILE) $(WARN_CFLAGS_NO_FORMAT) $< $(POSTCOMPILE) -signals.o: ../common/signals.c - $(COMPILE) $< - $(POSTCOMPILE) -print-utils.o: ../common/print-utils.c - $(COMPILE) $< - $(POSTCOMPILE) -rsp-low.o: ../common/rsp-low.c - $(COMPILE) $< - $(POSTCOMPILE) -common-utils.o: ../common/common-utils.c - $(COMPILE) $< - $(POSTCOMPILE) -posix-strerror.o: ../common/posix-strerror.c - $(COMPILE) $< - $(POSTCOMPILE) -mingw-strerror.o: ../common/mingw-strerror.c - $(COMPILE) $< - $(POSTCOMPILE) -vec.o: ../common/vec.c - $(COMPILE) $< - $(POSTCOMPILE) -gdb_vecs.o: ../common/gdb_vecs.c - $(COMPILE) $< - $(POSTCOMPILE) -xml-utils.o: ../common/xml-utils.c - $(COMPILE) $< - $(POSTCOMPILE) -ptid.o: ../common/ptid.c - $(COMPILE) $< - $(POSTCOMPILE) -buffer.o: ../common/buffer.c - $(COMPILE) $< - $(POSTCOMPILE) -format.o: ../common/format.c - $(COMPILE) $< - $(POSTCOMPILE) -filestuff.o: ../common/filestuff.c - $(COMPILE) $< - $(POSTCOMPILE) -agent.o: ../common/agent.c - $(COMPILE) $< - $(POSTCOMPILE) -errors.o: ../common/errors.c - $(COMPILE) $< - $(POSTCOMPILE) -environ.o: ../common/environ.c - $(COMPILE) $< - $(POSTCOMPILE) -common-debug.o: ../common/common-debug.c - $(COMPILE) $< - $(POSTCOMPILE) -cleanups.o: ../common/cleanups.c - $(COMPILE) $< - $(POSTCOMPILE) -common-exceptions.o: ../common/common-exceptions.c - $(COMPILE) $< - $(POSTCOMPILE) -fileio.o: ../common/fileio.c - $(COMPILE) $< - $(POSTCOMPILE) -common-regcache.o: ../common/common-regcache.c - $(COMPILE) $< - $(POSTCOMPILE) -signals-state-save-restore.o: ../common/signals-state-save-restore.c - $(COMPILE) $< - $(POSTCOMPILE) -new-op.o: ../common/new-op.c - $(COMPILE) $< - $(POSTCOMPILE) - # Arch object files rules form ../arch arm.o: ../arch/arm.c @@ -855,9 +785,6 @@ aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c aarch64-linux.o: ../nat/aarch64-linux.c $(COMPILE) $< $(POSTCOMPILE) -btrace-common.o: ../common/btrace-common.c - $(COMPILE) $< - $(POSTCOMPILE) x86-linux.o: ../nat/x86-linux.c $(COMPILE) $< $(POSTCOMPILE) @@ -880,6 +807,10 @@ aarch64-insn.o: ../arch/aarch64-insn.c $(COMPILE) $< $(POSTCOMPILE) +%.o: ../common/%.c + $(COMPILE) $< + $(POSTCOMPILE) + %.o: ../target/%.c $(COMPILE) $< $(POSTCOMPILE)