From patchwork Tue Nov 21 22:10:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Tromey X-Patchwork-Id: 24424 Received: (qmail 41910 invoked by alias); 21 Nov 2017 22:10:45 -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 41840 invoked by uid 89); 21 Nov 2017 22:10:44 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-25.4 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KB_WAM_FROM_NAME_SINGLEWORD, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=c X-HELO: gateway33.websitewelcome.com Received: from gateway33.websitewelcome.com (HELO gateway33.websitewelcome.com) (192.185.146.80) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 21 Nov 2017 22:10:42 +0000 Received: from cm14.websitewelcome.com (cm14.websitewelcome.com [100.42.49.7]) by gateway33.websitewelcome.com (Postfix) with ESMTP id 8CF4514CBD25 for ; Tue, 21 Nov 2017 16:10:26 -0600 (CST) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id HGkMeq74GHEImHGkMesdgF; Tue, 21 Nov 2017 16:10:26 -0600 Received: from 71-218-90-63.hlrn.qwest.net ([71.218.90.63]:35604 helo=bapiya.Home) by box5379.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89) (envelope-from ) id 1eHGkM-0048Hi-Bi; Tue, 21 Nov 2017 16:10:26 -0600 From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [RFA 04/13] Move compile object files to compile subdirectory Date: Tue, 21 Nov 2017 15:10:14 -0700 Message-Id: <20171121221023.23992-5-tom@tromey.com> In-Reply-To: <20171121221023.23992-1-tom@tromey.com> References: <20171121221023.23992-1-tom@tromey.com> X-BWhitelist: no X-Source-L: No X-Exim-ID: 1eHGkM-0048Hi-Bi X-Source-Sender: 71-218-90-63.hlrn.qwest.net (bapiya.Home) [71.218.90.63]:35604 X-Source-Auth: tom+tromey.com X-Email-Count: 5 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes Move the object files corresponding to compile/*.c to the compile subdirectory in the build tree. ChangeLog 2017-11-21 Tom Tromey * Makefile.in (SUBDIR_GCC_COMPILE_OBS): Redefine. (%.o): Remove compile rule. (CONFIG_SRC_SUBDIR): Add compile. --- gdb/ChangeLog | 6 ++++++ gdb/Makefile.in | 17 +++-------------- 2 files changed, 9 insertions(+), 14 deletions(-) diff --git a/gdb/Makefile.in b/gdb/Makefile.in index aade0bd995..f8b8cfdd39 100644 --- a/gdb/Makefile.in +++ b/gdb/Makefile.in @@ -324,15 +324,6 @@ SUBDIR_TUI_CFLAGS = -DTUI=1 # # GCC Compile support sub-directory definitions # -SUBDIR_GCC_COMPILE_OBS = \ - compile.o \ - compile-c-support.o \ - compile-c-symbols.o \ - compile-c-types.o \ - compile-loc2c.o \ - compile-object-load.o \ - compile-object-run.o - SUBDIR_GCC_COMPILE_SRCS = \ compile/compile.c \ compile/compile-c-support.c \ @@ -344,6 +335,8 @@ SUBDIR_GCC_COMPILE_SRCS = \ compile/compile-object-run.c \ compile/compile-object-run.h +SUBDIR_GCC_COMPILE_OBS = $(patsubst %.c,%.o,$(filter %.c,$(SUBDIR_GCC_COMPILE_SRCS))) + # # Guile sub directory definitons for guile support. # @@ -617,7 +610,7 @@ CONFIG_INSTALL = @CONFIG_INSTALL@ CONFIG_UNINSTALL = @CONFIG_UNINSTALL@ HAVE_NATIVE_GCORE_TARGET = @HAVE_NATIVE_GCORE_TARGET@ -CONFIG_SRC_SUBDIR = arch cli mi +CONFIG_SRC_SUBDIR = arch cli mi compile CONFIG_DEP_SUBDIR = $(addsuffix /$(DEPDIR),$(CONFIG_SRC_SUBDIR)) # -I. for config files. @@ -1910,10 +1903,6 @@ $(CONFIG_DEP_SUBDIR): $(COMPILE) $< $(POSTCOMPILE) -%.o: $(srcdir)/compile/%.c - $(COMPILE) $< - $(POSTCOMPILE) - %.o: $(srcdir)/gdbtk/generic/%.c $(COMPILE) $(all_gdbtk_cflags) $< $(POSTCOMPILE)