2017-01-06 18:48:40 +08:00
#
# Top Level Makefile for LAPACK
# Version 3.4.1
# April 2012
#
2020-01-01 20:18:53 +08:00
TOPSRCDIR = .
i n c l u d e $( TOPSRCDIR ) / m a k e . i n c
2017-01-06 18:48:40 +08:00
2020-01-01 20:18:53 +08:00
.PHONY : all
2017-11-24 01:13:35 +08:00
all : lapack_install lib blas_testing lapack_testing
2017-01-06 18:48:40 +08:00
2020-01-01 20:18:53 +08:00
.PHONY : lib
2017-01-06 18:48:40 +08:00
lib : lapacklib tmglib
#lib: blaslib variants lapacklib tmglib
2020-01-01 20:18:53 +08:00
.PHONY : blaslib
2017-01-06 18:48:40 +08:00
blaslib :
2017-11-24 01:13:35 +08:00
$( MAKE) -C BLAS
2017-01-06 18:48:40 +08:00
2020-01-01 20:18:53 +08:00
.PHONY : cblaslib
2017-01-06 18:48:40 +08:00
cblaslib :
2017-11-24 01:13:35 +08:00
$( MAKE) -C CBLAS
2017-01-06 18:48:40 +08:00
2020-01-01 20:18:53 +08:00
.PHONY : lapacklib
2017-11-24 01:13:35 +08:00
lapacklib :
$( MAKE) -C SRC
2017-01-06 18:48:40 +08:00
2020-01-01 20:18:53 +08:00
.PHONY : lapackelib
2017-11-24 01:13:35 +08:00
lapackelib :
$( MAKE) -C LAPACKE
2017-01-06 18:48:40 +08:00
2020-01-01 20:18:53 +08:00
.PHONY : blaspplib
blaspplib :
@echo "Thank you for your interest in BLAS++, a newly developed C++ API for BLAS library"
@echo "The objective of BLAS++ is to provide a convenient, performance oriented API for development in the C++ language, that, for the most part, preserves established conventions, while, at the same time, takes advantages of modern C++ features, such as: namespaces, templates, exceptions, etc."
@echo "We are still working on integrating BLAS++ in our library. For the moment, you can download directly blas++ from https://bitbucket.org/icl/blaspp"
@echo "For support BLAS++ related question, please email: slate-user@icl.utk.edu"
.PHONY : lapackpplib
lapackpplib :
@echo "Thank you for your interest in LAPACK++, a newly developed C++ API for LAPACK library"
@echo "The objective of LAPACK++ is to provide a convenient, performance oriented API for development in the C++ language, that, for the most part, preserves established conventions, while, at the same time, takes advantages of modern C++ features, such as: namespaces, templates, exceptions, etc."
@echo "We are still working on integrating LAPACK++ in our library. For the moment, you can download directly lapack++ from https://bitbucket.org/icl/lapackpp"
@echo "For support LAPACK++ related question, please email: slate-user@icl.utk.edu"
.PHONY : tmglib
2017-11-24 01:13:35 +08:00
tmglib :
$( MAKE) -C TESTING/MATGEN
2017-01-06 18:48:40 +08:00
2020-01-01 20:18:53 +08:00
.PHONY : variants
2017-01-06 18:48:40 +08:00
variants :
2017-11-24 01:13:35 +08:00
$( MAKE) -C SRC/VARIANTS
2017-01-06 18:48:40 +08:00
2020-01-01 20:18:53 +08:00
.PHONY : lapack_install
2017-11-24 01:13:35 +08:00
lapack_install :
$( MAKE) -C INSTALL run
2020-01-01 20:18:53 +08:00
.PHONY : blas_testing
2017-11-24 01:13:35 +08:00
blas_testing : blaslib
$( MAKE) -C BLAS blas_testing
2017-01-06 18:48:40 +08:00
2020-01-01 20:18:53 +08:00
.PHONY : cblas_testing
2017-11-24 01:13:35 +08:00
cblas_testing : cblaslib blaslib
$( MAKE) -C CBLAS cblas_testing
2020-01-01 20:18:53 +08:00
.PHONY : lapack_testing
2017-11-24 01:13:35 +08:00
lapack_testing : tmglib lapacklib blaslib
$( MAKE) -C TESTING/LIN cleanexe
$( MAKE) -C TESTING
2017-01-06 18:48:40 +08:00
./lapack_testing.py
2020-01-01 20:18:53 +08:00
.PHONY : variants_testing
2017-11-24 01:13:35 +08:00
variants_testing : tmglib variants lapacklib blaslib
$( MAKE) -C TESTING/LIN cleanexe
2020-01-01 20:18:53 +08:00
$( MAKE) -C TESTING/LIN VARLIB = '../../SRC/VARIANTS/cholrl.a'
2017-11-24 01:13:35 +08:00
$( MAKE) -C TESTING stest.out && mv TESTING/stest.out TESTING/stest_cholrl.out
$( MAKE) -C TESTING dtest.out && mv TESTING/dtest.out TESTING/dtest_cholrl.out
$( MAKE) -C TESTING ctest.out && mv TESTING/ctest.out TESTING/ctest_cholrl.out
$( MAKE) -C TESTING ztest.out && mv TESTING/ztest.out TESTING/ztest_cholrl.out
$( MAKE) -C TESTING/LIN cleanexe
2020-01-01 20:18:53 +08:00
$( MAKE) -C TESTING/LIN VARLIB = '../../SRC/VARIANTS/choltop.a'
2017-11-24 01:13:35 +08:00
$( MAKE) -C TESTING stest.out && mv TESTING/stest.out TESTING/stest_choltop.out
$( MAKE) -C TESTING dtest.out && mv TESTING/dtest.out TESTING/dtest_choltop.out
$( MAKE) -C TESTING ctest.out && mv TESTING/ctest.out TESTING/ctest_choltop.out
$( MAKE) -C TESTING ztest.out && mv TESTING/ztest.out TESTING/ztest_choltop.out
$( MAKE) -C TESTING/LIN cleanexe
2020-01-01 20:18:53 +08:00
$( MAKE) -C TESTING/LIN VARLIB = '../../SRC/VARIANTS/lucr.a'
2017-11-24 01:13:35 +08:00
$( MAKE) -C TESTING stest.out && mv TESTING/stest.out TESTING/stest_lucr.out
$( MAKE) -C TESTING dtest.out && mv TESTING/dtest.out TESTING/dtest_lucr.out
$( MAKE) -C TESTING ctest.out && mv TESTING/ctest.out TESTING/ctest_lucr.out
$( MAKE) -C TESTING ztest.out && mv TESTING/ztest.out TESTING/ztest_lucr.out
$( MAKE) -C TESTING/LIN cleanexe
2020-01-01 20:18:53 +08:00
$( MAKE) -C TESTING/LIN VARLIB = '../../SRC/VARIANTS/lull.a'
2017-11-24 01:13:35 +08:00
$( MAKE) -C TESTING stest.out && mv TESTING/stest.out TESTING/stest_lull.out
$( MAKE) -C TESTING dtest.out && mv TESTING/dtest.out TESTING/dtest_lull.out
$( MAKE) -C TESTING ctest.out && mv TESTING/ctest.out TESTING/ctest_lull.out
$( MAKE) -C TESTING ztest.out && mv TESTING/ztest.out TESTING/ztest_lull.out
$( MAKE) -C TESTING/LIN cleanexe
2020-01-01 20:18:53 +08:00
$( MAKE) -C TESTING/LIN VARLIB = '../../SRC/VARIANTS/lurec.a'
2017-11-24 01:13:35 +08:00
$( MAKE) -C TESTING stest.out && mv TESTING/stest.out TESTING/stest_lurec.out
$( MAKE) -C TESTING dtest.out && mv TESTING/dtest.out TESTING/dtest_lurec.out
$( MAKE) -C TESTING ctest.out && mv TESTING/ctest.out TESTING/ctest_lurec.out
$( MAKE) -C TESTING ztest.out && mv TESTING/ztest.out TESTING/ztest_lurec.out
$( MAKE) -C TESTING/LIN cleanexe
2020-01-01 20:18:53 +08:00
$( MAKE) -C TESTING/LIN VARLIB = '../../SRC/VARIANTS/qrll.a'
2017-11-24 01:13:35 +08:00
$( MAKE) -C TESTING stest.out && mv TESTING/stest.out TESTING/stest_qrll.out
$( MAKE) -C TESTING dtest.out && mv TESTING/dtest.out TESTING/dtest_qrll.out
$( MAKE) -C TESTING ctest.out && mv TESTING/ctest.out TESTING/ctest_qrll.out
$( MAKE) -C TESTING ztest.out && mv TESTING/ztest.out TESTING/ztest_qrll.out
2017-01-06 18:48:40 +08:00
2020-01-01 20:18:53 +08:00
.PHONY : cblas_example
2017-11-24 01:13:35 +08:00
cblas_example : cblaslib blaslib
$( MAKE) -C CBLAS cblas_example
2017-01-06 18:48:40 +08:00
2020-01-01 20:18:53 +08:00
.PHONY : lapacke_example
2017-11-24 01:13:35 +08:00
lapacke_example : lapackelib lapacklib blaslib
$( MAKE) -C LAPACKE lapacke_example
2017-01-06 18:48:40 +08:00
2020-01-01 20:18:53 +08:00
.PHONY : html
2017-01-06 18:48:40 +08:00
html :
2017-11-24 01:13:35 +08:00
@echo "LAPACK HTML PAGES GENERATION with Doxygen"
2017-01-06 18:48:40 +08:00
doxygen DOCS/Doxyfile
2017-11-24 01:13:35 +08:00
@echo "=================="
@echo "LAPACK HTML PAGES GENERATED in DOCS/explore-html"
2017-01-06 18:48:40 +08:00
@echo "Usage: open DOCS/explore-html/index.html"
@echo "Online version available at http://www.netlib.org/lapack/explore-html/"
@echo "=================="
2020-01-01 20:18:53 +08:00
.PHONY : man
2017-01-06 18:48:40 +08:00
man :
2017-11-24 01:13:35 +08:00
@echo "LAPACK MAN PAGES GENERATION with Doxygen"
2017-01-06 18:48:40 +08:00
doxygen DOCS/Doxyfile_man
@echo "=================="
2017-11-24 01:13:35 +08:00
@echo "LAPACK MAN PAGES GENERATED in DOCS/MAN"
2017-01-06 18:48:40 +08:00
@echo "Set your MANPATH env variable accordingly"
@echo "Usage: man dgetrf.f"
@echo "=================="
2020-01-01 20:18:53 +08:00
.PHONY : clean cleanobj cleanlib cleanexe cleantest
2017-11-24 01:13:35 +08:00
clean :
$( MAKE) -C INSTALL clean
$( MAKE) -C BLAS clean
$( MAKE) -C CBLAS clean
$( MAKE) -C SRC clean
$( MAKE) -C SRC/VARIANTS clean
$( MAKE) -C TESTING clean
$( MAKE) -C TESTING/MATGEN clean
$( MAKE) -C TESTING/LIN clean
$( MAKE) -C TESTING/EIG clean
$( MAKE) -C LAPACKE clean
rm -f *.a
cleanobj :
$( MAKE) -C INSTALL cleanobj
$( MAKE) -C BLAS cleanobj
$( MAKE) -C CBLAS cleanobj
$( MAKE) -C SRC cleanobj
$( MAKE) -C SRC/VARIANTS cleanobj
$( MAKE) -C TESTING/MATGEN cleanobj
$( MAKE) -C TESTING/LIN cleanobj
$( MAKE) -C TESTING/EIG cleanobj
$( MAKE) -C LAPACKE cleanobj
2017-01-06 18:48:40 +08:00
cleanlib :
2017-11-24 01:13:35 +08:00
$( MAKE) -C BLAS cleanlib
$( MAKE) -C CBLAS cleanlib
$( MAKE) -C SRC cleanlib
$( MAKE) -C SRC/VARIANTS cleanlib
$( MAKE) -C TESTING/MATGEN cleanlib
$( MAKE) -C LAPACKE cleanlib
rm -f *.a
cleanexe :
$( MAKE) -C INSTALL cleanexe
$( MAKE) -C BLAS cleanexe
$( MAKE) -C CBLAS cleanexe
$( MAKE) -C TESTING/LIN cleanexe
$( MAKE) -C TESTING/EIG cleanexe
$( MAKE) -C LAPACKE cleanexe
cleantest :
$( MAKE) -C INSTALL cleantest
$( MAKE) -C BLAS cleantest
$( MAKE) -C CBLAS cleantest
2020-01-01 20:18:53 +08:00
$( MAKE) -C TESTING cleantest