utils/createfg: added 'ISINGUNIFORM' factor type, renamed 'ISING' into 'ISINGGAUSS'
[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 # It has been tested with Windows XP, CygWIN 1.7.4 and Boost 1.42.0
13 #
14 # To use it, simply copy this file to 'Makefile.conf' and adapt 'Makefile.conf'
15 # to your local setup
16
17
18 # OPERATING SYSTEM
19 # Choose OS from {LINUX, WINDOWS, CYGWIN, MACOSX}
20 OS=CYGWIN
21
22 # FILE EXTENSIONS
23 # Static library
24 LE=.a
25 # Object file
26 OE=.o
27 # Binary executable
28 EE=
29 # MatLab compiled MEX file
30 ME=.mexglx
31
32 # COMPILER
33 # Compile using GNU C++ Compiler
34 CC=g++
35 # Output filename option of the compiler
36 CCO=-o
37 # Flags for the C++ compiler
38 # (dynamic linking of Boost libraries seems not to work on Cygwin)
39 CCFLAGS=-Wno-deprecated -Wall -W -Wextra -DCYGWIN -static
40 # Flags to add in debugging mode (if DEBUG=true)
41 CCDEBUGFLAGS=-O3 -g -DDAI_DEBUG
42 # Flags to add in non-debugging mode (if DEBUG=false)
43 CCNODEBUGFLAGS=-O3
44 # Standard include directories
45 CCINC=-Iinclude -I/cygdrive/e/cygwin/boost_1_42_0
46
47 # LINKER
48 # Standard libraries to include
49 LIBS=-ldai
50 # For linking with BOOST libraries
51 BOOSTLIBS_PO=-lboost_program_options
52 BOOSTLIBS_UTF=-lboost_unit_test_framework
53 # Additional library search paths for linker
54 CCLIB=-Llib -L/cygdrive/e/cygwin/boost_1_42_0/stage/lib
55
56 # MATLAB
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 same C++ compiler and flags to mex
62 MEXFLAGS:=CXX\#$(CC) CXXFLAGS\#'$(CCFLAGS)'
63 # Standard include directories for MEX
64 MEXINC:=$(CCINC)
65 # Additional library search paths for MEX
66 MEXLIB=
67
68 # SWIG PYTHON INTERFACE
69 # The following should resolve to the SWIG command
70 SWIG=swig
71 # Location of Python header files
72 INCLUDE_PYTHON=/usr/include/python2.5
73 # Location of Boost C++ library header files
74 INCLUDE_BOOST=/cygdrive/e/cygwin/boost_1_42_0