####################################################################
#  SLICOT make include file for Unix-like machines.                #
#  SLICOT, Release v5.9                           slicot/make.inc  #
#  Vasile Sima                                                     #
#  October 31, 1996.                                               #
#  Revised Dec. 7, 1999; July 16, 2015, Dec. 28, 2022, Feb. 2023.  #
#          Feb. 2024.                                              #
####################################################################

SHELL = /bin/sh

#  Modify the FORTRAN and OPTS definitions to the desired compiler
#  and desired compiler options for your machine.  NOOPT refers to
#  the compiler options desired when NO OPTIMIZATION is selected.
#
FORTRAN = gfortran
OPTS = -O2 -fPIC -g
OPTS_NOOPT = -O0 -g

#  Define LDFLAGS to the desired linker options for your machine.
#
LOADER   = $(FORTRAN)
LDFLAGS =

#  The archiver and the flag(s) to use when building an archive
#  (library).  If your system has no ranlib, set RANLIB = echo.
#
ARCH = ar
ARCHFLAGS = cr
# ARCHFLAGS= r
# RANLIB   = ranlib

LOADOPTS = $(SLICOTLIB) $(LPKAUXLIB) $(LAPACKLIB) $(BLASLIB)
#
#  The location of the libraries to which you will link.  (The
#  machine-specific, optimized BLAS library should be used whenever
#  possible.)
#
BLASLIB      = -lopenblas
LAPACKLIB    = -lopenblas
LPKAUXLIB    = ../lpkaux.a
SLICOTLIB    = ../slicot.a
