summaryrefslogtreecommitdiff
path: root/zlib/contrib/minizip/Makefile
diff options
context:
space:
mode:
authorTom Tromey <tromey@gcc.gnu.org>1999-05-04 19:30:25 +0000
committerTom Tromey <tromey@gcc.gnu.org>1999-05-04 19:30:25 +0000
commitc45f211ee347bc648b183c5123498c5b7310bb0e (patch)
treee97105783ac15ce06e3efe366d641f3693aa8974 /zlib/contrib/minizip/Makefile
parent3d298f8f0e3934f7951b13281976bb9eda021387 (diff)
downloadgcc-c45f211ee347bc648b183c5123498c5b7310bb0e.tar.gz
Initial revision
From-SVN: r26770
Diffstat (limited to 'zlib/contrib/minizip/Makefile')
-rw-r--r--zlib/contrib/minizip/Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/zlib/contrib/minizip/Makefile b/zlib/contrib/minizip/Makefile
new file mode 100644
index 00000000000..a1dfc161437
--- /dev/null
+++ b/zlib/contrib/minizip/Makefile
@@ -0,0 +1,25 @@
+CC=cc
+CFLAGS=-O -I../..
+
+UNZ_OBJS = miniunz.o unzip.o ../../libz.a
+ZIP_OBJS = minizip.o zip.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