aboutsummaryrefslogtreecommitdiff
path: root/lib/libz/Makefile
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-10-16 17:41:25 +0300
committerCem Keylan <cem@ckyln.com>2020-10-16 17:41:25 +0300
commite2abcdca396661cbe0ae2ddb13d5c2b85682c13a (patch)
treeacf9b5c80b645617f882c45224c6e07251711842 /lib/libz/Makefile
downloadotools-e2abcdca396661cbe0ae2ddb13d5c2b85682c13a.tar.gz
initial commit
Diffstat (limited to 'lib/libz/Makefile')
-rw-r--r--lib/libz/Makefile30
1 files changed, 30 insertions, 0 deletions
diff --git a/lib/libz/Makefile b/lib/libz/Makefile
new file mode 100644
index 0000000..cba7339
--- /dev/null
+++ b/lib/libz/Makefile
@@ -0,0 +1,30 @@
+# $OpenBSD: Makefile,v 1.20 2016/09/14 06:26:03 natano Exp $
+
+LIB= z
+HDRS= zconf.h zlib.h
+SRCS= adler32.c compress.c crc32.c deflate.c gzio.c infback.c \
+ inffast.c inflate.c inftrees.c trees.c uncompr.c zutil.c
+MAN= compress.3
+CFLAGS+=-DHAVE_STRERROR -DHAVE_MEMCPY -DHAS_vsnprintf -DHAS_snprintf
+
+PC_FILES=zlib.pc
+CLEANFILES+=${PC_FILES}
+
+includes:
+ @cd ${.CURDIR}; for i in $(HDRS); do \
+ j="cmp -s $$i ${DESTDIR}/usr/include/$$i || \
+ ${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m 444 \
+ $$i ${DESTDIR}/usr/include"; \
+ echo $$j; \
+ eval "$$j"; \
+ done
+
+all: ${PC_FILES}
+${PC_FILES}: zlib.h
+ /bin/sh ${.CURDIR}/generate_pkgconfig.sh -c ${.CURDIR} -o ${.OBJDIR}
+
+beforeinstall:
+ ${INSTALL} ${INSTALL_COPY} -o root -g ${SHAREGRP} \
+ -m ${SHAREMODE} ${.OBJDIR}/${PC_FILES} ${DESTDIR}/usr/lib/pkgconfig/
+
+.include <bsd.lib.mk>