File tree Expand file tree Collapse file tree 2 files changed +17
-17
lines changed
lapack-netlib/SRC/VARIANTS Expand file tree Collapse file tree 2 files changed +17
-17
lines changed Original file line number Diff line number Diff line change 1
- include ../../make.inc
2
-
3
1
# ######################################################################
4
2
# This is the makefile to create a the variants libraries for LAPACK.
5
3
# The files are organized as follows:
@@ -17,6 +15,9 @@ include ../../make.inc
17
15
# 1065-1081. http://dx.doi.org/10.1137/S0895479896297744
18
16
# ######################################################################
19
17
18
+ TOPSRCDIR = ../..
19
+ include $(TOPSRCDIR ) /make.inc
20
+
20
21
CHOLRL = cholesky/RL/cpotrf.o cholesky/RL/dpotrf.o cholesky/RL/spotrf.o cholesky/RL/zpotrf.o
21
22
22
23
CHOLTOP = cholesky/TOP/cpotrf.o cholesky/TOP/dpotrf.o cholesky/TOP/spotrf.o cholesky/TOP/zpotrf.o
@@ -30,37 +31,36 @@ LUREC = lu/REC/cgetrf.o lu/REC/dgetrf.o lu/REC/sgetrf.o lu/REC/zgetrf.o
30
31
QRLL = qr/LL/cgeqrf.o qr/LL/dgeqrf.o qr/LL/sgeqrf.o qr/LL/zgeqrf.o qr/LL/sceil.o
31
32
32
33
34
+ .PHONY : all
33
35
all : cholrl.a choltop.a lucr.a lull.a lurec.a qrll.a
34
36
35
37
cholrl.a : $(CHOLRL )
36
- $(ARCH ) $(ARCHFLAGS ) $@ $^
38
+ $(AR ) $(ARFLAGS ) $@ $^
37
39
$(RANLIB ) $@
38
40
39
41
choltop.a : $(CHOLTOP )
40
- $(ARCH ) $(ARCHFLAGS ) $@ $^
42
+ $(AR ) $(ARFLAGS ) $@ $^
41
43
$(RANLIB ) $@
42
44
43
45
lucr.a : $(LUCR )
44
- $(ARCH ) $(ARCHFLAGS ) $@ $^
46
+ $(AR ) $(ARFLAGS ) $@ $^
45
47
$(RANLIB ) $@
46
48
47
49
lull.a : $(LULL )
48
- $(ARCH ) $(ARCHFLAGS ) $@ $^
50
+ $(AR ) $(ARFLAGS ) $@ $^
49
51
$(RANLIB ) $@
50
52
51
53
lurec.a : $(LUREC )
52
- $(ARCH ) $(ARCHFLAGS ) $@ $^
54
+ $(AR ) $(ARFLAGS ) $@ $^
53
55
$(RANLIB ) $@
54
56
55
57
qrll.a : $(QRLL )
56
- $(ARCH ) $(ARCHFLAGS ) $@ $^
58
+ $(AR ) $(ARFLAGS ) $@ $^
57
59
$(RANLIB ) $@
58
60
61
+ .PHONY : clean cleanobj cleanlib
59
62
clean : cleanobj cleanlib
60
63
cleanobj :
61
64
rm -f $(CHOLRL ) $(CHOLTOP ) $(LUCR ) $(LULL ) $(LUREC ) $(QRLL )
62
65
cleanlib :
63
66
rm -f * .a
64
-
65
- .f.o :
66
- $(FORTRAN ) $(OPTS ) -c -o $@ $<
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ References:For a more detailed description please refer to
34
34
=========
35
35
36
36
These variants are compiled by default in the build process but they are not tested by default.
37
- The build process creates one new library per variants in the four arithmetics (single real/double real/single complex/double complex).
37
+ The build process creates one new library per variants in the four arithmetic (single real/double real/single complex/double complex).
38
38
The libraries are in the SRC/VARIANTS directory.
39
39
40
40
Corresponding libraries created in SRC/VARIANTS:
@@ -64,16 +64,16 @@ You should then see the following files in the TESTING directory:
64
64
= LINKING YOUR PROGRAM =
65
65
========================
66
66
67
- You just need to add the variants methods library in your linking sequence before your lapack libary .
67
+ You just need to add the variants methods library in your linking sequence before your lapack library .
68
68
Here is a quick example for LU
69
69
70
70
Default using LU Right Looking version:
71
- $(FORTRAN ) -c myprog.f
72
- $(FORTRAN ) -o myexe myprog.o $(LAPACKLIB) $(BLASLIB)
71
+ $(FC) $(FFLAGS ) -c myprog.f
72
+ $(FC) $(FFLAGS) $(LDFLAGS ) -o myexe myprog.o $(LAPACKLIB) $(BLASLIB)
73
73
74
74
Using LU Left Looking version:
75
- $(FORTRAN ) -c myprog.f
76
- $(FORTRAN ) -o myexe myprog.o $(PATH TO LAPACK/SRC/VARIANTS)/lull.a $(LAPACKLIB) $(BLASLIB)
75
+ $(FC) $(FFLAGS ) -c myprog.f
76
+ $(FC) $(FFLAGS) $(LDFLAGS ) -o myexe myprog.o $(PATH TO LAPACK/SRC/VARIANTS)/lull.a $(LAPACKLIB) $(BLASLIB)
77
77
78
78
===========
79
79
= SUPPORT =
You can’t perform that action at this time.
0 commit comments