add sample Makefile for local dev
This commit is contained in:
parent
f79fd4634e
commit
c227ea8b5f
1 changed files with 30 additions and 0 deletions
30
plugins/input/templates/helloworld/Makefile
Normal file
30
plugins/input/templates/helloworld/Makefile
Normal file
|
@ -0,0 +1,30 @@
|
|||
CXX = clang++
|
||||
|
||||
CXXFLAGS = $(shell mapnik-config --cflags)
|
||||
|
||||
LIBS = $(shell mapnik-config --libs --ldflags --dep-libs)
|
||||
|
||||
SRC = $(wildcard *.cpp)
|
||||
|
||||
OBJ = $(SRC:.cpp=.o)
|
||||
|
||||
BIN = hello.input
|
||||
|
||||
all : $(SRC) $(BIN)
|
||||
|
||||
$(BIN) : $(OBJ)
|
||||
$(CXX) -shared $(OBJ) $(LIBS) -o $@
|
||||
|
||||
.cpp.o :
|
||||
$(CXX) -c $(CXXFLAGS) $< -o $@
|
||||
|
||||
.PHONY : clean
|
||||
|
||||
clean:
|
||||
rm -f $(OBJ)
|
||||
rm -f $(BIN)
|
||||
|
||||
deploy:
|
||||
cp hello.input $(shell mapnik-config --input-plugins)
|
||||
|
||||
install: clean all deploy
|
Loading…
Reference in a new issue