xref: /dragonfly/lib/libz/Makefile (revision 9bb2a92d)
1#
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 $
4#
5
6LIB=		z
7MAN=		zlib.3
8
9#CFLAGS+=	-DMAX_WBITS=14 -DMAX_MEM_LEVEL=7
10#CFLAGS+=	-g -DDEBUG
11#CFLAGS+=	-Wall -Wwrite-strings -Wpointer-arith -Wconversion \
12#		-Wstrict-prototypes -Wmissing-prototypes
13
14CFLAGS+=	-DHAS_snprintf -DHAS_vsnprintf
15
16CLEANFILES+=	example.o example foo.gz minigzip.o minigzip
17
18SRCS = 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 \
20       inffast.c zopen.c
21INCS=		zconf.h zlib.h
22
23minigzip:	all minigzip.o
24	$(CC) -o minigzip minigzip.o -L. -lz
25
26example:	all example.o
27	$(CC) -o example example.o -L. -lz
28
29test: example minigzip
30	(export LD_LIBRARY_PATH=. ; ./example )
31	(export LD_LIBRARY_PATH=. ; \
32		echo hello world | ./minigzip | ./minigzip -d )
33
34.include <bsd.lib.mk>
35