Revision 206,
1.2 KB
checked in by dave, 10 years ago
(diff) |
rename and removed some big stuff
|
Line | |
---|
1 | TARGET := libmagicsquares.a |
---|
2 | |
---|
3 | SRCS := 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/FaceFinder.cpp\ |
---|
13 | src/Geometry.cpp\ |
---|
14 | src/tinyxml.cpp\ |
---|
15 | src/tinyxmlerror.cpp\ |
---|
16 | src/tinyxmlparser.cpp |
---|
17 | |
---|
18 | CCFLAGS = `pkg-config --cflags opencv` -ggdb -Wall -O3 -ffast-math -Wno-unused -DTIXML_USE_STL |
---|
19 | LIBS = `pkg-config --libs opencv` |
---|
20 | PYTHON_INCLUDE = -I/usr/include/python2.5 |
---|
21 | |
---|
22 | CC = g++ |
---|
23 | OBJS := ${SRCS:.cpp=.o} |
---|
24 | DEPS := ${SRCS:.cpp=.dep} |
---|
25 | XDEPS := $(wildcard ${DEPS}) |
---|
26 | |
---|
27 | .PHONY: all clean distclean |
---|
28 | all:: ${TARGET} |
---|
29 | |
---|
30 | ifneq (${XDEPS},) |
---|
31 | include ${XDEPS} |
---|
32 | endif |
---|
33 | |
---|
34 | ${TARGET}: ${OBJS} |
---|
35 | ar rc ${TARGET} ${OBJS} |
---|
36 | |
---|
37 | ${OBJS}: %.o: %.cpp %.dep |
---|
38 | ${CC} ${CCFLAGS} -o $@ -c $< |
---|
39 | |
---|
40 | ${DEPS}: %.dep: %.cpp Makefile |
---|
41 | ${CC} ${CCFLAGS} -MM $< > $@ |
---|
42 | |
---|
43 | clean:: |
---|
44 | -rm -f *~ src/*.o ${TARGET} |
---|
45 | |
---|
46 | cleandeps:: clean |
---|
47 | -rm -f src/*.dep |
---|
48 | |
---|
49 | distclean:: clean |
---|
50 | |
---|
51 | python:: ${TARGET} |
---|
52 | swig -c++ -python src/magicsquares.i |
---|
53 | g++ ${CCFLAGS} -c src/magicsquares_wrap.cxx ${PYTHON_INCLUDE} |
---|
54 | g++ -shared ${OBJS} magicsquares_wrap.o ${LIBS} -o _magicsquares.so |
---|
55 | mv _magicsquares.so python |
---|
56 | mv src/magicsquares.py python |
---|
57 | |
---|
Note: See
TracBrowser
for help on using the repository browser.