1####################################################################
2#  LAPACK make include file.                                       #
3#  LAPACK, Version 3.4.1                                           #
4#  April 2012                                                      #
5####################################################################
6#
7SHELL = /bin/sh
8#
9#  Modify the FORTRAN and OPTS definitions to refer to the
10#  compiler and desired compiler options for your machine.  NOOPT
11#  refers to the compiler options desired when NO OPTIMIZATION is
12#  selected.  Define LOADER and LOADOPTS to refer to the loader and
13#  desired load options for your machine.
14#
15FORTRAN  = gfortran
16OPTS     = -O2
17DRVOPTS  = $(OPTS)
18NOOPT    = -O0
19LOADER   = gfortran
20LOADOPTS =
21#
22# Timer for the SECOND and DSECND routines
23#
24# Default : SECOND and DSECND will use a call to the EXTERNAL FUNCTION ETIME
25#TIMER    = EXT_ETIME
26# For RS6K : SECOND and DSECND will use a call to the EXTERNAL FUNCTION ETIME_
27# TIMER    = EXT_ETIME_
28# For gfortran compiler: SECOND and DSECND will use a call to the INTERNAL FUNCTION ETIME
29TIMER    = INT_ETIME
30# If your Fortran compiler does not provide etime (like Nag Fortran Compiler, etc...)
31# SECOND and DSECND will use a call to the INTERNAL FUNCTION CPU_TIME
32# TIMER    = INT_CPU_TIME
33# If neither of this works...you can use the NONE value... In that case, SECOND and DSECND will always return 0
34# TIMER     = NONE
35#
36#  Configuration LAPACKE: Native C interface to LAPACK
37#  To generate LAPACKE library: type 'make lapackelib'
38#  Configuration file: turned off (default)
39#  Complex types: C99 (default)
40#  Name pattern: mixed case (default)
41#  (64-bit) Data model: LP64 (default)
42#
43# CC is the C compiler, normally invoked with options CFLAGS.
44#
45CC = gcc
46CFLAGS = -O3
47#
48# LAPACKE has also the interface to some routines from tmglib,
49# if LAPACKE_WITH_TMG is selected, we need to add those routines to LAPACKE
50#LAPACKE_WITH_TMG = Yes
51#
52#  The archiver and the flag(s) to use when building archive (library)
53#  If you system has no ranlib, set RANLIB = echo.
54#
55ARCH     = ar
56ARCHFLAGS= cr
57RANLIB   = ranlib
58#
59#  Location of the extended-precision BLAS (XBLAS) Fortran library
60#  used for building and testing extended-precision routines.  The
61#  relevant routines will be compiled and XBLAS will be linked only if
62#  USEXBLAS is defined.
63#
64# USEXBLAS    = Yes
65XBLASLIB     =
66# XBLASLIB    = -lxblas
67#
68#  The location of the libraries to which you will link.  (The
69#  machine-specific, optimized BLAS library should be used whenever
70#  possible.)
71#
72BLASLIB      = ../../librefblas.a
73LAPACKLIB    = liblapack.a
74TMGLIB       = libtmglib.a
75LAPACKELIB   = liblapacke.a
76