summaryrefslogtreecommitdiff
path: root/math/superlu/files/patch-make.inc
blob: 84e01d14120e9fa149dcb42eeba16a8bd60c58bd (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
36
37
38
39
40
41
42
43
44
45
46
47
--- make.inc.orig	2011-12-12 23:34:18.000000000 +0100
+++ make.inc	2014-08-26 23:26:34.000000000 +0200
@@ -21,14 +21,15 @@
 #
 #  The name of the libraries to be created/linked to
 #
-SuperLUroot	= $(HOME)/Codes/SuperLU/SuperLU_4.3
+SuperLUroot	= %%WRKSRC%%
 SUPERLULIB   	= $(SuperLUroot)/lib/libsuperlu_4.3.a
+SUPERLULIB_SHARED   = libsuperlu_4.3.so
 TMGLIB       	= libtmglib.a
 
 ## BLASLIB   	= $(SuperLUroot)/lib/libblas.a
 
 BLASDEF 	= -DUSE_VENDOR_BLAS
-BLASLIB 	= -L$(HOME)/lib/GotoBLAS -lgoto
+BLASLIB 	= %%BLAS%%
 
 ## ATLAS BLAS causes single-precision to fail
 #BLASLIB   	= -L/usr/lib/atlas -lblas
@@ -41,15 +42,14 @@
 #  The archiver and the flag(s) to use when building archive (library)
 #  If your system has no ranlib, set RANLIB = echo.
 #
-ARCH         = ar
+ARCMD        = ar
 ARCHFLAGS    = cr
 RANLIB       = ranlib
 
-CC           = gcc
-CFLAGS       = -DPRNTlevel=0 -O3
+CFLAGS       = -DPRNTlevel=0 %%CFLAGS%% -fpic
 NOOPTS       = 
-FORTRAN	     = g77
-FFLAGS       = -O2
+FORTRAN	     = %%FC%%
+FFLAGS       = %%FFLAGS%%
 LOADER       = $(CC)
 LOADOPTS     =
 
@@ -61,5 +61,5 @@
 #
 # The directory in which Matlab is installed
 #
-MATLAB	     = /usr/sww/matlab
+#MATLAB	     = /usr/sww/pkg/matlab