Skip to content

Commit 4ba73aa

Browse files
authored
Add sample configuration file for the NAG Fortran compiler
1 parent 19dc53b commit 4ba73aa

File tree

1 file changed

+88
-0
lines changed

1 file changed

+88
-0
lines changed

INSTALL/make.inc.nagfor

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
####################################################################
2+
# LAPACK make include file. #
3+
# LAPACK, Version 3.8.0 #
4+
# November 2017 #
5+
####################################################################
6+
7+
SHELL = /bin/sh
8+
9+
# CC is the C compiler, normally invoked with options CFLAGS.
10+
#
11+
CC = gcc
12+
CFLAGS = -O3
13+
14+
# Modify the FC and FFLAGS definitions to the desired compiler
15+
# and desired compiler options for your machine. NOOPT refers to
16+
# the compiler options desired when NO OPTIMIZATION is selected.
17+
#
18+
# Note: During a regular execution, LAPACK might create NaN and Inf
19+
# and handle these quantities appropriately. As a consequence, one
20+
# should not compile LAPACK with flags such as -ffpe-trap=overflow.
21+
#
22+
FC = nagfor
23+
FFLAGS = -O2 -dcfuns -recursive -fpp -ieee=full -thread_safe -w=obs
24+
FFLAGS_DRV = $(FFLAGS)
25+
FFLAGS_NOOPT = -O0 -dcfuns -recursive -fpp -ieee=full -thread_safe -w=obs
26+
27+
# Define LDFLAGS to the desired linker options for your machine.
28+
#
29+
LDFLAGS =
30+
31+
# The archiver and the flag(s) to use when building an archive
32+
# (library). If your system has no ranlib, set RANLIB = echo.
33+
#
34+
AR = ar
35+
ARFLAGS = cr
36+
RANLIB = ranlib
37+
38+
# Timer for the SECOND and DSECND routines
39+
#
40+
# Default: SECOND and DSECND will use a call to the
41+
# EXTERNAL FUNCTION ETIME
42+
#TIMER = EXT_ETIME
43+
# For RS6K: SECOND and DSECND will use a call to the
44+
# EXTERNAL FUNCTION ETIME_
45+
#TIMER = EXT_ETIME_
46+
# For gfortran compiler: SECOND and DSECND will use a call to the
47+
# INTERNAL FUNCTION ETIME
48+
#TIMER = INT_ETIME
49+
# If your Fortran compiler does not provide etime (like Nag Fortran
50+
# Compiler, etc...) SECOND and DSECND will use a call to the
51+
# INTERNAL FUNCTION CPU_TIME
52+
TIMER = INT_CPU_TIME
53+
# If none of these work, you can use the NONE value.
54+
# In that case, SECOND and DSECND will always return 0.
55+
#TIMER = NONE
56+
57+
# Uncomment the following line to include deprecated routines in
58+
# the LAPACK library.
59+
#
60+
#BUILD_DEPRECATED = Yes
61+
62+
# LAPACKE has the interface to some routines from tmglib.
63+
# If LAPACKE_WITH_TMG is defined, add those routines to LAPACKE.
64+
#
65+
#LAPACKE_WITH_TMG = Yes
66+
67+
# Location of the extended-precision BLAS (XBLAS) Fortran library
68+
# used for building and testing extended-precision routines. The
69+
# relevant routines will be compiled and XBLAS will be linked only
70+
# if USEXBLAS is defined.
71+
#
72+
#USEXBLAS = Yes
73+
#XBLASLIB = -lxblas
74+
75+
# The location of the libraries to which you will link. (The
76+
# machine-specific, optimized BLAS library should be used whenever
77+
# possible.)
78+
#
79+
BLASLIB = $(TOPSRCDIR)/librefblas.a
80+
CBLASLIB = $(TOPSRCDIR)/libcblas.a
81+
LAPACKLIB = $(TOPSRCDIR)/liblapack.a
82+
TMGLIB = $(TOPSRCDIR)/libtmglib.a
83+
LAPACKELIB = $(TOPSRCDIR)/liblapacke.a
84+
85+
# DOCUMENTATION DIRECTORY
86+
# If you generate html pages (make html), documentation will be placed in $(DOCSDIR)/explore-html
87+
# If you generate man pages (make man), documentation will be placed in $(DOCSDIR)/man
88+
DOCSDIR = $(TOPSRCDIR)/DOCS

0 commit comments

Comments
 (0)