# 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 # sim: cust.o pqueue.o sim.o g++ -g -o sim cust.o pqueue.o sim.o sim.o: cust.h pqueue.h sim.cpp g++ -g -c sim.cpp cust.o: cust.h cust.cpp g++ -g -c cust.cpp pqueue.o: pqueue.h pqueue.cpp cust.h g++ -g -c pqueue.cpp clean: rm -f sim sim.exe cust.o pqueue.o sim.o