2014-02-22 00:55:36 +00:00
|
|
|
PREFIX=/usr/local
|
|
|
|
|
2014-10-23 22:40:27 +00:00
|
|
|
all: tippecanoe enumerate decode
|
2014-02-22 00:55:36 +00:00
|
|
|
|
2014-09-26 21:53:10 +00:00
|
|
|
install: tippecanoe
|
|
|
|
cp tippecanoe $(PREFIX)/bin/tippecanoe
|
2014-02-06 06:04:58 +00:00
|
|
|
|
2014-09-22 17:44:30 +00:00
|
|
|
vector_tile.pb.cc vector_tile.pb.h: vector_tile.proto
|
|
|
|
protoc --cpp_out=. vector_tile.proto
|
|
|
|
|
2014-09-18 23:23:36 +00:00
|
|
|
PG=
|
|
|
|
|
2014-10-24 22:12:02 +00:00
|
|
|
tippecanoe: geojson.o jsonpull.o vector_tile.pb.o tile.o clip.o pool.o mbtiles.o geometry.o
|
2014-09-26 22:25:12 +00:00
|
|
|
g++ $(PG) -O3 -g -Wall -o $@ $^ -lm -lz -lprotobuf-lite -lsqlite3
|
2014-09-15 22:18:08 +00:00
|
|
|
|
2014-10-23 21:04:57 +00:00
|
|
|
enumerate: enumerate.o
|
|
|
|
gcc $(PG) -O3 -g -Wall -o $@ $^ -lsqlite3
|
|
|
|
|
2014-10-23 22:40:27 +00:00
|
|
|
decode: decode.o vector_tile.pb.o
|
|
|
|
g++ $(PG) -O3 -g -Wall -o $@ $^ -lm -lz -lprotobuf-lite -lsqlite3
|
|
|
|
|
2014-02-22 00:55:36 +00:00
|
|
|
libjsonpull.a: jsonpull.o
|
|
|
|
ar rc $@ $^
|
|
|
|
ranlib $@
|
|
|
|
|
2014-02-06 06:04:58 +00:00
|
|
|
%.o: %.c
|
2014-09-18 23:23:36 +00:00
|
|
|
cc $(PG) -O3 -g -Wall -c $<
|
2014-09-22 17:44:30 +00:00
|
|
|
|
|
|
|
%.o: %.cc
|
2014-09-22 22:41:13 +00:00
|
|
|
g++ $(PG) -O3 -g -Wall -c $<
|
2014-09-26 21:53:10 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm tippecanoe *.o
|