tippecanoe/Makefile

25 lines
434 B
Makefile
Raw Normal View History

2014-02-21 16:55:36 -08:00
PREFIX=/usr/local
2014-09-15 15:18:08 -07:00
all: jsoncat libjsonpull.a geojson
2014-02-21 16:55:36 -08:00
install: jsonpull.h libjsonpull.a
cp jsonpull.h $(PREFIX)/include/jsonpull.h
cp libjsonpull.a $(PREFIX)/lib/libjsonpull.a
2014-02-05 22:04:58 -08:00
PG=
2014-02-05 22:04:58 -08:00
jsoncat: jsoncat.o jsonpull.o
cc $(PG) -g -Wall -o $@ $^
2014-02-05 22:04:58 -08:00
2014-09-15 15:18:08 -07:00
geojson: geojson.o jsonpull.o
cc $(PG) -O3 -g -Wall -o $@ $^ -lm
2014-09-15 15:18:08 -07:00
2014-02-07 16:53:02 -08:00
jsoncat.o jsonpull.o: jsonpull.h
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 $<