1 # This file is part of libDAI - http://www.libdai.org/
3 # Copyright (c) 2006-2011, The libDAI authors. All rights reserved.
5 # Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
8 # This template contains configurations for compiling libDAI under GNU/Linux
9 # and other UNIX variants
11 # It has been tested with Ubuntu 8.04, Ubuntu 9.04 and Debian testing
13 # To use it, simply copy this file to 'Makefile.conf' and adapt 'Makefile.conf'
18 # Choose OS from {LINUX, WINDOWS, CYGWIN, MACOSX}
28 # MatLab compiled MEX file
32 # Compile using GNU C++ Compiler
34 # Output filename option of the compiler
36 # Flags for the C++ compiler
37 CCFLAGS=-Wno-deprecated -Wall -W -Wextra -fpic
38 # Flags to add in debugging mode (if DEBUG=true)
39 CCDEBUGFLAGS=-O3 -g -DDAI_DEBUG
40 # Flags to add in non-debugging mode (if DEBUG=false)
42 # Standard include directories
46 # Standard libraries to include
47 LIBS=-ldai -lgmpxx -lgmp
48 # For linking with BOOST libraries
49 BOOSTLIBS_PO=-lboost_program_options
50 BOOSTLIBS_UTF=-lboost_unit_test_framework
51 # Additional library search paths for linker
55 # MatLab version 7.3 (R2006b) or newer?
57 # Replace the following by the directory where MatLab has been installed
58 MATLABDIR=/opt/Matlab-R2010b
59 # The following should resolve to the MatLab mex compile command
60 MEX=$(MATLABDIR)/bin/mex
61 # Specify the C++ compiler and flags for MEX
62 MEXFLAGS:=CXX\#$(CC) CXXFLAGS\#'$(CCFLAGS)'
63 # Standard include directories for MEX
65 # Standard libraries to include
67 # Additional library search paths for MEX
70 # SWIG PYTHON INTERFACE
71 # The following should resolve to the SWIG command
73 # Location of Python header files
74 INCLUDE_PYTHON=/usr/include/python2.7
75 # Location of Boost C++ library header files
76 INCLUDE_BOOST=/usr/include/boost
79 # CImg version 1.3.0 or newer?
81 # Include directory for image segmentation example
83 # Libraries for image segmentation example
84 CIMGLIBS=-lpthread -lX11