tippecanoe/Makefile

36 lines
791 B
Makefile
Raw Normal View History

2014-02-21 16:55:36 -08:00
PREFIX=/usr/local
all: tippecanoe enumerate decode
2014-02-21 16:55:36 -08:00
2014-09-26 14:53:10 -07:00
install: tippecanoe
cp tippecanoe $(PREFIX)/bin/tippecanoe
2014-02-05 22:04:58 -08:00
2014-09-22 10:44:30 -07: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 15:25:12 -07:00
g++ $(PG) -O3 -g -Wall -o $@ $^ -lm -lz -lprotobuf-lite -lsqlite3
2014-09-15 15:18:08 -07: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-21 16:55:36 -08:00
libjsonpull.a: jsonpull.o
ar rc $@ $^
ranlib $@
%.o: %.c $(H)
cc $(PG) -O3 -g -Wall -c $<
2014-09-22 10:44:30 -07:00
%.o: %.cc $(H)
g++ $(PG) -O3 -g -Wall -c $<
2014-09-26 14:53:10 -07:00
clean:
rm tippecanoe *.o