If a neighbor solictation or neighbor advertisement isn't from the
[dragonfly.git] / libexec / telnetd / Makefile
CommitLineData
984263bc 1# $FreeBSD: src/libexec/telnetd/Makefile,v 1.13.2.2 2002/04/13 11:03:30 markm Exp $
1de703da 2# $DragonFly: src/libexec/telnetd/Makefile,v 1.2 2003/06/17 04:27:08 dillon Exp $
984263bc
MD
3
4# Do not define -DKLUDGELINEMODE, as it does not interact well with many
5# telnet implementations.
6
7PROG= telnetd
8MAN= telnetd.8
9
10SRCS= global.c slc.c state.c sys_term.c telnetd.c \
11 termstat.c utility.c
12
13CFLAGS+= -DLINEMODE -DUSE_TERMIO -DDIAGNOSTICS -DOLD_ENVIRON \
14 -DENV_HACK \
15 -I${.CURDIR}/../../lib -DINET6
16
17WARNS?= 2
18WFORMAT?= 0
19
20.if exists(${.OBJDIR}/../../lib/libtelnet)
21LIBTELNET= ${.OBJDIR}/../../lib/libtelnet/libtelnet.a
22.else
23LIBTELNET= ${.CURDIR}/../../lib/libtelnet/libtelnet.a
24.endif
25
26DPADD= ${LIBUTIL} ${LIBTERMCAP} ${LIBTELNET}
27LDADD= -lutil -ltermcap ${LIBTELNET}
28
29unifdef:
30 -cd ${.CURDIR} ; \
31 ( for i in *.[ch] ; do \
32 unifdef -UAUTHENTICATION -UENCRYPTION \
33 ${.CURDIR}/../../crypto/telnet/telnetd/$$i \
34 > ${.CURDIR}/$$i ; \
35 echo $$i ; \
36 done )
37
38.include <bsd.prog.mk>