# file: lecture_34/Makefile # # define a target for the application # all: example.exe # define a target to link the application # example.exe: example.o node_00.o list_00.o hashtable_00.o g++ -lm example.o node_00.o list_00.o hashtable_00.cc -o example.exe # define targets to compile the source code # example.o: example.cc Node.h List.h HashTable.h Makefile g++ -O2 -c example.cc -o example.o node_00.o: node_00.cc Node.h Makefile g++ -O2 -c node_00.cc -o node_00.o list_00.o: list_00.cc Node.h List.h Makefile g++ -O2 -c list_00.cc -o list_00.o hashtable_00.o: hashtable_00.cc list_00.cc HashTable.h Node.h List.h Makefile g++ -O2 -c hashtable_00.cc -o hashtable_00.o # define a target to clean the directory # clean: rm -f *.o *.exe # # end of file