This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[RFA 09/13] Define YYOBJ in terms of YYFILES
- From: Tom Tromey <tom at tromey dot com>
- To: gdb-patches at sourceware dot org
- Cc: Tom Tromey <tom at tromey dot com>
- Date: Tue, 21 Nov 2017 15:10:19 -0700
- Subject: [RFA 09/13] Define YYOBJ in terms of YYFILES
- Authentication-results: sourceware.org; auth=none
- References: <20171121221023.23992-1-tom@tromey.com>
Change YYOBJ to be defined in terms of YYFILES.
ChangeLog
2017-11-21 Tom Tromey <tom@tromey.com>
* 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.
--
2.13.6