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
|
|
|
|
2014-09-18 16:23:36 -07:00
|
|
|
PG=
|
|
|
|
|
2014-02-05 22:04:58 -08:00
|
|
|
jsoncat: jsoncat.o jsonpull.o
|
2014-09-18 16:23:36 -07:00
|
|
|
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
|
2014-09-18 16:23:36 -07:00
|
|
|
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
|
2014-09-18 16:23:36 -07:00
|
|
|
cc $(PG) -O3 -g -Wall -c $<
|