Sync termcap with FreeBSD preserving local changes.
[dragonfly.git] / usr.bin / telnet / Makefile
blob58d7189c4a183103e719cfff2d44873f91499b0f
1 # $FreeBSD: src/usr.bin/telnet/Makefile,v 1.14.2.2 2002/04/13 11:03:30 markm Exp $
2 # $DragonFly: src/usr.bin/telnet/Makefile,v 1.3 2007/08/27 16:50:59 pavalos Exp $
4 PROG= telnet
6 SRCS= commands.c main.c network.c ring.c sys_bsd.c \
7 telnet.c terminal.c utilities.c
9 CFLAGS+= -DKLUDGELINEMODE -DUSE_TERMIO -DENV_HACK -DOPIE \
10 -I${.CURDIR}/../../lib -I${.CURDIR}/../../lib/libtelnet/
11 WARNS?= 0
13 .if exists(${.OBJDIR}/../../lib/libtelnet)
14 LIBTELNET= ${.OBJDIR}/../../lib/libtelnet/libtelnet.a
15 .else
16 LIBTELNET= ${.CURDIR}/../../lib/libtelnet/libtelnet.a
17 .endif
19 DPADD= ${LIBTERMCAP} ${LIBTELNET}
20 LDADD= -ltermcap ${LIBTELNET}
22 .if !defined(RELEASE_CRUNCH)
23 CFLAGS+= -DINET6 -DIPSEC
24 DPADD+= ${LIBIPSEC}
25 LDADD+= -lipsec
26 .else
27 .PATH: ${.CURDIR}/../../lib/libtelnet
28 # XXX This was copied from lib/libtelnet/Makefile.
29 SRCS+= genget.c getent.c misc.c
30 CFLAGS+= -DHAS_CGETENT
31 .endif
33 unifdef:
34 -cd ${.CURDIR} ; \
35 ( for i in *.[ch] ; do \
36 unifdef -UAUTHENTICATION -UENCRYPTION \
37 ${.CURDIR}/../../crypto/telnet/telnet/$$i \
38 > ${.CURDIR}/$$i ; \
39 echo $$i ; \
40 done )
42 .include <bsd.prog.mk>