0520fea69fee336721d3b9b3986874de025d549f
[libdai.git] / Makefile.MACOSX
1 # This file is part of libDAI - http://www.libdai.org/
2 #
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.
6 #
7 # Copyright (C) 2009-2010 Joris Mooij [joris dot mooij at libdai dot org]
8
9
10 # This template contains configurations for compiling libDAI under Mac OS X
11 #
12 # To use it, simply copy this file to 'Makefile.conf' and adapt 'Makefile.conf'
13 # to your local setup
14
15
16 # OPERATING SYSTEM
17 # Choose OS from {LINUX, WINDOWS, CYGWIN, MACOSX}
18 OS=MACOSX
19
20 # FILE EXTENSIONS
21 # Static library
22 LE=.a
23 # Object file
24 OE=.o
25 # Binary executable
26 EE=
27 # MatLab compiled MEX file
28 ME=.mexglx
29
30 # COMPILER
31 # Compile using GNU C++ Compiler
32 CC=g++
33 # Output filename option of the compiler
34 CCO=-o
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)
40 CCNODEBUGFLAGS=-O3
41 # Standard include directories
42 CCINC=-Iinclude -I/opt/local/include
43
44 # LINKER
45 # Standard libraries to include
46 LIBS=-ldai
47 # For linking with BOOST libraries
48 BOOSTLIBS_PO=-lboost_program_options
49 BOOSTLIBS_UTF=-lboost_unit_test_framework
50 # Additional library search paths for linker
51 CCLIB=-Llib -L/opt/local/lib
52
53 # MATLAB
54 # MatLab version 7.3 (R2006b) or newer?
55 NEW_MATLAB=true
56 # Replace the following by the directory where MatLab has been installed
57 MATLABDIR=/agbs/share/sw/matlab
58 # The following should resolve to the MatLab mex compile command
59 MEX=$(MATLABDIR)/bin/mex
60 # Specify the same C++ compiler and flags to mex
61 MEXFLAGS:=CXX\#$(CC) CXXFLAGS\#'$(CCFLAGS)'
62 # Standard include directories for MEX
63 MEXINC:=$(CCINC)
64 # Additional library search paths for MEX
65 MEXLIB=
66
67 # SWIG PYTHON INTERFACE
68 # The following should resolve to the SWIG command
69 SWIG=swig
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
74
75 # CIMG
76 # CImg version 1.3.0 or newer?
77 NEW_CIMG=true
78 # Include directory for image segmentation example
79 CIMGINC=
80 # Libraries for image segmentation example
81 CIMGLIBS=-lpthread -lX11