summaryrefslogtreecommitdiffstats
path: root/libexec/telnetd/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'libexec/telnetd/Makefile')
-rw-r--r--libexec/telnetd/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/libexec/telnetd/Makefile b/libexec/telnetd/Makefile
index 20acad9..f366f53 100644
--- a/libexec/telnetd/Makefile
+++ b/libexec/telnetd/Makefile
@@ -9,8 +9,15 @@ CFLAGS+=-I${.CURDIR}/../../lib
CFLAGS+=-DINET6
SRCS= global.c slc.c state.c sys_term.c telnetd.c \
termstat.c utility.c
+
+.if exists(${.OBJDIR}/../../lib/libtelnet)
+LIBTELNET= ${.OBJDIR}/../../lib/libtelnet/libtelnet.a
+.else
+LIBTELNET= ${.CURDIR}/../../lib/libtelnet/libtelnet.a
+.endif
+
DPADD= ${LIBUTIL} ${LIBTERMCAP} ${LIBTELNET}
-LDADD= -lutil -ltermcap -ltelnet
+LDADD= -lutil -ltermcap ${LIBTELNET}
MAN= telnetd.8
.include <bsd.prog.mk>
OpenPOWER on IntegriCloud