modules: add elf_obj linker for amd64
[dragonfly.git] / libexec / telnetd / Makefile
blobad2d795b847ca0a9627b9841636b91b92b99c4ea
1 # $FreeBSD: src/libexec/telnetd/Makefile,v 1.31 2006/07/31 19:15:09 yar Exp $
2 # $DragonFly: src/libexec/telnetd/Makefile,v 1.2 2003/06/17 04:27:08 dillon Exp $
4 # Do not define -DKLUDGELINEMODE, as it does not interact well with many
5 # telnet implementations.
7 PROG= telnetd
8 MAN= telnetd.8
10 SRCS= global.c slc.c state.c sys_term.c telnetd.c \
11 termstat.c utility.c
13 WARNS?= 0
14 WFORMAT?= 0
16 CFLAGS+= -DLINEMODE -DUSE_TERMIO -DDIAGNOSTICS -DOLD_ENVIRON -DENV_HACK \
17 -I${.CURDIR}/../../lib
19 .if !defined(NO_INET6)
20 CFLAGS+= -DINET6
21 .endif
23 LIBTELNET= ${.OBJDIR}/../../lib/libtelnet/libtelnet.a
25 DPADD= ${LIBUTIL} ${LIBTERMCAP} ${LIBTELNET}
26 LDADD= -lutil -ltermcap ${LIBTELNET}
28 .if !defined(NO_OPENSSL)
29 SRCS+= authenc.c
30 CFLAGS+= -DAUTHENTICATION -DENCRYPTION
31 DPADD+= ${LIBCRYPTO} ${LIBCRYPT} ${LIBPAM}
32 LDADD+= -lcrypto -lcrypt ${MINUSLPAM}
33 .endif
35 .include <bsd.prog.mk>