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 Mac OS X (32 bits)
10 # To use it, simply copy this file to 'Makefile.conf' and adapt 'Makefile.conf'
15 # Choose OS from {LINUX, WINDOWS, CYGWIN, MACOSX}
25 # MatLab compiled MEX file
29 # Compile using GNU C++ Compiler
31 # Output filename option of the compiler
33 # Flags for the C++ compiler
34 CCFLAGS=-Wno-deprecated -Wall -W -Wextra -fPIC -DMACOSX -arch i386
35 # Flags to add in debugging mode (if DEBUG=true)
36 CCDEBUGFLAGS=-O3 -g -DDAI_DEBUG
37 # Flags to add in non-debugging mode (if DEBUG=false)
39 # Standard include directories
40 CCINC=-Iinclude -I/opt/local/include
43 # Standard libraries to include
44 LIBS=-ldai -lgmpxx -lgmp -arch i386
45 # For linking with BOOST libraries
46 BOOSTLIBS_PO=-lboost_program_options
47 BOOSTLIBS_UTF=-lboost_unit_test_framework
48 # Additional library search paths for linker
49 CCLIB=-Llib -L/opt/local/lib
52 # MatLab version 7.3 (R2006b) or newer?
54 # Replace the following by the directory where MatLab has been installed
55 MATLABDIR=/opt/Matlab-R2010b
56 # The following should resolve to the MatLab mex compile command
57 MEX=$(MATLABDIR)/bin/mex
58 # Specify the C++ compiler and flags for MEX
59 MEXFLAGS:=CXX\#$(CC) CXXFLAGS\#'$(CCFLAGS)'
60 # Standard include directories for MEX
62 # Standard libraries to include
64 # Additional library search paths for MEX
67 # SWIG PYTHON INTERFACE
68 # The following should resolve to the SWIG command
70 # Location of Python header files
71 INCLUDE_PYTHON=/usr/include/python2.5
72 # Location of Boost C++ library header files
73 INCLUDE_BOOST=/usr/include/boost
76 # CImg version 1.3.0 or newer?
78 # Include directory for image segmentation example
80 # Libraries for image segmentation example
81 CIMGLIBS=-lpthread -lX11