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 4.9 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. #
  2. # Top Level Makefile for LAPACK
  3. # Version 3.4.1
  4. # April 2012
  5. #
  6. include make.inc
  7. all: lapack_install lib blas_testing lapack_testing
  8. lib: lapacklib tmglib
  9. #lib: blaslib variants lapacklib tmglib
  10. blaslib:
  11. $(MAKE) -C BLAS
  12. cblaslib:
  13. $(MAKE) -C CBLAS
  14. lapacklib:
  15. $(MAKE) -C SRC
  16. lapackelib:
  17. $(MAKE) -C LAPACKE
  18. tmglib:
  19. $(MAKE) -C TESTING/MATGEN
  20. variants:
  21. $(MAKE) -C SRC/VARIANTS
  22. lapack_install:
  23. $(MAKE) -C INSTALL run
  24. blas_testing: blaslib
  25. $(MAKE) -C BLAS blas_testing
  26. cblas_testing: cblaslib blaslib
  27. $(MAKE) -C CBLAS cblas_testing
  28. lapack_testing: tmglib lapacklib blaslib
  29. $(MAKE) -C TESTING/LIN cleanexe
  30. $(MAKE) -C TESTING
  31. ./lapack_testing.py
  32. variants_testing: tmglib variants lapacklib blaslib
  33. $(MAKE) -C TESTING/LIN cleanexe
  34. $(MAKE) -C TESTING/LIN VARLIB='SRC/VARIANTS/cholrl.a'
  35. $(MAKE) -C TESTING stest.out && mv TESTING/stest.out TESTING/stest_cholrl.out
  36. $(MAKE) -C TESTING dtest.out && mv TESTING/dtest.out TESTING/dtest_cholrl.out
  37. $(MAKE) -C TESTING ctest.out && mv TESTING/ctest.out TESTING/ctest_cholrl.out
  38. $(MAKE) -C TESTING ztest.out && mv TESTING/ztest.out TESTING/ztest_cholrl.out
  39. $(MAKE) -C TESTING/LIN cleanexe
  40. $(MAKE) -C TESTING/LIN VARLIB='SRC/VARIANTS/choltop.a'
  41. $(MAKE) -C TESTING stest.out && mv TESTING/stest.out TESTING/stest_choltop.out
  42. $(MAKE) -C TESTING dtest.out && mv TESTING/dtest.out TESTING/dtest_choltop.out
  43. $(MAKE) -C TESTING ctest.out && mv TESTING/ctest.out TESTING/ctest_choltop.out
  44. $(MAKE) -C TESTING ztest.out && mv TESTING/ztest.out TESTING/ztest_choltop.out
  45. $(MAKE) -C TESTING/LIN cleanexe
  46. $(MAKE) -C TESTING/LIN VARLIB='SRC/VARIANTS/lucr.a'
  47. $(MAKE) -C TESTING stest.out && mv TESTING/stest.out TESTING/stest_lucr.out
  48. $(MAKE) -C TESTING dtest.out && mv TESTING/dtest.out TESTING/dtest_lucr.out
  49. $(MAKE) -C TESTING ctest.out && mv TESTING/ctest.out TESTING/ctest_lucr.out
  50. $(MAKE) -C TESTING ztest.out && mv TESTING/ztest.out TESTING/ztest_lucr.out
  51. $(MAKE) -C TESTING/LIN cleanexe
  52. $(MAKE) -C TESTING/LIN VARLIB='SRC/VARIANTS/lull.a'
  53. $(MAKE) -C TESTING stest.out && mv TESTING/stest.out TESTING/stest_lull.out
  54. $(MAKE) -C TESTING dtest.out && mv TESTING/dtest.out TESTING/dtest_lull.out
  55. $(MAKE) -C TESTING ctest.out && mv TESTING/ctest.out TESTING/ctest_lull.out
  56. $(MAKE) -C TESTING ztest.out && mv TESTING/ztest.out TESTING/ztest_lull.out
  57. $(MAKE) -C TESTING/LIN cleanexe
  58. $(MAKE) -C TESTING/LIN VARLIB='SRC/VARIANTS/lurec.a'
  59. $(MAKE) -C TESTING stest.out && mv TESTING/stest.out TESTING/stest_lurec.out
  60. $(MAKE) -C TESTING dtest.out && mv TESTING/dtest.out TESTING/dtest_lurec.out
  61. $(MAKE) -C TESTING ctest.out && mv TESTING/ctest.out TESTING/ctest_lurec.out
  62. $(MAKE) -C TESTING ztest.out && mv TESTING/ztest.out TESTING/ztest_lurec.out
  63. $(MAKE) -C TESTING/LIN cleanexe
  64. $(MAKE) -C TESTING/LIN VARLIB='SRC/VARIANTS/qrll.a'
  65. $(MAKE) -C TESTING stest.out && mv TESTING/stest.out TESTING/stest_qrll.out
  66. $(MAKE) -C TESTING dtest.out && mv TESTING/dtest.out TESTING/dtest_qrll.out
  67. $(MAKE) -C TESTING ctest.out && mv TESTING/ctest.out TESTING/ctest_qrll.out
  68. $(MAKE) -C TESTING ztest.out && mv TESTING/ztest.out TESTING/ztest_qrll.out
  69. cblas_example: cblaslib blaslib
  70. $(MAKE) -C CBLAS cblas_example
  71. lapacke_example: lapackelib lapacklib blaslib
  72. $(MAKE) -C LAPACKE lapacke_example
  73. html:
  74. @echo "LAPACK HTML PAGES GENERATION with Doxygen"
  75. doxygen DOCS/Doxyfile
  76. @echo "=================="
  77. @echo "LAPACK HTML PAGES GENERATED in DOCS/explore-html"
  78. @echo "Usage: open DOCS/explore-html/index.html"
  79. @echo "Online version available at http://www.netlib.org/lapack/explore-html/"
  80. @echo "=================="
  81. man:
  82. @echo "LAPACK MAN PAGES GENERATION with Doxygen"
  83. doxygen DOCS/Doxyfile_man
  84. @echo "=================="
  85. @echo "LAPACK MAN PAGES GENERATED in DOCS/MAN"
  86. @echo "Set your MANPATH env variable accordingly"
  87. @echo "Usage: man dgetrf.f"
  88. @echo "=================="
  89. clean:
  90. $(MAKE) -C INSTALL clean
  91. $(MAKE) -C BLAS clean
  92. $(MAKE) -C CBLAS clean
  93. $(MAKE) -C SRC clean
  94. $(MAKE) -C SRC/VARIANTS clean
  95. $(MAKE) -C TESTING clean
  96. $(MAKE) -C TESTING/MATGEN clean
  97. $(MAKE) -C TESTING/LIN clean
  98. $(MAKE) -C TESTING/EIG clean
  99. $(MAKE) -C LAPACKE clean
  100. rm -f *.a
  101. cleanobj:
  102. $(MAKE) -C INSTALL cleanobj
  103. $(MAKE) -C BLAS cleanobj
  104. $(MAKE) -C CBLAS cleanobj
  105. $(MAKE) -C SRC cleanobj
  106. $(MAKE) -C SRC/VARIANTS cleanobj
  107. $(MAKE) -C TESTING/MATGEN cleanobj
  108. $(MAKE) -C TESTING/LIN cleanobj
  109. $(MAKE) -C TESTING/EIG cleanobj
  110. $(MAKE) -C LAPACKE cleanobj
  111. cleanlib:
  112. $(MAKE) -C BLAS cleanlib
  113. $(MAKE) -C CBLAS cleanlib
  114. $(MAKE) -C SRC cleanlib
  115. $(MAKE) -C SRC/VARIANTS cleanlib
  116. $(MAKE) -C TESTING/MATGEN cleanlib
  117. $(MAKE) -C LAPACKE cleanlib
  118. rm -f *.a
  119. cleanexe:
  120. $(MAKE) -C INSTALL cleanexe
  121. $(MAKE) -C BLAS cleanexe
  122. $(MAKE) -C CBLAS cleanexe
  123. $(MAKE) -C TESTING/LIN cleanexe
  124. $(MAKE) -C TESTING/EIG cleanexe
  125. $(MAKE) -C LAPACKE cleanexe
  126. cleantest:
  127. $(MAKE) -C INSTALL cleantest
  128. $(MAKE) -C BLAS cleantest
  129. $(MAKE) -C CBLAS cleantest
  130. $(MAKE) -C TESTING cleantest