From 51ecf18f6ce5b9e06ec61423548270b4746f379d Mon Sep 17 00:00:00 2001 From: bonmas14 Date: Mon, 29 Sep 2025 19:58:12 +0300 Subject: Added zlib --- deps/zlib-1.3.1/contrib/minizip/Makefile | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 deps/zlib-1.3.1/contrib/minizip/Makefile (limited to 'deps/zlib-1.3.1/contrib/minizip/Makefile') 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.* -- cgit v1.2.3-70-g09d2