| 1 |
|
| 2 |
abs_top_builddir=@abs_top_builddir@ |
| 3 |
DOWNLOADFF= $(abs_top_builddir)/3rdparty |
| 4 |
|
| 5 |
# |
| 6 |
# This file is part of MUMPS 4.10.0, 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 = # -L$(LMETISDIR)/lib -lparmetis -lmetis |
| 72 |
|
| 73 |
# The following variables will be used in the compilation process. |
| 74 |
# Please note that -Dptscotch and -Dparmetis imply -Dscotch and -Dmetis respectively. |
| 75 |
#ORDERINGSF = -Dscotch -Dmetis -Dpord -Dptscotch -Dparmetis |
| 76 |
ORDERINGSF = -Dpord |
| 77 |
ORDERINGSC = $(ORDERINGSF) |
| 78 |
|
| 79 |
LORDERINGS = $(LMETIS) $(LPORD) $(LSCOTCH) |
| 80 |
IORDERINGSF = $(ISCOTCH) |
| 81 |
IORDERINGSC = $(IMETIS) $(IPORD) $(ISCOTCH) |
| 82 |
|
| 83 |
#End orderings |
| 84 |
######################################################################## |
| 85 |
# DEFINE HERE SOME COMMON COMMANDS, THE COMPILER NAMES, ETC... |
| 86 |
|
| 87 |
# PLAT : use it to add a default suffix to the generated libraries |
| 88 |
PLAT = FREEFEM-SEQ |
| 89 |
# Library extension, + C and Fortran "-o" option |
| 90 |
# may be different under Windows |
| 91 |
LIBEXT = .a |
| 92 |
OUTC = -o |
| 93 |
OUTF = -o |
| 94 |
# RM : remove files |
| 95 |
RM = /bin/rm -f |
| 96 |
# CC : C compiler |
| 97 |
CC = @CC@ |
| 98 |
# FC : Fortran 90 compiler |
| 99 |
FC = @FC@ |
| 100 |
# FL : Fortran linker |
| 101 |
FL = @FC@ |
| 102 |
# AR : Archive object in a library |
| 103 |
# keep a space at the end if options have to be separated from lib name |
| 104 |
AR = @AR@ @ARFLAGS@ |
| 105 |
# RANLIB : generate index of an archive file |
| 106 |
# (optionnal use "RANLIB = echo" in case of problem) |
| 107 |
RANLIB = @RANLIB@ |
| 108 |
#RANLIB = echo |
| 109 |
|
| 110 |
# SCALAP should define the SCALAPACK and BLACS libraries. |
| 111 |
#SCALAPDIR = $(DOWNLOADFF)/lib/scalapack/ |
| 112 |
#SCALAP = $(FFBLASLIB) -L$(SCALAPDIR) -lscalapack -L$(DOWNLOADFF)/lib/blacs/ -lblacs_MPI-$(PLAT)-0 -lblacsF77init_MPI-$(PLAT)-0 -lblacsCinit_MPI-$(PLAT)-0 |
| 113 |
|
| 114 |
# INCLUDE DIRECTORY FOR MPI |
| 115 |
#INCPAR = $(FFMPIINCLUDE) |
| 116 |
|
| 117 |
# LIBRARIES USED BY THE PARALLEL VERSION OF MUMPS: $(SCALAP) and MPI |
| 118 |
LIBPAR = #$(SCALAP) $(FFMPILIB) |
| 119 |
|
| 120 |
# The parallel version is not concerned by the next two lines. |
| 121 |
# They are related to the sequential library provided by MUMPS, |
| 122 |
# to use instead of ScaLAPACK and MPI.l |
| 123 |
INCSEQ = -I$(DOWNLOADFF)/mumps-seq/MUMPS_5.0.2/libseq |
| 124 |
LIBSEQ = -L$(DOWNLOADFF)//mumps-seq/MUMPS_5.0.2/libseq -lmpiseq$(PLAT) |
| 125 |
|
| 126 |
# DEFINE HERE YOUR BLAS LIBRARY |
| 127 |
|
| 128 |
LIBBLAS = @BLASLIBS@ |
| 129 |
|
| 130 |
# DEFINE YOUR PTHREAD LIBRARY |
| 131 |
LIBOTHERS = @LIBSPTHREAD@ @FLIBS@ $(FFLIBOTHERSMUMPS) |
| 132 |
LIBSPTHREAD = @LIBSPTHREAD@ |
| 133 |
|
| 134 |
# FORTRAN/C COMPATIBILITY: |
| 135 |
# Use: |
| 136 |
# -DAdd_ if your Fortran compiler adds an underscore at the end |
| 137 |
# of symbols, |
| 138 |
# -DAdd__ if your Fortran compiler adds 2 underscores, |
| 139 |
# |
| 140 |
# -DUPPER if your Fortran compiler uses uppercase symbols |
| 141 |
# |
| 142 |
# leave empty if your Fortran compiler does not change the symbols. |
| 143 |
# |
| 144 |
|
| 145 |
|
| 146 |
CDEFS = @CFLAGSF77@ |
| 147 |
|
| 148 |
#COMPILER OPTIONS |
| 149 |
OPTF = -O @FFLAGS@ |
| 150 |
OPTC = -O -I. @CFLAGS@ |
| 151 |
OPTL = -O @FFLAGS@ |
| 152 |
|
| 153 |
|
| 154 |
# CHOOSE BETWEEN USING THE SEQUENTIAL OR THE PARALLEL VERSION. |
| 155 |
|
| 156 |
#Sequential: |
| 157 |
INCS = $(INCSEQ) |
| 158 |
LIBS = $(LIBSEQ) |
| 159 |
LIBSEQNEEDED = libseqneeded |
| 160 |
|
| 161 |
#Parallel: |
| 162 |
#INCS = $(INCPAR) |
| 163 |
#LIBS = $(LIBPAR) |
| 164 |
#LIBSEQNEEDED = libseqneeded |
| 165 |
|
| 166 |
WGET = @WGET@ |
| 167 |
# Local Variables: |
| 168 |
# mode:makefile |
| 169 |
# ispell-local-dictionary:"british" |
| 170 |
# coding:utf-8 |
| 171 |
# End: |