Debian Codegraph @

demo/c++/Makefile

raw
1 CXXFLAGS = $(shell mapnik-config --includes --defines --cxxflags --dep-includes)
2 LDFLAGS = $(shell mapnik-config --libs --dep-libs --ldflags)
3
4 OBJ = rundemo.o
5
6 BIN = rundemo
7
8 all : $(BIN)
9
10 $(BIN) : $(OBJ)
11 $(CXX) $(OBJ) $(LDFLAGS) -o $@
12
13 .c.o :
14 $(CXX) -c $(CXXFLAGS) $<
15
16 gyp:
17 rm -rf ./build
18 gyp rundemo.gyp --depth=. -f make --generator-output=./build/
19 make -C ./build
20 build/out/Release/rundemo `mapnik-config --prefix`
21
22 .PHONY : clean
23
24 clean:
25 rm -f $(OBJ)
26 rm -f $(BIN)
27 rm -f ./build