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