1 # This file is part of libDAI - http://www.libdai.org/
3 # Copyright (c) 2006-2011, The libDAI authors. All rights reserved.
5 # Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
8 # This template contains configurations for compiling libDAI under Cygwin
10 # It has been tested with Windows XP, Cygwin 1.7.4 and Boost 1.42.0
12 # To use it, simply copy this file to 'Makefile.conf' and adapt 'Makefile.conf'
17 # Choose OS from {LINUX, WINDOWS, CYGWIN, MACOSX}
27 # MatLab compiled MEX file
31 # Compile using GNU C++ Compiler
33 # Output filename option of the compiler
35 # Flags for the C++ compiler
36 CCFLAGS=-Wno-deprecated -Wall -W -Wextra -DCYGWIN
37 # Flags to add in debugging mode (if DEBUG=true)
38 CCDEBUGFLAGS=-O3 -g -DDAI_DEBUG
39 # Flags to add in non-debugging mode (if DEBUG=false)
41 # Standard include directories
42 CCINC=-Iinclude -I/cygdrive/e/cygwin/boost_1_42_0
45 # Standard libraries to include
46 LIBS=-ldai -lgmpxx -lgmp
47 # For linking with BOOST libraries
48 BOOSTLIBS_PO=-lboost_program_options
49 BOOSTLIBS_UTF=-lboost_unit_test_framework
50 # Additional library search paths for linker
51 CCLIB=-Llib -L/cygdrive/e/cygwin/boost_1_42_0/stage/lib
54 # MatLab version 7.3 (R2006b) or newer?
56 # Replace the following by the directory where MatLab has been installed
57 MATLABDIR=/agbs/share/sw/matlab
58 # The following should resolve to the MatLab mex compile command
59 MEX=$(MATLABDIR)/bin/mex
60 # Specify the same C++ compiler and flags to mex
61 MEXFLAGS:=CXX\#$(CC) CXXFLAGS\#'$(CCFLAGS)'
62 # Standard include directories for MEX
64 # Standard libraries to include
66 # Additional library search paths for MEX
69 # SWIG PYTHON INTERFACE
70 # The following should resolve to the SWIG command
72 # Location of Python header files
73 INCLUDE_PYTHON=/usr/include/python2.5
74 # Location of Boost C++ library header files
75 INCLUDE_BOOST=/cygdrive/e/cygwin/boost_1_42_0
78 # CImg version 1.3.0 or newer?
80 # Include directory for image segmentation example
81 CIMGINC=-I/cygdrive/e/cygwin/CImg-1.3.9
82 # Libraries for image segmentation example
83 CIMGLIBS=-lpthread -lX11