3a8afefaf5547bdf9cc4b728ddd2b5106304b810
[qpalma.git] / dyn_prog / Makefile
1 SRCS= Mathmatics.cpp\
2 fill_matrix.cpp\
3 qpalma_dp.cpp\
4 result_align.cpp\
5 debug_tools.cpp\
6 penalty_info.cpp\
7 print_align.cpp\
8 io.cpp
9
10 HDRS= Mathmatics.h\
11 common.h\
12 config.h\
13 debug_tools.h\
14 fill_matrix.h\
15 io.h\
16 penalty_info.h\
17 qpalma_dp.h
18
19 OBJS = $(SRCS:%.cpp=%.o)
20
21 #CXXFLAGS=-O3 -fPIC -g -ggdb
22 CXXFLAGS=-Wall -Wshadow -std=c++98 -ggdb -O3 -fPIC -I/usr/include/python2.5
23 LDFLAGS=-lprofiler -L/fml/ag-raetsch/home/fabio/own_libs/libunwind/lib -lunwind-x86_64 -lunwind
24
25
26 IF=QPalmaDP
27
28 all: $(OBJS) $(HDRS)
29 @ swig -c++ -python ${IF}.i
30 @ g++ $(CXXFLAGS) -I/usr/include/python2.5 -c ${IF}_wrap.cxx -o ${IF}_wrap.o
31 @ g++ $(CXXFLAGS) -shared -lpython2.5 $(OBJS) ${IF}_wrap.o -o _${IF}.so
32 @ python -c "import ${IF}"
33
34 test: $(OBJS) $(HDRS)
35 g++ $(CXXFLAGS) $(LDFLAGS) -o test_fm debug_tools.o Mathmatics.o io.o penalty_info.o fill_matrix.o test_fill_matrix.cpp
36
37 clean:
38 @ rm *.o *.so *.cxx ${IF}.py ${IF}.pyc