Some small documentation updates
[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 # Include directory for image segmentation example
47 CIMGINC=
48
49 # LINKER
50 # Standard libraries to include
51 LIBS=-ldai
52 # For linking with BOOST libraries
53 BOOSTLIBS_PO=-lboost_program_options-mt
54 BOOSTLIBS_UTF=-lboost_unit_test_framework-mt
55 # Libraries for image segmentation example
56 CIMGLIBS=-lpthread -lX11
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 C++ compiler and flags for MEX
66 # (MatLab R2008b only works with older versions of g++)
67 MEXFLAGS:=CXX\#g++-4.1 CXXFLAGS\#'$(CCFLAGS)'
68 # Standard include directories for MEX
69 MEXINC:=$(CCINC)
70 # Additional library search paths for MEX
71 MEXLIB=
72
73 # SWIG PYTHON INTERFACE
74 # The following should resolve to the SWIG command
75 SWIG=swig
76 # Location of Python header files
77 INCLUDE_PYTHON=/usr/include/python2.5
78 # Location of Boost C++ library header files
79 INCLUDE_BOOST=/usr/include/boost