Fixed some bugs and deprecated non-const operator[] of Prob,Factor
[libdai.git] / Makefile.LINUX
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 GNU/Linux
11 # and other UNIX variants
12 #
13 # To use it, simply copy this file to 'Makefile.conf' and adapt 'Makefile.conf'
14 # to your local setup
15
16
17 # OPERATING SYSTEM
18 # Choose OS from {LINUX, WINDOWS, CYGWIN, MACOSX}
19 OS=LINUX
20
21 # FILE EXTENSIONS
22 # Static library
23 LE=.a
24 # Object file
25 OE=.o
26 # Binary executable
27 EE=
28 # MatLab compiled MEX file
29 ME=.mexglx
30
31 # COMPILER
32 # Compile using GNU C++ Compiler
33 ifdef WITH_MATLAB
34 # MatLab R2008b only works with older versions of g++
35 CC=g++-4.1
36 else
37 # If we don't build the MatLab interface, we prefer a newer version of g++
38 CC=g++
39 endif
40 # Output filename option of the compiler
41 CCO=-o
42 # Flags for the C++ compiler
43 CCFLAGS=-Wno-deprecated -Wall -W -Wextra -fpic
44 # Flags to add in debugging mode (if DEBUG=true)
45 CCDEBUGFLAGS=-O3 -g -DDAI_DEBUG
46 # Flags to add in non-debugging mode (if DEBUG=false)
47 CCNODEBUGFLAGS=-O3
48 # Standard include directories
49 CCINC=-Iinclude
50
51 # LINKER
52 # Standard libraries to include
53 LIBS=-ldai
54 # For linking with BOOST libraries
55 BOOSTLIBS_PO=-lboost_program_options
56 BOOSTLIBS_UTF=-lboost_unit_test_framework
57 # Additional library search paths for linker
58 CCLIB=-Llib
59
60 # MATLAB
61 # Replace the following by the directory where MatLab has been installed
62 MATLABDIR=/agbs/share/sw/matlab
63 # The following should resolve to the MatLab mex compile command
64 MEX=$(MATLABDIR)/bin/mex
65 # Specify the same C++ compiler and flags to mex
66 MEXFLAGS:=CXX\#$(CC) CXXFLAGS\#'$(CCFLAGS)'
67
68 # SWIG PYTHON INTERFACE
69 # The following should resolve to the SWIG command
70 SWIG=swig
71 # Location of Python header files
72 INCLUDE_PYTHON=/usr/include/python2.5
73 # Location of Boost C++ library header files
74 INCLUDE_BOOST=/usr/include/boost