

videobits_objs = videobits.o bitfile.o huffman.o table.o

# first dependecy rule is default
all: videobits


huffman.o: huffman.c
	gcc -g -Wall -c huffman.c
table.o: table.c
	gcc -g -Wall -c table.c
videobits.o: videobits.c
	gcc -g -Wall -c videobits.c
bitfile.o: bitfile.c
	gcc -g -Wall -c bitfile.c

videobits: $(videobits_objs)
	gcc -Wall $(videobits_objs) -o $@

clean:
	-rm -f $(videobits_objs) videobits

