f11ca17634f91fdefc4a054f8f6d86f412af35f9
[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=.mexglx
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-mt
50 BOOSTLIBS_UTF=-lboost_unit_test_framework-mt
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=/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
76
77 # CIMG
78 # CImg version 1.3.0 or newer?
79 NEW_CIMG=true
80 # Include directory for image segmentation example
81 CIMGINC=
82 # Libraries for image segmentation example
83 CIMGLIBS=-lpthread -lX11