summaryrefslogtreecommitdiffstats
path: root/lib/libz/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libz/Makefile')
-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 0000000..6b7bec7
--- /dev/null
+++ b/lib/libz/Makefile
@@ -0,0 +1,35 @@
+#
+# $FreeBSD$
+#
+
+MAINTAINER=peter@FreeBSD.org
+
+LIB= z
+SHLIBDIR?= /lib
+MAN= zlib.3
+
+#CFLAGS+= -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7
+#CFLAGS+= -g -DDEBUG
+#CFLAGS+= -Wall -Wwrite-strings -Wpointer-arith -Wconversion \
+# -Wstrict-prototypes -Wmissing-prototypes
+
+CFLAGS+= -DHAS_snprintf -DHAS_vsnprintf
+
+CLEANFILES+= example.o example foo.gz minigzip.o minigzip
+
+SRCS = adler32.c compress.c crc32.c gzio.c uncompr.c deflate.c trees.c \
+ zutil.c inflate.c inftrees.c inffast.c zopen.c infback.c
+INCS= zconf.h zlib.h
+
+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>
OpenPOWER on IntegriCloud