From patchwork Tue Nov 21 22:10:19 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Tromey X-Patchwork-Id: 24420 Received: (qmail 40244 invoked by alias); 21 Nov 2017 22:10:32 -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 40197 invoked by uid 89); 21 Nov 2017 22:10:31 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-25.3 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=Hx-languages-length:1165, o X-HELO: gateway22.websitewelcome.com Received: from gateway22.websitewelcome.com (HELO gateway22.websitewelcome.com) (192.185.46.187) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 21 Nov 2017 22:10:30 +0000 Received: from cm12.websitewelcome.com (cm12.websitewelcome.com [100.42.49.8]) by gateway22.websitewelcome.com (Postfix) with ESMTP id 286B9CE0C for ; Tue, 21 Nov 2017 16:10:28 -0600 (CST) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id HGkOeetxfDL8rHGkOeQrkh; Tue, 21 Nov 2017 16:10:28 -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 1eHGkN-0048Hi-VN; Tue, 21 Nov 2017 16:10:28 -0600 From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [RFA 09/13] Define YYOBJ in terms of YYFILES Date: Tue, 21 Nov 2017 15:10:19 -0700 Message-Id: <20171121221023.23992-10-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: 1eHGkN-0048Hi-VN 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: 10 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes Change YYOBJ to be defined in terms of YYFILES. ChangeLog 2017-11-21 Tom Tromey * Makefile.in (YYFILES): Update comment. (YYOBJ): Redefine. --- gdb/ChangeLog | 5 +++++ gdb/Makefile.in | 15 ++++----------- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/gdb/Makefile.in b/gdb/Makefile.in index 93d819e11d..16236f4ad4 100644 --- a/gdb/Makefile.in +++ b/gdb/Makefile.in @@ -1747,7 +1747,7 @@ CLEANDIRS = $(SUBDIRS) # The format here is for the `case' shell command. REQUIRED_SUBDIRS = doc | testsuite | $(GNULIB_BUILDDIR) | data-directory -# For now, shortcut the "configure GDB for fewer languages" stuff. +# Parser intermediate files. YYFILES = \ ada-exp.c \ ada-lex.c \ @@ -1760,16 +1760,9 @@ YYFILES = \ p-exp.c \ rust-exp.c -YYOBJ = \ - ada-exp.o \ - c-exp.o \ - cp-name-parser.o \ - d-exp.o \ - f-exp.o \ - go-exp.o \ - m2-exp.o \ - p-exp.o \ - rust-exp.o +# ada-lex.c is included by another file, so it shouldn't wind up as a +# .o itself. +YYOBJ = $(filter-out ada-lex.o,$(patsubst %.c,%.o,$(YYFILES))) # Things which need to be built when making a distribution.