Revision 722e5f16ebb6d351bb089e427a7b170d8db8f963 authored by Eric Fischer on 01 October 2014, 21:01:58 UTC, committed by Eric Fischer on 01 October 2014, 21:01:58 UTC
1 parent 6922a57
Raw File
Makefile
PREFIX=/usr/local

all: tippecanoe

install: tippecanoe
	cp tippecanoe $(PREFIX)/bin/tippecanoe

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 pool.o mbtiles.o
	g++ $(PG) -O3 -g -Wall -o $@ $^ -lm -lz -lprotobuf-lite -lsqlite3

libjsonpull.a: jsonpull.o
	ar rc $@ $^
	ranlib $@

%.o: %.c
	cc $(PG) -O3 -g -Wall -c $<

%.o: %.cc
	g++ $(PG) -O3 -g -Wall -c $<

clean:
	rm tippecanoe *.o
back to top