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 Mac OS X
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=-Wno-deprecated -Wall -W -Wextra -fPIC -DMACOSX
59 # Flags to add in debugging mode (if DEBUG=true)
60 CCDEBUGFLAGS=-O3 -g -DDAI_DEBUG
61 # Flags to add in non-debugging mode (if DEBUG=false)
63 # Standard include directories
64 CCINC=-Iinclude -I/opt/local/include
67 # Standard libraries to include
69 # For linking with the BOOST Program Options library
70 BOOSTLIBS=-lboost_program_options-mt
71 # Additional library search paths for linker
72 CCLIB=-Llib -L/opt/local/lib
75 # Replace the following by the directory where MatLab has been installed
76 MATLABDIR=/agbs/share/sw/matlab
77 # The following should resolve to the MatLab mex compile command
78 MEX=$(MATLABDIR)/bin/mex
79 # Specify the same C++ compiler and flags to mex
80 MEXFLAGS=CXX\#$(CC) CXXFLAGS\#'$(CCFLAGS)'
82 # SWIG PYTHON INTERFACE
83 # The following should resolve to the SWIG command
85 # Location of Python header files
86 INCLUDE_PYTHON=/usr/include/python2.5
87 # Location of Boost C++ library header files
88 INCLUDE_BOOST=/usr/include/boost