1 # This file is part of libDAI - http://www.libdai.org/
3 # libDAI is licensed under the terms of the GNU General Public License version
4 # 2, or (at your option) any later version. libDAI is distributed without any
5 # warranty. See the file COPYING for more details.
7 # Copyright (C) 2009 Joris Mooij [joris dot mooij at libdai dot org]
10 # This template contains configurations for compiling libDAI with Visual C++
11 # under Windows (and GNU Make)
13 # To use it, simply copy this file to 'Makefile.conf' and adapt 'Makefile.conf'
16 # A boolean variable VAR can be set to true ("VAR=true") or to false ("VAR=")
19 # COMPILATION AND BUILD FLAGS
20 # Enable/disable various approximate inference methods
30 # Build doxygen documentation?
32 # Build with debug info?
34 # Build matlab interface?
36 # MatLab version 7.3 (R2006b) or newer?
40 # Choose OS from {LINUX, WINDOWS, CYGWIN, MACOSX}
50 # MatLab compiled MEX file
54 # Compile using Visual C++ Compiler
56 # Output filename option of the compiler
58 # Flags for the C++ compiler
59 CCFLAGS=/EHsc -DWINDOWS -DNOMINMAX
60 # Flags to add in debugging mode (if DEBUG=true)
61 CCDEBUGFLAGS=/Ox /Zi -DDAI_DEBUG
62 # Flags to add in non-debugging mode (if DEBUG=false)
64 # Standard include directories
65 CCINC=/Iinclude /IC:\boost_1_36_0
68 # Standard libraries to include
69 LIBS=/link $(LIB)/libdai$(LE)
70 # For linking with the BOOST Program Options library
71 BOOSTLIBS=/LIBPATH:C:\boost_1_36_0\stage\lib
72 # Additional library search paths for linker
73 # (For some reason, we have to add the VC library path, although it is in the environment)
74 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"
77 # Replace the following by the directory where MatLab has been installed
79 # The following should resolve to the MatLab mex compile command
80 MEX=$(MATLABDIR)\bin\mex
81 # Specify the same C++ compiler and flags to mex
82 MEXFLAGS=CXX\#$(CC) CXXFLAGS\#"$(CCFLAGS)"
84 # SWIG PYTHON INTERFACE
85 # The following should resolve to the SWIG command
87 # Location of Python header files
88 INCLUDE_PYTHON=C:\python2.5
89 # Location of Boost C++ library header files
90 INCLUDE_BOOST=C:\boost_1_36_0