This is the mail archive of the gdb-cvs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] Define YYOBJ in terms of YYFILES


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=afa0a4115985939f242bcd54211c98345eefe16b

commit afa0a4115985939f242bcd54211c98345eefe16b
Author: Tom Tromey <tom@tromey.com>
Date:   Tue Nov 21 13:44:11 2017 -0700

    Define YYOBJ in terms of YYFILES
    
    Change YYOBJ to be defined in terms of YYFILES.
    
    ChangeLog
    2017-11-27  Tom Tromey  <tom@tromey.com>
    
    	* Makefile.in (YYFILES): Update comment.
    	(YYOBJ): Redefine.

Diff:
---
 gdb/ChangeLog   |  5 +++++
 gdb/Makefile.in | 15 ++++-----------
 2 files changed, 9 insertions(+), 11 deletions(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 412720c..a3daef7 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
 2017-11-27  Tom Tromey  <tom@tromey.com>
 
+	* Makefile.in (YYFILES): Update comment.
+	(YYOBJ): Redefine.
+
+2017-11-27  Tom Tromey  <tom@tromey.com>
+
 	* Makefile.in (SUBDIR_PYTHON_OBS): Redefine.
 	(CONFIG_SRC_SUBDIR): Add python.
 	(%.o): Remove python rule.
diff --git a/gdb/Makefile.in b/gdb/Makefile.in
index c1b2e65..bc3e252 100644
--- a/gdb/Makefile.in
+++ b/gdb/Makefile.in
@@ -1753,7 +1753,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 \
@@ -1766,16 +1766,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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]