summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--INDEX8
-rw-r--r--Makefile.in14
-rw-r--r--examples/README.examples9
-rw-r--r--examples/example.c (renamed from example.c)0
-rw-r--r--examples/minigzip.c (renamed from minigzip.c)0
5 files changed, 22 insertions, 9 deletions
diff --git a/INDEX b/INDEX
index 791f6ab..d05a009 100644
--- a/INDEX
+++ b/INDEX
@@ -57,10 +57,8 @@ uncompr.c
57zutil.c 57zutil.c
58zutil.h 58zutil.h
59 59
60 source files for sample programs: 60 source files for sample programs
61example.c 61See examples/README.examples
62minigzip.c
63See examples/README.examples for more
64 62
65 unsupported contribution by third parties 63 unsupported contributions by third parties
66See contrib/README.contrib 64See contrib/README.contrib
diff --git a/Makefile.in b/Makefile.in
index c1c37fe..1b8bf3f 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -126,11 +126,17 @@ match.lo: match.S
126 mv _match.o match.lo 126 mv _match.o match.lo
127 rm -f _match.s 127 rm -f _match.s
128 128
129example64.o: example.c zlib.h zconf.h 129example.o: examples/example.c zlib.h zconf.h
130 $(CC) $(CFLAGS) -D_FILE_OFFSET_BITS=64 -c -o $@ example.c 130 $(CC) $(CFLAGS) -I. -c -o $@ examples/example.c
131 131
132minigzip64.o: minigzip.c zlib.h zconf.h 132minigzip.o: examples/minigzip.c zlib.h zconf.h
133 $(CC) $(CFLAGS) -D_FILE_OFFSET_BITS=64 -c -o $@ minigzip.c 133 $(CC) $(CFLAGS) -I. -c -o $@ examples/minigzip.c
134
135example64.o: examples/example.c zlib.h zconf.h
136 $(CC) $(CFLAGS) -I. -D_FILE_OFFSET_BITS=64 -c -o $@ examples/example.c
137
138minigzip64.o: examples/minigzip.c zlib.h zconf.h
139 $(CC) $(CFLAGS) -I. -D_FILE_OFFSET_BITS=64 -c -o $@ examples/minigzip.c
134 140
135.SUFFIXES: .lo 141.SUFFIXES: .lo
136 142
diff --git a/examples/README.examples b/examples/README.examples
index 56a3171..fddb8df 100644
--- a/examples/README.examples
+++ b/examples/README.examples
@@ -6,6 +6,10 @@ enough.c
6 - calculates the maximum table space used in inflate tree 6 - calculates the maximum table space used in inflate tree
7 construction over all possible Huffman codes 7 construction over all possible Huffman codes
8 8
9example.c
10 usage examples of zlib
11 - used in zlib build Makefile for testing
12
9fitblk.c 13fitblk.c
10 compress just enough input to nearly fill a requested output size 14 compress just enough input to nearly fill a requested output size
11 - zlib isn't designed to do this, but fitblk does it anyway 15 - zlib isn't designed to do this, but fitblk does it anyway
@@ -34,6 +38,11 @@ gzlog.h
34 and deflateSetDictionary() 38 and deflateSetDictionary()
35 - illustrates use of a gzip header extra field 39 - illustrates use of a gzip header extra field
36 40
41minigzip.c
42 minimal implementation of gzip-like functionality using zlib
43 - used in zlib build Makefile for testing
44 - is not meant for and should not be used as a gzip replacement
45
37zlib_how.html 46zlib_how.html
38 painfully comprehensive description of zpipe.c (see below) 47 painfully comprehensive description of zpipe.c (see below)
39 - describes in excruciating detail the use of deflate() and inflate() 48 - describes in excruciating detail the use of deflate() and inflate()
diff --git a/example.c b/examples/example.c
index f515a48..f515a48 100644
--- a/example.c
+++ b/examples/example.c
diff --git a/minigzip.c b/examples/minigzip.c
index 8317344..8317344 100644
--- a/minigzip.c
+++ b/examples/minigzip.c