# http://www.netlib.org/lapack/
# documentation: http://www.netlib.org/lapack/lug/
#URL = http://www.netlib.org/lapack
URL = http://macaulay2.com/Downloads/OtherSourceCode

VERSION = 3.9.0

TARFILE = lapack-$(VERSION).tgz
CONFIGURECMD = cp make.inc.example make.inc
# see lapack-3.1.1/make.inc for the build option combinations:
BUILDOPTIONS = PLAT= FORTRAN="@FC@" OPTS="-O2 -g" NOOPT= LOADER="@FC@" RANLIB=@RANLIB@ LOADOPTS="$(LDFLAGS)"
CHECKOPTIONS = $(BUILDOPTIONS)
ifeq (@FC@,gfortran)
BUILDOPTIONS += TIMER=INT_ETIME 
endif
ifeq (@FC@,f95)
BUILDOPTIONS += TIMER=INT_ETIME 
endif
BUILDTARGET = blaslib lapack_install lib
LICENSEFILES = LICENSE
INSTALLCMD = \
	   install -d $(LIBRARIESDIR)/lib \
	&& install liblapack.a $(LIBRARIESDIR)/lib \
	&& install librefblas.a $(LIBRARIESDIR)/lib \
	&& install libtmglib.a $(LIBRARIESDIR)/lib
CHECKTARGET = lapack_testing blas_testing
ifeq (@FC@,)
prereq:;: $(error no fortran compiler provided)
endif
include ../Makefile.library
Makefile: @srcdir@/Makefile.in ; cd ../.. && ./config.status libraries/lapack/Makefile
# Local Variables:
# compile-command: "make -C $M2BUILDDIR/libraries/lapack "
# End:
