|
1 | 1 | ACLOCAL_AMFLAGS = -I m4
|
2 |
| -AM_LDFLAGS = @BOOST_LDFLAGS@ @LUA_LIB@ @COVERAGE_LDFLAGS@ |
3 |
| -AM_CPPFLAGS = -Iinclude -Iinclude/proto @BOOST_CPPFLAGS@ |
4 |
| -AM_CXXFLAGS = -Iinclude -Iinclude/proto @COVERAGE_CXXFLAGS@ @LUA_INCLUDE@ |
5 |
| -if HAVE_SQLITE3 |
6 |
| -AM_CPPFLAGS += @SQLITE3_CFLAGS@ |
7 |
| -endif |
| 2 | +AM_LDFLAGS = @BOOST_LDFLAGS@ @COVERAGE_LDFLAGS@ |
| 3 | +AM_CPPFLAGS = -Ivalhalla @BOOST_CPPFLAGS@ |
| 4 | +AM_CXXFLAGS = -Ivalhalla @COVERAGE_CXXFLAGS@ |
| 5 | +VALHALLA_LDFLAGS = @VALHALLA_MIDGARD_LDFLAGS@ @VALHALLA_MIDGARD_LIB@ @VALHALLA_BALDR_LDFLAGS@ @VALHALLA_BALDR_LIB@ @VALHALLA_ODIN_LDFLAGS@ @VALHALLA_ODIN_LIB@ |
| 6 | +VALHALLA_CPPFLAGS = @VALHALLA_MIDGARD_CPPFLAGS@ @VALHALLA_BALDR_CPPFLAGS@ @VALHALLA_ODIN_CPPFLAGS@ |
8 | 7 | LIBTOOL_DEPS = @LIBTOOL_DEPS@
|
9 | 8 | libtool: $(LIBTOOL_DEPS)
|
10 | 9 | $(SHELL) ./config.status libtool
|
@@ -36,174 +35,44 @@ clean-gcno:
|
36 | 35 | clean-local: clean-coverage clean-gcno
|
37 | 36 | endif
|
38 | 37 |
|
39 |
| -# proto generation etc |
40 |
| -PROTO_FILES = proto/trippath.proto proto/osmformat.proto proto/fileformat.proto |
41 |
| -BUILT_SOURCES = $(patsubst %.proto,src/%.pb.cc,$(PROTO_FILES)) |
42 |
| -CLEANFILES = $(patsubst %.proto,include/%.pb.h,$(PROTO_FILES)) $(patsubst %.proto,src/%.pb.cc,$(PROTO_FILES)) |
43 |
| -nodist_libvalhalla_la_SOURCES = $(patsubst %.proto,src/%.pb.cc,$(PROTO_FILES)) |
44 |
| -src/proto/%.pb.cc: proto/%.proto |
45 |
| - @echo " PROTOC $<"; mkdir -p src/proto include/proto; @PROTOC_BIN@ -Iproto --cpp_out=include/proto $< && mv include/proto/$(@F) src/proto |
46 |
| - |
47 | 38 | # lib valhalla compilation etc
|
48 |
| -lib_LTLIBRARIES = libvalhalla.la |
| 39 | +lib_LTLIBRARIES = libvalhalla_thor.la |
49 | 40 | include_HEADERS = \
|
50 |
| - include/baldr/directededge.h \ |
51 |
| - include/baldr/edgeinfo.h \ |
52 |
| - include/baldr/graphid.h \ |
53 |
| - include/baldr/graphreader.h \ |
54 |
| - include/baldr/graphtile.h \ |
55 |
| - include/baldr/graphtileheader.h \ |
56 |
| - include/baldr/nodeinfo.h \ |
57 |
| - include/baldr/location.h \ |
58 |
| - include/baldr/pathlocation.h \ |
59 |
| - include/midgard/linesegment2.h \ |
60 |
| - include/midgard/tiles.h \ |
61 |
| - include/midgard/aabbll.h \ |
62 |
| - include/midgard/polyline2.h \ |
63 |
| - include/midgard/obb2.h \ |
64 |
| - include/midgard/pointll.h \ |
65 |
| - include/midgard/vector2.h \ |
66 |
| - include/midgard/clipper2.h \ |
67 |
| - include/midgard/aabb2.h \ |
68 |
| - include/midgard/point2.h \ |
69 |
| - include/midgard/util.h \ |
70 |
| - include/midgard/distanceapproximator.h \ |
71 |
| - include/midgard/ellipse.h \ |
72 |
| - include/midgard/tilehierarchy.h \ |
73 |
| - include/thor/adjacencylist.h \ |
74 |
| - include/thor/astarheuristic.h \ |
75 |
| - include/thor/edgecost.h \ |
76 |
| - include/thor/edgelabel.h \ |
77 |
| - include/thor/edgestatus.h \ |
78 |
| - include/thor/pathalgorithm.h \ |
79 |
| - include/thor/trippathbuilder.h \ |
80 |
| - include/odin/narrativebuilder.h \ |
81 |
| - include/mjolnir/directededgebuilder.h \ |
82 |
| - include/mjolnir/graphtilebuilder.h \ |
83 |
| - include/mjolnir/graphtileheaderbuilder.h \ |
84 |
| - include/mjolnir/nodeinfobuilder.h \ |
85 |
| - include/mjolnir/edgeinfobuilder.h |
86 |
| -libvalhalla_la_SOURCES = \ |
87 |
| - src/baldr/directededge.cc \ |
88 |
| - src/baldr/edgeinfo.cc \ |
89 |
| - src/baldr/graphid.cc \ |
90 |
| - src/baldr/graphreader.cc \ |
91 |
| - src/baldr/graphtile.cc \ |
92 |
| - src/baldr/graphtileheader.cc \ |
93 |
| - src/baldr/nodeinfo.cc \ |
94 |
| - src/baldr/location.cc \ |
95 |
| - src/baldr/pathlocation.cc \ |
96 |
| - src/midgard/linesegment2.cc \ |
97 |
| - src/midgard/tiles.cc \ |
98 |
| - src/midgard/aabbll.cc \ |
99 |
| - src/midgard/polyline2.cc \ |
100 |
| - src/midgard/obb2.cc \ |
101 |
| - src/midgard/pointll.cc \ |
102 |
| - src/midgard/vector2.cc \ |
103 |
| - src/midgard/clipper2.cc \ |
104 |
| - src/midgard/aabb2.cc \ |
105 |
| - src/midgard/point2.cc \ |
106 |
| - src/midgard/util.cc \ |
107 |
| - src/midgard/distanceapproximator.cc \ |
108 |
| - src/midgard/ellipse.cc \ |
109 |
| - src/midgard/tilehierarchy.cc \ |
| 41 | + valhalla/thor/adjacencylist.h \ |
| 42 | + valhalla/thor/astarheuristic.h \ |
| 43 | + valhalla/thor/edgecost.h \ |
| 44 | + valhalla/thor/edgelabel.h \ |
| 45 | + valhalla/thor/edgestatus.h \ |
| 46 | + valhalla/thor/pathalgorithm.h \ |
| 47 | + valhalla/thor/trippathbuilder.h |
| 48 | +libvalhalla_thor_la_SOURCES = \ |
110 | 49 | src/thor/adjacencylist.cc \
|
111 | 50 | src/thor/astarheuristic.cc \
|
112 | 51 | src/thor/edgecost.cc \
|
113 | 52 | src/thor/edgelabel.cc \
|
114 | 53 | src/thor/edgestatus.cc \
|
115 | 54 | src/thor/pathalgorithm.cc \
|
116 |
| - src/thor/trippathbuilder.cc \ |
117 |
| - src/odin/narrativebuilder.cc \ |
118 |
| - src/mjolnir/directededgebuilder.cc \ |
119 |
| - src/mjolnir/graphtilebuilder.cc \ |
120 |
| - src/mjolnir/graphtileheaderbuilder.cc \ |
121 |
| - src/mjolnir/nodeinfobuilder.cc \ |
122 |
| - src/mjolnir/edgeinfobuilder.cc \ |
123 |
| - src/proto/fileformat.pb.cc \ |
124 |
| - src/proto/osmformat.pb.cc \ |
125 |
| - src/proto/trippath.pb.cc |
126 |
| -libvalhalla_la_CPPFLAGS = $(DEPS_CFLAGS) $(BOOST_CPPFLAGS) |
127 |
| -libvalhalla_la_LIBADD = $(DEPS_LIBS) @PROTOC_LIBS@ @BOOST_PROGRAM_OPTIONS_LIB@ @BOOST_FILESYSTEM_LIB@ |
128 |
| -if HAVE_SQLITE3 |
129 |
| -libvalhalla_la_LIBADD += @SQLITE3_LDFLAGS@ |
130 |
| -endif |
| 55 | + src/thor/trippathbuilder.cc |
| 56 | +libvalhalla_thor_la_CPPFLAGS = $(DEPS_CFLAGS) $(VALHALLA_CPPFLAGS) @BOOST_CPPFLAGS@ |
| 57 | +libvalhalla_thor_la_LIBADD = $(DEPS_LIBS) $(VALHALLA_LDFLAGS) @BOOST_PROGRAM_OPTIONS_LIB@ @BOOST_FILESYSTEM_LIB@ @PROTOC_LIBS@ |
131 | 58 |
|
132 | 59 | #distributed executables
|
133 |
| -bin_PROGRAMS = pathtest pbfgraphbuilder |
| 60 | +bin_PROGRAMS = pathtest |
134 | 61 | pathtest_SOURCES = \
|
135 | 62 | src/thor/pathtest/pathtest.cc
|
136 |
| -pathtest_CPPFLAGS = $(DEPS_CFLAGS) $(BOOST_CPPFLAGS) |
137 |
| -pathtest_LDADD = $(DEPS_LIBS) @BOOST_LDFLAGS@ @BOOST_PROGRAM_OPTIONS_LIB@ \ |
138 |
| - -lz libvalhalla.la |
139 |
| -pbfgraphbuilder_SOURCES = \ |
140 |
| - src/mjolnir/pbfgraphbuilder/pbfgraphbuilder.cc \ |
141 |
| - src/mjolnir/pbfgraphbuilder/graphbuilder.cc \ |
142 |
| - src/mjolnir/pbfgraphbuilder/luatagtransform.cc |
143 |
| -pbfgraphbuilder_CPPFLAGS = $(DEPS_CFLAGS) $(BOOST_CPPFLAGS) |
144 |
| -pbfgraphbuilder_LDADD = $(DEPS_LIBS) @BOOST_LDFLAGS@ @BOOST_PROGRAM_OPTIONS_LIB@ @BOOST_SYSTEM_LIB@ @BOOST_FILESYSTEM_LIB@ -lz libvalhalla.la |
| 63 | +pathtest_CPPFLAGS = $(DEPS_CFLAGS) $(VALHALLA_CPPFLAGS) @BOOST_CPPFLAGS@ |
| 64 | +pathtest_LDADD = $(DEPS_LIBS) $(VALHALLA_LDFLAGS) @BOOST_LDFLAGS@ @BOOST_PROGRAM_OPTIONS_LIB@ @BOOST_FILESYSTEM_LIB@ -lz libvalhalla_thor.la |
145 | 65 |
|
146 | 66 | # tests
|
147 | 67 | check_PROGRAMS = \
|
148 |
| - test/point2 \ |
149 |
| - test/distanceapproximator \ |
150 |
| - test/aabb2 \ |
151 |
| - test/linesegment2 \ |
152 | 68 | test/edgestatus \
|
153 |
| - test/aabbll \ |
154 |
| - test/vector2 \ |
155 |
| - test/polyline2 \ |
156 |
| - test/adjacencylist \ |
157 |
| - test/pointll \ |
158 |
| - test/location \ |
159 |
| - test/tilehierarchy \ |
160 |
| - test/graphid \ |
161 |
| - test/edgeinfobuilder |
162 |
| -test_valhalla_SOURCES = test/valhalla.cc test/test.cc |
163 |
| -test_valhalla_CPPFLAGS = $(DEPS_CFLAGS) $(BOOST_CPPFLAGS) |
164 |
| -test_valhalla_LDADD = $(DEPS_LIBS) @BOOST_LDFLAGS@ |
165 |
| -test_point2_SOURCES = test/point2.cc test/test.cc |
166 |
| -test_point2_CPPFLAGS = $(DEPS_CFLAGS) $(BOOST_CPPFLAGS) |
167 |
| -test_point2_LDADD = $(DEPS_LIBS) @BOOST_LDFLAGS@ libvalhalla.la |
168 |
| -test_distanceapproximator_SOURCES = test/distanceapproximator.cc test/test.cc |
169 |
| -test_distanceapproximator_CPPFLAGS = $(DEPS_CFLAGS) $(BOOST_CPPFLAGS) |
170 |
| -test_distanceapproximator_LDADD = $(DEPS_LIBS) @BOOST_LDFLAGS@ libvalhalla.la |
171 |
| -test_aabb2_SOURCES = test/aabb2.cc test/test.cc |
172 |
| -test_aabb2_CPPFLAGS = $(DEPS_CFLAGS) $(BOOST_CPPFLAGS) |
173 |
| -test_aabb2_LDADD = $(DEPS_LIBS) @BOOST_LDFLAGS@ libvalhalla.la |
174 |
| -test_linesegment2_SOURCES = test/linesegment2.cc test/test.cc |
175 |
| -test_linesegment2_CPPFLAGS = $(DEPS_CFLAGS) $(BOOST_CPPFLAGS) |
176 |
| -test_linesegment2_LDADD = $(DEPS_LIBS) @BOOST_LDFLAGS@ libvalhalla.la |
| 69 | + test/adjacencylist |
177 | 70 | test_edgestatus_SOURCES = test/edgestatus.cc test/test.cc
|
178 |
| -test_edgestatus_CPPFLAGS = $(DEPS_CFLAGS) $(BOOST_CPPFLAGS) |
179 |
| -test_edgestatus_LDADD = $(DEPS_LIBS) @BOOST_LDFLAGS@ libvalhalla.la |
180 |
| -test_aabbll_SOURCES = test/aabbll.cc test/test.cc |
181 |
| -test_aabbll_CPPFLAGS = $(DEPS_CFLAGS) $(BOOST_CPPFLAGS) |
182 |
| -test_aabbll_LDADD = $(DEPS_LIBS) @BOOST_LDFLAGS@ libvalhalla.la |
183 |
| -test_vector2_SOURCES = test/vector2.cc test/test.cc |
184 |
| -test_vector2_CPPFLAGS = $(DEPS_CFLAGS) $(BOOST_CPPFLAGS) |
185 |
| -test_vector2_LDADD = $(DEPS_LIBS) @BOOST_LDFLAGS@ libvalhalla.la |
186 |
| -test_polyline2_SOURCES = test/polyline2.cc test/test.cc |
187 |
| -test_polyline2_CPPFLAGS = $(DEPS_CFLAGS) $(BOOST_CPPFLAGS) |
188 |
| -test_polyline2_LDADD = $(DEPS_LIBS) @BOOST_LDFLAGS@ libvalhalla.la |
| 71 | +test_edgestatus_CPPFLAGS = $(DEPS_CFLAGS) $(VALHALLA_CPPFLAGS) @BOOST_CPPFLAGS@ |
| 72 | +test_edgestatus_LDADD = $(DEPS_LIBS) $(VALHALLA_LDFLAGS) @BOOST_LDFLAGS@ libvalhalla_thor.la |
189 | 73 | test_adjacencylist_SOURCES = test/adjacencylist.cc test/test.cc
|
190 |
| -test_adjacencylist_CPPFLAGS = $(DEPS_CFLAGS) $(BOOST_CPPFLAGS) |
191 |
| -test_adjacencylist_LDADD = $(DEPS_LIBS) @BOOST_LDFLAGS@ libvalhalla.la |
192 |
| -test_pointll_SOURCES = test/pointll.cc test/test.cc |
193 |
| -test_pointll_CPPFLAGS = $(DEPS_CFLAGS) $(BOOST_CPPFLAGS) |
194 |
| -test_pointll_LDADD = $(DEPS_LIBS) @BOOST_LDFLAGS@ libvalhalla.la |
195 |
| -test_location_SOURCES = test/location.cc test/test.cc |
196 |
| -test_location_CPPFLAGS = $(DEPS_CFLAGS) $(BOOST_CPPFLAGS) |
197 |
| -test_location_LDADD = $(DEPS_LIBS) @BOOST_LDFLAGS@ libvalhalla.la |
198 |
| -test_tilehierarchy_SOURCES = test/tilehierarchy.cc test/test.cc |
199 |
| -test_tilehierarchy_CPPFLAGS = $(DEPS_CFLAGS) $(BOOST_CPPFLAGS) |
200 |
| -test_tilehierarchy_LDADD = $(DEPS_LIBS) @BOOST_LDFLAGS@ libvalhalla.la |
201 |
| -test_graphid_SOURCES = test/graphid.cc test/test.cc |
202 |
| -test_graphid_CPPFLAGS = $(DEPS_CFLAGS) $(BOOST_CPPFLAGS) |
203 |
| -test_graphid_LDADD = $(DEPS_LIBS) @BOOST_LDFLAGS@ libvalhalla.la |
204 |
| -test_edgeinfobuilder_SOURCES = test/edgeinfobuilder.cc test/test.cc |
205 |
| -test_edgeinfobuilder_CPPFLAGS = $(DEPS_CFLAGS) $(BOOST_CPPFLAGS) |
206 |
| -test_edgeinfobuilder_LDADD = $(DEPS_LIBS) @BOOST_LDFLAGS@ libvalhalla.la |
| 74 | +test_adjacencylist_CPPFLAGS = $(DEPS_CFLAGS) $(VALHALLA_CPPFLAGS) @BOOST_CPPFLAGS@ |
| 75 | +test_adjacencylist_LDADD = $(DEPS_LIBS) $(VALHALLA_LDFLAGS) @BOOST_LDFLAGS@ libvalhalla_thor.la |
207 | 76 |
|
208 | 77 | TESTS = $(check_PROGRAMS)
|
209 | 78 | TEST_EXTENSIONS = .sh
|
|
0 commit comments