comparison libinterp/parse-tree/module.mk @ 21023:ec532a439c6f

rework method of disabling warnings from GCC * configure.ac: Check for GCC's #pragma GCC diagnostic feature. * libinterp/module.mk, libinterp/corefcn/module.mk, libinterp/parse-tree/module.mk: Eliminate separate libraries for TeX and Octave parsers. * oct-tex-lexer.in.ll, oct-tex-parser.in.yy, lex.ll, oct-parse.in.yy: Use GCC #pragma GCC diagnostic feature to more selectively disable warnings in generated code. * libgui/module.mk (rcc-command): Use GCC #pragma GCC diagnostic feature to more selectively disable warnings in generated code.
author John W. Eaton <jwe@octave.org>
date Thu, 31 Dec 2015 17:06:36 -0500
parents 9b44691a3520
children ae03a16f3343
comparison
equal deleted inserted replaced
21022:ebc439187d29 21023:ec532a439c6f
1 PARSER_INC = \ 1 PARSE_TREE_INC = \
2 libinterp/parse-tree/lex.h \ 2 libinterp/parse-tree/lex.h \
3 libinterp/parse-tree/parse.h 3 libinterp/parse-tree/parse.h \
4
5 PARSER_SRC = \
6 libinterp/parse-tree/lex.ll \
7 libinterp/parse-tree/oct-parse.yy
8
9 PARSE_TREE_INC = \
10 libinterp/parse-tree/pt-all.h \ 4 libinterp/parse-tree/pt-all.h \
11 libinterp/parse-tree/pt-arg-list.h \ 5 libinterp/parse-tree/pt-arg-list.h \
12 libinterp/parse-tree/pt-array-list.h \ 6 libinterp/parse-tree/pt-array-list.h \
13 libinterp/parse-tree/pt-assign.h \ 7 libinterp/parse-tree/pt-assign.h \
14 libinterp/parse-tree/pt-binop.h \ 8 libinterp/parse-tree/pt-binop.h \
39 libinterp/parse-tree/pt-walk.h \ 33 libinterp/parse-tree/pt-walk.h \
40 libinterp/parse-tree/pt.h \ 34 libinterp/parse-tree/pt.h \
41 libinterp/parse-tree/token.h 35 libinterp/parse-tree/token.h
42 36
43 PARSE_TREE_SRC = \ 37 PARSE_TREE_SRC = \
38 libinterp/parse-tree/lex.ll \
39 libinterp/parse-tree/oct-parse.yy \
44 libinterp/parse-tree/pt-arg-list.cc \ 40 libinterp/parse-tree/pt-arg-list.cc \
45 libinterp/parse-tree/pt-array-list.cc \ 41 libinterp/parse-tree/pt-array-list.cc \
46 libinterp/parse-tree/pt-assign.cc \ 42 libinterp/parse-tree/pt-assign.cc \
47 libinterp/parse-tree/pt-binop.cc \ 43 libinterp/parse-tree/pt-binop.cc \
48 libinterp/parse-tree/pt-bp.cc \ 44 libinterp/parse-tree/pt-bp.cc \
89 85
90 libinterp/parse-tree/oct-parse.yy: libinterp/parse-tree/oct-parse.in.yy 86 libinterp/parse-tree/oct-parse.yy: libinterp/parse-tree/oct-parse.in.yy
91 $(AM_V_GEN)$(call subst-bison-api-decls,octave_) 87 $(AM_V_GEN)$(call subst-bison-api-decls,octave_)
92 88
93 noinst_LTLIBRARIES += \ 89 noinst_LTLIBRARIES += \
94 libinterp/parse-tree/libparse-tree.la \ 90 libinterp/parse-tree/libparse-tree.la
95 libinterp/parse-tree/libparser.la
96 91
97 libinterp_parse_tree_libparse_tree_la_SOURCES = $(PARSE_TREE_SRC) 92 libinterp_parse_tree_libparse_tree_la_SOURCES = $(PARSE_TREE_SRC)
98 93
99 libinterp_parse_tree_libparse_tree_la_CPPFLAGS = $(libinterp_liboctinterp_la_CPPFLAGS) 94 libinterp_parse_tree_libparse_tree_la_CPPFLAGS = $(libinterp_liboctinterp_la_CPPFLAGS)
100 95
101 libinterp_parse_tree_libparse_tree_la_CFLAGS = $(AM_CFLAGS) \ 96 libinterp_parse_tree_libparse_tree_la_CFLAGS = $(AM_CFLAGS) $(WARN_CFLAGS)
102 $(WARN_CFLAGS)
103 97
104 libinterp_parse_tree_libparse_tree_la_CXXFLAGS = $(AM_CXXFLAGS) $(WARN_CXXFLAGS) 98 libinterp_parse_tree_libparse_tree_la_CXXFLAGS = $(AM_CXXFLAGS) $(WARN_CXXFLAGS)
105
106 libinterp_parse_tree_libparser_la_SOURCES = $(PARSER_SRC)
107
108 libinterp_parse_tree_libparser_la_CPPFLAGS = $(libinterp_liboctinterp_la_CPPFLAGS)
109
110 libinterp_parse_tree_libparser_la_CXXFLAGS = \
111 $(filter-out -Wold-style-cast, $(AM_CXXFLAGS))
112 99
113 libinterp_EXTRA_DIST += \ 100 libinterp_EXTRA_DIST += \
114 libinterp/parse-tree/oct-parse.in.yy \ 101 libinterp/parse-tree/oct-parse.in.yy \
115 libinterp/parse-tree/octave.gperf 102 libinterp/parse-tree/octave.gperf
116 103