# This line defines the base name of the current project. PROJECT = precision # This line lists all of the "-l" library directives we need to # link into the final executable. # If we don't need any extra libraries, the right side of this assignment # can be left blank. The ${LIBS} macro would then expand to empty # space, which simply wouldn't matter in the rule that uses it below. LIBS = -lm all: ${PROJECT} ${PROJECT}: ${PROJECT}.c gcc -o ${PROJECT} ${LIBS} ${PROJECT}.c # Run "make clean" before turnin. clean: rm -f *.o *~ ${PROJECT}