mapnik/demo/c++/Makefile

27 lines
492 B
Makefile
Raw Normal View History

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)
OBJ = rundemo.o
BIN = rundemo
all : $(BIN)
$(BIN) : $(OBJ)
2011-08-30 00:42:29 +02:00
$(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