296cc735437461d39d2554f9c45d1196dbc70606
[libdai.git] / Makefile.CYGWIN
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 Joris Mooij [joris dot mooij at libdai dot org]
8
9
10 # This template contains configurations for compiling libDAI under CygWin
11 #
12 # To use it, simply copy this file to 'Makefile.conf' and adapt 'Makefile.conf'
13 # to your local setup
14 #
15 # A boolean variable VAR can be set to true ("VAR=true") or to false ("VAR=")
16
17
18 # COMPILATION AND BUILD FLAGS
19 # Enable/disable various approximate inference methods
20 WITH_BP=true
21 WITH_FBP=true
22 WITH_TRWBP=true
23 WITH_MF=true
24 WITH_HAK=true
25 WITH_LC=true
26 WITH_TREEEP=true
27 WITH_JTREE=true
28 WITH_MR=true
29 WITH_GIBBS=true
30 WITH_CBP=true
31 # Build doxygen documentation?
32 WITH_DOC=true
33 # Build with debug info?
34 DEBUG=true
35 # Build matlab interface?
36 WITH_MATLAB=
37 # MatLab version 7.3 (R2006b) or newer?
38 NEW_MATLAB=true
39
40 # OPERATING SYSTEM
41 # Choose OS from {LINUX, WINDOWS, CYGWIN, MACOSX}
42 OS=CYGWIN
43
44 # FILE EXTENSIONS
45 # Static library
46 LE=.a
47 # Object file
48 OE=.o
49 # Binary executable
50 EE=
51 # MatLab compiled MEX file
52 ME=.mexglx
53
54 # COMPILER
55 # Compile using GNU C++ Compiler
56 CC=g++
57 # Output filename option of the compiler
58 CCO=-o
59 # Flags for the C++ compiler
60 # (dynamic linking of Boost libraries seems not to work on Cygwin)
61 CCFLAGS=-Wno-deprecated -Wall -W -Wextra -DCYGWIN -static
62 # Flags to add in debugging mode (if DEBUG=true)
63 CCDEBUGFLAGS=-O3 -g -DDAI_DEBUG
64 # Flags to add in non-debugging mode (if DEBUG=false)
65 CCNODEBUGFLAGS=-O3
66 # Standard include directories
67 CCINC=-Iinclude -I/usr/local/include/boost-1_37
68
69 # LINKER
70 # Standard libraries to include
71 LIBS=-ldai
72 # For linking with the BOOST Program Options library
73 BOOSTLIBS=-lboost_program_options-gcc34-mt
74 # Additional library search paths for linker
75 CCLIB=-Llib
76
77 # MATLAB
78 # Replace the following by the directory where MatLab has been installed
79 MATLABDIR=/agbs/share/sw/matlab
80 # The following should resolve to the MatLab mex compile command
81 MEX=$(MATLABDIR)/bin/mex
82 # Specify the same C++ compiler and flags to mex
83 MEXFLAGS=CXX\#$(CC) CXXFLAGS\#'$(CCFLAGS)'
84
85 # SWIG PYTHON INTERFACE
86 # The following should resolve to the SWIG command
87 SWIG=swig
88 # Location of Python header files
89 INCLUDE_PYTHON=/usr/include/python2.5
90 # Location of Boost C++ library header files
91 INCLUDE_BOOST=/usr/local/include/boost-1_37