2 # $FreeBSD: src/lib/libz/Makefile,v 1.11.2.4 2003/02/01 13:33:12 sobomax Exp $
3 # $DragonFly: src/lib/libz/Makefile,v 1.4 2004/10/23 13:49:54 joerg Exp $
10 CONTRIBDIR= ${.CURDIR}/../../contrib/zlib-1.2.2
14 #CFLAGS+= -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7
16 #CFLAGS+= -Wall -Wwrite-strings -Wpointer-arith -Wconversion \
17 # -Wstrict-prototypes -Wmissing-prototypes
19 CLEANFILES+= example.o example foo.gz minigzip.o minigzip
21 SRCS= adler32.c compress.c crc32.c deflate.c example.c gzio.c infback.c
22 SRCS+= inffast.c inflate.c inftrees.c trees.c uncompr.c zopen.c zutil.c
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 )