Makefile revision 35243
1#
2# $Id: Makefile,v 1.7 1998/02/28 10:41:01 ache Exp $
3#
4
5MAINTAINER=peter@FreeBSD.org
6
7LIB=		z
8MAN3=           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
15CLEANFILES+=	example.o example foo.gz minigzip.o minigzip
16
17SRCS = adler32.c compress.c crc32.c gzio.c uncompr.c deflate.c trees.c \
18       zutil.c inflate.c infblock.c inftrees.c infcodes.c infutil.c inffast.c
19
20MAN3 = zlib.3
21
22beforeinstall:
23.for hdr in zconf.h zlib.h
24	${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/${hdr} \
25		${DESTDIR}/usr/include
26.endfor
27
28minigzip:	all minigzip.o
29	$(CC) -o minigzip minigzip.o -L. -lz
30
31example:	all example.o
32	$(CC) -o example example.o -L. -lz
33
34test: example minigzip
35	(export LD_LIBRARY_PATH=. ; ./example )
36	(export LD_LIBRARY_PATH=. ; \
37		echo hello world | ./minigzip | ./minigzip -d )
38
39.include <bsd.lib.mk>
40