############################################################################
#
#  Program:         ScaLAPACK
#
#  Module:          Makefile
#
#  Purpose:         Linear Equations Testing Makefile
#                   This Makefile generates lutimer called xdlu that works
#                   on MPI.
#
#  Creation date:   November 17, 1998
#
#  Send bug reports, comments or suggestions to teranish@cs.utk.edu
#
############################################################################

include ../SLmake.inc

#
# The location of archives
#
#SCALAPCKLIB = scalapack.a         (Modify it!)
#PBLASLIB = pblas.a                (
#TOOLSLIB = tool.a                 (Modify it!)
#BLACSLIB = blacs_MPI.a blacsf77int.a           (Modify it!)
#BLASLIB = blas.a                  (Modify it!)
#SMPLIB = libmpi.a -lnsl -lsocket  (Modify it!)
#LIBS = $(SCALAPACKLIB) $(BLACSLIB) $(BLASLIB) $(SMPLIB)

#
# Setting of Fortran compiler
#
#F77 = f77
#F77FLAGS = -O4 -f
#F77LOADER = f77
#F77LOADERFLAGS =

#
# The name of excutable
#
dluexe = xdlutime

#
# Object files
#
dluobj = lutimer.o pdmatgen.o pmatgeninc.o pdlaschk.o

all: double

double :$(dluexe)

$(dluexe): $(SCALAPCKLIB) $(PBLASLIB) $(TOOLSLIB) $(dluobj) 
	$(F77LOADER) $(F77LOADFLAGS) -o $(dluexe) $(dluobj) $(LIBS)

clean :
	rm -f *.o

.f.o : ; $(F77) -c $(F77FLAGS) $*.f
