aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/Makefile5
-rw-r--r--lib/libldns/Makefile44
2 files changed, 49 insertions, 0 deletions
diff --git a/lib/Makefile b/lib/Makefile
index 14470029a604..7a0ec021bd22 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -82,6 +82,7 @@ SUBDIR= ${SUBDIR_ORDERED} \
${_libipx} \
libjail \
libkiconv \
+ ${_libldns} \
liblzma \
libmagic \
libmandoc \
@@ -177,6 +178,10 @@ _libiconv_modules= libiconv_modules
_libipx= libipx
.endif
+.if ${MK_LDNS} != "no"
+_libldns= libldns
+.endif
+
.if ${MK_LIBCPLUSPLUS} != "no"
_libcxxrt= libcxxrt
_libcplusplus= libc++
diff --git a/lib/libldns/Makefile b/lib/libldns/Makefile
new file mode 100644
index 000000000000..268939e186c2
--- /dev/null
+++ b/lib/libldns/Makefile
@@ -0,0 +1,44 @@
+# $FreeBSD$
+
+# Vendor sources and generated files
+LDNSDIR = ${.CURDIR}/../../contrib/ldns
+
+.PATH: ${LDNSDIR}
+
+LIB = ldns
+INTERNALLIB = true
+
+CFLAGS += -I${LDNSDIR}
+
+SRCS += buffer.c
+SRCS += dname.c
+SRCS += dnssec.c
+SRCS += dnssec_sign.c
+SRCS += dnssec_verify.c
+SRCS += dnssec_zone.c
+SRCS += duration.c
+SRCS += error.c
+SRCS += higher.c
+SRCS += host2str.c
+SRCS += host2wire.c
+SRCS += keys.c
+SRCS += net.c
+SRCS += packet.c
+SRCS += parse.c
+SRCS += rbtree.c
+SRCS += rdata.c
+SRCS += resolver.c
+SRCS += rr.c
+SRCS += rr_functions.c
+SRCS += sha1.c
+SRCS += sha2.c
+SRCS += str2host.c
+SRCS += tsig.c
+SRCS += update.c
+SRCS += util.c
+SRCS += wire2host.c
+SRCS += zone.c
+
+WARNS ?= 3
+
+.include <bsd.lib.mk>