From patchwork Fri Mar 10 21:23:20 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Marchi X-Patchwork-Id: 19527 Received: (qmail 118483 invoked by alias); 10 Mar 2017 21:23:39 -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 118113 invoked by uid 89); 10 Mar 2017 21:23:36 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-23.6 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=Hx-languages-length:1243 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:35 +0000 X-ASG-Debug-ID: 1489181011-0c856e65d41829970001-fS2M51 Received: from smtp.electronicbox.net (smtp.electronicbox.net [96.127.255.82]) by barracuda.ebox.ca with ESMTP id nC4u7mxSwwFn2hi4 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 10 Mar 2017 16:23:31 -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 05CCA440E7C; Fri, 10 Mar 2017 16:23:31 -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 5/8] gdbserver: Use pattern rule for objects from arch/ Date: Fri, 10 Mar 2017 16:23:20 -0500 X-ASG-Orig-Subj: [PATCH 5/8] gdbserver: Use pattern rule for objects from arch/ Message-Id: <20170310212323.15369-6-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: 1489181011 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: 1252 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: ../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)