source: foam/trunk/faceclassifier/Makefile @ 94

Revision 94, 853 bytes checked in by dave, 10 years ago (diff)

added face classifier application, not working yet

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