1####################################################################
2#  LAPACK make include file.                                       #
3####################################################################
4
5SHELL = /bin/sh
6
7#  CC is the C compiler, normally invoked with options CFLAGS.
8#
9CC = cc
10CFLAGS = -O3
11
12#  Modify the FC and FFLAGS definitions to the desired compiler
13#  and desired compiler options for your machine.  NOOPT refers to
14#  the compiler options desired when NO OPTIMIZATION is selected.
15#
16FC = f77
17#FFLAGS = -O4 -u -f -mt
18#FFLAGS = -u -f -dalign -native -xO5 -xarch=v8plusa
19FFLAGS = -u -f -dalign -native -xO2 -xarch=v8plusa
20FFLAGS_DRV = $(FFLAGS)
21FFLAGS_NOOPT = -u -f
22#FFLAGS_NOOPT = -u -f -mt
23
24#  Define LDFLAGS to the desired linker options for your machine.
25#
26LDFLAGS =
27
28#  The archiver and the flag(s) to use when building an archive
29#  (library).  If your system has no ranlib, set RANLIB = echo.
30#
31AR = ar
32ARFLAGS = cr
33RANLIB = echo
34
35#  Timer for the SECOND and DSECND routines
36#
37#  Default:  SECOND and DSECND will use a call to the
38#  EXTERNAL FUNCTION ETIME
39TIMER = EXT_ETIME
40#  For RS6K:  SECOND and DSECND will use a call to the
41#  EXTERNAL FUNCTION ETIME_
42#TIMER = EXT_ETIME_
43#  For gfortran compiler:  SECOND and DSECND will use a call to the
44#  INTERNAL FUNCTION ETIME
45#TIMER = INT_ETIME
46#  If your Fortran compiler does not provide etime (like Nag Fortran
47#  Compiler, etc...) SECOND and DSECND will use a call to the
48#  INTERNAL FUNCTION CPU_TIME
49#TIMER = INT_CPU_TIME
50#  If none of these work, you can use the NONE value.
51#  In that case, SECOND and DSECND will always return 0.
52#TIMER = NONE
53
54#  Uncomment the following line to include deprecated routines in
55#  the LAPACK library.
56#
57#BUILD_DEPRECATED = Yes
58
59#  LAPACKE has the interface to some routines from tmglib.
60#  If LAPACKE_WITH_TMG is defined, add those routines to LAPACKE.
61#
62#LAPACKE_WITH_TMG = Yes
63
64#  Location of the extended-precision BLAS (XBLAS) Fortran library
65#  used for building and testing extended-precision routines.  The
66#  relevant routines will be compiled and XBLAS will be linked only
67#  if USEXBLAS is defined.
68#
69#USEXBLAS = Yes
70#XBLASLIB = -lxblas
71
72#  The location of the libraries to which you will link.  (The
73#  machine-specific, optimized BLAS library should be used whenever
74#  possible.)
75#
76#BLASLIB      = $(TOPSRCDIR)/librefblas.a
77#BLASLIB      = -xlic_lib=sunperf_mt
78BLASLIB      = -xlic_lib=sunperf
79CBLASLIB     = $(TOPSRCDIR)/libcblas.a
80LAPACKLIB    = $(TOPSRCDIR)/liblapack.a
81TMGLIB       = $(TOPSRCDIR)/libtmglib.a
82LAPACKELIB   = $(TOPSRCDIR)/liblapacke.a
83