1 # This file is part of libDAI - http://www.libdai.org/
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.
7 # Copyright (C) 2009 Joris Mooij [joris dot mooij at libdai dot org]
10 # This template contains configurations for compiling libDAI under GNU/Linux and other UNIX variants
12 # To use it, simply copy this file to 'Makefile.conf' and adapt 'Makefile.conf'
15 # A boolean variable VAR can be set to true ("VAR=true") or to false ("VAR=")
18 # COMPILATION AND BUILD FLAGS
19 # Enable/disable various approximate inference methods
29 # Build doxygen documentation?
31 # Build with debug info?
33 # Build matlab interface?
35 # MatLab version 7.3 (R2006b) or newer?
39 # Choose OS from {LINUX, WINDOWS, CYGWIN, MACOSX}
49 # MatLab compiled MEX file
53 # Compile using GNU C++ Compiler
55 # Output filename option of the compiler
57 # Flags for the C++ compiler
58 CCFLAGS=-O3 -Wno-deprecated -Wall -W -Wextra -fpic
59 # Flags to add in debugging mode (if DEBUG=true)
60 CCDEBUGFLAGS=-g -DDAI_DEBUG
61 # Standard include directories
65 # Standard libraries to include
67 # For linking with the BOOST Program Options library
68 BOOSTLIBS=-lboost_program_options-mt
69 # Additional library search paths for linker
73 # Replace the following by the directory where MatLab has been installed
74 MATLABDIR=/agbs/share/sw/matlab
75 # The following should resolve to the MatLab mex compile command
76 MEX=$(MATLABDIR)/bin/mex
77 # Specify the same C++ compiler and flags to mex
78 MEXFLAGS=CXX\#$(CC) CXXFLAGS\#'$(CCFLAGS)'