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-
31# ######################################################################
42# This is the makefile to create a the variants libraries for LAPACK.
53# The files are organized as follows:
@@ -17,6 +15,9 @@ include ../../make.inc
1715# 1065-1081. http://dx.doi.org/10.1137/S0895479896297744
1816# ######################################################################
1917
18+ TOPSRCDIR = ../..
19+ include $(TOPSRCDIR ) /make.inc
20+
2021CHOLRL = cholesky/RL/cpotrf.o cholesky/RL/dpotrf.o cholesky/RL/spotrf.o cholesky/RL/zpotrf.o
2122
2223CHOLTOP = 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
3031QRLL = qr/LL/cgeqrf.o qr/LL/dgeqrf.o qr/LL/sgeqrf.o qr/LL/zgeqrf.o qr/LL/sceil.o
3132
3233
34+ .PHONY : all
3335all : cholrl.a choltop.a lucr.a lull.a lurec.a qrll.a
3436
3537cholrl.a : $(CHOLRL )
36- $(ARCH ) $(ARCHFLAGS ) $@ $^
38+ $(AR ) $(ARFLAGS ) $@ $^
3739 $(RANLIB ) $@
3840
3941choltop.a : $(CHOLTOP )
40- $(ARCH ) $(ARCHFLAGS ) $@ $^
42+ $(AR ) $(ARFLAGS ) $@ $^
4143 $(RANLIB ) $@
4244
4345lucr.a : $(LUCR )
44- $(ARCH ) $(ARCHFLAGS ) $@ $^
46+ $(AR ) $(ARFLAGS ) $@ $^
4547 $(RANLIB ) $@
4648
4749lull.a : $(LULL )
48- $(ARCH ) $(ARCHFLAGS ) $@ $^
50+ $(AR ) $(ARFLAGS ) $@ $^
4951 $(RANLIB ) $@
5052
5153lurec.a : $(LUREC )
52- $(ARCH ) $(ARCHFLAGS ) $@ $^
54+ $(AR ) $(ARFLAGS ) $@ $^
5355 $(RANLIB ) $@
5456
5557qrll.a : $(QRLL )
56- $(ARCH ) $(ARCHFLAGS ) $@ $^
58+ $(AR ) $(ARFLAGS ) $@ $^
5759 $(RANLIB ) $@
5860
61+ .PHONY : clean cleanobj cleanlib
5962clean : cleanobj cleanlib
6063cleanobj :
6164 rm -f $(CHOLRL ) $(CHOLTOP ) $(LUCR ) $(LULL ) $(LUREC ) $(QRLL )
6265cleanlib :
6366 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
3434=========
3535
3636These 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).
3838The libraries are in the SRC/VARIANTS directory.
3939
4040Corresponding libraries created in SRC/VARIANTS:
@@ -64,16 +64,16 @@ You should then see the following files in the TESTING directory:
6464= LINKING YOUR PROGRAM =
6565========================
6666
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 .
6868Here is a quick example for LU
6969
7070Default 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)
7373
7474Using 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)
7777
7878===========
7979= SUPPORT =
You can’t perform that action at this time.
0 commit comments