tippecanoe/Makefile

28 lines
484 B
Makefile
Raw Normal View History

2014-02-21 16:55:36 -08:00
PREFIX=/usr/local
2014-09-26 14:53:10 -07:00
all: tippecanoe
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=
tippecanoe: geojson.o jsonpull.o vector_tile.pb.o tile.o clip.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
2014-02-21 16:55:36 -08:00
libjsonpull.a: jsonpull.o
ar rc $@ $^
ranlib $@
2014-02-05 22:04:58 -08:00
%.o: %.c
cc $(PG) -O3 -g -Wall -c $<
2014-09-22 10:44:30 -07:00
%.o: %.cc
g++ $(PG) -O3 -g -Wall -c $<
2014-09-26 14:53:10 -07:00
clean:
rm tippecanoe *.o