5 MAINTAINER=peter@FreeBSD.org
10 #CFLAGS+= -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7
12 #CFLAGS+= -Wall -Wwrite-strings -Wpointer-arith -Wconversion \
13 # -Wstrict-prototypes -Wmissing-prototypes
15 CLEANFILES+= example.o example foo.gz minigzip.o minigzip
17 SRCS = adler32.c compress.c crc32.c gzio.c uncompr.c deflate.c trees.c \
18 zutil.c inflate.c infblock.c inftrees.c infcodes.c infutil.c inffast.c
21 .for hdr in zconf.h zlib.h
22 ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/${hdr} \
23 ${DESTDIR}/usr/include
26 minigzip: all minigzip.o
27 $(CC) -o minigzip minigzip.o -L. -lz
29 example: all example.o
30 $(CC) -o example example.o -L. -lz
32 test: example minigzip
33 (export LD_LIBRARY_PATH=. ; ./example )
34 (export LD_LIBRARY_PATH=. ; \
35 echo hello world | ./minigzip | ./minigzip -d )