# Makefile for 112 assignment # # If this file is in the directory with your program, you can compile your # program using the following command: # # $ make # # When you are done with this assignment, delete all the files generated # by the compiler (you can always recreate them if you need them) # # $ make clean # # It is a good idea to understand how make works # # Commands all have the following format: # file_to_be_created: list_of_files_the_file_to_left_is_create_from # the command that generates this file # bill: main.o bill.o call.o g++ -g -o bill main.o bill.o call.o main.o: main.cpp bill.h call.h g++ -g -c main.cpp bill.o: bill.cpp bill.h call.h g++ -g -c bill.cpp call.o: call.cpp call.h g++ -g -c call.cpp clean: rm -f bill bill.exe main.o bill.o call.o