Debian Codegraph @

3rdparty/dissection/src/Makefiles/Defs.inc.Windows

raw
1 #! \file Defs.inc
2 # \brief compiler and option settings for intel compiler on Windows
3 # \author Atsushi Suzuki, Laboratoire Jacques-Louis Lions
4 # \date Mar. 30th 2012
5 # \date Jul. 12th 2015
6 # \date Nov. 30th 2016
7
8 # This file is part of Dissection
9 #
10 # Dissection is free software: you can redistribute it and/or modify
11 # it under the terms of the GNU General Public License as published by
12 # the Free Software Foundation, either version 3 of the License, or
13 # (at your option) any later version.
14 #
15 # Linking Dissection statically or dynamically with other modules is making
16 # a combined work based on Disssection. Thus, the terms and conditions of
17 # the GNU General Public License cover the whole combination.
18 #
19 # As a special exception, the copyright holders of Dissection give you
20 # permission to combine Dissection program with free software programs or
21 # libraries that are released under the GNU LGPL and with independent modules
22 # that communicate with Dissection solely through the Dissection-fortran
23 # interface. You may copy and distribute such a system following the terms of
24 # the GNU GPL for Dissection and the licenses of the other code concerned,
25 # provided that you include the source code of that other code when and as
26 # the GNU GPL requires distribution of source code and provided that you do
27 # not modify the Dissection-fortran interface.
28 #
29 # Note that people who make modified versions of Dissection are not obligated
30 # to grant this special exception for their modified versions; it is their
31 # choice whether to do so. The GNU General Public License gives permission to
32 # release a modified version without this exception; this exception also makes
33 # it possible to release a modified version which carries forward this
34 # exception. If you modify the Dissection-fortran interface, this exception
35 # does not apply to your modified version of Dissection, and you must remove
36 # this exception when you distribute your modified version.
37 #
38 # This exception is an additional permission under section 7 of the GNU
39 # General Public License, version 3 ("GPLv3")
40 #
41 # Dissection is distributed in the hope that it will be useful,
42 # but WITHOUT ANY WARRANTY; without even the implied warranty of
43 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
44 # GNU General Public License for more details.
45 #
46 # You should have received a copy of the GNU General Public License
47 # along with Dissection. If not, see <http://www.gnu.org/licenses/>.
48 #
49
50 WORK_DIR = /Users/asuzuki/Desktop
51 PROJ_DIR = $(WORK_DIR)/dissection
52
53 PROJ_SRC = $(PROJ_DIR)/src
54
55 EXT_SHAREDLIB = dll
56 BLAS = MKL
57 # COMPILER = INTEL18
58 QUAD = DD_REAL
59 MAKE = make.exe
60 #
61 DEBUGFLAG = -EHsc #-O3
62 DISSECTION =
63 #
64 CXX = icl
65 LD = lib
66 LDOPT = /MACHINE:X64
67 SHARED_COMPILER =
68 #
69 METIS_INC = $(WORK_DIR)/metis-5.1.0/include
70 SCOTCH_INC = $(WORK_DIR)/scotch_6.0.4/include
71
72 LIB_DIR_METIS = $(WORK_DIR)/metis-5.1.0
73 LIB_DIR_SCOTCH = $(WORK_DIR)/scotch_6.0.4/lib
74
75 BLAS_DEF = -DBLAS_MKL
76 BLAS_INC = ..
77 SHARED_BLAS =
78 SHARED_COMPILER =
79 #
80 CCFLAGS = $(DEBUGFLAG) $(BLAS_DEF) -I$(BLAS_INC) -I$(PROJ_SRC) -I$(SCOTCH_INC) \
81 -I$(METIS_INC) -D$(QUAD) -DCLOCK_GETTIME
82 #
83 ifeq ($(UNAME), Darwin)
84 CCFLAGS += #-DGETRUSAGE
85 endif
86 ifeq ($(UNAME), Linux)
87 CCFLAGS += -DCLOCK_GETTIME
88 endif
89 LIB_SCOTCH = -L$(LIB_DIR_SCOTCH) -lscotch -lscotcherr
90 #
91 LIB_SCOTCH = $(LIB_DIR_SCOTCH)/libscotch.lib
92 LIB_METIS = $(LIB_DIR_METIS)/libmetis.lib
93 LIB_MKL = mkl_rt.lib