New git HEAD version
[libdai.git] / Makefile.LINUX
1 # This file is part of libDAI - http://www.libdai.org/
2 #
3 # Copyright (c) 2006-2011, The libDAI authors. All rights reserved.
4 #
5 # Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
6
7
8 # This template contains configurations for compiling libDAI under GNU/Linux
9 # and other UNIX variants
10 #
11 # It has been tested with Ubuntu 8.04, Ubuntu 9.04 and Debian testing
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=.mexa64
30
31 # COMPILER
32 # Compile using GNU C++ Compiler
33 CC=g++
34 # Output filename option of the compiler
35 CCO=-o
36 # Flags for the C++ compiler
37 CCFLAGS=-Wno-deprecated -Wall -W -Wextra -fpic
38 # Flags to add in debugging mode (if DEBUG=true)
39 CCDEBUGFLAGS=-O3 -g -DDAI_DEBUG
40 # Flags to add in non-debugging mode (if DEBUG=false)
41 CCNODEBUGFLAGS=-O3
42 # Standard include directories
43 CCINC=-Iinclude
44
45 # LINKER
46 # Standard libraries to include
47 LIBS=-ldai -lgmpxx -lgmp
48 # For linking with BOOST libraries
49 BOOSTLIBS_PO=-lboost_program_options
50 BOOSTLIBS_UTF=-lboost_unit_test_framework
51 # Additional library search paths for linker
52 CCLIB=-Llib
53
54 # MATLAB
55 # MatLab version 7.3 (R2006b) or newer?
56 NEW_MATLAB=true
57 # Replace the following by the directory where MatLab has been installed
58 MATLABDIR=/opt/Matlab-R2010b
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 MEXFLAGS:=CXX\#$(CC) CXXFLAGS\#'$(CCFLAGS)'
63 # Standard include directories for MEX
64 MEXINC:=$(CCINC)
65 # Standard libraries to include
66 MEXLIBS=-lgmpxx -lgmp
67 # Additional library search paths for MEX
68 MEXLIB=
69
70 # SWIG PYTHON INTERFACE
71 # The following should resolve to the SWIG command
72 SWIG=swig
73 # Location of Python header files
74 INCLUDE_PYTHON=/usr/include/python2.7
75 # Location of Boost C++ library header files
76 INCLUDE_BOOST=/usr/include/boost
77
78 # CIMG
79 # CImg version 1.3.0 or newer?
80 NEW_CIMG=true
81 # Include directory for image segmentation example
82 CIMGINC=
83 # Libraries for image segmentation example
84 CIMGLIBS=-lpthread -lX11