#
# This makefile compiles and loads the DDASKR example program dheatilu.
# 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)/dilupre.o $(PRECON)/dsparsk.o

HEATILU = dheatilu.o $(OBJS)

HEATILU : $(HEATILU)
	$(COMP) $(FFLAGS) -o heatilu $(HEATILU) -lm

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


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