[Frederik Eaton] Added BP_Dual, BBP and CBP algorithms
[libdai.git] / Makefile.LINUX
1 # This template contains configurations for compiling libDAI under GNU/Linux
2 # and other UNIX variants
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=true
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=LINUX
33
34 # FILE EXTENSIONS
35 # Static library
36 LE=.a
37 # Object file
38 OE=.o
39 # Binary executable
40 EE=
41 # MatLab compiled MEX file
42 ME=.mexglx
43
44 # COMPILER
45 # Compile using GNU C++ Compiler
46 CC=g++
47 # Output filename option of the compiler
48 CCO=-o
49 # Flags for the C++ compiler
50 CCFLAGS=-O3 -Wno-deprecated -Wall -W -Wextra -fpic
51 # Flags to add in debugging mode (if DEBUG=true)
52 CCDEBUGFLAGS=-g -DDAI_DEBUG
53 # Standard include directories
54 CCINC=-Iinclude
55
56 # LINKER
57 # Standard libraries to include
58 LIBS=-ldai
59 # For linking with the BOOST Program Options library
60 BOOSTLIBS=-lboost_program_options-mt
61 # Additional library search paths for linker
62 CCLIB=-Llib
63
64 # MATLAB
65 # Replace the following by the directory where MatLab has been installed
66 MATLABDIR=/agbs/share/sw/matlab
67 # The following should resolve to the MatLab mex compile command
68 MEX=$(MATLABDIR)/bin/mex
69 # Specify the same C++ compiler and flags to mex
70 MEXFLAGS=CXX\#$(CC) CXXFLAGS\#'$(CCFLAGS)'