ftp: Adjustments after vendor import
[dragonfly.git] / libexec / telnetd / Makefile
1 # $FreeBSD: src/libexec/telnetd/Makefile,v 1.31 2006/07/31 19:15:09 yar Exp $
2
3 # Do not define -DKLUDGELINEMODE, as it does not interact well with many
4 # telnet implementations.
5
6 PROG=           telnetd
7 MAN=            telnetd.8
8
9 SRCS=           authenc.c global.c slc.c state.c sys_term.c telnetd.c \
10                 termstat.c utility.c
11
12 WARNS?=         5
13
14 CFLAGS+=        -DLINEMODE -DUSE_TERMIO -DDIAGNOSTICS -DOLD_ENVIRON -DENV_HACK
15 CFLAGS+=        -I${.CURDIR}/../../lib
16
17 .if !defined(NO_INET6)
18 CFLAGS+=        -DINET6
19 .endif
20
21 LIBTELNET=      ${.OBJDIR}/../../lib/libtelnet/libtelnet.a
22
23 DPADD=          ${LIBUTIL} ${LIBNCURSES} ${LIBTELNET}
24 LDADD=          -lutil -lprivate_ncurses ${LIBTELNET}
25 LDFLAGS+=       ${PRIVATELIB_LDFLAGS}
26 CFLAGS+=        -I${_SHLIBDIRPREFIX}/usr/include/priv/ncurses
27
28 CFLAGS+=        -DAUTHENTICATION -DENCRYPTION
29 CFLAGS+=        -I${.CURDIR}/../../crypto/libressl/include
30 DPADD+=         ${LIBCRYPTO} ${LIBCRYPT} ${LIBPAM}
31 LDADD+=         -lprivate_crypto -lcrypt ${MINUSLPAM}
32
33 .include <bsd.prog.mk>