git master
----------
+* Fixed bug (found by Andy Mueller): added GMP library invocations to swig Makefile
* Fixed bug (found by Yan): replaced GNU extension __PRETTY_FUNCTION__ by __FUNCTION (Visual Studio) or __func__ (other compilers)
* Fixed bug (found by cax): when building MatLab MEX files, GMP libraries were not linked
* [Arman Aksoy] Added Makefile.MACOSX64
# The following should resolve to the SWIG command
SWIG=swig
# Location of Python header files
-INCLUDE_PYTHON=/usr/include/python2.5
+INCLUDE_PYTHON=/usr/include/python2.7
# Location of Boost C++ library header files
INCLUDE_BOOST=/usr/include/boost
_dai.so: ../lib/libdai.a dai.i
$(SWIG) -python -classic -c++ 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
+ g++ -Wall -c -O3 -g -fPIC dai_wrap.cxx -I$(INCLUDE_PYTHON) -I$(INCLUDE_BOOST) -I../include -lgmpxx -lgmp
+ g++ -shared dai_wrap.o -o _dai.so ../lib/libdai.a -lgmpxx -lgmp
dai.oct: ../lib/libdai.a dai.i
$(SWIG) -octave -c++ -o dai_wrap.cpp dai.i
- mkoctfile -I$(INCLUDE_BOOST) -I../include -o dai.oct dai_wrap.cpp ../lib/libdai.a
+ mkoctfile -I$(INCLUDE_BOOST) -I../include -o dai.oct dai_wrap.cpp ../lib/libdai.a -lgmpxx -lgmp
.PHONY: clean