#--------------------------------------------- # Figure 23.14: A makefile for roots OBJ = main.o secant.o bisect.o tools.o heat.o CFLAGS = -Wall roots: $(OBJ) gcc -o roots $(OBJ) -lm main.o: main.c tools.h root.h ffam.h gcc -c $(CFLAGS) main.c heat.o: heat.c tools.h ffam.h gcc -c $(CFLAGS) heat.c bisect.o: bisect.c tools.h root.h ffam.h gcc -c $(CFLAGS) bisect.c secant.o: secant.c tools.h root.h ffam.h gcc -c $(CFLAGS) secant.c tools.o: tools.c tools.h gcc -c $(CFLAGS) tools.c clean: rm -f $(OBJ) solver