diff options
Diffstat (limited to 'deps/zlib-1.3.1/contrib/minizip/Makefile')
-rw-r--r-- | deps/zlib-1.3.1/contrib/minizip/Makefile | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/deps/zlib-1.3.1/contrib/minizip/Makefile b/deps/zlib-1.3.1/contrib/minizip/Makefile new file mode 100644 index 0000000..3d927ec --- /dev/null +++ b/deps/zlib-1.3.1/contrib/minizip/Makefile @@ -0,0 +1,29 @@ +CC?=cc +CFLAGS := $(CFLAGS) -O -I../.. + +UNZ_OBJS = miniunz.o unzip.o ioapi.o ../../libz.a +ZIP_OBJS = minizip.o zip.o ioapi.o ../../libz.a + +.c.o: + $(CC) -c $(CFLAGS) $*.c + +all: miniunz minizip + +miniunz: $(UNZ_OBJS) + $(CC) $(CFLAGS) -o $@ $(UNZ_OBJS) + +minizip: $(ZIP_OBJS) + $(CC) $(CFLAGS) -o $@ $(ZIP_OBJS) + +test: miniunz minizip + @rm -f test.* + @echo hello hello hello > test.txt + ./minizip test test.txt + ./miniunz -l test.zip + @mv test.txt test.old + ./miniunz test.zip + @cmp test.txt test.old + @rm -f test.* + +clean: + /bin/rm -f *.o *~ minizip miniunz test.* |