1996-08-18 17:59:48 +00:00
|
|
|
#
|
1999-08-28 00:22:10 +00:00
|
|
|
# $FreeBSD$
|
1996-08-18 17:59:48 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
MAINTAINER=peter@FreeBSD.org
|
|
|
|
|
|
|
|
LIB= z
|
2003-08-17 08:28:46 +00:00
|
|
|
SHLIBDIR?= /lib
|
2001-03-27 17:27:19 +00:00
|
|
|
MAN= zlib.3
|
1996-08-18 17:59:48 +00:00
|
|
|
|
|
|
|
#CFLAGS+= -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7
|
|
|
|
#CFLAGS+= -g -DDEBUG
|
|
|
|
#CFLAGS+= -Wall -Wwrite-strings -Wpointer-arith -Wconversion \
|
|
|
|
# -Wstrict-prototypes -Wmissing-prototypes
|
|
|
|
|
2000-12-06 01:49:08 +00:00
|
|
|
CFLAGS+= -DHAS_snprintf -DHAS_vsnprintf
|
|
|
|
|
1998-02-28 06:27:59 +00:00
|
|
|
CLEANFILES+= example.o example foo.gz minigzip.o minigzip
|
1996-08-18 17:59:48 +00:00
|
|
|
|
|
|
|
SRCS = adler32.c compress.c crc32.c gzio.c uncompr.c deflate.c trees.c \
|
2001-09-06 09:14:49 +00:00
|
|
|
zutil.c inflate.c infblock.c inftrees.c infcodes.c infutil.c \
|
|
|
|
inffast.c zopen.c
|
2000-01-14 07:57:47 +00:00
|
|
|
INCS= zconf.h zlib.h
|
1996-08-18 17:59:48 +00:00
|
|
|
|
|
|
|
minigzip: all minigzip.o
|
|
|
|
$(CC) -o minigzip minigzip.o -L. -lz
|
|
|
|
|
|
|
|
example: all example.o
|
|
|
|
$(CC) -o example example.o -L. -lz
|
|
|
|
|
|
|
|
test: example minigzip
|
|
|
|
(export LD_LIBRARY_PATH=. ; ./example )
|
|
|
|
(export LD_LIBRARY_PATH=. ; \
|
|
|
|
echo hello world | ./minigzip | ./minigzip -d )
|
|
|
|
|
|
|
|
.include <bsd.lib.mk>
|