# This Makefile coordinates the translation of a driver program # that tests the new data type Rock in Lab Exercise 2.2. # The first line of each pair of lines gives the name of the file # to be built followed by : and then alist of all the files # used to build it. # The second line of each pair begins with a TAB (not spaces) folllowed # by the command used to build the file named in the line above. # The last pair of lines can be invoked using make clean # to remove all .o, ~, and # files # The last line of a Makefile must end with a Return. geology: geology.o Rock.o g++ geology.o Rock.o -o geology geology.o: geology.cpp Rock.h g++ -c geology.cpp Rock.o: Rock.cpp Rock.h g++ -c Rock.cpp clean: rm -f geology *.o *~ *#