blob: b9a8443ef2e96673e7c4874a38cb3ad81003f326 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# $OpenBSD: Makefile,v 1.18 2003/05/14 01:46:51 hin Exp $
# from: @(#)Makefile 8.2 (Berkeley) 12/15/93
# $NetBSD: Makefile,v 1.6 1996/02/24 01:22:12 jtk Exp $
PROG= telnetd
CFLAGS+=-DLINEMODE -DKLUDGELINEMODE -DUSE_TERMIO -DDIAGNOSTICS
CFLAGS+=-DOLD_ENVIRON -DENV_HACK -I${.CURDIR} -Wall -Werror
CFLAGS+= -DHAS_CGETENT -Wno-unused
SRCS= authenc.c global.c slc.c state.c sys_term.c telnetd.c \
termstat.c utility.c mini_inetd.c socket.c \
auth.c encrypt.c genget.c misc.c
DPADD= ${LIBUTIL} ${LIBCURSES}
LDADD+= -lutil -lcurses
MAN= telnetd.8
.include <bsd.own.mk> # for KERBEROS
.if (${KERBEROS5:L} == "yes")
SRCS+= kerberos5.c enc_des.c
LDADD+= -lkrb5 -lasn1 -lcrypto -lcom_err -lkafs
CFLAGS+= -DKRB5 -DAUTHENTICATION -DENCRYPTION -DDES_ENCRYPTION
.endif
.if (${KERBEROS:L} == "yes")
CFLAGS+=-DENCRYPTION -DAUTHENTICATION -DKRB4 -DDES_ENCRYPTION
LDADD+= -lkrb -lcrypto -ldes
DPADD+= ${LIBDES} ${LIBKRB}
SRCS+= kerberos.c
.endif
.include <bsd.prog.mk>
|