#lab3.make # example make file for use in later labs # first name a variable objects for all object files objects = account.o main1.o # name a variable sources for all source files sources = account.cpp main1.cpp # now give target as lab1 with objects as variable dependencies + command line lab1: $(objects) g++ -o lab1 $(objects) # list the dependencies for object files - those header files which help build objects account.o: account.h main1.o: account.h # how to build all object files from all dependent source files $(objects): $(sources) g++ -c $(sources) clean: rm $(objects) lab1