# our project ("all") is just to build the executable file 'huffman' all : huffman # huffman is dependant on all of the object files # build it using g++ huffman : bitstreams.o HuffmanHeap.o StaticHuffman.o StaticHuffman_Levels.o StaticHuffman_StoreWeights.o StaticHuffmanMain.o g++ -o huffman -g bitstreams.o HuffmanHeap.o StaticHuffman.o StaticHuffman_Levels.o StaticHuffman_StoreWeights.o StaticHuffmanMain.o # bitstreams.o is dependant on one .cpp file, and in this case one .h file # -Wall: make the compiler display all warnings it knows about; hopefully it'll catch something for us # -c: only compile, don't link (we do that above) # -g: put in debug information, for those of you who are using debuggers bitstreams.o : bitstreams.cpp bitstreams.h g++ -Wall -c -g bitstreams.cpp # HuffmanHeap.o is dependant on one .cpp file, and a couple of .h files HuffmanHeap.o : HuffmanHeap.cpp HuffmanHeap.h StaticHuffman.h g++ -Wall -c -g HuffmanHeap.cpp StaticHuffman.o : StaticHuffman.cpp HuffmanHeap.h StaticHuffman.h bitstreams.h g++ -Wall -c -g StaticHuffman.cpp StaticHuffman_Levels.o : StaticHuffman_Levels.cpp HuffmanHeap.h StaticHuffman.h bitstreams.h StaticHuffman_Levels.h g++ -Wall -c -g StaticHuffman_Levels.cpp StaticHuffman_StoreWeights.o : StaticHuffman_StoreWeights.cpp HuffmanHeap.h StaticHuffman.h bitstreams.h StaticHuffman_StoreWeights.h g++ -Wall -c -g StaticHuffman_StoreWeights.cpp StaticHuffmanMain.o : StaticHuffmanMain.cpp StaticHuffman.h StaticHuffman_StoreWeights.h StaticHuffman_Levels.h HuffmanHeap.h bitstreams.h g++ -Wall -c -g StaticHuffmanMain.cpp