forked from bentley/baldr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.am
219 lines (205 loc) · 9.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
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
ACLOCAL_AMFLAGS = -I m4
AM_LDFLAGS = @BOOST_LDFLAGS@ @COVERAGE_LDFLAGS@
AM_CPPFLAGS = -Ivalhalla @BOOST_CPPFLAGS@
AM_CXXFLAGS = -Ivalhalla @COVERAGE_CXXFLAGS@
LIBTOOL_DEPS = @LIBTOOL_DEPS@
libtool: $(LIBTOOL_DEPS)
$(SHELL) ./config.status libtool
# things for versioning
pkgconfig_DATA = libvalhalla_baldr.pc
EXTRA_DIST = version.sh
# conditional test coverage
if ENABLE_COVERAGE
.PHONY: clean-coverage
clean-coverage:
-find -name '*.gcda' -exec rm -rf {} \;
-$(LCOV) --directory $(top_builddir) -z
-rm -rf coverage.info coverage/
.PHONY: coverage-report
coverage-report: clean-coverage
-$(MAKE) $(AM_MAKEFLAGS) -k check
$(MAKE) $(AM_MAKEFLAGS) coverage/index.html
coverage.info:
$(LCOV) --directory $(top_builddir) --base-directory $(top_builddir) --no-external --capture --output-file $@ --no-checksum --compat-libtool
coverage/index.html: coverage.info
$(GENHTML) --prefix $(top_builddir) --output-directory $(@D) --title "Test Coverage" --legend --show-details $<
.PHONY: clean-gcno
clean-gcno:
-find -name '*.gcno' -exec rm -rf {} \;
clean-local: clean-coverage clean-gcno
endif
#timezone info from boost
src/baldr/date_time_zonespec.h:
-xxd -i -s +$$(head -n 1 date_time/zonespec.csv | wc -c | xargs) date_time/zonespec.csv > src/baldr/date_time_zonespec.h
BUILT_SOURCES = src/baldr/date_time_zonespec.h
nodist_libvalhalla_baldr_la_SOURCES = src/baldr/date_time_zonespec.h
CLEANFILES = src/baldr/date_time_zonespec.h
# libvalhalla-baldr compilation etc
lib_LTLIBRARIES = libvalhalla_baldr.la
nobase_include_HEADERS = \
valhalla/baldr/accessrestriction.h \
valhalla/baldr/admin.h \
valhalla/baldr/admininfo.h \
valhalla/baldr/connectivity_map.h \
valhalla/baldr/datetime.h \
valhalla/baldr/directededge.h \
valhalla/baldr/double_bucket_queue.h \
valhalla/baldr/edgeinfo.h \
valhalla/baldr/geojson.h \
valhalla/baldr/graphconstants.h \
valhalla/baldr/graphid.h \
valhalla/baldr/graphreader.h \
valhalla/baldr/graphtile.h \
valhalla/baldr/graphtileheader.h \
valhalla/baldr/json.h \
valhalla/baldr/nodeinfo.h \
valhalla/baldr/location.h \
valhalla/baldr/pathlocation.h \
valhalla/baldr/sign.h \
valhalla/baldr/signinfo.h \
valhalla/baldr/tilehierarchy.h \
valhalla/baldr/turn.h \
valhalla/baldr/streetname.h \
valhalla/baldr/streetnames.h \
valhalla/baldr/streetnames_factory.h \
valhalla/baldr/streetname_us.h \
valhalla/baldr/streetnames_us.h \
valhalla/baldr/transitdeparture.h \
valhalla/baldr/transitroute.h \
valhalla/baldr/transitschedule.h \
valhalla/baldr/transitstop.h \
valhalla/baldr/transittransfer.h \
valhalla/baldr/verbal_text_formatter.h \
valhalla/baldr/verbal_text_formatter_us.h \
valhalla/baldr/verbal_text_formatter_us_co.h \
valhalla/baldr/verbal_text_formatter_us_tx.h \
valhalla/baldr/verbal_text_formatter_factory.h
libvalhalla_baldr_la_SOURCES = \
src/baldr/accessrestriction.cc \
src/baldr/admin.cc \
src/baldr/admininfo.cc \
src/baldr/connectivity_map.cc \
src/baldr/datetime.cc \
src/baldr/directededge.cc \
src/baldr/double_bucket_queue.cc \
src/baldr/edgeinfo.cc \
src/baldr/geojson.cc \
src/baldr/graphid.cc \
src/baldr/graphreader.cc \
src/baldr/graphtile.cc \
src/baldr/graphtileheader.cc \
src/baldr/nodeinfo.cc \
src/baldr/location.cc \
src/baldr/pathlocation.cc \
src/baldr/sign.cc \
src/baldr/signinfo.cc \
src/baldr/tilehierarchy.cc \
src/baldr/turn.cc \
src/baldr/streetname.cc \
src/baldr/streetnames.cc \
src/baldr/streetnames_factory.cc \
src/baldr/streetname_us.cc \
src/baldr/streetnames_us.cc \
src/baldr/transitdeparture.cc \
src/baldr/transitroute.cc \
src/baldr/transitschedule.cc \
src/baldr/transitstop.cc \
src/baldr/transittransfer.cc \
src/baldr/verbal_text_formatter.cc \
src/baldr/verbal_text_formatter_us.cc \
src/baldr/verbal_text_formatter_us_co.cc \
src/baldr/verbal_text_formatter_us_tx.cc \
src/baldr/verbal_text_formatter_factory.cc \
src/baldr/date_time_zonespec.h
libvalhalla_baldr_la_CPPFLAGS = $(DEPS_CFLAGS) $(VALHALLA_DEPS_CFLAGS) @BOOST_CPPFLAGS@
libvalhalla_baldr_la_LIBADD = $(DEPS_LIBS) $(VALHALLA_DEPS_LIBS) @BOOST_LDFLAGS@ $(BOOST_SYSTEM_LIB) $(BOOST_FILESYSTEM_LIB) $(BOOST_THREAD_LIB) $(BOOST_REGEX_LIB) $(BOOST_DATE_TIME_LIB)
# tests
check_PROGRAMS = \
test/location \
test/admin \
test/datetime \
test/directededge \
test/double_bucket_queue \
test/graphid \
test/tilehierarchy \
test/graphtile \
test/nodeinfo \
test/turn \
test/graphreader \
test/streetname \
test/streetname_us \
test/streetnames \
test/streetnames_us \
test/streetnames_factory \
test/json \
test/verbal_text_formatter \
test/verbal_text_formatter_us \
test/verbal_text_formatter_us_co \
test/verbal_text_formatter_us_tx
test_location_SOURCES = test/location.cc test/test.cc
test_location_CPPFLAGS = $(DEPS_CFLAGS) $(VALHALLA_DEPS_CFLAGS)
test_location_LDADD = $(DEPS_LIBS) $(VALHALLA_DEPS_LIBS) libvalhalla_baldr.la
test_double_bucket_queue_SOURCES = test/double_bucket_queue.cc test/test.cc
test_double_bucket_queue_CPPFLAGS = $(DEPS_CFLAGS) $(VALHALLA_DEPS_CFLAGS) @BOOST_CPPFLAGS@
test_double_bucket_queue_LDADD = $(DEPS_LIBS) $(VALHALLA_DEPS_LIBS) @BOOST_LDFLAGS@ libvalhalla_baldr.la
test_admin_SOURCES = test/admin.cc test/test.cc
test_admin_CPPFLAGS = $(DEPS_CFLAGS) $(VALHALLA_DEPS_CFLAGS) @BOOST_CPPFLAGS@
test_admin_LDADD = $(DEPS_LIBS) $(VALHALLA_DEPS_LIBS) @BOOST_LDFLAGS@ libvalhalla_baldr.la
test_datetime_SOURCES = test/datetime.cc test/test.cc
test_datetime_CPPFLAGS = $(DEPS_CFLAGS) $(VALHALLA_DEPS_CFLAGS)
test_datetime_LDADD = $(DEPS_LIBS) $(VALHALLA_DEPS_LIBS) libvalhalla_baldr.la
test_directededge_SOURCES = test/directededge.cc test/test.cc
test_directededge_CPPFLAGS = $(DEPS_CFLAGS) $(VALHALLA_DEPS_CFLAGS)
test_directededge_LDADD = $(DEPS_LIBS) $(VALHALLA_DEPS_LIBS) libvalhalla_baldr.la
test_graphid_SOURCES = test/graphid.cc test/test.cc
test_graphid_CPPFLAGS = $(DEPS_CFLAGS) $(VALHALLA_DEPS_CFLAGS)
test_graphid_LDADD = $(DEPS_LIBS) $(VALHALLA_DEPS_LIBS) libvalhalla_baldr.la
test_tilehierarchy_SOURCES = test/tilehierarchy.cc test/test.cc
test_tilehierarchy_CPPFLAGS = $(DEPS_CFLAGS) $(VALHALLA_DEPS_CFLAGS)
test_tilehierarchy_LDADD = $(DEPS_LIBS) $(VALHALLA_DEPS_LIBS) libvalhalla_baldr.la
test_graphtile_SOURCES = test/graphtile.cc test/test.cc
test_graphtile_CPPFLAGS = $(DEPS_CFLAGS) $(VALHALLA_DEPS_CFLAGS)
test_graphtile_LDADD = $(DEPS_LIBS) $(VALHALLA_DEPS_LIBS) libvalhalla_baldr.la
test_nodeinfo_SOURCES = test/nodeinfo.cc test/test.cc
test_nodeinfo_CPPFLAGS = $(DEPS_CFLAGS) $(VALHALLA_DEPS_CFLAGS)
test_nodeinfo_LDADD = $(DEPS_LIBS) $(VALHALLA_DEPS_LIBS) libvalhalla_baldr.la
test_turn_SOURCES = test/turn.cc test/test.cc
test_turn_CPPFLAGS = $(DEPS_CFLAGS) $(VALHALLA_DEPS_CFLAGS)
test_turn_LDADD = $(DEPS_LIBS) $(VALHALLA_DEPS_LIBS) libvalhalla_baldr.la
test_graphreader_SOURCES = test/graphreader.cc test/test.cc
test_graphreader_CPPFLAGS = $(DEPS_CFLAGS) $(VALHALLA_DEPS_CFLAGS)
test_graphreader_LDADD = $(DEPS_LIBS) $(VALHALLA_DEPS_LIBS) libvalhalla_baldr.la
test_streetname_SOURCES = test/streetname.cc test/test.cc
test_streetname_CPPFLAGS = $(DEPS_CFLAGS) $(VALHALLA_DEPS_CFLAGS)
test_streetname_LDADD = $(DEPS_LIBS) $(VALHALLA_DEPS_LIBS) libvalhalla_baldr.la
test_streetname_us_SOURCES = test/streetname_us.cc test/test.cc
test_streetname_us_CPPFLAGS = $(DEPS_CFLAGS) $(VALHALLA_DEPS_CFLAGS)
test_streetname_us_LDADD = $(DEPS_LIBS) $(VALHALLA_DEPS_LIBS) libvalhalla_baldr.la
test_streetnames_SOURCES = test/streetnames.cc test/test.cc
test_streetnames_CPPFLAGS = $(DEPS_CFLAGS) $(VALHALLA_DEPS_CFLAGS)
test_streetnames_LDADD = $(DEPS_LIBS) $(VALHALLA_DEPS_LIBS) libvalhalla_baldr.la
test_streetnames_us_SOURCES = test/streetnames_us.cc test/test.cc
test_streetnames_us_CPPFLAGS = $(DEPS_CFLAGS) $(VALHALLA_DEPS_CFLAGS)
test_streetnames_us_LDADD = $(DEPS_LIBS) $(VALHALLA_DEPS_LIBS) libvalhalla_baldr.la
test_streetnames_factory_SOURCES = test/streetnames_factory.cc test/test.cc
test_streetnames_factory_CPPFLAGS = $(DEPS_CFLAGS) $(VALHALLA_DEPS_CFLAGS)
test_streetnames_factory_LDADD = $(DEPS_LIBS) $(VALHALLA_DEPS_LIBS) libvalhalla_baldr.la
test_json_SOURCES = test/json.cc test/test.cc
test_json_CPPFLAGS = $(DEPS_CFLAGS) $(VALHALLA_DEPS_CFLAGS) @BOOST_CPPFLAGS@
test_json_LDADD = $(DEPS_LIBS) $(VALHALLA_DEPS_LIBS) @BOOST_LDFLAGS@ libvalhalla_baldr.la
test_verbal_text_formatter_SOURCES = test/verbal_text_formatter.cc test/test.cc
test_verbal_text_formatter_CPPFLAGS = $(DEPS_CFLAGS) $(VALHALLA_DEPS_CFLAGS) @BOOST_CPPFLAGS@
test_verbal_text_formatter_LDADD = $(DEPS_LIBS) $(VALHALLA_DEPS_LIBS) libvalhalla_baldr.la @BOOST_LDFLAGS@
test_verbal_text_formatter_us_SOURCES = test/verbal_text_formatter_us.cc test/test.cc
test_verbal_text_formatter_us_CPPFLAGS = $(DEPS_CFLAGS) $(VALHALLA_DEPS_CFLAGS) @BOOST_CPPFLAGS@
test_verbal_text_formatter_us_LDADD = $(DEPS_LIBS) $(VALHALLA_DEPS_LIBS) libvalhalla_baldr.la @BOOST_LDFLAGS@
test_verbal_text_formatter_us_co_SOURCES = test/verbal_text_formatter_us_co.cc test/test.cc
test_verbal_text_formatter_us_co_CPPFLAGS = $(DEPS_CFLAGS) $(VALHALLA_DEPS_CFLAGS) @BOOST_CPPFLAGS@
test_verbal_text_formatter_us_co_LDADD = $(DEPS_LIBS) $(VALHALLA_DEPS_LIBS) libvalhalla_baldr.la @BOOST_LDFLAGS@
test_verbal_text_formatter_us_tx_SOURCES = test/verbal_text_formatter_us_tx.cc test/test.cc
test_verbal_text_formatter_us_tx_CPPFLAGS = $(DEPS_CFLAGS) $(VALHALLA_DEPS_CFLAGS) @BOOST_CPPFLAGS@
test_verbal_text_formatter_us_tx_LDADD = $(DEPS_LIBS) $(VALHALLA_DEPS_LIBS) libvalhalla_baldr.la @BOOST_LDFLAGS@
TESTS = $(check_PROGRAMS)
TEST_EXTENSIONS = .sh
SH_LOG_COMPILER = sh
test: check