F90FLAGS= -g  -Xlist                  
#F90FLAGS =  -lnag -lF77  -O2  // replace when using the nag library
FC=f90  
OBJECT1 = functions.o rootfinding.o\
	zero_of_f.o

root_search: $(OBJECT1)
	$(FC) $(OBJECT1) $(F90FLAGS) -o  root_search

zero_of_f.o:   zero_of_f.f90 rootfinding.f90 functions.f90 

rootfinding.o: rootfinding.f90

functions.o:   functions.f90
