mirror of
https://github.com/mapbox/tippecanoe.git
synced 2025-03-23 20:35:16 +00:00
Make it an actual library
This commit is contained in:
parent
18e90522cb
commit
0509a860fb
12
Makefile
12
Makefile
@ -1,9 +1,19 @@
|
||||
all: jsoncat
|
||||
PREFIX=/usr/local
|
||||
|
||||
all: jsoncat libjsonpull.a
|
||||
|
||||
install: jsonpull.h libjsonpull.a
|
||||
cp jsonpull.h $(PREFIX)/include/jsonpull.h
|
||||
cp libjsonpull.a $(PREFIX)/lib/libjsonpull.a
|
||||
|
||||
jsoncat: jsoncat.o jsonpull.o
|
||||
cc -g -Wall -o $@ $^
|
||||
|
||||
jsoncat.o jsonpull.o: jsonpull.h
|
||||
|
||||
libjsonpull.a: jsonpull.o
|
||||
ar rc $@ $^
|
||||
ranlib $@
|
||||
|
||||
%.o: %.c
|
||||
cc -g -Wall -c $<
|
||||
|
Loading…
x
Reference in New Issue
Block a user