#
# comments starts with a # sign
# each item in the make file consists of
# three things:  a product, its ingredients and how to make it
#
# gcc -o test test.c -lcurses
# CC = gcc -g -Wall

CC = g++ -g -Wall


huff: bits.o utils.o huff.o
	$(CC) bits.o utils.o huff.o -o huff

puff: bits.o utils.o puff.o
	$(CC) bits.o utils.o puff.o -o Puff
	
	
bits.o: bits.cpp bits.hpp
	$(CC) -c bits.cpp

utils.o: utils.cpp utils.hpp
	$(CC) -c utils.cpp

huff.o: huff.cpp huff.hpp
	$(CC) -c huff.cpp
	
puff.o: puff.cpp puff.hpp
	$(CC) -c puff.cpp