source: foam/trunk/simple-faceident/Makefile @ 88

Revision 88, 838 bytes checked in by dave, 11 years ago (diff)

added cleandeps to the faceident makefile

Line 
1TARGET  := faceident
2
3SRCS    := src/main.cpp\
4        src/FaceBank.cpp\
5        src/Face.cpp\
6        src/ImageUtils.cpp\
7        src/SceneState.cpp\
8        src/tinyxml.cpp\
9        src/tinyxmlerror.cpp\
10        src/tinyxmlparser.cpp
11
12CCFLAGS = `pkg-config --cflags opencv` -ggdb -Wall -O3 -ffast-math -Wno-unused -DTIXML_USE_STL
13LDFLAGS =
14LIBS    = `pkg-config --libs opencv` -lYARP_dev -lYARP_sig -lYARP_OS -lACE
15
16CC = g++
17OBJS    := ${SRCS:.cpp=.o}
18DEPS    := ${SRCS:.cpp=.dep}
19XDEPS   := $(wildcard ${DEPS})
20
21.PHONY: all clean distclean
22all:: ${TARGET}
23
24ifneq (${XDEPS},)
25include ${XDEPS}
26endif
27
28${TARGET}: ${OBJS}
29        ${CC} ${LDFLAGS} -o $@ $^ ${LIBS}
30
31${OBJS}: %.o: %.cpp %.dep
32        ${CC} ${CCFLAGS} -o $@ -c $<
33
34${DEPS}: %.dep: %.cpp Makefile
35        ${CC} ${CCFLAGS} -MM $< > $@
36
37clean::
38        -rm -f *~ src/*.o ${TARGET}
39
40cleandeps:: clean
41        -rm -f src/*.dep
42
43distclean:: clean
Note: See TracBrowser for help on using the repository browser.