From c227ea8b5f179472fee61f107d2f8196f281a3e4 Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Tue, 10 Jul 2012 14:46:00 -0700 Subject: [PATCH] add sample Makefile for local dev --- plugins/input/templates/helloworld/Makefile | 30 +++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 plugins/input/templates/helloworld/Makefile diff --git a/plugins/input/templates/helloworld/Makefile b/plugins/input/templates/helloworld/Makefile new file mode 100644 index 000000000..5ad5c357d --- /dev/null +++ b/plugins/input/templates/helloworld/Makefile @@ -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 \ No newline at end of file