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.3 2004/01/31 06:56:39 dillon Exp $
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 infblock.c inftrees.c infcodes.c infutil.c \
23 minigzip: all minigzip.o
24 $(CC) -o minigzip minigzip.o -L. -lz
26 example: all example.o
27 $(CC) -o example example.o -L. -lz
29 test: example minigzip
30 (export LD_LIBRARY_PATH=. ; ./example )
31 (export LD_LIBRARY_PATH=. ; \
32 echo hello world | ./minigzip | ./minigzip -d )