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

WEB = dweb.o $(OBJS)

WEB : $(WEB)
	$(COMP) $(FFLAGS) -o web $(WEB) -lm

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


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