kusano fc6ab3
CC=cc
kusano fc6ab3
CFLAGS=-O -I../..
kusano fc6ab3
kusano fc6ab3
UNZ_OBJS = miniunz.o unzip.o ioapi.o ../../libz.a
kusano fc6ab3
ZIP_OBJS = minizip.o zip.o   ioapi.o ../../libz.a
kusano fc6ab3
kusano fc6ab3
.c.o:
kusano fc6ab3
	$(CC) -c $(CFLAGS) $*.c
kusano fc6ab3
kusano fc6ab3
all: miniunz minizip
kusano fc6ab3
kusano fc6ab3
miniunz:  $(UNZ_OBJS)
kusano fc6ab3
	$(CC) $(CFLAGS) -o $@ $(UNZ_OBJS)
kusano fc6ab3
kusano fc6ab3
minizip:  $(ZIP_OBJS)
kusano fc6ab3
	$(CC) $(CFLAGS) -o $@ $(ZIP_OBJS)
kusano fc6ab3
kusano fc6ab3
test:	miniunz minizip
kusano fc6ab3
	./minizip test readme.txt
kusano fc6ab3
	./miniunz -l test.zip
kusano fc6ab3
	mv readme.txt readme.old
kusano fc6ab3
	./miniunz test.zip
kusano fc6ab3
kusano fc6ab3
clean:
kusano fc6ab3
	/bin/rm -f *.o *~ minizip miniunz