Initial import from FreeBSD RELENG_4:
[games.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 #
4
5 MAINTAINER=peter@FreeBSD.org
6
7 LIB=            z
8 MAN=            zlib.3
9
10 #CFLAGS+=       -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7
11 #CFLAGS+=       -g -DDEBUG
12 #CFLAGS+=       -Wall -Wwrite-strings -Wpointer-arith -Wconversion \
13 #               -Wstrict-prototypes -Wmissing-prototypes
14
15 CFLAGS+=        -DHAS_snprintf -DHAS_vsnprintf
16
17 CLEANFILES+=    example.o example foo.gz minigzip.o minigzip
18
19 SRCS = adler32.c compress.c crc32.c gzio.c uncompr.c deflate.c trees.c \
20        zutil.c inflate.c infblock.c inftrees.c infcodes.c infutil.c \
21        inffast.c zopen.c
22 INCS=           zconf.h zlib.h
23
24 minigzip:       all minigzip.o
25         $(CC) -o minigzip minigzip.o -L. -lz
26
27 example:        all example.o
28         $(CC) -o example example.o -L. -lz
29
30 test: example minigzip
31         (export LD_LIBRARY_PATH=. ; ./example )
32         (export LD_LIBRARY_PATH=. ; \
33                 echo hello world | ./minigzip | ./minigzip -d )
34
35 .include <bsd.lib.mk>