]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Define YYOBJ in terms of YYFILES
authorTom Tromey <tom@tromey.com>
Tue, 21 Nov 2017 20:44:11 +0000 (13:44 -0700)
committerTom Tromey <tom@tromey.com>
Mon, 27 Nov 2017 23:53:25 +0000 (16:53 -0700)
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.

gdb/ChangeLog
gdb/Makefile.in

index 412720c08208fb9714dd413e680c7dbaa5d45766..a3daef70a9e42634fadc73b03cfc4061bfbf9aa5 100644 (file)
@@ -1,3 +1,8 @@
+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.
index c1b2e655f04e6850bb68294b3b8ca0c1962e5220..bc3e2526d9b67c76cb4fe88d4bddd20c4315edc6 100644 (file)
@@ -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.