allow running without using the gui
[mussa.git] / py / module.mk
1 CURDIR := $(BASEDIR)py/
2
3 SOURCES.cpp := module.cpp \
4                conserved_path.cpp \
5                glsequence.cpp \
6                mussa.cpp \
7                nway_paths.cpp \
8                sequence.cpp
9
10 MUSSA_PY_SRC := $(addprefix $(CURDIR), $(SOURCES.cpp))
11 MUSSA_PY_OBJ := $(MUSSA_PY_SRC:.cpp=$(OBJEXT))
12
13 SRC += $(MUSSA_PY_SRC)
14 CXXFLAGS += 
15
16 MUSSAPY := $(CURDIR)/mussa.so
17 TARGETBINS += $(MUSSAPY)
18
19 $(MUSSAPY): $(MUSSA_PY_OBJ) $(MUSSA_ALG_OBJ) $(MUSSA_ALG_GL_OBJ)
20         g++ -shared $(CXXFLAGS) -lGL -lpython2.3 -lboost_python -o $@ $^