1996-08-18 19:59:48 +02:00
|
|
|
#
|
1998-04-17 10:31:07 +02:00
|
|
|
# $Id: Makefile,v 1.8 1998/04/17 07:26:51 phk Exp $
|
1996-08-18 19:59:48 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
MAINTAINER=peter@FreeBSD.org
|
|
|
|
|
|
|
|
LIB= z
|
1998-02-28 11:41:01 +01:00
|
|
|
MAN3= zlib.3
|
1996-08-18 19:59:48 +02:00
|
|
|
|
|
|
|
#CFLAGS+= -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7
|
|
|
|
#CFLAGS+= -g -DDEBUG
|
|
|
|
#CFLAGS+= -Wall -Wwrite-strings -Wpointer-arith -Wconversion \
|
|
|
|
# -Wstrict-prototypes -Wmissing-prototypes
|
|
|
|
|
1998-02-28 07:27:59 +01:00
|
|
|
CLEANFILES+= example.o example foo.gz minigzip.o minigzip
|
1996-08-18 19:59:48 +02:00
|
|
|
|
|
|
|
SRCS = adler32.c compress.c crc32.c gzio.c uncompr.c deflate.c trees.c \
|
|
|
|
zutil.c inflate.c infblock.c inftrees.c infcodes.c infutil.c inffast.c
|
|
|
|
|
|
|
|
beforeinstall:
|
1996-08-19 03:21:46 +02:00
|
|
|
.for hdr in zconf.h zlib.h
|
|
|
|
${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/${hdr} \
|
|
|
|
${DESTDIR}/usr/include
|
|
|
|
.endfor
|
1996-08-18 19:59:48 +02:00
|
|
|
|
|
|
|
minigzip: all minigzip.o
|
|
|
|
$(CC) -o minigzip minigzip.o -L. -lz
|
|
|
|
|
|
|
|
example: all example.o
|
|
|
|
$(CC) -o example example.o -L. -lz
|
|
|
|
|
|
|
|
test: example minigzip
|
|
|
|
(export LD_LIBRARY_PATH=. ; ./example )
|
|
|
|
(export LD_LIBRARY_PATH=. ; \
|
|
|
|
echo hello world | ./minigzip | ./minigzip -d )
|
|
|
|
|
|
|
|
.include <bsd.lib.mk>
|