Makefile revision 33912
1#
2# $Id: Makefile,v 1.5 1997/02/22 11:38:21 peter Exp $
3#
4
5MAINTAINER=peter@FreeBSD.org
6
7LIB=		z
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
14CLEANFILES+=	example.o example foo.gz minigzip.o minigzip
15
16SRCS = adler32.c compress.c crc32.c gzio.c uncompr.c deflate.c trees.c \
17       zutil.c inflate.c infblock.c inftrees.c infcodes.c infutil.c inffast.c
18
19beforeinstall:
20.for hdr in zconf.h zlib.h
21	${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/${hdr} \
22		${DESTDIR}/usr/include
23.endfor
24
25minigzip:	all minigzip.o
26	$(CC) -o minigzip minigzip.o -L. -lz
27
28example:	all example.o
29	$(CC) -o example example.o -L. -lz
30
31test: 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>
37