-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.am
168 lines (135 loc) · 4.82 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
167
168
SUBDIRS = include
pkgconfdir = $(datarootdir)/pkgconfig
docsdir = $(docdir)-@API_VERSION@
htmldir = $(docsdir)/html
AM_CPPFLAGS = -I$(top_srcdir)/include
dist_docs_DATA = AUTHORS README.md
nodist_docs_DATA = VERSION
nodist_pkgconf_DATA = misc/mdds-@[email protected]
DISTCLEANFILES = misc/mdds-@[email protected]
EXTRA_DIST = \
autogen.sh \
CHANGELOG \
LICENSE \
doc/conf.py \
doc/doxygen.conf \
doc/flat_segment_tree.rst \
doc/index.rst \
doc/multi_type_matrix.rst \
doc/multi_type_vector.rst \
doc/point_quad_tree.rst \
doc/rectangle_set.rst \
doc/segment_tree.rst \
doc/sorted_string_map.rst \
doc/trie_map.rst \
doc/_static/images/mtv_block_structure.png \
example/flat_segment_tree.cpp \
example/multi_type_matrix.cpp \
example/multi_type_vector.cpp \
example/multi_type_vector_element_block1.cpp \
example/multi_type_vector_event1.cpp \
example/multi_type_vector_pos_hint.cpp \
example/packed_trie_map.cpp \
example/point_quad_tree.cpp \
example/rectangle_set.cpp \
example/segment_tree.cpp \
example/trie_map.cpp \
misc/matrix_perf.cpp \
misc/mdds.pc.in \
misc/sorted_string_map_perf.cpp \
quickcheck/flat_segment_tree.cpp \
src/mem-wrapper.sh \
src/test-wrapper.sh \
src/test.mem.in
check_PROGRAMS = \
flat_segment_tree_test \
multi_type_matrix_test \
multi_type_matrix_test_walk \
multi_type_vector_test_event \
multi_type_vector_test_custom \
multi_type_vector_test_default \
multi_type_vector_test_perf \
multi_type_vector_test_collection \
point_quad_tree_test \
rectangle_set_test \
segment_tree_test \
sorted_string_map_test \
stlperf_test \
template_test \
trie_map_test
flat_segment_tree_test_SOURCES = src/flat_segment_tree_test.cpp src/test_global.hpp
multi_type_matrix_test_SOURCES = src/multi_type_matrix_test.cpp src/test_global.hpp
multi_type_matrix_test_walk_SOURCES = src/multi_type_matrix_test_walk.cpp src/test_global.hpp
multi_type_vector_test_event_SOURCES = src/multi_type_vector_test_event.cpp src/test_global.hpp
multi_type_vector_test_custom_SOURCES = src/multi_type_vector_test_custom.cpp src/test_global.hpp
multi_type_vector_test_default_SOURCES = src/multi_type_vector_test_default.cpp src/test_global.hpp
multi_type_vector_test_perf_SOURCES = src/multi_type_vector_test_perf.cpp src/test_global.hpp
multi_type_vector_test_collection_SOURCES = src/multi_type_vector_test_collection.cpp src/test_global.hpp
point_quad_tree_test_SOURCES = src/point_quad_tree_test.cpp src/test_global.hpp
rectangle_set_test_SOURCES = src/rectangle_set_test.cpp src/test_global.hpp
segment_tree_test_SOURCES = src/segment_tree_test.cpp src/test_global.hpp
stlperf_test_SOURCES = src/stlperf_test.cpp
sorted_string_map_test_SOURCES = src/sorted_string_map_test.cpp src/test_global.hpp
template_test_SOURCES = src/template_test.cpp
trie_map_test_SOURCES = src/trie_map_test.cpp src/test_global.hpp
test.fst.perf: flat_segment_tree_test
./flat_segment_tree_test perf
test.recset.perf: rectangle_set_test
./rectangle_set_test perf
test.st.perf: segment_tree_test
./segment_tree_test perf
test.mtv.perf: multi_type_vector_test_perf
./multi_type_vector_test_perf
test.mtmatrix.perf: multi_type_matrix_test
./multi_type_matrix_test perf
test.stl: stlperf_test
./stlperf_test
TEST_EXTENSIONS = .mem
LOG_COMPILER = $(top_srcdir)/src/test-wrapper.sh
MEM_LOG_COMPILER = $(top_srcdir)/src/mem-wrapper.sh
AM_TESTS_ENVIRONMENT = \
VALGRIND="$(VALGRIND)"; export VALGRIND; \
VALGRINDFLAGS="$(VALGRINDFLAGS)"; export VALGRINDFLAGS; \
EXEEXT="$(EXEEXT)"; export EXEEXT;
TESTS = \
flat_segment_tree_test \
multi_type_matrix_test \
multi_type_matrix_test_walk \
multi_type_vector_test_event \
multi_type_vector_test_custom \
multi_type_vector_test_default \
multi_type_vector_test_collection \
point_quad_tree_test \
rectangle_set_test \
segment_tree_test \
sorted_string_map_test \
trie_map_test
# NOTE: AFAIK automake does not support running the same test executable
# in different ways. I workaround this limitation by creating dummy
# test files and redirecting to the real executable inside the wrapper.
if RUN_MEMORY_TESTS
TESTS += \
flat_segment_tree_test_mem.mem \
multi_type_matrix_test_mem.mem \
multi_type_matrix_test_walk_mem.mem \
multi_type_vector_test_event_mem.mem \
multi_type_vector_test_custom_mem.mem \
multi_type_vector_test_default_mem.mem \
multi_type_vector_test_collection_mem.mem \
point_quad_tree_test_mem.mem \
rectangle_set_test_mem.mem \
segment_tree_test_mem.mem \
sorted_string_map_test_mem.mem \
trie_map_test_mem.mem
endif
install-data-local:
$(MKDIR_P) $(DESTDIR)$(docsdir)
$(INSTALL_DATA) $(top_srcdir)/LICENSE $(DESTDIR)$(docsdir)/COPYING
$(INSTALL_DATA) $(top_srcdir)/CHANGELOG $(DESTDIR)$(docsdir)/NEWS
uninstall-local:
rm -f $(DESTDIR)$(docsdir)/COPYING $(DESTDIR)$(docsdir)/NEWS
if BUILD_DOCS
html-local:
(cd doc && $(DOXYGEN) doxygen.conf)
$(SPHINX) -b html ./doc/ ./doc/_build
endif