Fixed bug (found by cax): when building MatLab MEX files, GMP libraries were not...
[libdai.git] / Makefile.CYGWIN
index f8e6491..f2eda58 100644 (file)
@@ -43,7 +43,7 @@ CCINC=-Iinclude -I/cygdrive/e/cygwin/boost_1_42_0
 
 # LINKER
 # Standard libraries to include
-LIBS=-ldai
+LIBS=-ldai -lgmpxx -lgmp
 # For linking with BOOST libraries
 BOOSTLIBS_PO=-lboost_program_options
 BOOSTLIBS_UTF=-lboost_unit_test_framework
@@ -61,6 +61,8 @@ MEX=$(MATLABDIR)/bin/mex
 MEXFLAGS:=CXX\#$(CC) CXXFLAGS\#'$(CCFLAGS)'
 # Standard include directories for MEX
 MEXINC:=$(CCINC)
+# Standard libraries to include
+MEXLIBS=-lgmpxx -lgmp
 # Additional library search paths for MEX
 MEXLIB=