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-2010 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'
17 # Choose OS from {LINUX, WINDOWS, CYGWIN, MACOSX}
27 # MatLab compiled MEX file
31 # Compile using GNU C++ Compiler
33 # Output filename option of the compiler
35 # Flags for the C++ compiler
36 CCFLAGS=-Wno-deprecated -Wall -W -Wextra -fPIC -DMACOSX
37 # Flags to add in debugging mode (if DEBUG=true)
38 CCDEBUGFLAGS=-O3 -g -DDAI_DEBUG
39 # Flags to add in non-debugging mode (if DEBUG=false)
41 # Standard include directories
42 CCINC=-Iinclude -I/opt/local/include
43 # Include directory for image segmentation example
47 # Standard libraries to include
49 # For linking with BOOST libraries
50 BOOSTLIBS_PO=-lboost_program_options
51 BOOSTLIBS_UTF=-lboost_unit_test_framework
52 # Libraries for image segmentation example
53 CIMGLIBS=-lpthread -lX11
54 # Additional library search paths for linker
55 CCLIB=-Llib -L/opt/local/lib
58 # Replace the following by the directory where MatLab has been installed
59 MATLABDIR=/agbs/share/sw/matlab
60 # The following should resolve to the MatLab mex compile command
61 MEX=$(MATLABDIR)/bin/mex
62 # Specify the same C++ compiler and flags to mex
63 MEXFLAGS:=CXX\#$(CC) CXXFLAGS\#'$(CCFLAGS)'
64 # Standard include directories for MEX
66 # Additional library search paths for MEX
69 # SWIG PYTHON INTERFACE
70 # The following should resolve to the SWIG command
72 # Location of Python header files
73 INCLUDE_PYTHON=/usr/include/python2.5
74 # Location of Boost C++ library header files
75 INCLUDE_BOOST=/usr/include/boost