annotate libinterp/parse-tree/module.mk @ 19879:2350fc8ba960

build: Fix build failure on missing oct-parse.h (bug #44391) * libinterp/Makefile.am (GENERATED_MAKE_BUILTINS_INCS): Include parse-tree/oct-parse.h in the list. * libinterp/parse-tree/module.mk (parse-tree/oct-parse.h): Depend on parse-tree/oct-parse.cc.
author Mike Miller <mtmiller@ieee.org>
date Sat, 28 Feb 2015 19:07:48 -0500
parents 4f6ae6b94abe
children 0ce7d8303152
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
15057
46b19589b593 maint: Partition src/ directory with more code in subdirs.
Rik <rik@octave.org>
parents:
diff changeset
1 EXTRA_DIST += \
15096
909a2797935b maint: Move interp source code without DEFUNs to interp-core/ dir.
Rik <rik@octave.org>
parents: 15087
diff changeset
2 parse-tree/module.mk \
17378
813523c2b581 build: Use convenience library to build tex-parser so "old-style cast" warning can be disabled.
Rik <rik@octave.org>
parents: 16321
diff changeset
3 parse-tree/oct-parse.in.yy \
15096
909a2797935b maint: Move interp source code without DEFUNs to interp-core/ dir.
Rik <rik@octave.org>
parents: 15087
diff changeset
4 parse-tree/octave.gperf
15057
46b19589b593 maint: Partition src/ directory with more code in subdirs.
Rik <rik@octave.org>
parents:
diff changeset
5
15281
03ef3a183129 build: Use INC rather than INCLUDES for consistent naming in libinterp Makefile.am.
Rik <rik@octave.org>
parents: 15258
diff changeset
6 PARSER_INC = \
15085
28f5f4a4a80a maint: Move parser code and rules to parse-tree/ directory
Rik <rik@octave.org>
parents: 15057
diff changeset
7 parse-tree/lex.h \
16321
7612d75a559b distribute parser header files omitted in changeset faaf60aa457c
John W. Eaton <jwe@octave.org>
parents: 16298
diff changeset
8 parse-tree/parse.h
15085
28f5f4a4a80a maint: Move parser code and rules to parse-tree/ directory
Rik <rik@octave.org>
parents: 15057
diff changeset
9
28f5f4a4a80a maint: Move parser code and rules to parse-tree/ directory
Rik <rik@octave.org>
parents: 15057
diff changeset
10 PARSER_SRC = \
28f5f4a4a80a maint: Move parser code and rules to parse-tree/ directory
Rik <rik@octave.org>
parents: 15057
diff changeset
11 parse-tree/lex.ll \
28f5f4a4a80a maint: Move parser code and rules to parse-tree/ directory
Rik <rik@octave.org>
parents: 15057
diff changeset
12 parse-tree/oct-parse.yy
28f5f4a4a80a maint: Move parser code and rules to parse-tree/ directory
Rik <rik@octave.org>
parents: 15057
diff changeset
13
15281
03ef3a183129 build: Use INC rather than INCLUDES for consistent naming in libinterp Makefile.am.
Rik <rik@octave.org>
parents: 15258
diff changeset
14 PARSE_TREE_INC = \
15057
46b19589b593 maint: Partition src/ directory with more code in subdirs.
Rik <rik@octave.org>
parents:
diff changeset
15 parse-tree/pt-all.h \
46b19589b593 maint: Partition src/ directory with more code in subdirs.
Rik <rik@octave.org>
parents:
diff changeset
16 parse-tree/pt-arg-list.h \
16237
70f465930546 rearrange class heirarchy for tree_cell and tree_matrix
John W. Eaton <jwe@octave.org>
parents: 16174
diff changeset
17 parse-tree/pt-array-list.h \
15057
46b19589b593 maint: Partition src/ directory with more code in subdirs.
Rik <rik@octave.org>
parents:
diff changeset
18 parse-tree/pt-assign.h \
46b19589b593 maint: Partition src/ directory with more code in subdirs.
Rik <rik@octave.org>
parents:
diff changeset
19 parse-tree/pt-binop.h \
46b19589b593 maint: Partition src/ directory with more code in subdirs.
Rik <rik@octave.org>
parents:
diff changeset
20 parse-tree/pt-bp.h \
46b19589b593 maint: Partition src/ directory with more code in subdirs.
Rik <rik@octave.org>
parents:
diff changeset
21 parse-tree/pt-cbinop.h \
46b19589b593 maint: Partition src/ directory with more code in subdirs.
Rik <rik@octave.org>
parents:
diff changeset
22 parse-tree/pt-cell.h \
46b19589b593 maint: Partition src/ directory with more code in subdirs.
Rik <rik@octave.org>
parents:
diff changeset
23 parse-tree/pt-check.h \
15062
069c552587a0 merge source reorganization changes on default to classdef
John W. Eaton <jwe@octave.org>
parents: 15057
diff changeset
24 parse-tree/pt-classdef.h \
15057
46b19589b593 maint: Partition src/ directory with more code in subdirs.
Rik <rik@octave.org>
parents:
diff changeset
25 parse-tree/pt-cmd.h \
46b19589b593 maint: Partition src/ directory with more code in subdirs.
Rik <rik@octave.org>
parents:
diff changeset
26 parse-tree/pt-colon.h \
46b19589b593 maint: Partition src/ directory with more code in subdirs.
Rik <rik@octave.org>
parents:
diff changeset
27 parse-tree/pt-const.h \
46b19589b593 maint: Partition src/ directory with more code in subdirs.
Rik <rik@octave.org>
parents:
diff changeset
28 parse-tree/pt-decl.h \
46b19589b593 maint: Partition src/ directory with more code in subdirs.
Rik <rik@octave.org>
parents:
diff changeset
29 parse-tree/pt-eval.h \
46b19589b593 maint: Partition src/ directory with more code in subdirs.
Rik <rik@octave.org>
parents:
diff changeset
30 parse-tree/pt-except.h \
46b19589b593 maint: Partition src/ directory with more code in subdirs.
Rik <rik@octave.org>
parents:
diff changeset
31 parse-tree/pt-exp.h \
46b19589b593 maint: Partition src/ directory with more code in subdirs.
Rik <rik@octave.org>
parents:
diff changeset
32 parse-tree/pt-fcn-handle.h \
15062
069c552587a0 merge source reorganization changes on default to classdef
John W. Eaton <jwe@octave.org>
parents: 15057
diff changeset
33 parse-tree/pt-funcall.h \
15057
46b19589b593 maint: Partition src/ directory with more code in subdirs.
Rik <rik@octave.org>
parents:
diff changeset
34 parse-tree/pt-id.h \
46b19589b593 maint: Partition src/ directory with more code in subdirs.
Rik <rik@octave.org>
parents:
diff changeset
35 parse-tree/pt-idx.h \
46b19589b593 maint: Partition src/ directory with more code in subdirs.
Rik <rik@octave.org>
parents:
diff changeset
36 parse-tree/pt-jump.h \
46b19589b593 maint: Partition src/ directory with more code in subdirs.
Rik <rik@octave.org>
parents:
diff changeset
37 parse-tree/pt-loop.h \
46b19589b593 maint: Partition src/ directory with more code in subdirs.
Rik <rik@octave.org>
parents:
diff changeset
38 parse-tree/pt-mat.h \
46b19589b593 maint: Partition src/ directory with more code in subdirs.
Rik <rik@octave.org>
parents:
diff changeset
39 parse-tree/pt-misc.h \
46b19589b593 maint: Partition src/ directory with more code in subdirs.
Rik <rik@octave.org>
parents:
diff changeset
40 parse-tree/pt-pr-code.h \
46b19589b593 maint: Partition src/ directory with more code in subdirs.
Rik <rik@octave.org>
parents:
diff changeset
41 parse-tree/pt-select.h \
46b19589b593 maint: Partition src/ directory with more code in subdirs.
Rik <rik@octave.org>
parents:
diff changeset
42 parse-tree/pt-stmt.h \
46b19589b593 maint: Partition src/ directory with more code in subdirs.
Rik <rik@octave.org>
parents:
diff changeset
43 parse-tree/pt-unop.h \
46b19589b593 maint: Partition src/ directory with more code in subdirs.
Rik <rik@octave.org>
parents:
diff changeset
44 parse-tree/pt-walk.h \
15085
28f5f4a4a80a maint: Move parser code and rules to parse-tree/ directory
Rik <rik@octave.org>
parents: 15057
diff changeset
45 parse-tree/pt.h \
16298
faaf60aa457c use separate automake convenience library for bison and flex generated files
John W. Eaton <jwe@octave.org>
parents: 16237
diff changeset
46 parse-tree/token.h
15057
46b19589b593 maint: Partition src/ directory with more code in subdirs.
Rik <rik@octave.org>
parents:
diff changeset
47
46b19589b593 maint: Partition src/ directory with more code in subdirs.
Rik <rik@octave.org>
parents:
diff changeset
48 PARSE_TREE_SRC = \
46b19589b593 maint: Partition src/ directory with more code in subdirs.
Rik <rik@octave.org>
parents:
diff changeset
49 parse-tree/pt-arg-list.cc \
16237
70f465930546 rearrange class heirarchy for tree_cell and tree_matrix
John W. Eaton <jwe@octave.org>
parents: 16174
diff changeset
50 parse-tree/pt-array-list.cc \
15057
46b19589b593 maint: Partition src/ directory with more code in subdirs.
Rik <rik@octave.org>
parents:
diff changeset
51 parse-tree/pt-assign.cc \
46b19589b593 maint: Partition src/ directory with more code in subdirs.
Rik <rik@octave.org>
parents:
diff changeset
52 parse-tree/pt-binop.cc \
46b19589b593 maint: Partition src/ directory with more code in subdirs.
Rik <rik@octave.org>
parents:
diff changeset
53 parse-tree/pt-bp.cc \
46b19589b593 maint: Partition src/ directory with more code in subdirs.
Rik <rik@octave.org>
parents:
diff changeset
54 parse-tree/pt-cbinop.cc \
46b19589b593 maint: Partition src/ directory with more code in subdirs.
Rik <rik@octave.org>
parents:
diff changeset
55 parse-tree/pt-cell.cc \
46b19589b593 maint: Partition src/ directory with more code in subdirs.
Rik <rik@octave.org>
parents:
diff changeset
56 parse-tree/pt-check.cc \
15062
069c552587a0 merge source reorganization changes on default to classdef
John W. Eaton <jwe@octave.org>
parents: 15057
diff changeset
57 parse-tree/pt-classdef.cc \
15057
46b19589b593 maint: Partition src/ directory with more code in subdirs.
Rik <rik@octave.org>
parents:
diff changeset
58 parse-tree/pt-cmd.cc \
46b19589b593 maint: Partition src/ directory with more code in subdirs.
Rik <rik@octave.org>
parents:
diff changeset
59 parse-tree/pt-colon.cc \
46b19589b593 maint: Partition src/ directory with more code in subdirs.
Rik <rik@octave.org>
parents:
diff changeset
60 parse-tree/pt-const.cc \
46b19589b593 maint: Partition src/ directory with more code in subdirs.
Rik <rik@octave.org>
parents:
diff changeset
61 parse-tree/pt-decl.cc \
46b19589b593 maint: Partition src/ directory with more code in subdirs.
Rik <rik@octave.org>
parents:
diff changeset
62 parse-tree/pt-eval.cc \
46b19589b593 maint: Partition src/ directory with more code in subdirs.
Rik <rik@octave.org>
parents:
diff changeset
63 parse-tree/pt-except.cc \
46b19589b593 maint: Partition src/ directory with more code in subdirs.
Rik <rik@octave.org>
parents:
diff changeset
64 parse-tree/pt-exp.cc \
46b19589b593 maint: Partition src/ directory with more code in subdirs.
Rik <rik@octave.org>
parents:
diff changeset
65 parse-tree/pt-fcn-handle.cc \
15062
069c552587a0 merge source reorganization changes on default to classdef
John W. Eaton <jwe@octave.org>
parents: 15057
diff changeset
66 parse-tree/pt-funcall.cc \
15057
46b19589b593 maint: Partition src/ directory with more code in subdirs.
Rik <rik@octave.org>
parents:
diff changeset
67 parse-tree/pt-id.cc \
46b19589b593 maint: Partition src/ directory with more code in subdirs.
Rik <rik@octave.org>
parents:
diff changeset
68 parse-tree/pt-idx.cc \
46b19589b593 maint: Partition src/ directory with more code in subdirs.
Rik <rik@octave.org>
parents:
diff changeset
69 parse-tree/pt-jump.cc \
46b19589b593 maint: Partition src/ directory with more code in subdirs.
Rik <rik@octave.org>
parents:
diff changeset
70 parse-tree/pt-loop.cc \
46b19589b593 maint: Partition src/ directory with more code in subdirs.
Rik <rik@octave.org>
parents:
diff changeset
71 parse-tree/pt-mat.cc \
46b19589b593 maint: Partition src/ directory with more code in subdirs.
Rik <rik@octave.org>
parents:
diff changeset
72 parse-tree/pt-misc.cc \
46b19589b593 maint: Partition src/ directory with more code in subdirs.
Rik <rik@octave.org>
parents:
diff changeset
73 parse-tree/pt-pr-code.cc \
46b19589b593 maint: Partition src/ directory with more code in subdirs.
Rik <rik@octave.org>
parents:
diff changeset
74 parse-tree/pt-select.cc \
46b19589b593 maint: Partition src/ directory with more code in subdirs.
Rik <rik@octave.org>
parents:
diff changeset
75 parse-tree/pt-stmt.cc \
46b19589b593 maint: Partition src/ directory with more code in subdirs.
Rik <rik@octave.org>
parents:
diff changeset
76 parse-tree/pt-unop.cc \
15085
28f5f4a4a80a maint: Move parser code and rules to parse-tree/ directory
Rik <rik@octave.org>
parents: 15057
diff changeset
77 parse-tree/pt.cc \
16298
faaf60aa457c use separate automake convenience library for bison and flex generated files
John W. Eaton <jwe@octave.org>
parents: 16237
diff changeset
78 parse-tree/token.cc
15057
46b19589b593 maint: Partition src/ directory with more code in subdirs.
Rik <rik@octave.org>
parents:
diff changeset
79
15096
909a2797935b maint: Move interp source code without DEFUNs to interp-core/ dir.
Rik <rik@octave.org>
parents: 15087
diff changeset
80 ## Special rules for sources which must be built before rest of compilation.
909a2797935b maint: Move interp source code without DEFUNs to interp-core/ dir.
Rik <rik@octave.org>
parents: 15087
diff changeset
81
909a2797935b maint: Move interp source code without DEFUNs to interp-core/ dir.
Rik <rik@octave.org>
parents: 15087
diff changeset
82 ## Don't use a pipeline to process gperf output since if gperf
909a2797935b maint: Move interp source code without DEFUNs to interp-core/ dir.
Rik <rik@octave.org>
parents: 15087
diff changeset
83 ## is missing but sed is not, the exit status of the pipeline
909a2797935b maint: Move interp source code without DEFUNs to interp-core/ dir.
Rik <rik@octave.org>
parents: 15087
diff changeset
84 ## will still be success and we will end up creating an empty
909a2797935b maint: Move interp source code without DEFUNs to interp-core/ dir.
Rik <rik@octave.org>
parents: 15087
diff changeset
85 ## oct-gperf.h file.
909a2797935b maint: Move interp source code without DEFUNs to interp-core/ dir.
Rik <rik@octave.org>
parents: 15087
diff changeset
86 parse-tree/oct-gperf.h: parse-tree/octave.gperf
19792
4f6ae6b94abe make --enable-silent-rules configure option more useful
John W. Eaton <jwe@octave.org>
parents: 19775
diff changeset
87 $(AM_V_GEN)rm -f $@-t $@t1 $@ && \
4f6ae6b94abe make --enable-silent-rules configure option more useful
John W. Eaton <jwe@octave.org>
parents: 19775
diff changeset
88 $(GPERF) -t -C -D -G -L C++ -Z octave_kw_hash $< > $@-t1 && \
4f6ae6b94abe make --enable-silent-rules configure option more useful
John W. Eaton <jwe@octave.org>
parents: 19775
diff changeset
89 $(SED) 's,lookup\[,gperf_lookup[,' < $@-t1 > $@-t && \
4f6ae6b94abe make --enable-silent-rules configure option more useful
John W. Eaton <jwe@octave.org>
parents: 19775
diff changeset
90 mv $@-t $@ && \
15096
909a2797935b maint: Move interp source code without DEFUNs to interp-core/ dir.
Rik <rik@octave.org>
parents: 15087
diff changeset
91 rm -f $@-t1
909a2797935b maint: Move interp source code without DEFUNs to interp-core/ dir.
Rik <rik@octave.org>
parents: 15087
diff changeset
92
19879
2350fc8ba960 build: Fix build failure on missing oct-parse.h (bug #44391)
Mike Miller <mtmiller@ieee.org>
parents: 19792
diff changeset
93 parse-tree/oct-parse.h: parse-tree/oct-parse.cc
2350fc8ba960 build: Fix build failure on missing oct-parse.h (bug #44391)
Mike Miller <mtmiller@ieee.org>
parents: 19792
diff changeset
94
16174
39096b290a2f check syntax used to enable bison push/pull parser
John W. Eaton <jwe@octave.org>
parents: 15413
diff changeset
95 parse-tree/oct-parse.yy: parse-tree/oct-parse.in.yy
19792
4f6ae6b94abe make --enable-silent-rules configure option more useful
John W. Eaton <jwe@octave.org>
parents: 19775
diff changeset
96 $(AM_V_GEN)$(call subst-bison-api-decls,octave_)
16174
39096b290a2f check syntax used to enable bison push/pull parser
John W. Eaton <jwe@octave.org>
parents: 15413
diff changeset
97
16298
faaf60aa457c use separate automake convenience library for bison and flex generated files
John W. Eaton <jwe@octave.org>
parents: 16237
diff changeset
98 noinst_LTLIBRARIES += \
faaf60aa457c use separate automake convenience library for bison and flex generated files
John W. Eaton <jwe@octave.org>
parents: 16237
diff changeset
99 parse-tree/libparse-tree.la \
faaf60aa457c use separate automake convenience library for bison and flex generated files
John W. Eaton <jwe@octave.org>
parents: 16237
diff changeset
100 parse-tree/libparser.la
15107
03381a36f70d generate convenience libraries for new parse-tree and interpfcn subdirectories
John W. Eaton <jwe@octave.org>
parents: 15096
diff changeset
101
03381a36f70d generate convenience libraries for new parse-tree and interpfcn subdirectories
John W. Eaton <jwe@octave.org>
parents: 15096
diff changeset
102 parse_tree_libparse_tree_la_SOURCES = $(PARSE_TREE_SRC)
15258
cd8248cc6020 Use -DOCTINTERP_DLL when compiling convenience libaries in libinterp.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 15195
diff changeset
103 parse_tree_libparse_tree_la_CPPFLAGS = $(liboctinterp_la_CPPFLAGS)
16298
faaf60aa457c use separate automake convenience library for bison and flex generated files
John W. Eaton <jwe@octave.org>
parents: 16237
diff changeset
104
faaf60aa457c use separate automake convenience library for bison and flex generated files
John W. Eaton <jwe@octave.org>
parents: 16237
diff changeset
105 parse_tree_libparser_la_SOURCES = $(PARSER_SRC)
faaf60aa457c use separate automake convenience library for bison and flex generated files
John W. Eaton <jwe@octave.org>
parents: 16237
diff changeset
106 parse_tree_libparser_la_CPPFLAGS = $(liboctinterp_la_CPPFLAGS)
faaf60aa457c use separate automake convenience library for bison and flex generated files
John W. Eaton <jwe@octave.org>
parents: 16237
diff changeset
107 parse_tree_libparser_la_CXXFLAGS = \
faaf60aa457c use separate automake convenience library for bison and flex generated files
John W. Eaton <jwe@octave.org>
parents: 16237
diff changeset
108 $(filter-out -Wold-style-cast, $(AM_CXXFLAGS))