From 3e6565cbe37c6d88d8d54180d9783ceb79fa6465 Mon Sep 17 00:00:00 2001 From: cvs2svn Date: Sun, 18 Aug 1996 17:59:49 +0000 Subject: This commit was manufactured by cvs2svn to create branch 'VENDOR-libz'. --- lib/libz/Makefile | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 lib/libz/Makefile (limited to 'lib/libz') diff --git a/lib/libz/Makefile b/lib/libz/Makefile new file mode 100644 index 0000000..b302afe --- /dev/null +++ b/lib/libz/Makefile @@ -0,0 +1,35 @@ +# +# $Id$ +# + +MAINTAINER=peter@FreeBSD.org + +LIB= z + +#CFLAGS+= -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7 +#CFLAGS+= -g -DDEBUG +#CFLAGS+= -Wall -Wwrite-strings -Wpointer-arith -Wconversion \ +# -Wstrict-prototypes -Wmissing-prototypes + +CLEANFILES+= example.o example minigzip.o minigzip + +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: + ${INSTALL} -c -m 644 -o ${BINOWN} -g ${BINGRP} zlib.h zconf.h \ + ${DESTDIR}/usr/include + +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 -- cgit v1.1