]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - zlib/contrib/minizip/Makefile
Rebase the zlib sources to the 1.2.12 release
[thirdparty/binutils-gdb.git] / zlib / contrib / minizip / Makefile
CommitLineData
5ca28f79 1CC=cc
8e6b3536 2CFLAGS := $(CFLAGS) -O -I../..
5ca28f79
L
3
4UNZ_OBJS = miniunz.o unzip.o ioapi.o ../../libz.a
5ZIP_OBJS = minizip.o zip.o ioapi.o ../../libz.a
6
7.c.o:
8 $(CC) -c $(CFLAGS) $*.c
9
10all: miniunz minizip
11
12miniunz: $(UNZ_OBJS)
13 $(CC) $(CFLAGS) -o $@ $(UNZ_OBJS)
14
15minizip: $(ZIP_OBJS)
16 $(CC) $(CFLAGS) -o $@ $(ZIP_OBJS)
17
18test: miniunz minizip
8e6b3536
NC
19 @rm -f test.*
20 @echo hello hello hello > test.txt
21 ./minizip test test.txt
5ca28f79 22 ./miniunz -l test.zip
8e6b3536 23 @mv test.txt test.old
5ca28f79 24 ./miniunz test.zip
8e6b3536
NC
25 @cmp test.txt test.old
26 @rm -f test.*
5ca28f79
L
27
28clean:
8e6b3536 29 /bin/rm -f *.o *~ minizip miniunz test.*