Fixed testem failure caused by rounding error
[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 # Build doxygen documentation?
20 WITH_DOC=
21 # Build with debug info?
22 DEBUG=true
23 # Build matlab interface?
24 WITH_MATLAB=
25 # New/old matlab version?
26 NEW_MATLAB=true
27
28 # OPERATING SYSTEM
29 # Choose OS from {LINUX, WINDOWS, CYGWIN, MACOSX}
30 OS=WINDOWS
31
32 # FILE EXTENSIONS
33 # Static library
34 LE=.lib
35 # Object file
36 OE=.obj
37 # Binary executable
38 EE=.exe
39 # MatLab compiled MEX file
40 ME=.mexglx
41
42 # COMPILER
43 # Compile using Visual C++ Compiler
44 CC=cl
45 # Output filename option of the compiler
46 CCO=/Fe
47 # Flags for the C++ compiler
48 CCFLAGS=/EHsc /Ox -DWINDOWS
49 # Flags to add in debugging mode (if DEBUG=true)
50 CCDEBUGFLAGS=/Zi -DDAI_DEBUG
51 # Standard include directories
52 CCINC=/Iinclude /IC:\boost_1_36_0
53
54 # LINKER
55 # Standard libraries to include
56 LIBS=/link $(LIB)/libdai$(LE)
57 # For linking with the BOOST Program Options library
58 BOOSTLIBS=/LIBPATH:C:\boost_1_36_0\stage\lib
59 # Additional library search paths for linker
60 # (For some reason, we have to add the VC library path, although it is in the environment)
61 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"
62
63 # MATLAB
64 # Replace the following by the directory where MatLab has been installed
65 MATLABDIR=c:\matlab
66 # The following should resolve to the MatLab mex compile command
67 MEX=$(MATLABDIR)\bin\mex
68 # Specify the same C++ compiler and flags to mex
69 MEXFLAGS=CXX\#$(CC) CXXFLAGS\#"$(CCFLAGS)"