This is mostly a long term maintenance improvement.
Many coding styles require elimination of trailing whitespace, and
many editors and source code management configurations automatically
gobble up whitespace. When these tools gobble up whitespace, it
complicates reviewing the meaningful code changes.
By removing whitespace on one patch, it makes future
code reviews much easier.
=SCRIPT====================================================================
if which tempfile &>/dev/null; then
TEMPMAKER=tempfile
elif which mktemp &>/dev/null; then
TEMPMAKER=mktemp
else
echo "Cannot find tempfile program." 2>&1
exit 1
fi
MYTEMP=$($TEMPMAKER)
trap 'rm -f $MYTEMP' SIGINT SIGTERM
stripit() {
echo "stripping $1"
sed 's/[ \t]*$//' "$1" > $MYTEMP
cp $MYTEMP "$1"
}
if [ $# -gt 0 ]; then
while [ "$1" != "" ]; do
stripit $1
shift
done
else
while read -t 2; do
stripit $REPLY
done
fi
rm $MYTEMP
=================================================
82 lines
2.8 KiB
Plaintext
82 lines
2.8 KiB
Plaintext
####################################################################
|
|
# LAPACK make include file. #
|
|
# LAPACK, Version 3.6.1 #
|
|
# June 2016 #
|
|
####################################################################
|
|
#
|
|
SHELL = /bin/sh
|
|
#
|
|
# Modify the FORTRAN and OPTS definitions to refer to the
|
|
# compiler and desired compiler options for your machine. NOOPT
|
|
# refers to the compiler options desired when NO OPTIMIZATION is
|
|
# selected. Define LOADER and LOADOPTS to refer to the loader and
|
|
# desired load options for your machine.
|
|
#
|
|
# Note: During a regular execution, LAPACK might create NaN and Inf
|
|
# and handle these quantities appropriately. As a consequence, one
|
|
# should not compile LAPACK with flags such as -ffpe-trap=overflow.
|
|
#
|
|
FORTRAN = gfortran
|
|
OPTS = -O2 -frecursive
|
|
DRVOPTS = $(OPTS)
|
|
NOOPT = -O0 -frecursive
|
|
LOADER = gfortran
|
|
LOADOPTS =
|
|
#
|
|
# Comment out the following line to include deprecated routines to the
|
|
# LAPACK library.
|
|
#
|
|
#MAKEDEPRECATED = Yes
|
|
#
|
|
# Timer for the SECOND and DSECND routines
|
|
#
|
|
# Default : SECOND and DSECND will use a call to the EXTERNAL FUNCTION ETIME
|
|
# TIMER = EXT_ETIME
|
|
# For RS6K : SECOND and DSECND will use a call to the EXTERNAL FUNCTION ETIME_
|
|
# TIMER = EXT_ETIME_
|
|
# For gfortran compiler: SECOND and DSECND will use a call to the INTERNAL FUNCTION ETIME
|
|
TIMER = INT_ETIME
|
|
# If your Fortran compiler does not provide etime (like Nag Fortran Compiler, etc...)
|
|
# SECOND and DSECND will use a call to the INTERNAL FUNCTION CPU_TIME
|
|
# TIMER = INT_CPU_TIME
|
|
# If neither of this works...you can use the NONE value... In that case, SECOND and DSECND will always return 0
|
|
# TIMER = NONE
|
|
#
|
|
# Configuration LAPACKE: Native C interface to LAPACK
|
|
# To generate LAPACKE library: type 'make lapackelib'
|
|
# Configuration file: turned off (default)
|
|
# Complex types: C99 (default)
|
|
# Name pattern: mixed case (default)
|
|
# (64-bit) Data model: LP64 (default)
|
|
#
|
|
# CC is the C compiler, normally invoked with options CFLAGS.
|
|
#
|
|
CC = gcc
|
|
CFLAGS = -O3
|
|
#
|
|
# The archiver and the flag(s) to use when building archive (library)
|
|
# If you system has no ranlib, set RANLIB = echo.
|
|
#
|
|
ARCH = ar
|
|
ARCHFLAGS= cr
|
|
RANLIB = ranlib
|
|
#
|
|
# Location of the extended-precision BLAS (XBLAS) Fortran library
|
|
# used for building and testing extended-precision routines. The
|
|
# relevant routines will be compiled and XBLAS will be linked only if
|
|
# USEXBLAS is defined.
|
|
#
|
|
# USEXBLAS = Yes
|
|
XBLASLIB =
|
|
# XBLASLIB = -lxblas
|
|
#
|
|
# The location of the libraries to which you will link. (The
|
|
# machine-specific, optimized BLAS library should be used whenever
|
|
# possible.)
|
|
#
|
|
BLASLIB = ../../librefblas.a
|
|
CBLASLIB = ../../libcblas.a
|
|
LAPACKLIB = liblapack.a
|
|
TMGLIB = libtmglib.a
|
|
LAPACKELIB = liblapacke.a
|