summaryrefslogtreecommitdiff
path: root/Build/source/libs/zlib/zlib-src/contrib/minizip/Makefile
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2016-02-15 21:39:50 +0000
committerKarl Berry <karl@freefriends.org>2016-02-15 21:39:50 +0000
commitf2d240e3af96300dd96067cd653bc34a08c47e26 (patch)
treef90c1ffd8bee155bcfed692f77d84f44efd46dec /Build/source/libs/zlib/zlib-src/contrib/minizip/Makefile
parent4af143877155448dadfe2ac57e4b290a75b9ad49 (diff)
rename zlib-1.2.8* to zlib-{src,PATCHES}
git-svn-id: svn://tug.org/texlive/trunk@39726 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/libs/zlib/zlib-src/contrib/minizip/Makefile')
-rw-r--r--Build/source/libs/zlib/zlib-src/contrib/minizip/Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/Build/source/libs/zlib/zlib-src/contrib/minizip/Makefile b/Build/source/libs/zlib/zlib-src/contrib/minizip/Makefile
new file mode 100644
index 00000000000..84eaad20d4f
--- /dev/null
+++ b/Build/source/libs/zlib/zlib-src/contrib/minizip/Makefile
@@ -0,0 +1,25 @@
+CC=cc
+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
+ ./minizip test readme.txt
+ ./miniunz -l test.zip
+ mv readme.txt readme.old
+ ./miniunz test.zip
+
+clean:
+ /bin/rm -f *.o *~ minizip miniunz