1 # This template contains configurations for compiling libDAI with Visual C++
2 # under Windows (and GNU Make)
4 # To use it, simply copy this file to 'Makefile.conf' and adapt 'Makefile.conf'
7 # A boolean variable VAR can be set to true ("VAR=true") or to false ("VAR=")
9 # COMPILATION AND BUILD FLAGS
10 # Enable/disable various approximate inference methods
20 # Build doxygen documentation?
22 # Build with debug info?
24 # Build matlab interface?
26 # MatLab version 7.3 (R2006b) or newer?
30 # Choose OS from {LINUX, WINDOWS, CYGWIN, MACOSX}
40 # MatLab compiled MEX file
44 # Compile using Visual C++ Compiler
46 # Output filename option of the compiler
48 # Flags for the C++ compiler
49 CCFLAGS=/EHsc /Ox -DWINDOWS
50 # Flags to add in debugging mode (if DEBUG=true)
51 CCDEBUGFLAGS=/Zi -DDAI_DEBUG
52 # Standard include directories
53 CCINC=/Iinclude /IC:\boost_1_36_0
56 # Standard libraries to include
57 LIBS=/link $(LIB)/libdai$(LE)
58 # For linking with the BOOST Program Options library
59 BOOSTLIBS=/LIBPATH:C:\boost_1_36_0\stage\lib
60 # Additional library search paths for linker
61 # (For some reason, we have to add the VC library path, although it is in the environment)
62 CCLIB=/LIBPATH:"C:\Program Files\Microsoft Visual Studio 9.0\VC\ATLMFC\LIB" /LIBPATH:"C:\Program Files\Microsoft Visual Studio 9.0\VC\LIB" /LIBPATH:"C:\Program Files\Microsoft SDKs\Windows\v6.0A\lib"
65 # Replace the following by the directory where MatLab has been installed
67 # The following should resolve to the MatLab mex compile command
68 MEX=$(MATLABDIR)\bin\mex
69 # Specify the same C++ compiler and flags to mex
70 MEXFLAGS=CXX\#$(CC) CXXFLAGS\#"$(CCFLAGS)"