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