tippecanoe/Makefile

36 lines
791 B
Makefile
Raw Normal View History

2014-02-22 00:55:36 +00:00
PREFIX=/usr/local
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
PG=
H = $(shell find . '(' -name '*.h' -o -name '*.hh' ')')
tippecanoe: geojson.o jsonpull.o vector_tile.pb.o tile.o clip.o pool.o mbtiles.o geometry.o projection.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
enumerate: enumerate.o
gcc $(PG) -O3 -g -Wall -o $@ $^ -lsqlite3
decode: decode.o vector_tile.pb.o projection.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 $@
%.o: %.c $(H)
cc $(PG) -O3 -g -Wall -c $<
2014-09-22 17:44:30 +00:00
%.o: %.cc $(H)
g++ $(PG) -O3 -g -Wall -c $<
2014-09-26 21:53:10 +00:00
clean:
rm tippecanoe *.o