2013-05-23 08:23:11 +02:00
|
|
|
CXXFLAGS = $(shell mapnik-config --includes --defines --cxxflags --dep-includes)
|
2011-08-30 00:42:29 +02:00
|
|
|
LDFLAGS = $(shell mapnik-config --libs --dep-libs --ldflags)
|
2007-09-15 01:07:16 +02:00
|
|
|
|
|
|
|
OBJ = rundemo.o
|
|
|
|
|
|
|
|
BIN = rundemo
|
|
|
|
|
|
|
|
all : $(BIN)
|
|
|
|
|
|
|
|
$(BIN) : $(OBJ)
|
2011-08-30 00:42:29 +02:00
|
|
|
$(CXX) $(OBJ) $(LDFLAGS) -o $@
|
2007-09-15 01:07:16 +02:00
|
|
|
|
|
|
|
.c.o :
|
|
|
|
$(CXX) -c $(CXXFLAGS) $<
|
|
|
|
|
2013-05-23 08:23:11 +02: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-15 01:07:16 +02:00
|
|
|
.PHONY : clean
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f $(OBJ)
|
|
|
|
rm -f $(BIN)
|
2013-05-23 08:23:11 +02:00
|
|
|
rm -f ./build
|