source: foam/trunk/vision/Makefile @ 91

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

moving stuff around and making a vision lib

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