0fc6d3a80d9d1df470d85b2b053ef0447289271b
[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_MF=true
23 WITH_HAK=true
24 WITH_LC=true
25 WITH_TREEEP=true
26 WITH_JTREE=true
27 WITH_MR=true
28 WITH_GIBBS=true
29 WITH_CBP=true
30 # Build doxygen documentation?
31 WITH_DOC=true
32 # Build with debug info?
33 DEBUG=true
34 # Build matlab interface?
35 WITH_MATLAB=
36 # MatLab version 7.3 (R2006b) or newer?
37 NEW_MATLAB=true
38
39 # OPERATING SYSTEM
40 # Choose OS from {LINUX, WINDOWS, CYGWIN, MACOSX}
41 OS=CYGWIN
42
43 # FILE EXTENSIONS
44 # Static library
45 LE=.a
46 # Object file
47 OE=.o
48 # Binary executable
49 EE=
50 # MatLab compiled MEX file
51 ME=.mexglx
52
53 # COMPILER
54 # Compile using GNU C++ Compiler
55 CC=g++
56 # Output filename option of the compiler
57 CCO=-o
58 # Flags for the C++ compiler
59 # (dynamic linking of Boost libraries seems not to work on Cygwin)
60 CCFLAGS=-Wno-deprecated -Wall -W -Wextra -DCYGWIN -static
61 # Flags to add in debugging mode (if DEBUG=true)
62 CCDEBUGFLAGS=-O3 -g -DDAI_DEBUG
63 # Flags to add in non-debugging mode (if DEBUG=false)
64 CCNODEBUGFLAGS=-O3
65 # Standard include directories
66 CCINC=-Iinclude -I/usr/local/include/boost-1_37
67
68 # LINKER
69 # Standard libraries to include
70 LIBS=-ldai
71 # For linking with the BOOST Program Options library
72 BOOSTLIBS=-lboost_program_options-gcc34-mt
73 # Additional library search paths for linker
74 CCLIB=-Llib
75
76 # MATLAB
77 # Replace the following by the directory where MatLab has been installed
78 MATLABDIR=/agbs/share/sw/matlab
79 # The following should resolve to the MatLab mex compile command
80 MEX=$(MATLABDIR)/bin/mex
81 # Specify the same C++ compiler and flags to mex
82 MEXFLAGS=CXX\#$(CC) CXXFLAGS\#'$(CCFLAGS)'
83
84 # SWIG PYTHON INTERFACE
85 # The following should resolve to the SWIG command
86 SWIG=swig
87 # Location of Python header files
88 INCLUDE_PYTHON=/usr/include/python2.5
89 # Location of Boost C++ library header files
90 INCLUDE_BOOST=/usr/local/include/boost-1_37