Debian Codegraph @

3rdparty/mumps/Makefile-mumps-5.0.2.inc

raw
1
2 abs_top_builddir=@abs_top_builddir@
3 DOWNLOADFF= $(abs_top_builddir)/3rdparty
4
5 #
6 # This file is part of MUMPS 5.0.1, built on Tue May 10 12:56:32 UTC 2011
7 #
8 ################################################################################
9 #
10 # Makefile.inc.generic
11 #
12 # This defines some parameters dependent on your platform; you should
13 # look for the approriate file in the directory ./Make.inc/ and copy it
14 # into a file called Makefile.inc. For example, from the MUMPS root
15 # directory, use
16 # "cp Make.inc/Makefile.inc.generic ./Makefile.inc"
17 # (see the main README file for details)
18 #
19 # If you do not find any suitable Makefile in Makefile.inc, use this file:
20 # "cp Make.inc/Makefile.inc.generic ./Makefile.inc" and modify it according
21 # to the comments given below. If you manage to build MUMPS on a new platform,
22 # and think that this could be useful to others, you may want to send us
23 # the corresponding Makefile.inc file.
24 #
25 ################################################################################
26
27
28 ########################################################################
29 #Begin orderings
30 #
31 # NOTE that PORD is distributed within MUMPS by default. If you would like to
32 # use other orderings, you need to obtain the corresponding package and modify
33 # the variables below accordingly.
34 # For example, to have Metis available within MUMPS:
35 # 1/ download Metis and compile it
36 # 2/ uncomment (suppress # in first column) lines
37 # starting with LMETISDIR, LMETIS
38 # 3/ add -Dmetis in line ORDERINGSF
39 # ORDERINGSF = -Dpord -Dmetis
40 # 4/ Compile and install MUMPS
41 # make clean; make (to clean up previous installation)
42 #
43 # Metis/ParMetis and SCOTCH/PT-SCOTCH (ver 5.1 and later) orderings are now available for MUMPS.
44 #
45
46 SCOTCHDIR = $(DOWNLOADFF)/
47 ISCOTCH = -I$(SCOTCHDIR)/include/scotch
48 # You have to choose one among the following two lines depending on
49 # the type of analysis you want to perform. If you want to perform only
50 # sequential analysis choose the first (remember to add -Dscotch in the ORDERINGSF
51 # variable below); for both parallel and sequential analysis choose the second
52 # line (remember to add -Dptscotch in the ORDERINGSF variable below)
53
54 #LSCOTCH = -L$(SCOTCHDIR)/lib/scotch/ -lesmumps -lscotch -lscotcherr
55 LSCOTCH = -L$(SCOTCHDIR)/lib -lptesmumps -lptscotch -lptscotcherr
56
57
58 LPORDDIR = $(topdir)/PORD/lib/
59 IPORD = -I$(topdir)/PORD/include/
60 LPORD = -L$(LPORDDIR) -lpord
61
62 LMETISDIR = $(DOWNLOADFF)
63 #IMETIS = # Metis doesn't need include files (Fortran interface avail.)
64
65 # You have to choose one among the following two lines depending on
66 # the type of analysis you want to perform. If you want to perform only
67 # sequential analysis choose the first (remember to add -Dmetis in the ORDERINGSF
68 # variable below); for both parallel and sequential analysis choose the second
69 # line (remember to add -Dparmetis in the ORDERINGSF variable below)
70
71 LMETIS =
72 #-L$(LMETISDIR)/lib -lparmetis -lmetis
73
74 # The following variables will be used in the compilation process.
75 # Please note that -Dptscotch and -Dparmetis imply -Dscotch and -Dmetis respectively.
76 ORDERINGSF = -Dscotch -Dpord
77 #ORDERINGSF = -Dscotch -Dmetis -Dpord -Dptscotch -Dparmetis
78 #ORDERINGSF = -Dpord
79 ORDERINGSC = $(ORDERINGSF)
80
81 LORDERINGS = $(LMETIS) $(LPORD) $(LSCOTCH)
82 IORDERINGSF = $(ISCOTCH)
83 IORDERINGSC = $(IMETIS) $(IPORD) $(ISCOTCH)
84
85 #End orderings
86 ########################################################################
87 # DEFINE HERE SOME COMMON COMMANDS, THE COMPILER NAMES, ETC...
88
89 # PLAT : use it to add a default suffix to the generated libraries
90 PLAT = FREEFEM
91 # Library extension, + C and Fortran "-o" option
92 # may be different under Windows
93 LIBEXT = .a
94 OUTC = -o
95 OUTF = -o
96 # RM : remove files
97 RM = /bin/rm -f
98 # CC : C compiler
99 CC = @CC@
100 # FC : Fortran 90 compiler
101 FC = @FC@
102 # FL : Fortran linker
103 FL = @FC@
104 # AR : Archive object in a library
105 # keep a space at the end if options have to be separated from lib name
106 AR = @AR@ @ARFLAGS@
107 # RANLIB : generate index of an archive file
108 # (optionnal use "RANLIB = echo" in case of problem)
109 RANLIB = @RANLIB@
110 #RANLIB = echo
111
112 # SCALAP should define the SCALAPACK and BLACS libraries.
113 SCALAPDIR = $(DOWNLOADFF)/lib/scalapack/
114 SCALAP = $(FFBLASLIB) -L$(SCALAPDIR) -lscalapack -L$(DOWNLOADFF)/lib/blacs/ -lblacs_MPI-$(PLAT)-0 -lblacsF77init_MPI-$(PLAT)-0 -lblacsCinit_MPI-$(PLAT)-0
115
116 # INCLUDE DIRECTORY FOR MPI
117 INCPAR = $(FFMPIINCLUDE)
118
119 # LIBRARIES USED BY THE PARALLEL VERSION OF MUMPS: $(SCALAP) and MPI
120 LIBPAR = $(SCALAP) $(FFMPILIB)
121
122 # The parallel version is not concerned by the next two lines.
123 # They are related to the sequential library provided by MUMPS,
124 # to use instead of ScaLAPACK and MPI.
125 INCSEQ = -I$(topdir)/libseq
126 LIBSEQ = -L$(topdir)/libseq -lmpiseq
127
128 # DEFINE HERE YOUR BLAS LIBRARY
129
130 LIBBLAS = @BLASLIBS@
131
132 # DEFINE YOUR PTHREAD LIBRARY
133 LIBOTHERS = @LIBSPTHREAD@ @FLIBS@ $(FFLIBOTHERSMUMPS)
134 LIBSPTHREAD = @LIBSPTHREAD@
135
136 # FORTRAN/C COMPATIBILITY:
137 # Use:
138 # -DAdd_ if your Fortran compiler adds an underscore at the end
139 # of symbols,
140 # -DAdd__ if your Fortran compiler adds 2 underscores,
141 #
142 # -DUPPER if your Fortran compiler uses uppercase symbols
143 #
144 # leave empty if your Fortran compiler does not change the symbols.
145 #
146
147
148 CDEFS = @CFLAGSF77@
149
150 #COMPILER OPTIONS
151
152 # FFCS - 23/4/13 - -fno-range-check required on MinGW to compile with
153 # Microsoft MPI. mpif.h contains INTEGER MPI_FLOAT_INT / PARAMETER
154 # (MPI_FLOAT_INT=z'8c000000') which requires this.
155
156 OPTF = -O @FCFLAGS@ @MPI_INCLUDE@ @NO_RANGE_CHECK@
157 OPTC = -O -I. @CFLAGS@ @MPI_INCLUDE@
158 OPTL = -O @FFLAGS@ @MPI_LIBFC@
159
160
161 # CHOOSE BETWEEN USING THE SEQUENTIAL OR THE PARALLEL VERSION.
162
163 #Sequential:
164 #INCS = $(INCSEQ)
165 #LIBS = $(LIBSEQ)
166 #LIBSEQNEEDED = libseqneeded
167
168 #Parallel:
169 INCS = $(INCPAR)
170 LIBS = $(LIBPAR)
171 LIBSEQNEEDED = libseqneeded
172
173 WGET = @WGET@