From: Xianyi Zhang Date: Mon, 20 Feb 2012 15:36:58 +0000 (+0800) Subject: Improved the makefile for Intel compiler. X-Git-Tag: v0.1.0^2~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0a696bd4ce25abd7525327b889d9f9da418172ee;p=platform%2Fupstream%2Fopenblas.git Improved the makefile for Intel compiler. --- diff --git a/Makefile b/Makefile index 2f56480..eb9c4ff 100644 --- a/Makefile +++ b/Makefile @@ -285,6 +285,7 @@ clean :: #ifdef DYNAMIC_ARCH @$(MAKE) -C kernel clean #endif + @$(MAKE) -C reference clean @rm -f *.$(LIBSUFFIX) *.so *~ *.exe getarch getarch_2nd *.dll *.lib *.$(SUFFIX) *.dwf libopenblas.$(LIBSUFFIX) libopenblas_p.$(LIBSUFFIX) *.lnk myconfig.h @rm -f Makefile.conf config.h Makefile_kernel.conf config_kernel.h st* *.dylib @if test -d lapack-3.4.0; then \ diff --git a/f_check b/f_check index 45a946e..f5bb5a7 100644 --- a/f_check +++ b/f_check @@ -284,6 +284,10 @@ if ($link ne "") { } +if ($vendor eq "INTEL"){ + $linker_a .= "-lgfortran" +} + open(MAKEFILE, ">> $makefile") || die "Can't append $makefile"; open(CONFFILE, ">> $config" ) || die "Can't append $config";