# makefile for building a simple test routine for the
# iterative refinement algorithms described in the TOMS
# paper "Fortran Subroutines for Computing the Eigenvalues
# and Eigenvectors of a General Matrix by Reduction to
# General Tridiagonal Form."

F77 = xlf

DFILES = main.o mlu.o msol.o refine.o resid.o shemor.o dzgefa.o dzgesl.o\
	d1mach.o dmachr.o apply.o atotri.o drandom.o rg.o\
	newstr.o dzgeco.o rmatin.o tlr.o gtinit.o cxutils.o dasum.o \
	invit.o elmbak.o trayly.o tresid.o

DBLAS = dscal.o dger.o dgemv.o

TIMER = second.o mclock.o

double: $(DFILES) $(DBLAS) $(TIMER)
	$(F77) $(DFILES) $(DBLAS) $(TIMER) -o double

.f.o : ; $(F77) -O -c -u $*.f
.c.o : ; cc -c $*.c
