MEX file dai now also returns variable and factor beliefs.
[libdai.git] / Makefile.MACOSX
1 # This template contains configurations for compiling libDAI under Mac OS X
2 #
3 # To use it, simply copy this file to 'Makefile.conf' and adapt 'Makefile.conf'
4 # to your local setup
5 #
6 # A boolean variable VAR can be set to true ("VAR=true") or to false ("VAR=")
7
8 # COMPILATION AND BUILD FLAGS
9 # Enable/disable various approximate inference methods
10 WITH_BP=true
11 WITH_MF=true
12 WITH_HAK=true
13 WITH_LC=true
14 WITH_TREEEP=true
15 WITH_JTREE=true
16 WITH_MR=true
17 WITH_GIBBS=true
18 # Build doxygen documentation?
19 WITH_DOC=true
20 # Build with debug info?
21 DEBUG=true
22 # Build matlab interface?
23 WITH_MATLAB=
24 # MatLab version 7.3 (R2006b) or newer?
25 NEW_MATLAB=true
26
27 # OPERATING SYSTEM
28 # Choose OS from {LINUX, WINDOWS, CYGWIN, MACOSX}
29 OS=MACOSX
30
31 # FILE EXTENSIONS
32 # Static library
33 LE=.a
34 # Object file
35 OE=.o
36 # Binary executable
37 EE=
38 # MatLab compiled MEX file
39 ME=.mexglx
40
41 # COMPILER
42 # Compile using GNU C++ Compiler
43 CC=g++
44 # Output filename option of the compiler
45 CCO=-o
46 # Flags for the C++ compiler
47 CCFLAGS=-O3 -Wno-deprecated -Wall -W -Wextra -fpic
48 # Flags to add in debugging mode (if DEBUG=true)
49 CCDEBUGFLAGS=-g -DDAI_DEBUG
50 # Standard include directories
51 CCINC=-Iinclude -I/opt/local/include
52
53 # LINKER
54 # Standard libraries to include
55 LIBS=-ldai
56 # For linking with the BOOST Program Options library
57 BOOSTLIBS=-lboost_program_options-mt
58 # Additional library search paths for linker
59 CCLIB=-Llib -L/opt/local/lib
60
61 # MATLAB
62 # Replace the following by the directory where MatLab has been installed
63 MATLABDIR=/agbs/share/sw/matlab
64 # The following should resolve to the MatLab mex compile command
65 MEX=$(MATLABDIR)/bin/mex
66 # Specify the same C++ compiler and flags to mex
67 MEXFLAGS=CXX\#$(CC) CXXFLAGS\#'$(CCFLAGS)'