Lines 1-62
Link Here
|
1 |
--- make.inc.orig 2008-02-22 22:45:36 UTC |
1 |
--- make.inc.orig 2015-04-30 00:46:42 UTC |
2 |
+++ make.inc |
2 |
+++ make.inc |
3 |
@@ -16,13 +16,13 @@ |
3 |
@@ -19,10 +19,10 @@ PLAT = _PTHREAD |
4 |
# |
4 |
# |
5 |
# The machine (platform) identifier to append to the library names |
|
|
6 |
# |
7 |
-PLAT = _sp |
8 |
+PLAT = _PTHREAD |
9 |
|
10 |
# |
11 |
# The name of the libraries to be created/linked to |
5 |
# The name of the libraries to be created/linked to |
12 |
# |
6 |
# |
13 |
-TMGLIB = libtmglib.a |
7 |
-TMGLIB = libtmglib$(PLAT).a |
14 |
-SUPERLULIB = libsuperlu_mt$(PLAT).a |
8 |
-SUPERLULIB = libsuperlu_mt$(PLAT).a |
15 |
+TMGLIB = libtmg.a |
9 |
+TMGLIB = libtmglib.a |
16 |
+SUPERLULIB = libsuperlu_mt.a |
10 |
+SUPERLULIB = libsuperlu_mt.a |
17 |
|
11 |
BLASDEF = -DUSE_VENDOR_BLAS |
18 |
# |
12 |
-BLASLIB = -L/usr/lib -lf77blas -latlas |
19 |
# If you don't have ESSL, you can use the following blaslib instead: |
13 |
+BLASLIB = %%BLAS%% |
20 |
@@ -30,7 +30,7 @@ SUPERLULIB = libsuperlu_mt$(PLAT).a |
14 |
#BLASLIB = ../lib/libblas$(PLAT).a |
21 |
# which may be slower than ESSL |
15 |
MATHLIB = -lm |
|
|
16 |
MPLIB = -lpthread |
17 |
@@ -40,8 +40,8 @@ RANLIB = ranlib |
18 |
# Definitions used by CPP: |
19 |
PREDEFS = -D__PTHREAD ## -DDEBUGlevel=0 -DPRNTlevel=0 |
22 |
# |
20 |
# |
23 |
BLASDEF = -DUSE_VENDOR_BLAS |
21 |
-CC = gcc |
24 |
-BLASLIB = -lessl |
22 |
-CFLAGS = $(PREDEFS) -g #-O3 |
25 |
+BLASLIB = %%BLAS%% |
23 |
+CC = %%CC%% |
26 |
#BLASLIB = ../lib/libblas$(PLAT).a |
24 |
+CFLAGS = $(PREDEFS) %%CPPFLAGS%% %%CFLAGS%% |
27 |
MATHLIB = -lm |
25 |
# Uncomment the following to use 64-bit integer |
28 |
MPLIB = -lpthread |
26 |
CFLAGS += -D_LONGINT |
29 |
@@ -38,7 +38,7 @@ MPLIB = -lpthread |
|
|
30 |
# The archiver and the flag(s) to use when building archive (library) |
31 |
# If your system has no ranlib, set RANLIB = echo. |
32 |
# |
33 |
-ARCH = ar |
34 |
+ARCMD = ar |
35 |
ARCHFLAGS = cr |
36 |
RANLIB = ranlib |
37 |
|
27 |
|
38 |
@@ -46,16 +46,17 @@ RANLIB = ranlib |
28 |
@@ -49,19 +49,19 @@ CFLAGS += -D_LONGINT |
39 |
PREDEFS = -D_PTHREAD |
29 |
# There are a few files that should NOT be optimized, which appear in the |
40 |
# |
30 |
# end of SRC/Makefile, taking the flag $(NOOPTS) |
|
|
31 |
# NOOPTS should be defined to explicitly turn off any optimization. |
32 |
-NOOPTS = -O0 |
33 |
+NOOPTS = -O0 %%FPIC%% |
41 |
|
34 |
|
42 |
-CC = xlc_r |
35 |
-BLASOPTS = |
43 |
-CFLAGS = -qarch=pwr5 -qalias=allptrs $(PREDEFS) -DPRNTlevel=0 -O3 |
36 |
+BLASOPTS = |
44 |
-FORTRAN = xlf |
|
|
45 |
-FFLAGS = -O3 -qarch=pwr5 |
46 |
-LOADER = xlc_r |
47 |
-LOADOPTS = -bmaxdata:0x80000000 |
48 |
+CC = %%CC%% |
49 |
+CFLAGS = $(PREDEFS) %%CPPFLAGS%% %%CFLAGS%% |
50 |
+FORTRAN = %%FC%% |
51 |
+FFLAGS = %%FFLAGS%% |
52 |
+LOADER = %%CC%% |
53 |
+LOADOPTS = %%LDFLAGS%% |
54 |
+NOOPTS = %%FPIC%% |
55 |
# |
56 |
# C preprocessor defs for compilation for the Fortran interface |
57 |
# (-DNoChange, -DAdd_, -DAdd__, or -DUpCase) |
58 |
# |
59 |
-CDEFS = -DNoChange |
60 |
+CDEFS = -DAdd_ |
61 |
|
37 |
|
|
|
38 |
############################################################################ |
62 |
|
39 |
|
|
|
40 |
-FORTRAN = gfortran |
41 |
-FFLAGS = -O -fdefault-integer-8 |
42 |
+FORTRAN = %%FC%% |
43 |
+FFLAGS = %%FFLAGS%% -fdefault-integer-8 |
44 |
|
45 |
############################################################################ |
46 |
|
47 |
-LOADER = gcc |
48 |
-LOADOPTS = -O #-pthread |
49 |
+LOADER = %%CC%% |
50 |
+LOADOPTS = -O %%LDFLAGS%% |
51 |
|
52 |
############################################################################ |
53 |
# |