-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
166 lines (138 loc) · 4.32 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
AUTOMAKE_OPTIONS = subdir-objects
ACLOCAL_AMFLAGS = -I m4
AM_CXXFLAGS = -I $(srcdir)/stree -Wall
if PACKED_NODE
AM_CXXFLAGS += -DPACKED_NODE=1
endif
# packed node
NODE_PACKED_HEADER_FILES = \
stree/node/impl/packed.hpp \
stree/node/impl/packed/id.hpp \
stree/node/impl/packed/node.hpp \
stree/node/impl/packed/pool.hpp
NODE_PACKED_CPP_FILES = \
src/node/impl/packed/id.cpp
# pointer node
NODE_POINTER_HEADER_FILES = \
stree/node/impl/pointer.hpp \
stree/node/impl/pointer/id.hpp \
stree/node/impl/pointer/node.hpp \
stree/node/impl/pointer/pool.hpp
NODE_POINTER_CPP_FILES = \
src/node/impl/pointer/id.cpp
if PACKED_NODE
NODE_HEADER_FILES = $(NODE_PACKED_HEADER_FILES)
NODE_CPP_FILES = $(NODE_PACKED_CPP_FILES)
else
NODE_HEADER_FILES = $(NODE_POINTER_HEADER_FILES)
NODE_CPP_FILES = $(NODE_POINTER_CPP_FILES)
endif
HEADER_FILES = \
$(NODE_HEADER_FILES) \
stree/stree.hpp \
stree/common_region.hpp \
stree/builder.hpp \
stree/compare.hpp \
stree/config.hpp \
stree/environment.hpp \
stree/environment/symbol.hpp \
stree/environment/symbol_table.hpp \
stree/eval.hpp \
stree/exec.hpp \
stree/macros.hpp \
stree/node.hpp \
stree/node/impl.hpp \
stree/node/functions.hpp \
stree/node/stats.hpp \
stree/node/manager.hpp \
stree/parser.hpp \
stree/search.hpp \
stree/string.hpp \
stree/tree.hpp \
stree/types.hpp
SOURCE_FILES = \
$(HEADER_FILES) \
$(NODE_CPP_FILES) \
src/common_region.cpp \
src/builder.cpp \
src/compare.cpp \
src/environment.cpp \
src/environment/symbol.cpp \
src/environment/symbol_table.cpp \
src/eval.cpp \
src/exec.cpp \
src/node/functions.cpp \
src/node/stats.cpp \
src/node/manager.cpp \
src/parser.cpp \
src/search.cpp \
src/string.cpp \
src/tree.cpp \
src/types.cpp
lib_LTLIBRARIES = libstree.la
libstree_ladir = $(includedir)
nobase_libstree_la_HEADERS = $(HEADER_FILES)
libstree_la_SOURCES = $(SOURCE_FILES)
TESTS = test_string1 \
test_grow1 \
test_tree_size1 \
test_tree_nth_node1 \
test_tree_nth_node2 \
test_copy1 \
test_subtree_string1 \
test_node_manager_stats1 \
test_swap1 \
test_mutate1 \
test_move1 \
test_copy2 \
test_common_region1 \
test_select1 \
test_exec1 \
test_builder1 \
test_builder2 \
test_parser_cleanup1 \
test_parser_stream1
check_PROGRAMS = $(TESTS)
TEST_SOURCES = tests/macros.hpp
TEST_LIBS = libstree.la
test_string1_SOURCES = tests/test_string1.cpp $(TEST_SOURCES)
test_string1_LDADD = $(TEST_LIBS)
test_grow1_SOURCES = tests/test_grow1.cpp $(TEST_SOURCES)
test_grow1_LDADD = $(TEST_LIBS)
test_tree_size1_SOURCES = tests/test_tree_size1.cpp $(TEST_SOURCES)
test_tree_size1_LDADD = $(TEST_LIBS)
test_tree_nth_node1_SOURCES = tests/test_tree_nth_node1.cpp $(TEST_SOURCES)
test_tree_nth_node1_LDADD = $(TEST_LIBS)
test_tree_nth_node2_SOURCES = tests/test_tree_nth_node2.cpp $(TEST_SOURCES)
test_tree_nth_node2_LDADD = $(TEST_LIBS)
test_copy1_SOURCES = tests/test_copy1.cpp $(TEST_SOURCES)
test_copy1_LDADD = $(TEST_LIBS)
test_subtree_string1_SOURCES = tests/test_subtree_string1.cpp $(TEST_SOURCES)
test_subtree_string1_LDADD = $(TEST_LIBS)
test_node_manager_stats1_SOURCES = tests/test_node_manager_stats1.cpp $(TEST_SOURCES) \
tests/node_manager_macros.hpp
test_node_manager_stats1_LDADD = $(TEST_LIBS)
test_swap1_SOURCES = tests/test_swap1.cpp $(TEST_SOURCES)
test_swap1_LDADD = $(TEST_LIBS)
test_mutate1_SOURCES = tests/test_mutate1.cpp $(TEST_SOURCES)
test_mutate1_LDADD = $(TEST_LIBS)
test_move1_SOURCES = tests/test_move1.cpp $(TEST_SOURCES) \
tests/node_manager_macros.hpp
test_move1_LDADD = $(TEST_LIBS)
test_copy2_SOURCES = tests/test_copy2.cpp $(TEST_SOURCES) \
tests/node_manager_macros.hpp
test_copy2_LDADD = $(TEST_LIBS)
test_common_region1_SOURCES = tests/test_common_region1.cpp $(TEST_SOURCES)
test_common_region1_LDADD = $(TEST_LIBS)
test_select1_SOURCES = tests/test_select1.cpp $(TEST_SOURCES)
test_select1_LDADD = $(TEST_LIBS)
test_exec1_SOURCES = tests/test_exec1.cpp $(TEST_SOURCES)
test_exec1_LDADD = $(TEST_LIBS)
test_builder1_SOURCES = tests/test_builder1.cpp $(TEST_SOURCES)
test_builder1_LDADD = $(TEST_LIBS)
test_builder2_SOURCES = tests/test_builder2.cpp $(TEST_SOURCES)
test_builder2_LDADD = $(TEST_LIBS)
test_parser_cleanup1_SOURCES = tests/test_parser_cleanup1.cpp $(TEST_SOURCES)
test_parser_cleanup1_LDADD = $(TEST_LIBS)
test_parser_stream1_SOURCES=tests/test_parser_stream1.cpp $(TEST_SOURCES)
test_parser_stream1_LDADD = $(TEST_LIBS)