[Frederik Eaton] Added Fractional Belief Propagation
[libdai.git] / Makefile.WINDOWS
1 # This file is part of libDAI - http://www.libdai.org/
2 #
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.
6 #
7 # Copyright (C) 2009 Joris Mooij [joris dot mooij at libdai dot org]
8
9
10 # This template contains configurations for compiling libDAI with Visual C++
11 # under Windows (and GNU Make)
12 #
13 # To use it, simply copy this file to 'Makefile.conf' and adapt 'Makefile.conf'
14 # to your local setup
15 #
16 # A boolean variable VAR can be set to true ("VAR=true") or to false ("VAR=")
17
18
19 # COMPILATION AND BUILD FLAGS
20 # Enable/disable various approximate inference methods
21 WITH_BP=true
22 WITH_FBP=true
23 WITH_MF=true
24 WITH_HAK=true
25 WITH_LC=true
26 WITH_TREEEP=true
27 WITH_JTREE=true
28 WITH_MR=true
29 WITH_GIBBS=true
30 WITH_CBP=true
31 # Build doxygen documentation?
32 WITH_DOC=
33 # Build with debug info?
34 DEBUG=true
35 # Build matlab interface?
36 WITH_MATLAB=
37 # MatLab version 7.3 (R2006b) or newer?
38 NEW_MATLAB=true
39
40 # OPERATING SYSTEM
41 # Choose OS from {LINUX, WINDOWS, CYGWIN, MACOSX}
42 OS=WINDOWS
43
44 # FILE EXTENSIONS
45 # Static library
46 LE=.lib
47 # Object file
48 OE=.obj
49 # Binary executable
50 EE=.exe
51 # MatLab compiled MEX file
52 ME=.mexglx
53
54 # COMPILER
55 # Compile using Visual C++ Compiler
56 CC=cl
57 # Output filename option of the compiler
58 CCO=/Fe
59 # Flags for the C++ compiler
60 CCFLAGS=/EHsc -DWINDOWS -DNOMINMAX
61 # Flags to add in debugging mode (if DEBUG=true)
62 CCDEBUGFLAGS=/Ox /Zi -DDAI_DEBUG
63 # Flags to add in non-debugging mode (if DEBUG=false)
64 CCNODEBUGFLAGS=/Ox
65 # Standard include directories
66 CCINC=/Iinclude /IC:\boost_1_36_0
67
68 # LINKER
69 # Standard libraries to include
70 LIBS=/link $(LIB)/libdai$(LE)
71 # For linking with the BOOST Program Options library
72 BOOSTLIBS=/LIBPATH:C:\boost_1_36_0\stage\lib
73 # Additional library search paths for linker
74 # (For some reason, we have to add the VC library path, although it is in the environment)
75 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"
76
77 # MATLAB
78 # Replace the following by the directory where MatLab has been installed
79 MATLABDIR=c:\matlab
80 # The following should resolve to the MatLab mex compile command
81 MEX=$(MATLABDIR)\bin\mex
82 # Specify the same C++ compiler and flags to mex
83 MEXFLAGS=CXX\#$(CC) CXXFLAGS\#"$(CCFLAGS)"
84
85 # SWIG PYTHON INTERFACE
86 # The following should resolve to the SWIG command
87 SWIG=swig
88 # Location of Python header files
89 INCLUDE_PYTHON=C:\python2.5
90 # Location of Boost C++ library header files
91 INCLUDE_BOOST=C:\boost_1_36_0