diff options
author | peter <peter@FreeBSD.org> | 1996-08-18 17:59:48 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1996-08-18 17:59:48 +0000 |
commit | be0c1f6db09a0ae8512137a717b5e00173d70c4e (patch) | |
tree | ce140098e115916e8eccd4f13b429ba176250283 /lib/libz | |
parent | 0e05ff77ebe226939e0089a84f5b1bb91e7842ce (diff) | |
download | FreeBSD-src-be0c1f6db09a0ae8512137a717b5e00173d70c4e.zip FreeBSD-src-be0c1f6db09a0ae8512137a717b5e00173d70c4e.tar.gz |
Add a bmakefile for zlib.
Diffstat (limited to 'lib/libz')
-rw-r--r-- | lib/libz/Makefile | 35 |
1 files changed, 35 insertions, 0 deletions
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 <bsd.lib.mk> |