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