#
# This makefile compiles and loads the SDASKR example program sheat.
# If necessary, change the constants COMP and FFLAGS below for the
# compiler to be used.

COMP = f77
FFLAGS = -O

SOLVR = ../solver

PRECON = ../preconds

OBJS = $(SOLVR)/sdaskr.o $(SOLVR)/saux.o $(SOLVR)/slinpk.o \
        $(PRECON)/sbanpre.o

HEAT = sheat.o $(OBJS)

HEAT : $(HEAT)
	$(COMP) $(FFLAGS) -o heat $(HEAT) -lm

sheat.o: sheat.f
	$(COMP) $(FFLAGS) -c sheat.f


# Rule for compiling a Fortran source file:
.f.o: ;	$(COMP) $(FFLAGS) -c $*.f -o $*.o
