]> CyberLeo.Net >> Repos - FreeBSD/releng/7.2.git/blob - lib/libz/Makefile
Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.
[FreeBSD/releng/7.2.git] / lib / libz / Makefile
1 #
2 # $FreeBSD$
3 #
4
5 LIB=            z
6 SHLIBDIR?=      /lib
7 MAN=            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
14 CFLAGS+=        -DHAS_snprintf -DHAS_vsnprintf
15
16 CLEANFILES+=    example.o example foo.gz minigzip.o minigzip
17
18 SRCS = adler32.c compress.c crc32.c gzio.c uncompr.c deflate.c trees.c \
19        zutil.c inflate.c inftrees.c inffast.c zopen.c infback.c
20 INCS=           zconf.h zlib.h
21
22 minigzip:       all minigzip.o
23         $(CC) -o minigzip minigzip.o -L. -lz
24
25 example:        all example.o
26         $(CC) -o example example.o -L. -lz
27
28 test: example minigzip
29         (export LD_LIBRARY_PATH=. ; ./example )
30         (export LD_LIBRARY_PATH=. ; \
31                 echo hello world | ./minigzip | ./minigzip -d )
32
33 .include <bsd.lib.mk>