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 # It has been tested with Ubuntu 8.04, Ubuntu 9.04 and Debian testing
9 # Copyright (C) 2009-2010 Joris Mooij [joris dot mooij at libdai dot org]
12 # This template contains configurations for compiling libDAI under GNU/Linux
13 # and other UNIX variants
15 # To use it, simply copy this file to 'Makefile.conf' and adapt 'Makefile.conf'
20 # Choose OS from {LINUX, WINDOWS, CYGWIN, MACOSX}
30 # MatLab compiled MEX file
34 # Compile using GNU C++ Compiler
36 # Output filename option of the compiler
38 # Flags for the C++ compiler
39 CCFLAGS=-Wno-deprecated -Wall -W -Wextra -fpic
40 # Flags to add in debugging mode (if DEBUG=true)
41 CCDEBUGFLAGS=-O3 -g -DDAI_DEBUG
42 # Flags to add in non-debugging mode (if DEBUG=false)
44 # Standard include directories
48 # Standard libraries to include
50 # For linking with BOOST libraries
51 BOOSTLIBS_PO=-lboost_program_options-mt
52 BOOSTLIBS_UTF=-lboost_unit_test_framework-mt
53 # Additional library search paths for linker
57 # MatLab version 7.3 (R2006b) or newer?
59 # Replace the following by the directory where MatLab has been installed
60 MATLABDIR=/agbs/share/sw/matlab
61 # The following should resolve to the MatLab mex compile command
62 MEX=$(MATLABDIR)/bin/mex
63 # Specify the C++ compiler and flags for MEX
64 # (MatLab R2008b only works with older versions of g++)
65 MEXFLAGS:=CXX\#g++-4.1 CXXFLAGS\#'$(CCFLAGS)'
66 # Standard include directories for MEX
68 # Additional library search paths for MEX
71 # SWIG PYTHON INTERFACE
72 # The following should resolve to the SWIG command
74 # Location of Python header files
75 INCLUDE_PYTHON=/usr/include/python2.5
76 # Location of Boost C++ library header files
77 INCLUDE_BOOST=/usr/include/boost
80 # CImg version 1.3.0 or newer?
82 # Include directory for image segmentation example
84 # Libraries for image segmentation example
85 CIMGLIBS=-lpthread -lX11