Forgot to commit ChangeLog in last commit
[libdai.git] / swig / Makefile
1 # This file is part of libDAI - http://www.libdai.org/
2 #
3 # Copyright (c) 2006-2011, The libDAI authors. All rights reserved.
4 #
5 # Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
6
7
8 include ../Makefile.conf
9
10 .PHONY: all
11
12 all: _dai.so dai.oct
13
14 _dai.so: ../lib/libdai.a dai.i
15 $(SWIG) -python -classic -c++ dai.i
16 g++ -Wall -c -O3 -g -fPIC dai_wrap.cxx -I$(INCLUDE_PYTHON) -I$(INCLUDE_BOOST) -I../include
17 g++ -shared dai_wrap.o -o _dai.so ../lib/libdai.a
18
19 dai.oct: ../lib/libdai.a dai.i
20 $(SWIG) -octave -c++ -o dai_wrap.cpp dai.i
21 mkoctfile -I$(INCLUDE_BOOST) -I../include -o dai.oct dai_wrap.cpp ../lib/libdai.a
22
23 .PHONY: clean
24
25 clean:
26 rm -f dai_wrap.cxx dai_wrap.cpp dai_wrap.o _dai.so dai.oct dai.py dai.pyc sprinkler.fg