summaryrefslogtreecommitdiff
path: root/math/scalapack/files/patch-SLmake.inc.example
blob: b2740add5e2bb0a884b748d1c6d6764b332e6e5f (plain) (blame)
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
--- SLmake.inc.example.orig	2011-11-01 18:24:54.000000000 +0100
+++ SLmake.inc.example	2014-08-24 11:35:47.000000000 +0200
@@ -20,17 +20,17 @@
 #     -DUpCase   (fortran subprogram names are upper case without any suffix)
 #     -DAdd_     (fortran subprogram names are lower case with "_" appended)
 
-CDEFS         = -DAdd_
+CDEFS         = -DAdd_ -DNO_IEEE $(USEMPI)
 
 #
 #  The fortran and C compilers, loaders, and their flags
 #
 
-FC            = mpif90
-CC            = mpicc 
-NOOPT         = -O0
-FCFLAGS       = -O3
-CCFLAGS       = -O3
+FC            = @MPIF77@
+CC            = @MPICC@
+NOOPT         = @NOOPT@
+FCFLAGS       = @FFLAGS@
+CCFLAGS       = @CFLAGS@
 FCLOADER      = $(FC)
 CCLOADER      = $(CC)
 FCLOADFLAGS   = $(FCFLAGS)
@@ -55,6 +55,6 @@
 #  BLAS, LAPACK (and possibly other) libraries needed for linking test programs
 #
 
-BLASLIB       = -lblas
-LAPACKLIB     = -llapack
+BLASLIB       = -L@LOCALBASE@/lib @BLAS@
+LAPACKLIB     = -L@LOCALBASE@/lib @LAPACK@
 LIBS          = $(LAPACKLIB) $(BLASLIB)