forked from cory/tildefriends
apps
core
deps
codemirror
crypt_blowfish
libbacktrace
libbacktrace_config
libsodium
libuv
lit
openssl
picohttpparser
quickjs
speedscope
sqlite
xopt
zlib
amiga
contrib
ada
blast
delphi
dotzlib
gcc_gvmat64
infback9
iostream
iostream2
iostream3
minizip
Makefile
Makefile.am
MiniZip64_Changes.txt
MiniZip64_info.txt
configure.ac
crypt.h
ioapi.c
ioapi.h
iowin32.c
iowin32.h
make_vms.com
miniunz.c
miniunzip.1
minizip.1
minizip.c
minizip.pc.in
mztools.c
mztools.h
unzip.c
unzip.h
zip.c
zip.h
pascal
puff
testzlib
untgz
vstudio
README.contrib
doc
examples
msdos
nintendods
old
os400
qnx
test
watcom
win32
CMakeLists.txt
ChangeLog
FAQ
INDEX
LICENSE
Makefile
Makefile.in
README
adler32.c
compress.c
configure
crc32.c
crc32.h
deflate.c
deflate.h
gzclose.c
gzguts.h
gzlib.c
gzread.c
gzwrite.c
infback.c
inffast.c
inffast.h
inffixed.h
inflate.c
inflate.h
inftrees.c
inftrees.h
make_vms.com
treebuild.xml
trees.c
trees.h
uncompr.c
zconf.h
zconf.h.cmakein
zconf.h.in
zlib.3
zlib.3.pdf
zlib.h
zlib.map
zlib.pc.cmakein
zlib.pc.in
zutil.c
zutil.h
docs
src
tools
.dockerignore
Dockerfile
GNUmakefile
LICENSE
README.md
30 lines
562 B
Makefile
30 lines
562 B
Makefile
|
CC=cc
|
||
|
CFLAGS := $(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
|
||
|
@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.*
|