2013-05-23 06:23:11 +00:00
|
|
|
CXXFLAGS = $(shell mapnik-config --includes --defines --cxxflags --dep-includes)
|
2011-08-29 22:42:29 +00:00
|
|
|
LDFLAGS = $(shell mapnik-config --libs --dep-libs --ldflags)
|
2007-09-14 23:07:16 +00:00
|
|
|
|
|
|
|
OBJ = rundemo.o
|
|
|
|
|
|
|
|
BIN = rundemo
|
|
|
|
|
|
|
|
all : $(BIN)
|
|
|
|
|
|
|
|
$(BIN) : $(OBJ)
|
2011-08-29 22:42:29 +00:00
|
|
|
$(CXX) $(OBJ) $(LDFLAGS) -o $@
|
2007-09-14 23:07:16 +00:00
|
|
|
|
|
|
|
.c.o :
|
|
|
|
$(CXX) -c $(CXXFLAGS) $<
|
|
|
|
|
2013-05-23 06:23:11 +00:00
|
|
|
gyp:
|
|
|
|
rm -rf ./build
|
|
|
|
gyp rundemo.gyp --depth=. -f make --generator-output=./build/
|
|
|
|
make -C ./build
|
|
|
|
build/out/Release/rundemo `mapnik-config --prefix`
|
|
|
|
|
2007-09-14 23:07:16 +00:00
|
|
|
.PHONY : clean
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f $(OBJ)
|
|
|
|
rm -f $(BIN)
|
2013-05-23 06:23:11 +00:00
|
|
|
rm -f ./build
|