Windows platform now needs boost 1.37 or higher
[libdai.git] / Makefile.LINUX
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 under GNU/Linux and other UNIX variants
11 #
12 # To use it, simply copy this file to 'Makefile.conf' and adapt 'Makefile.conf'
13 # to your local setup
14 #
15 # A boolean variable VAR can be set to true ("VAR=true") or to false ("VAR=")
16
17
18 # COMPILATION AND BUILD FLAGS
19 # Enable/disable various approximate inference methods
20 WITH_BP=true
21 WITH_FBP=true
22 WITH_TRWBP=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=true
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=LINUX
43
44 # FILE EXTENSIONS
45 # Static library
46 LE=.a
47 # Object file
48 OE=.o
49 # Binary executable
50 EE=
51 # MatLab compiled MEX file
52 ME=.mexglx
53
54 # COMPILER
55 # Compile using GNU C++ Compiler
56 CC=g++
57 # Output filename option of the compiler
58 CCO=-o
59 # Flags for the C++ compiler
60 CCFLAGS=-Wno-deprecated -Wall -W -Wextra -fpic
61 # Flags to add in debugging mode (if DEBUG=true)
62 CCDEBUGFLAGS=-O3 -g -DDAI_DEBUG
63 # Flags to add in non-debugging mode (if DEBUG=false)
64 CCNODEBUGFLAGS=-O3
65 # Standard include directories
66 CCINC=-Iinclude
67
68 # LINKER
69 # Standard libraries to include
70 LIBS=-ldai
71 # For linking with the BOOST Program Options library
72 BOOSTLIBS=-lboost_program_options-mt
73 # Additional library search paths for linker
74 CCLIB=-Llib
75
76 # MATLAB
77 # Replace the following by the directory where MatLab has been installed
78 MATLABDIR=/agbs/share/sw/matlab
79 # The following should resolve to the MatLab mex compile command
80 MEX=$(MATLABDIR)/bin/mex
81 # Specify the same C++ compiler and flags to mex
82 MEXFLAGS=CXX\#$(CC) CXXFLAGS\#'$(CCFLAGS)'
83
84 # SWIG PYTHON INTERFACE
85 # The following should resolve to the SWIG command
86 SWIG=swig
87 # Location of Python header files
88 INCLUDE_PYTHON=/usr/include/python2.5
89 # Location of Boost C++ library header files
90 INCLUDE_BOOST=/usr/include/boost