287283c05973a693de4b36744e948eb6be39a42e
[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-2010 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
16 # OPERATING SYSTEM
17 # Choose OS from {LINUX, WINDOWS, CYGWIN, MACOSX}
18 OS=CYGWIN
19
20 # FILE EXTENSIONS
21 # Static library
22 LE=.a
23 # Object file
24 OE=.o
25 # Binary executable
26 EE=
27 # MatLab compiled MEX file
28 ME=.mexglx
29
30 # COMPILER
31 # Compile using GNU C++ Compiler
32 CC=g++
33 # Output filename option of the compiler
34 CCO=-o
35 # Flags for the C++ compiler
36 # (dynamic linking of Boost libraries seems not to work on Cygwin)
37 CCFLAGS=-Wno-deprecated -Wall -W -Wextra -DCYGWIN -static
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 -I/usr/local/include/boost-1_37
44
45 # LINKER
46 # Standard libraries to include
47 LIBS=-ldai
48 # For linking with BOOST libraries
49 BOOSTLIBS_PO=-lboost_program_options-gcc34-mt
50 BOOSTLIBS_UTF=-lboost_unit_test_framework-gcc34-mt
51 # Additional library search paths for linker
52 CCLIB=-Llib
53
54 # MATLAB
55 # Replace the following by the directory where MatLab has been installed
56 MATLABDIR=/agbs/share/sw/matlab
57 # The following should resolve to the MatLab mex compile command
58 MEX=$(MATLABDIR)/bin/mex
59 # Specify the same C++ compiler and flags to mex
60 MEXFLAGS:=CXX\#$(CC) CXXFLAGS\#'$(CCFLAGS)'
61
62 # SWIG PYTHON INTERFACE
63 # The following should resolve to the SWIG command
64 SWIG=swig
65 # Location of Python header files
66 INCLUDE_PYTHON=/usr/include/python2.5
67 # Location of Boost C++ library header files
68 INCLUDE_BOOST=/usr/local/include/boost-1_37