summaryrefslogtreecommitdiff
path: root/math/superlu_mt/files/patch-make.inc
blob: c1b389011630cea71d1bf25d7afb423ac0d50645 (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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
--- make.inc.orig	2008-01-18 05:53:51.000000000 +0900
+++ make.inc	2008-07-02 09:44:04.000000000 +0900
@@ -16,13 +16,13 @@
 #
 #  The machine (platform) identifier to append to the library names
 #
-PLAT = _sp
+PLAT = _PTHREAD
 
 #
 #  The name of the libraries to be created/linked to
 #
-TMGLIB       = libtmglib.a
-SUPERLULIB   = libsuperlu_mt$(PLAT).a
+TMGLIB       = libtmg.a
+SUPERLULIB   = libsuperlu_mt.a
 
 # 
 # If you don't have ESSL, you can use the following blaslib instead:
@@ -30,10 +30,10 @@
 # which may be slower than ESSL
 #
 BLASDEF	  = -DUSE_VENDOR_BLAS
-BLASLIB   = -lessl
+BLASLIB   = %%BLAS_LIBS%%
 #BLASLIB   = ../lib/libblas$(PLAT).a
 MATHLIB	  = -lm 
-MPLIB	  = -lpthread
+MPLIB	  = %%PTHREAD_LIBS%%
 
 #  The archiver and the flag(s) to use when building archive (library)
 #  If your system has no ranlib, set RANLIB = echo.
@@ -46,12 +46,12 @@
 PREDEFS      	= -D_PTHREAD
 #
 
-CC           = xlc_r
-CFLAGS       = -qarch=pwr5 -qalias=allptrs $(PREDEFS) -DPRNTlevel=0 -O3
-FORTRAN	     = xlf
-FFLAGS       = -O3 -qarch=pwr5
-LOADER       = xlc_r
-LOADOPTS     = -bmaxdata:0x80000000
+CC           = %%CC%%
+CFLAGS       = $(PREDEFS) %%CFLAGS%% %%PTHREAD_CFLAGS%%
+FORTRAN	     = %%FC%%
+FFLAGS       = %%FFLAGS%%
+LOADER       = %%FC%%
+LOADOPTS     = -O
 #
 #  C preprocessor defs for compilation for the Fortran interface
 #  (-DNoChange, -DAdd_, -DAdd__, or -DUpCase)

--- make.inc~	2008-07-02 09:54:57.000000000 +0900
+++ make.inc	2008-07-02 09:57:28.000000000 +0900
@@ -56,6 +56,6 @@
 #  C preprocessor defs for compilation for the Fortran interface
 #  (-DNoChange, -DAdd_, -DAdd__, or -DUpCase)
 #
-CDEFS        = -DNoChange
+CDEFS        = -DAdd_