[Frederik Eaton] CBP and BBP now use automatically generated properties (using script...
[libdai.git] / Makefile.WINDOWS
1 # This template contains configurations for compiling libDAI with Visual C++
2 # under Windows (and GNU Make)
3 #
4 # To use it, simply copy this file to 'Makefile.conf' and adapt 'Makefile.conf'
5 # to your local setup
6 #
7 # A boolean variable VAR can be set to true ("VAR=true") or to false ("VAR=")
8
9 # COMPILATION AND BUILD FLAGS
10 # Enable/disable various approximate inference methods
11 WITH_BP=true
12 WITH_MF=true
13 WITH_HAK=true
14 WITH_LC=true
15 WITH_TREEEP=true
16 WITH_JTREE=true
17 WITH_MR=true
18 WITH_GIBBS=true
19 WITH_BP_DUAL=true
20 WITH_CBP=true
21 # Build doxygen documentation?
22 WITH_DOC=
23 # Build with debug info?
24 DEBUG=true
25 # Build matlab interface?
26 WITH_MATLAB=
27 # New/old matlab version?
28 NEW_MATLAB=true
29
30 # OPERATING SYSTEM
31 # Choose OS from {LINUX, WINDOWS, CYGWIN, MACOSX}
32 OS=WINDOWS
33
34 # FILE EXTENSIONS
35 # Static library
36 LE=.lib
37 # Object file
38 OE=.obj
39 # Binary executable
40 EE=.exe
41 # MatLab compiled MEX file
42 ME=.mexglx
43
44 # COMPILER
45 # Compile using Visual C++ Compiler
46 CC=cl
47 # Output filename option of the compiler
48 CCO=/Fe
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
55
56 # LINKER
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"
64
65 # MATLAB
66 # Replace the following by the directory where MatLab has been installed
67 MATLABDIR=c:\matlab
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)"