forked from systemed/tilemaker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
28 lines (19 loc) · 776 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
LUA_CFLAGS := -I/usr/local/include/lua5.1 -I/usr/include/lua5.1
LUA_LIBS := -llua5.1
CXXFLAGS := -O3 -Wall -Wno-unknown-pragmas -Wno-sign-compare -std=c++11 -pthread $(CONFIG)
LIB := -L/usr/local/lib -lz $(LUA_LIBS) -lboost_program_options -lsqlite3 -lboost_filesystem -lboost_system -lprotobuf -lshp
INC := -I/usr/local/include -I./include -I./src $(LUA_CFLAGS)
all: tilemaker
tilemaker: include/osmformat.pb.o include/vector_tile.pb.o src/tilemaker.o
g++ $(CXXFLAGS) -o tilemaker $^ $(INC) $(LIB)
%.o: %.cpp
g++ $(CXXFLAGS) -o $@ -c $< $(INC)
%.o: %.cc
g++ $(CXXFLAGS) -o $@ -c $< $(INC)
%.pb.cc: %.proto
protoc --proto_path=include --cpp_out=include $<
install:
install -m 0755 tilemaker /usr/local/bin
clean:
rm -f tilemaker src/tilemaker.o
.PHONY: install