aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/zip/MiniZip/Makefile
diff options
context:
space:
mode:
authorGravatar Hoa V. Dinh <dinh.viet.hoa@gmail.com>2014-11-14 14:45:40 -0800
committerGravatar Hoa V. Dinh <dinh.viet.hoa@gmail.com>2014-11-14 14:45:40 -0800
commitd5f966fd2a4a79369ea8d1df37846a5228c6a4e5 (patch)
tree255d4cc37f4cbefe8bf9643dc09ddb61a015a47f /src/core/zip/MiniZip/Makefile
parent40cd8b05df153b2ae08758f346b7262a55ce5692 (diff)
Port to win32
Diffstat (limited to 'src/core/zip/MiniZip/Makefile')
-rw-r--r--src/core/zip/MiniZip/Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/core/zip/MiniZip/Makefile b/src/core/zip/MiniZip/Makefile
new file mode 100644
index 00000000..84eaad20
--- /dev/null
+++ b/src/core/zip/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