blob: 05198133f27c09668354efb230bd9f3f4f64f3fd (
plain)
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
|
#
# This file is part of MUMPS 5.1.1, released
# on Mon Mar 20 14:34:33 UTC 2017
#
# These settings for a PC under Debian/linux with standard packages :
# metis (parmetis), scotch, gfortran
# packages installation :
# apt-get install libmetis-dev libscotch-dev libatlas-base-dev lapack-dev
# Adapted by Drew Parsons from Make.inc/Makefile.debian.SEQ, based on
# Adam Powell and Roberto C. Sanchez' earlier adaptations from Makefile.gfortran.seq and Makefile.G95.seq
# Begin orderings
LSCOTCHDIR = /usr/lib
ISCOTCH = -I/usr/include/scotch
#LSCOTCH = -L$(LSCOTCHDIR) -lptesmumps -lptscotch -lptscotcherr
LSCOTCH = -L$(LSCOTCHDIR) -lesmumps -lscotch -lscotcherr
LPORDDIR = $(topdir)/PORD/lib/
IPORD = -I$(topdir)/PORD/include/
LPORD = -L$(LPORDDIR) -lpord
LMETISDIR = /usr/lib
#IMETIS = -I/usr/include/parmetis
IMETIS = -I/usr/include/metis
# LMETIS = -L$(LMETISDIR) -lparmetis -lmetis
LMETIS = -L$(LMETISDIR) -lmetis
# Corresponding variables reused later
#ORDERINGSF = -Dmetis -Dpord -Dparmetis -Dscotch -Dptscotch
ORDERINGSF = -Dmetis -Dpord -Dscotch
ORDERINGSC = $(ORDERINGSF)
LORDERINGS = $(LMETIS) $(LPORD) $(LSCOTCH)
IORDERINGSF = $(ISCOTCH)
IORDERINGSC = $(IMETIS) $(IPORD) $(ISCOTCH)
# End orderings
################################################################################
PLAT =
LIBEXT = .a
OUTC = -o
OUTF = -o
RM = /bin/rm -f
CC = gcc
FC = gfortran
FL = gfortran
AR = ar vr
RANLIB = ranlib
LAPACK = -llapack
MPIFLIB = -L$(topdir)/libseq -lmpiseq$(PLAT)
INCSEQ = -I$(topdir)/libseq
LIBSEQ = $(LAPACK) $(MPIFLIB)
LIBBLAS = -lblas
LIBOTHERS = -lpthread
#Preprocessor defs for calling Fortran from C (-DAdd_ or -DAdd__ or -DUPPER)
CDEFS = -DAdd_
#Begin Optimized options
OPTF := -O -DPORD_INTSIZE64 -fallow-argument-mismatch -Dintel_ # -fopenmp
OPTL := -O # -fopenmp
OPTC := -O -DPORD_INTSIZE64 # -fopenmp
#End Optimized options
INCS = $(INCSEQ)
LIBS = $(LIBSEQ)
LIBSEQNEEDED = libseqneeded
|