Renamed unit tests
[libdai.git] / Makefile.WINDOWS
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 with Visual C++
11 # under Windows (and GNU Make)
12 #
13 # To use it, simply copy this file to 'Makefile.conf' and adapt 'Makefile.conf'
14 # to your local setup
15
16
17 # OPERATING SYSTEM
18 # Choose OS from {LINUX, WINDOWS, CYGWIN, MACOSX}
19 OS=WINDOWS
20
21 # FILE EXTENSIONS
22 # Static library
23 LE=.lib
24 # Object file
25 OE=.obj
26 # Binary executable
27 EE=.exe
28 # MatLab compiled MEX file
29 ME=.mexw32
30
31 # COMPILER
32 # Compile using Visual C++ Compiler
33 CC=cl
34 # Output filename option of the compiler
35 CCO=/Fe
36 # Flags for the C++ compiler
37 CCFLAGS=/EHac /GR /W3 /DWINDOWS /DNOMINMAX /MD
38 # For MatLab R2008b, the following flag seems to be necessary: /D_SECURE_SCL=0
39 # but it generates exceptions in normal executables... therefore, the MatLab
40 # interface is now built from source completely using mex
41 # Flags to add in debugging mode (if DEBUG=true)
42 CCDEBUGFLAGS=/Ox /Zi /DDAI_DEBUG
43 # Flags to add in non-debugging mode (if DEBUG=false)
44 CCNODEBUGFLAGS=/Ox
45 # Standard include directories
46 CCINC=-Iinclude -IE:\windows\boost_1_42_0
47
48 # LINKER
49 # Standard libraries to include
50 LIBS=/link $(LIB)/libdai$(LE)
51 # For linking with BOOST libraries
52 BOOSTLIBS_PO=/LIBPATH:E:\windows\boost_1_42_0\stage\lib
53 BOOSTLIBS_UTF=/LIBPATH:E:\windows\boost_1_42_0\stage\lib
54 # Additional library search paths for linker
55 # (For some reason, we have to add the VC library path, although it is in the environment)
56 CCLIB=/LIBPATH:"C:\Program Files\Microsoft Visual Studio 9.0\VC\ATLMFC\LIB" /LIBPATH:"C:\Program Files\Microsoft Visual Studio 9.0\VC\LIB" /LIBPATH:"C:\Program Files\Microsoft SDKs\Windows\v6.0A\lib"
57
58 # MATLAB
59 # Replace the following by the directory where MatLab has been installed
60 MATLABDIR=c:\matlab\R2008b
61 # The following should resolve to the MatLab mex compile command
62 MEX=$(MATLABDIR)\bin\mex
63 # Flags for MEX
64 MEXFLAGS:=-DWINDOWS -DNOMINMAX
65 # Standard include directories for MEX
66 MEXINC:=$(CCINC)
67 # Additional library search paths for MEX
68 MEXLIB=
69
70 # SWIG PYTHON INTERFACE
71 # The following should resolve to the SWIG command
72 SWIG=swig
73 # Location of Python header files
74 INCLUDE_PYTHON=C:\python2.5
75 # Location of Boost C++ library header files
76 INCLUDE_BOOST=E:\windows\boost_1_42_0