#account.make # example working make file for use of the class Account # files: source files: account.cpp accountmain.cpp # header file: account.h # executable file: account # # first define target file : account # dependencies are the object files that build the program account: account.o accountmain.o g++ -o account account.o accountmain.o # now define how each object file is a target and list dependencies and how # to build that object file if any dependencies change account.o: account.cpp account.h g++ -c account.cpp accountmain.o: accountmain.cpp account.h g++ -c accountmain.cpp clean: rm account account.o accountmain.o # that's all