* Use id(1) instead of grep(1) to detect the presence of the smmsp
[dragonfly.git] / lib / libz / Makefile
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.2 2003/06/17 04:26:52 dillon Exp $
4 #
5
6 MAINTAINER=peter@FreeBSD.org
7
8 LIB=            z
9 MAN=            zlib.3
10
11 #CFLAGS+=       -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7
12 #CFLAGS+=       -g -DDEBUG
13 #CFLAGS+=       -Wall -Wwrite-strings -Wpointer-arith -Wconversion \
14 #               -Wstrict-prototypes -Wmissing-prototypes
15
16 CFLAGS+=        -DHAS_snprintf -DHAS_vsnprintf
17
18 CLEANFILES+=    example.o example foo.gz minigzip.o minigzip
19
20 SRCS = adler32.c compress.c crc32.c gzio.c uncompr.c deflate.c trees.c \
21        zutil.c inflate.c infblock.c inftrees.c infcodes.c infutil.c \
22        inffast.c zopen.c
23 INCS=           zconf.h zlib.h
24
25 minigzip:       all minigzip.o
26         $(CC) -o minigzip minigzip.o -L. -lz
27
28 example:        all example.o
29         $(CC) -o example example.o -L. -lz
30
31 test: example minigzip
32         (export LD_LIBRARY_PATH=. ; ./example )
33         (export LD_LIBRARY_PATH=. ; \
34                 echo hello world | ./minigzip | ./minigzip -d )
35
36 .include <bsd.lib.mk>