From patchwork Fri Mar 10 21:23:17 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Marchi X-Patchwork-Id: 19524 Received: (qmail 117873 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 117773 invoked by uid 89); 10 Mar 2017 21:23:33 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-23.4 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-0c856e65d5182a3a0001-fS2M51 Received: from smtp.electronicbox.net (smtp.electronicbox.net [96.127.255.82]) by barracuda.ebox.ca with ESMTP id eSjfF870qaWBcoU5 (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 BBEFE440E7D; 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 2/8] gdbserver: Use pattern rule for objects from target/ Date: Fri, 10 Mar 2017 16:23:17 -0500 X-ASG-Orig-Subj: [PATCH 2/8] gdbserver: Use pattern rule for objects from target/ Message-Id: <20170310212323.15369-3-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: 1385 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: ../target/%.c): New rule. (waitstatus.o: ../target/waitstatus.c): Remove. --- gdb/gdbserver/Makefile.in | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/gdb/gdbserver/Makefile.in b/gdb/gdbserver/Makefile.in index 85138e09c5..f814366a01 100644 --- a/gdb/gdbserver/Makefile.in +++ b/gdb/gdbserver/Makefile.in @@ -328,10 +328,6 @@ FLAGS_TO_PASS = \ # All generated files which can be included by another file. generated_files = config.h $(GNULIB_H) -%.o: %.c - $(COMPILE) $< - $(POSTCOMPILE) - all: gdbserver$(EXEEXT) gdbreplay$(EXEEXT) $(extra_libraries) @$(MAKE) $(FLAGS_TO_PASS) DO=$@ "DODIRS=$(SUBDIRS)" subdir_do @@ -796,9 +792,6 @@ cleanups.o: ../common/cleanups.c common-exceptions.o: ../common/common-exceptions.c $(COMPILE) $< $(POSTCOMPILE) -waitstatus.o: ../target/waitstatus.c - $(COMPILE) $< - $(POSTCOMPILE) fileio.o: ../common/fileio.c $(COMPILE) $< $(POSTCOMPILE) @@ -881,6 +874,16 @@ aarch64-insn.o: ../arch/aarch64-insn.c $(COMPILE) $< $(POSTCOMPILE) +# Rules for objects that go in the gdbserver binary. + +%.o: %.c + $(COMPILE) $< + $(POSTCOMPILE) + +%.o: ../target/%.c + $(COMPILE) $< + $(POSTCOMPILE) + # Rules for register format descriptions. %.c: ../regformats/%.dat | $(regdat_sh)