diff options
| author | cashmere <cashmere@autistici.org> | 2026-09-04 09:05:24 +0200 |
|---|---|---|
| committer | cashmere <cashmere@autistici.org> | 2026-09-04 09:05:24 +0200 |
| commit | 4f49b16079b27d7ce633619e4cddfdf2bffbc952 (patch) | |
| tree | c296c1e7f3c3e2f6859c6d3a1b1b208779b89679 /compat/zlib/contrib/minizip/Makefile | |
| download | relic-master.tar.gz | |
Diffstat (limited to 'compat/zlib/contrib/minizip/Makefile')
| -rw-r--r-- | compat/zlib/contrib/minizip/Makefile | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/compat/zlib/contrib/minizip/Makefile b/compat/zlib/contrib/minizip/Makefile new file mode 100644 index 0000000..07c1f48 --- /dev/null +++ b/compat/zlib/contrib/minizip/Makefile @@ -0,0 +1,33 @@ +CPPFLAGS = -I../.. + +UNZ_OBJS = miniunz.o unzip.o ioapi.o ../../libz.a +ZIP_OBJS = minizip.o zip.o ioapi.o ../../libz.a + +all: miniunz minizip + +miniunz.o: miniunz.c unzip.h iowin32.h +minizip.o: minizip.c zip.h iowin32.h ints.h +unzip.o: unzip.c unzip.h crypt.h +zip.o: zip.c zip.h crypt.h skipset.h ints.h +ioapi.o: ioapi.c ioapi.h ints.h +iowin32.o: iowin32.c iowin32.h ioapi.h +mztools.o: mztools.c unzip.h + +miniunz: $(UNZ_OBJS) + ${CC} ${LDFLAGS} -o $@ $(UNZ_OBJS) + +minizip: $(ZIP_OBJS) + ${CC} ${LDFLAGS} -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.* |
