diff options
author | julie <julielangou@users.noreply.github.com> | 2014-08-23 01:21:57 +0000 |
---|---|---|
committer | julie <julielangou@users.noreply.github.com> | 2014-08-23 01:21:57 +0000 |
commit | 29788da14783f44c4ec6baa58963377a74055841 (patch) | |
tree | 540f7da2b888f11d462fa19cfa3d501eb52cfaae /Makefile | |
parent | 91d9461d1a2cc1320177967ad2be279856cb8dbd (diff) | |
download | lapack-29788da14783f44c4ec6baa58963377a74055841.tar.gz lapack-29788da14783f44c4ec6baa58963377a74055841.tar.bz2 lapack-29788da14783f44c4ec6baa58963377a74055841.zip |
Commit to integrate CMAKE and MAKEFILE build system for CBLAS
Also modify the way the CBLAS mangling was generated...now CBLAS follows LAPACKE model
Details on MAKEFILE build
To compile CBLAS library from the LAPACK folder:
- make cblaslib --> create the cblas lib
- make cblas_testing --> compile BLAS Ref if necessary, build exe, then run exe
Details on CMAKE build
Now you have an option to select CBLAS
If CBLAS is check the Library is built and if BUILD_TESTING is enable, test and example are built and run
following
--> modification of all make.inc
--> more clean up
--> debugging on other platforms
** PLEASE TRY and SEND FEEDBACK - Thanks - Julie **
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 21 |
1 files changed, 19 insertions, 2 deletions
@@ -11,7 +11,7 @@ all: lapack_install lib blas_testing lapack_testing lib: lapacklib tmglib #lib: blaslib variants lapacklib tmglib -clean: cleanlib cleantesting cleanblas_testing +clean: cleanlib cleantesting cleanblas_testing cleancblas_testing lapack_install: ( cd INSTALL; $(MAKE); ./testlsame; ./testslamch; ./testdlamch; \ @@ -20,12 +20,18 @@ lapack_install: blaslib: ( cd BLAS/SRC; $(MAKE) ) +cblaslib: + ( cd cblas/src; $(MAKE) ) + lapacklib: lapack_install ( cd SRC; $(MAKE) ) lapackelib: lapacklib ( cd lapacke; $(MAKE) ) +cblas_example: cblaslib blaslib + ( cd cblas/examples; $(MAKE) ) + lapacke_example: lapackelib ( cd lapacke/example; $(MAKE) ) @@ -69,6 +75,13 @@ blas_testing: ./xblat3d < dblat3.in ; \ ./xblat3c < cblat3.in ; \ ./xblat3z < zblat3.in ) + +cblas_testing: blaslib + ( cd cblas ; $(MAKE) cblas_testing) + ( cd cblas ; $(MAKE) runtst) + + + html: @echo "LAPACK HTML PAGES GENRATION with Doxygen" doxygen DOCS/Doxyfile @@ -90,6 +103,7 @@ man: cleanlib: ( cd INSTALL; $(MAKE) clean ) ( cd BLAS/SRC; $(MAKE) clean ) + ( cd CBLAS; $(MAKE) clean ) ( cd SRC; $(MAKE) clean ) ( cd SRC/VARIANTS; $(MAKE) clean ) ( cd TESTING/MATGEN; $(MAKE) clean ) @@ -102,11 +116,14 @@ cleanblas_testing: ( cd BLAS/TESTING; $(MAKE) -f Makeblat3 clean ) ( cd BLAS; rm -f xblat* ) +cleancblas_testing: + ( cd CBLAS; $(MAKE) cleanexe ) + cleantesting: ( cd TESTING/LIN; $(MAKE) clean ) ( cd TESTING/EIG; $(MAKE) clean ) ( cd TESTING; rm -f xlin* xeig* ) -cleanall: cleanlib cleanblas_testing cleantesting +cleanall: cleanlib cleanblas_testing cleancblas_testing cleantesting rm -f *.a TESTING/*.out INSTALL/test* BLAS/*.out |