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

COMP = gfortran
FFLAGS = -O

SOLVR = ../solver

PRECON = ../preconds

OBJS = $(SOLVR)/ddaskr.o $(SOLVR)/daux.o $(SOLVR)/dlinpk.o \
        $(PRECON)/dbanpre.o

HEAT = dheat.o $(OBJS)

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

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


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