fef22fb862b53c7418c05f9a2d4417bfdd8276c1
[libdai.git] / python / Makefile
1 include ../Makefile.conf
2
3 .PHONY: all
4
5 all: _dai.so
6
7 _dai.so: ../lib/libdai.a dai.i
8 $(SWIG) -python -c++ dai.i
9 g++ -Wall -c -O3 -g -fPIC dai_wrap.cxx -I$(INCLUDE_PYTHON) -I$(INCLUDE_BOOST) -I../include
10 g++ -shared dai_wrap.o -o _dai.so ../lib/libdai.a
11
12 .PHONY: clean
13
14 clean:
15 rm -f dai_wrap.cxx dai_wrap.o _dai.so dai.py dai.pyc