Makefile 549 Bytes
all : myzip0 myunzip0 huffman inflate test_inflate

myzip0 : myzip0.c
	cc myzip0.c -o myzip0

myunzip0 : myunzip0.c
	cc myunzip0.c -o myunzip0

huffman : huffman.c
	cc huffman.c -o huffman

inflate : include/inflate.h src/inflate/main.c src/inflate/inflate.c
	gcc -I include src/inflate/main.c src/inflate/inflate.c -o inflate 

test_inflate : src/inflate/inflate.c tests/inflate_test.cpp
	g++ -I include src/inflate/inflate.c tests/inflate_test.cpp -o test_inflate -l gtest
	./test_inflate

clean :
	rm myzip0 myunzip0 huffman inflate test_inflate