aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/host/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/host/Makefile')
-rw-r--r--usr.bin/host/Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/usr.bin/host/Makefile b/usr.bin/host/Makefile
new file mode 100644
index 000000000000..45ca3698abd5
--- /dev/null
+++ b/usr.bin/host/Makefile
@@ -0,0 +1,18 @@
+LDNSDIR= ${SRCTOP}/contrib/ldns
+LDNSHOSTDIR= ${SRCTOP}/contrib/ldns-host
+
+.PATH: ${LDNSHOSTDIR}
+
+PROG= host
+SRCS= ldns-host.c
+MAN= host.1
+CLEANFILES+= host.1
+
+host.1: ldns-host.1
+ sed -e 's/ldns-//gI' <${.ALLSRC} >${.TARGET} || \
+ (rm -rf ${.TARGET} ; false)
+
+CFLAGS+= -I${LDNSDIR}
+LIBADD= ldns
+
+.include <bsd.prog.mk>