source: foam/trunk/faceident/Makefile @ 91

Revision 91, 868 bytes checked in by dave, 10 years ago (diff)

moving stuff around and making a vision lib

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