[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / libexec / telnetd

File: [cvs.NetBSD.org] / src / libexec / telnetd / Makefile (download)

Revision 1.44.28.1, Wed May 13 19:18:43 2009 UTC (11 years, 4 months ago) by jym
Branch: jym-xensuspend
Changes since 1.44: +3 -1 lines

Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html

#	$NetBSD: Makefile,v 1.44.28.1 2009/05/13 19:18:43 jym Exp $
#	from: @(#)Makefile	8.2 (Berkeley) 12/15/93

WARNS?=	2		# XXX: const issues in sys_term.c

.include <bsd.own.mk>

MAN=	telnetd.8

PROG=	telnetd
CPPFLAGS+=-DLINEMODE -DKLUDGELINEMODE -DDIAGNOSTICS
CPPFLAGS+=-DOLD_ENVIRON -DENV_HACK -DSECURELOGIN -DSUPPORT_UTMP -DSUPPORT_UTMPX
SRCS=	authenc.c global.c slc.c state.c sys_term.c telnetd.c \
	termstat.c utility.c
DPADD=	${LIBTELNETDIR}/libtelnet.a ${LIBTERMCAP} ${LIBUTIL}
LDADD+=	${LIBTELNETDIR}/libtelnet.a -ltermcap -lutil

CPPFLAGS+=-I${NETBSDSRCDIR}/lib
CPPFLAGS+=-I${.CURDIR}

LIBTELNETDIR!=	cd ${.CURDIR}/../../lib/libtelnet; ${PRINTOBJDIR}

.if (${USE_KERBEROS} != "no")
CPPFLAGS+=-I${DESTDIR}/usr/include/krb5
CPPFLAGS+=-DKRB5 -DAUTHENTICATION -DENCRYPTION
LDADD+= -lkrb5 -lasn1 -lcrypto -lcrypt
DPADD+=	${LIBKRB5} ${LIBASN1} ${LIBCRYPTO} ${LIBCRYPT}

.if (${USE_PAM} != "no")
LDADD+= -lpam ${PAM_STATIC_LDADD}
DPADD+=	${LIBPAM} ${PAM_STATIC_DPADD}
.endif

VERS!=	cd ${NETBSDSRCDIR}/lib/libvers && ${PRINTOBJDIR}

LDADD+=	 -ldes -lcom_err -L${VERS} -lvers -lroken
DPADD+=	${LIBDES} ${LIBCOM_ERR} ${LIBROKEN}

.endif

.include <bsd.prog.mk>