1996-08-18 13:59:48 -04:00
|
|
|
#
|
1999-08-27 20:22:10 -04:00
|
|
|
# $FreeBSD$
|
1996-08-18 13:59:48 -04:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
LIB= z
|
2003-08-17 04:28:46 -04:00
|
|
|
SHLIBDIR?= /lib
|
2001-03-27 12:27:19 -05:00
|
|
|
MAN= zlib.3
|
1996-08-18 13:59:48 -04: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-05 20:49:08 -05:00
|
|
|
CFLAGS+= -DHAS_snprintf -DHAS_vsnprintf
|
|
|
|
|
|
1998-02-28 01:27:59 -05:00
|
|
|
CLEANFILES+= example.o example foo.gz minigzip.o minigzip
|
1996-08-18 13:59:48 -04:00
|
|
|
|
|
|
|
|
SRCS = adler32.c compress.c crc32.c gzio.c uncompr.c deflate.c trees.c \
|
2004-06-30 19:58:22 -04:00
|
|
|
zutil.c inflate.c inftrees.c inffast.c zopen.c infback.c
|
2000-01-14 02:57:47 -05:00
|
|
|
INCS= zconf.h zlib.h
|
1996-08-18 13:59:48 -04: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>
|