source: foam/trunk/vision/Makefile @ 96

Revision 96, 823 bytes checked in by dave, 10 years ago (diff)

Benchmark testing added for the eigen face recognition

Line 
1TARGET  := libvision.a
2
3SRCS    := src/Image.cpp\
4        src/Rendering.cpp\
5        src/Classifier.cpp\
6        src/PCAClassifier.cpp\
7        src/LDAClassifier.cpp\
8        src/Matrix.cpp\
9        src/PCA.cpp\
10        src/SVD.cpp\
11        src/FileTools.cpp\
12        src/tinyxml.cpp\
13        src/tinyxmlerror.cpp\
14        src/tinyxmlparser.cpp
15
16CCFLAGS = `pkg-config --cflags opencv` -ggdb -Wall -O3 -ffast-math -Wno-unused -DTIXML_USE_STL
17
18CC = g++
19OBJS    := ${SRCS:.cpp=.o}
20DEPS    := ${SRCS:.cpp=.dep}
21XDEPS   := $(wildcard ${DEPS})
22
23.PHONY: all clean distclean
24all:: ${TARGET}
25
26ifneq (${XDEPS},)
27include ${XDEPS}
28endif
29
30${TARGET}: ${OBJS}
31        ar rc ${TARGET} ${OBJS}
32
33${OBJS}: %.o: %.cpp %.dep
34        ${CC} ${CCFLAGS} -o $@ -c $<
35
36${DEPS}: %.dep: %.cpp Makefile
37        ${CC} ${CCFLAGS} -MM $< > $@
38
39clean::
40        -rm -f *~ src/*.o ${TARGET}
41
42cleandeps:: clean
43        -rm -f src/*.dep
44
45distclean:: clean
46
Note: See TracBrowser for help on using the repository browser.