27 lines
No EOL
492 B
Makefile
27 lines
No EOL
492 B
Makefile
CXXFLAGS = $(shell mapnik-config --includes --defines --cxxflags --dep-includes)
|
|
LDFLAGS = $(shell mapnik-config --libs --dep-libs --ldflags)
|
|
|
|
OBJ = rundemo.o
|
|
|
|
BIN = rundemo
|
|
|
|
all : $(BIN)
|
|
|
|
$(BIN) : $(OBJ)
|
|
$(CXX) $(OBJ) $(LDFLAGS) -o $@
|
|
|
|
.c.o :
|
|
$(CXX) -c $(CXXFLAGS) $<
|
|
|
|
gyp:
|
|
rm -rf ./build
|
|
gyp rundemo.gyp --depth=. -f make --generator-output=./build/
|
|
make -C ./build
|
|
build/out/Release/rundemo `mapnik-config --prefix`
|
|
|
|
.PHONY : clean
|
|
|
|
clean:
|
|
rm -f $(OBJ)
|
|
rm -f $(BIN)
|
|
rm -f ./build
|