+ parameter transfer to python layer works
[qpalma.git] / QPalmaDP / Makefile
1 SRCS= Mathmatics.cpp\
2 fill_matrix.cpp\
3 qpalma_dp.cpp\
4 result_align.cpp\
5 penalty_info.cpp\
6 print_align.cpp\
7 io.cpp
8
9 OBJS = $(SRCS:%.cpp=%.o)
10
11 #CXXFLAGS=-O3 -fPIC
12 #CXXFLAGS=-O3 -fPIC -pg -fprofile-arcs
13 CXXFLAGS=-O3 -fPIC -ggdb
14
15 IF=QPalmaDP
16
17 all: $(OBJS)
18 swig -c++ -python ${IF}.i
19 g++ $(CXXFLAGS) -I/usr/include/python2.5 -c ${IF}_wrap.cxx -o ${IF}_wrap.o
20 g++ $(CXXFLAGS) -shared -lpython2.5 $(OBJS) ${IF}_wrap.o -o _${IF}.so
21 python -c "import ${IF}"
22
23 clean:
24 rm *.o *.so *.cxx ${IF}.py ${IF}.pyc
25