aboutsummaryrefslogtreecommitdiff
path: root/lib/libz
diff options
context:
space:
mode:
authorcvs2svn <cvs2svn@FreeBSD.org>1996-08-18 17:59:49 +0000
committercvs2svn <cvs2svn@FreeBSD.org>1996-08-18 17:59:49 +0000
commit65bf410cecd3702bf59aeaf94a5775ca8020040c (patch)
tree325e7fe8c659adfe2db95a827388e699f998f34c /lib/libz
parentac0a48f6a5648ea9c688729078a16c5ce5b45d34 (diff)
downloadsrc-65bf410cecd3702bf59aeaf94a5775ca8020040c.tar.gz
src-65bf410cecd3702bf59aeaf94a5775ca8020040c.zip
This commit was manufactured by cvs2svn to create branch 'VENDOR-libz'.
Notes
Notes: svn path=/vendor/libz/dist/; revision=17654
Diffstat (limited to 'lib/libz')
-rw-r--r--lib/libz/Makefile35
1 files changed, 35 insertions, 0 deletions
diff --git a/lib/libz/Makefile b/lib/libz/Makefile
new file mode 100644
index 000000000000..b302afecce78
--- /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>