charon% cd matt/linsys/tdgesv
Makefile    tdgesv.f

#############################################################
# The 'blas' library is built-in on the Cray, so we do not 
# have to specify '-lblas' during the load phase.  The 
# Makefile works properly provided LIBBLAS is either 
# unset, or set to nothing (see ~/.cshrc on this account).
#############################################################

charon% make
#############################################################
# f77transcray does some source file (.f files) translations
# including 'dgesv' -> 'sdgesv', since real*8 is single-
# precision on the Cray.  The original source code is 
# first saved in tdgesv.f.O
#############################################################
        f77transcray  tdgesv.f
f77transcray: Translating tdgesv.f
        cf77 -g -c tdgesv.f
        cf77 -g -L/hpcf/u0/ph/as/phas761/lib tdgesv.o -llapack  -o tdgesv

charon% tdgesv

 5.426364412431667,  -0.325775376817397,  -0.4083508069894641

 STOP executed at line 86 in Fortran routine 'TDGESV'
 CPU: 0.005s,  Wallclock: 0.010s,  11.0% of 5-CPU Machine
 Memory HWM: 213626, Stack HWM: 16509, Stack segment expansions: