Fossil SCM
| 6ea30fb… | florian | 1 | CPPFLAGS = -I../.. |
| 7ef7284… | drh | 2 | |
| 7ef7284… | drh | 3 | UNZ_OBJS = miniunz.o unzip.o ioapi.o ../../libz.a |
| 7ef7284… | drh | 4 | ZIP_OBJS = minizip.o zip.o ioapi.o ../../libz.a |
| 7ef7284… | drh | 5 | |
| 7ef7284… | drh | 6 | all: miniunz minizip |
| 7ef7284… | drh | 7 | |
| 6ea30fb… | florian | 8 | miniunz.o: miniunz.c unzip.h iowin32.h |
| 6ea30fb… | florian | 9 | minizip.o: minizip.c zip.h iowin32.h ints.h |
| 6ea30fb… | florian | 10 | unzip.o: unzip.c unzip.h crypt.h |
| 6ea30fb… | florian | 11 | zip.o: zip.c zip.h crypt.h skipset.h ints.h |
| 6ea30fb… | florian | 12 | ioapi.o: ioapi.c ioapi.h ints.h |
| 6ea30fb… | florian | 13 | iowin32.o: iowin32.c iowin32.h ioapi.h |
| 6ea30fb… | florian | 14 | mztools.o: mztools.c unzip.h |
| 6ea30fb… | florian | 15 | |
| 6ea30fb… | florian | 16 | miniunz: $(UNZ_OBJS) |
| 6ea30fb… | florian | 17 | ${CC} ${LDFLAGS} -o $@ $(UNZ_OBJS) |
| adb9e8e… | drh | 18 | |
| 6ea30fb… | florian | 19 | minizip: $(ZIP_OBJS) |
| 6ea30fb… | florian | 20 | ${CC} ${LDFLAGS} -o $@ $(ZIP_OBJS) |
| adb9e8e… | drh | 21 | |
| 6ea30fb… | florian | 22 | test: miniunz minizip |
| adb9e8e… | drh | 23 | @rm -f test.* |
| adb9e8e… | drh | 24 | @echo hello hello hello > test.txt |
| adb9e8e… | drh | 25 | ./minizip test test.txt |
| adb9e8e… | drh | 26 | ./miniunz -l test.zip |
| adb9e8e… | drh | 27 | @mv test.txt test.old |
| adb9e8e… | drh | 28 | ./miniunz test.zip |
| adb9e8e… | drh | 29 | @cmp test.txt test.old |
| adb9e8e… | drh | 30 | @rm -f test.* |
| 7ef7284… | drh | 31 | |
| 7ef7284… | drh | 32 | clean: |
| adb9e8e… | drh | 33 | /bin/rm -f *.o *~ minizip miniunz test.* |