Added octave target and a README to SWIG wrappers
authorJoris Mooij <joris.mooij@tuebingen.mpg.de>
Tue, 13 Oct 2009 15:09:19 +0000 (17:09 +0200)
committerJoris Mooij <joris.mooij@tuebingen.mpg.de>
Tue, 13 Oct 2009 15:09:19 +0000 (17:09 +0200)
python/Makefile
python/README [new file with mode: 0644]

index 6dfc7a4..316148d 100644 (file)
@@ -18,7 +18,11 @@ _dai.so:             ../lib/libdai.a dai.i
                        g++ -Wall -c -O3 -g -fPIC dai_wrap.cxx -I$(INCLUDE_PYTHON) -I$(INCLUDE_BOOST) -I../include
                        g++ -shared dai_wrap.o -o _dai.so ../lib/libdai.a
 
+dai.oct:               ../lib/libdai.a dai.i
+                       $(SWIG) -octave -c++ -o dai_wrap.cpp dai.i
+                       mkoctfile -I$(INCLUDE_PYTHON) -I$(INCLUDE_BOOST) -I../include -l../lib/libdai.a dai_wrap.cpp
+
 .PHONY: clean
 
 clean:         
-                       rm -f dai_wrap.cxx dai_wrap.o _dai.so dai.py dai.pyc sprinkler.fg
+                       rm -f dai_wrap.cxx dai_wrap.cpp dai_wrap.o _dai.so dai.oct dai.py dai.pyc sprinkler.fg
diff --git a/python/README b/python/README
new file mode 100644 (file)
index 0000000..bebf640
--- /dev/null
@@ -0,0 +1,3 @@
+This directory contains preliminary experimental SWIG wrappers for libDAI
+written by Patrick Pletscher. They enable usage of libDAI functionality
+directly from python and octave.