kusano fc6ab3
CC=cc
kusano fc6ab3
CFLAGS=-g
kusano fc6ab3
kusano fc6ab3
untgz: untgz.o ../../libz.a
kusano fc6ab3
	$(CC) $(CFLAGS) -o untgz untgz.o -L../.. -lz
kusano fc6ab3
kusano fc6ab3
untgz.o: untgz.c ../../zlib.h
kusano fc6ab3
	$(CC) $(CFLAGS) -c -I../.. untgz.c
kusano fc6ab3
kusano fc6ab3
../../libz.a:
kusano fc6ab3
	cd ../..; ./configure; make
kusano fc6ab3
kusano fc6ab3
clean:
kusano fc6ab3
	rm -f untgz untgz.o *~