You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile 2.1 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. include ../../make.inc
  2. #######################################################################
  3. # This is the makefile to create a the variants libraries for LAPACK.
  4. # The files are organized as follows:
  5. # CHOLRL -- Right looking block version of the algorithm, calling Level 3 BLAS
  6. # CHOLTOP -- Top looking block version of the algorithm, calling Level 3 BLAS
  7. # LUCR -- Crout Level 3 BLAS version of LU factorization
  8. # LULL -- left-looking Level 3 BLAS version of LU factorization
  9. # QRLL -- left-looking Level 3 BLAS version of QR factorization
  10. # LUREC -- an iterative version of Sivan Toledo's recursive LU algorithm[1].
  11. # For square matrices, this iterative versions should
  12. # be within a factor of two of the optimum number of memory transfers.
  13. #
  14. # [1] Toledo, S. 1997. Locality of Reference in LU Decomposition with
  15. # Partial Pivoting. SIAM J. Matrix Anal. Appl. 18, 4 (Oct. 1997),
  16. # 1065-1081. http://dx.doi.org/10.1137/S0895479896297744
  17. #######################################################################
  18. CHOLRL = cholesky/RL/cpotrf.o cholesky/RL/dpotrf.o cholesky/RL/spotrf.o cholesky/RL/zpotrf.o
  19. CHOLTOP = cholesky/TOP/cpotrf.o cholesky/TOP/dpotrf.o cholesky/TOP/spotrf.o cholesky/TOP/zpotrf.o
  20. LUCR = lu/CR/cgetrf.o lu/CR/dgetrf.o lu/CR/sgetrf.o lu/CR/zgetrf.o
  21. LULL = lu/LL/cgetrf.o lu/LL/dgetrf.o lu/LL/sgetrf.o lu/LL/zgetrf.o
  22. LUREC = lu/REC/cgetrf.o lu/REC/dgetrf.o lu/REC/sgetrf.o lu/REC/zgetrf.o
  23. QRLL = qr/LL/cgeqrf.o qr/LL/dgeqrf.o qr/LL/sgeqrf.o qr/LL/zgeqrf.o qr/LL/sceil.o
  24. all: cholrl.a choltop.a lucr.a lull.a lurec.a qrll.a
  25. cholrl.a: $(CHOLRL)
  26. $(ARCH) $(ARCHFLAGS) $@ $^
  27. $(RANLIB) $@
  28. choltop.a: $(CHOLTOP)
  29. $(ARCH) $(ARCHFLAGS) $@ $^
  30. $(RANLIB) $@
  31. lucr.a: $(LUCR)
  32. $(ARCH) $(ARCHFLAGS) $@ $^
  33. $(RANLIB) $@
  34. lull.a: $(LULL)
  35. $(ARCH) $(ARCHFLAGS) $@ $^
  36. $(RANLIB) $@
  37. lurec.a: $(LUREC)
  38. $(ARCH) $(ARCHFLAGS) $@ $^
  39. $(RANLIB) $@
  40. qrll.a: $(QRLL)
  41. $(ARCH) $(ARCHFLAGS) $@ $^
  42. $(RANLIB) $@
  43. clean: cleanobj cleanlib
  44. cleanobj:
  45. rm -f $(CHOLRL) $(CHOLTOP) $(LUCR) $(LULL) $(LUREC) $(QRLL)
  46. cleanlib:
  47. rm -f *.a
  48. .f.o:
  49. $(FORTRAN) $(OPTS) -c -o $@ $<