Improved documentation of include/dai/jtree.h and did some cleanups
[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 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 # A boolean variable VAR can be set to true ("VAR=true") or to false ("VAR=")
16
17
18 # COMPILATION AND BUILD FLAGS
19 # Enable/disable various approximate inference methods
20 WITH_BP=true
21 WITH_MF=true
22 WITH_HAK=true
23 WITH_LC=true
24 WITH_TREEEP=true
25 WITH_JTREE=true
26 WITH_MR=true
27 WITH_GIBBS=true
28 WITH_CBP=true
29 # Build doxygen documentation?
30 WITH_DOC=true
31 # Build with debug info?
32 DEBUG=true
33 # Build matlab interface?
34 WITH_MATLAB=
35 # MatLab version 7.3 (R2006b) or newer?
36 NEW_MATLAB=true
37
38 # OPERATING SYSTEM
39 # Choose OS from {LINUX, WINDOWS, CYGWIN, MACOSX}
40 OS=MACOSX
41
42 # FILE EXTENSIONS
43 # Static library
44 LE=.a
45 # Object file
46 OE=.o
47 # Binary executable
48 EE=
49 # MatLab compiled MEX file
50 ME=.mexglx
51
52 # COMPILER
53 # Compile using GNU C++ Compiler
54 CC=g++
55 # Output filename option of the compiler
56 CCO=-o
57 # Flags for the C++ compiler
58 CCFLAGS=-Wno-deprecated -Wall -W -Wextra -fpic
59 # Flags to add in debugging mode (if DEBUG=true)
60 CCDEBUGFLAGS=-O3 -g -DDAI_DEBUG
61 # Flags to add in non-debugging mode (if DEBUG=false)
62 CCNODEBUGFLAGS=-O3
63 # Standard include directories
64 CCINC=-Iinclude -I/opt/local/include
65
66 # LINKER
67 # Standard libraries to include
68 LIBS=-ldai
69 # For linking with the BOOST Program Options library
70 BOOSTLIBS=-lboost_program_options-mt
71 # Additional library search paths for linker
72 CCLIB=-Llib -L/opt/local/lib
73
74 # MATLAB
75 # Replace the following by the directory where MatLab has been installed
76 MATLABDIR=/agbs/share/sw/matlab
77 # The following should resolve to the MatLab mex compile command
78 MEX=$(MATLABDIR)/bin/mex
79 # Specify the same C++ compiler and flags to mex
80 MEXFLAGS=CXX\#$(CC) CXXFLAGS\#'$(CCFLAGS)'
81
82 # SWIG PYTHON INTERFACE
83 # The following should resolve to the SWIG command
84 SWIG=swig
85 # Location of Python header files
86 INCLUDE_PYTHON=/usr/include/python2.5
87 # Location of Boost C++ library header files
88 INCLUDE_BOOST=/usr/include/boost