xref: /dragonfly/usr.bin/telnet/Makefile (revision 19fe1c42)
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 $
3
4PROG=		telnet
5
6SRCS=		commands.c main.c network.c ring.c sys_bsd.c \
7		telnet.c terminal.c utilities.c
8
9CFLAGS+=	-DKLUDGELINEMODE -DUSE_TERMIO -DENV_HACK -DOPIE \
10		-I${.CURDIR}/../../lib -I${.CURDIR}/../../lib/libtelnet/
11WARNS?=	0
12
13.if exists(${.OBJDIR}/../../lib/libtelnet)
14LIBTELNET=	${.OBJDIR}/../../lib/libtelnet/libtelnet.a
15.else
16LIBTELNET=	${.CURDIR}/../../lib/libtelnet/libtelnet.a
17.endif
18
19DPADD=		${LIBTERMCAP} ${LIBTELNET}
20LDADD=		-ltermcap ${LIBTELNET}
21
22.if !defined(RELEASE_CRUNCH)
23CFLAGS+=	-DINET6 -DIPSEC
24DPADD+=		${LIBIPSEC}
25LDADD+=		-lipsec
26.else
27.PATH:		${.CURDIR}/../../lib/libtelnet
28# XXX This was copied from lib/libtelnet/Makefile.
29SRCS+=		genget.c getent.c misc.c
30CFLAGS+=	-DHAS_CGETENT
31.endif
32
33unifdef:
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 )
41
42.include <bsd.prog.mk>
43