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