diff options
author | Hoa V. Dinh <dinh.viet.hoa@gmail.com> | 2014-11-14 14:45:40 -0800 |
---|---|---|
committer | Hoa V. Dinh <dinh.viet.hoa@gmail.com> | 2014-11-14 14:45:40 -0800 |
commit | d5f966fd2a4a79369ea8d1df37846a5228c6a4e5 (patch) | |
tree | 255d4cc37f4cbefe8bf9643dc09ddb61a015a47f /src/core/zip/MiniZip/Makefile | |
parent | 40cd8b05df153b2ae08758f346b7262a55ce5692 (diff) |
Port to win32
Diffstat (limited to 'src/core/zip/MiniZip/Makefile')
-rw-r--r-- | src/core/zip/MiniZip/Makefile | 25 |
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 |