Commit to a name

This commit is contained in:
Eric Fischer
2014-09-26 14:53:10 -07:00
parent 7052378613
commit c083d2f9f8
+7 -10
View File
@@ -1,24 +1,18 @@
PREFIX=/usr/local PREFIX=/usr/local
all: jsoncat libjsonpull.a geojson all: tippecanoe
install: jsonpull.h libjsonpull.a install: tippecanoe
cp jsonpull.h $(PREFIX)/include/jsonpull.h cp tippecanoe $(PREFIX)/bin/tippecanoe
cp libjsonpull.a $(PREFIX)/lib/libjsonpull.a
vector_tile.pb.cc vector_tile.pb.h: vector_tile.proto vector_tile.pb.cc vector_tile.pb.h: vector_tile.proto
protoc --cpp_out=. vector_tile.proto protoc --cpp_out=. vector_tile.proto
PG= PG=
jsoncat: jsoncat.o jsonpull.o tippecanoe: geojson.o jsonpull.o vector_tile.pb.o tile.o
cc $(PG) -g -Wall -o $@ $^
geojson: geojson.o jsonpull.o vector_tile.pb.o tile.o
cc $(PG) -O3 -g -Wall -o $@ $^ -lm -lz -lprotobuf-lite -lsqlite3 cc $(PG) -O3 -g -Wall -o $@ $^ -lm -lz -lprotobuf-lite -lsqlite3
jsoncat.o jsonpull.o: jsonpull.h
libjsonpull.a: jsonpull.o libjsonpull.a: jsonpull.o
ar rc $@ $^ ar rc $@ $^
ranlib $@ ranlib $@
@@ -28,3 +22,6 @@ libjsonpull.a: jsonpull.o
%.o: %.cc %.o: %.cc
g++ $(PG) -O3 -g -Wall -c $< g++ $(PG) -O3 -g -Wall -c $<
clean:
rm tippecanoe *.o