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