[Arman Aksoy] Added Makefile.MACOSX64
[libdai.git] / Makefile.WINDOWS
1 # This file is part of libDAI - http://www.libdai.org/
2 #
3 # Copyright (c) 2006-2011, The libDAI authors. All rights reserved.
4 #
5 # Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
6
7
8 # This template contains configurations for compiling libDAI with Visual C++
9 # under Windows (and GNU Make)
10 #
11 # TODO: the latest libDAI version depends on GMP (Windows users can use MPIR)
12 # This file has to be updated in order to link with the right GMP/MPIR libraries
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=WINDOWS
21
22 # FILE EXTENSIONS
23 # Static library
24 LE=.lib
25 # Object file
26 OE=.obj
27 # Binary executable
28 EE=.exe
29 # MatLab compiled MEX file
30 ME=.mexw32
31
32 # COMPILER
33 # Compile using Visual C++ Compiler
34 CC=cl
35 # Output filename option of the compiler
36 CCO=/Fe
37 # Flags for the C++ compiler
38 CCFLAGS=/EHac /GR /W3 /DWINDOWS /DNOMINMAX /MD
39 # For MatLab R2008b, the following flag seems to be necessary: /D_SECURE_SCL=0
40 # but it generates exceptions in normal executables... therefore, the MatLab
41 # interface is now built from source completely using mex
42 # Flags to add in debugging mode (if DEBUG=true)
43 CCDEBUGFLAGS=/Ox /Zi /DDAI_DEBUG
44 # Flags to add in non-debugging mode (if DEBUG=false)
45 CCNODEBUGFLAGS=/Ox
46 # Standard include directories
47 CCINC=-Iinclude -IE:\windows\boost_1_42_0
48
49 # LINKER
50 # Standard libraries to include
51 LIBS=/link $(LIB)/libdai$(LE)
52 # For linking with BOOST libraries
53 BOOSTLIBS_PO=/LIBPATH:E:\windows\boost_1_42_0\stage\lib
54 BOOSTLIBS_UTF=/LIBPATH:E:\windows\boost_1_42_0\stage\lib
55 # Additional library search paths for linker
56 # (For some reason, we have to add the VC library path, although it is in the environment)
57 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"
58
59 # MATLAB
60 # MatLab version 7.3 (R2006b) or newer?
61 NEW_MATLAB=true
62 # Replace the following by the directory where MatLab has been installed
63 MATLABDIR=c:\matlab\R2008b
64 # The following should resolve to the MatLab mex compile command
65 MEX=$(MATLABDIR)\bin\mex
66 # Flags for MEX
67 MEXFLAGS:=-DWINDOWS -DNOMINMAX
68 # Standard include directories for MEX
69 MEXINC:=$(CCINC)
70 # Additional library search paths for MEX
71 MEXLIB=
72
73 # SWIG PYTHON INTERFACE
74 # The following should resolve to the SWIG command
75 SWIG=swig
76 # Location of Python header files
77 INCLUDE_PYTHON=C:\python2.5
78 # Location of Boost C++ library header files
79 INCLUDE_BOOST=E:\windows\boost_1_42_0
80
81 # CIMG
82 # CImg version 1.3.0 or newer?
83 NEW_CIMG=true
84 # Include directory for image segmentation example
85 CIMGINC=-IE:\windows\CImg-1.3.9
86 # Libraries for image segmentation example
87 CIMGLIBS=gdi32.lib user32.lib shell32.lib