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
21 # Build doxygen documentation?
23 # Build with debug info?
25 # Build matlab interface?
27 # New/old matlab version?
31 # Choose OS from {LINUX, WINDOWS, CYGWIN, MACOSX}
41 # MatLab compiled MEX file
45 # Compile using Visual C++ Compiler
47 # Output filename option of the compiler
49 # Flags for the C++ compiler
50 CCFLAGS=/EHsc /Ox -DWINDOWS
51 # Flags to add in debugging mode (if DEBUG=true)
52 CCDEBUGFLAGS=/Zi -DDAI_DEBUG
53 # Standard include directories
54 CCINC=/Iinclude /IC:\boost_1_36_0
57 # Standard libraries to include
58 LIBS=/link $(LIB)/libdai$(LE)
59 # For linking with the BOOST Program Options library
60 BOOSTLIBS=/LIBPATH:C:\boost_1_36_0\stage\lib
61 # Additional library search paths for linker
62 # (For some reason, we have to add the VC library path, although it is in the environment)
63 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"
66 # Replace the following by the directory where MatLab has been installed
68 # The following should resolve to the MatLab mex compile command
69 MEX=$(MATLABDIR)\bin\mex
70 # Specify the same C++ compiler and flags to mex
71 MEXFLAGS=CXX\#$(CC) CXXFLAGS\#"$(CCFLAGS)"