Merged duplicate code (in calcBeliefF() and calcNewMessage()) in BP,FBP,TRWBP
[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_TRWBP=true
24 WITH_MF=true
25 WITH_HAK=true
26 WITH_LC=true
27 WITH_TREEEP=true
28 WITH_JTREE=true
29 WITH_MR=true
30 WITH_GIBBS=true
31 WITH_CBP=true
32 # Build doxygen documentation?
33 WITH_DOC=
34 # Build with debug info?
35 DEBUG=true
36 # Build matlab interface?
37 WITH_MATLAB=
38 # MatLab version 7.3 (R2006b) or newer?
39 NEW_MATLAB=true
40
41 # OPERATING SYSTEM
42 # Choose OS from {LINUX, WINDOWS, CYGWIN, MACOSX}
43 OS=WINDOWS
44
45 # FILE EXTENSIONS
46 # Static library
47 LE=.lib
48 # Object file
49 OE=.obj
50 # Binary executable
51 EE=.exe
52 # MatLab compiled MEX file
53 ME=.mexglx
54
55 # COMPILER
56 # Compile using Visual C++ Compiler
57 CC=cl
58 # Output filename option of the compiler
59 CCO=/Fe
60 # Flags for the C++ compiler
61 CCFLAGS=/EHsc -DWINDOWS -DNOMINMAX
62 # Flags to add in debugging mode (if DEBUG=true)
63 CCDEBUGFLAGS=/Ox /Zi -DDAI_DEBUG
64 # Flags to add in non-debugging mode (if DEBUG=false)
65 CCNODEBUGFLAGS=/Ox
66 # Standard include directories
67 CCINC=/Iinclude /IC:\boost_1_36_0
68
69 # LINKER
70 # Standard libraries to include
71 LIBS=/link $(LIB)/libdai$(LE)
72 # For linking with the BOOST Program Options library
73 BOOSTLIBS=/LIBPATH:C:\boost_1_36_0\stage\lib
74 # Additional library search paths for linker
75 # (For some reason, we have to add the VC library path, although it is in the environment)
76 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
78 # MATLAB
79 # Replace the following by the directory where MatLab has been installed
80 MATLABDIR=c:\matlab
81 # The following should resolve to the MatLab mex compile command
82 MEX=$(MATLABDIR)\bin\mex
83 # Specify the same C++ compiler and flags to mex
84 MEXFLAGS=CXX\#$(CC) CXXFLAGS\#"$(CCFLAGS)"
85
86 # SWIG PYTHON INTERFACE
87 # The following should resolve to the SWIG command
88 SWIG=swig
89 # Location of Python header files
90 INCLUDE_PYTHON=C:\python2.5
91 # Location of Boost C++ library header files
92 INCLUDE_BOOST=C:\boost_1_36_0