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

HEAT = dheat.o $(OBJS)

HEAT : $(HEAT)
	$(CC) $(CFLAGS) -o heat $(HEAT) -lm

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


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

clean: 
	rm -f $(HEAT) heat
