Add vector tile boilerplate

This commit is contained in:
Eric Fischer
2014-09-22 10:45:34 -07:00
parent 647edc36d6
commit 95ff8de6d9
2 changed files with 100 additions and 2 deletions
+8 -2
View File
@@ -6,13 +6,16 @@ install: jsonpull.h libjsonpull.a
cp jsonpull.h $(PREFIX)/include/jsonpull.h
cp libjsonpull.a $(PREFIX)/lib/libjsonpull.a
vector_tile.pb.cc vector_tile.pb.h: vector_tile.proto
protoc --cpp_out=. vector_tile.proto
PG=
jsoncat: jsoncat.o jsonpull.o
cc $(PG) -g -Wall -o $@ $^
geojson: geojson.o jsonpull.o
cc $(PG) -O3 -g -Wall -o $@ $^ -lm
geojson: geojson.o jsonpull.o vector_tile.pb.o
cc $(PG) -O3 -g -Wall -o $@ $^ -lm -lz -lprotobuf-lite
jsoncat.o jsonpull.o: jsonpull.h
@@ -22,3 +25,6 @@ libjsonpull.a: jsonpull.o
%.o: %.c
cc $(PG) -O3 -g -Wall -c $<
%.o: %.cc
g++ -g -Wall -O3 -c $<