29 lines
365 B
Makefile
29 lines
365 B
Makefile
|
CXX = g++
|
||
|
|
||
|
INCLUDE = `pkg-config --cflags mapnik freetype2`
|
||
|
LIBDIR = `pkg-config --libs mapnik freetype2`
|
||
|
|
||
|
DEFINES =
|
||
|
|
||
|
CXXFLAGS = $(DEFINES) $(INCLUDE) -Wall
|
||
|
|
||
|
LIBS = $(LIBDIR)
|
||
|
|
||
|
OBJ = rundemo.o
|
||
|
|
||
|
BIN = rundemo
|
||
|
|
||
|
all : $(BIN)
|
||
|
|
||
|
$(BIN) : $(OBJ)
|
||
|
libtool $(CXX) $(OBJ) $(LIBS) -o $@
|
||
|
|
||
|
.c.o :
|
||
|
$(CXX) -c $(CXXFLAGS) $<
|
||
|
|
||
|
.PHONY : clean
|
||
|
|
||
|
clean:
|
||
|
rm -f $(OBJ)
|
||
|
rm -f $(BIN)
|