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