9 #CFLAGS+= -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7
11 #CFLAGS+= -Wall -Wwrite-strings -Wpointer-arith -Wconversion \
12 # -Wstrict-prototypes -Wmissing-prototypes
14 CFLAGS
+= -DHAS_snprintf
-DHAS_vsnprintf
16 CLEANFILES
+= example.o example foo.gz minigzip.o minigzip
18 SRCS
= adler32.c compress.c crc32.c gzio.c uncompr.c deflate.c trees.c \
19 zutil.c inflate.c inftrees.c inffast.c zopen.c infback.c
22 minigzip
: all minigzip.o
23 $(CC
) -o minigzip minigzip.o
-L.
-lz
25 example
: all example.o
26 $(CC
) -o example example.o
-L.
-lz
28 test: example minigzip
29 (export LD_LIBRARY_PATH
=.
; .
/example
)
30 (export LD_LIBRARY_PATH
=.
; \
31 echo hello world | .
/minigzip | .
/minigzip
-d
)