source: libs/suds/Makefile @ 155

Revision 155, 1.1 KB checked in by dave, 10 years ago (diff)

rename

Line 
1TARGET  := libsuds.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/FaceFinder.cpp\
13        src/Geometry.cpp\
14        src/tinyxml.cpp\
15        src/tinyxmlerror.cpp\
16        src/tinyxmlparser.cpp
17
18CCFLAGS = `pkg-config --cflags opencv` -ggdb -Wall -O3 -ffast-math -Wno-unused -DTIXML_USE_STL
19LIBS    = `pkg-config --libs opencv`
20PYTHON_INCLUDE = -I/usr/include/python2.5
21
22CC = g++
23OBJS    := ${SRCS:.cpp=.o}
24DEPS    := ${SRCS:.cpp=.dep}
25XDEPS   := $(wildcard ${DEPS})
26
27.PHONY: all clean distclean
28all:: ${TARGET}
29
30ifneq (${XDEPS},)
31include ${XDEPS}
32endif
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
43clean::
44        -rm -f *~ src/*.o ${TARGET}
45
46cleandeps:: clean
47        -rm -f src/*.dep
48
49distclean:: clean
50
51python:: ${TARGET}
52        swig -c++ -python src/suds.i
53        g++ ${CCFLAGS} -c src/suds_wrap.cxx ${PYTHON_INCLUDE}
54        g++ -shared ${OBJS} suds_wrap.o ${LIBS} -o _suds.so
55        mv _suds.so python
56        mv src/suds.py python
57       
Note: See TracBrowser for help on using the repository browser.