source: level2/competencies/FaceTracking/Makefile @ 203

Revision 203, 778 bytes checked in by dave, 10 years ago (diff)

added ExpressionRecog?

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