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

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

added cleandeps to the faceident makefile

RevLine 
[76]1TARGET  := faceident
[1]2
[76]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
[1]11
[76]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
[1]15
[76]16CC = g++
17OBJS    := ${SRCS:.cpp=.o}
18DEPS    := ${SRCS:.cpp=.dep}
19XDEPS   := $(wildcard ${DEPS})
[1]20
[76]21.PHONY: all clean distclean
22all:: ${TARGET}
[1]23
[76]24ifneq (${XDEPS},)
25include ${XDEPS}
26endif
[1]27
[76]28${TARGET}: ${OBJS}
29        ${CC} ${LDFLAGS} -o $@ $^ ${LIBS}
[32]30
[76]31${OBJS}: %.o: %.cpp %.dep
32        ${CC} ${CCFLAGS} -o $@ -c $<
[1]33
[76]34${DEPS}: %.dep: %.cpp Makefile
35        ${CC} ${CCFLAGS} -MM $< > $@
[1]36
[76]37clean::
38        -rm -f *~ src/*.o ${TARGET}
39
[88]40cleandeps:: clean
41        -rm -f src/*.dep
42
[76]43distclean:: clean
Note: See TracBrowser for help on using the repository browser.