source: foam/trunk/vision/Makefile @ 90

Revision 90, 890 bytes checked in by dave, 11 years ago (diff)

PCA updated - projection and resynthesis seem to work

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