#
# 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.

CC = gcc
CFLAGS = -O3 -Wall -ansi

SOLVR = ../solver

PRECON = ../preconds

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

DEMO = dkrdem.o $(OBJS)

DEMO : $(DEMO)
	$(CC) $(CFLAGS) -o demo $(DEMO) -lm

dkrdem.o: dkrdem.c
	$(CC) $(CFLAGS) -c dkrdem.c

# Rule for compiling a Fortran source file:
%.o: %.c
	$(CC) -c -o $@ $< $(CFLAGS)

clean: 
	rm -f $(DEMO) demo
