Home | History | Annotate | Line # | Download | only in sshd
Makefile revision 1.1
      1 #	$NetBSD: Makefile,v 1.1 2009/06/07 22:38:46 christos Exp $
      2 
      3 .include <bsd.own.mk>
      4 
      5 PROG=	sshd
      6 MAN=	sshd.8 sshd_config.5 moduli.5
      7 
      8 BINDIR=	/usr/sbin
      9 
     10 SRCS=	sshd.c auth-rhosts.c auth-passwd.c auth-rsa.c auth-rh-rsa.c \
     11 	sshpty.c sshlogin.c servconf.c serverloop.c uidswap.c \
     12 	auth.c auth1.c auth2.c auth-options.c session.c \
     13 	auth-chall.c auth2-chall.c groupaccess.c \
     14 	auth-skey.c auth-bsdauth.c auth2-hostbased.c auth2-kbdint.c \
     15 	auth2-none.c auth2-passwd.c auth2-pubkey.c \
     16 	monitor_mm.c monitor.c monitor_wrap.c \
     17 	kexdhs.c kexgexs.c sftp-server.c sftp-common.c
     18 
     19 .if (${USE_PAM} != "no")
     20 SRCS+= auth-pam.c
     21 LDADD+=	-lpam ${PAM_STATIC_LDADD}
     22 DPADD+=	${LIBPAM} ${PAM_STATIC_DPADD}
     23 
     24 .if ${USE_YP} != "no"
     25 LDADD+= -lrpcsvc
     26 DPADD+= ${LIBRPCSVC}
     27 .endif
     28 
     29 .else	# USE_PAM == no
     30 
     31 .if (${USE_SKEY} != "no")
     32 LDADD+=	-lskey
     33 DPADD+=	${LIBSKEY}
     34 .endif
     35 
     36 .endif	# USE_PAM == no
     37 
     38 .if (${USE_KERBEROS} != "no")
     39 
     40 SRCS +=	gss-genr.c auth2-gss.c gss-serv.c gss-serv-krb5.c
     41 LDADD+=	-lgssapi -lheimntlm
     42 DPADD+=	${LIBGSSAPI} ${LIBHEIMNTLM}
     43 
     44 LDADD+=	-lkafs
     45 DPADD+= ${LIBKAFS}
     46 
     47 SRCS+=	auth-krb5.c auth2-krb5.c
     48 LDADD+=	-lkrb5 -lasn1
     49 DPADD+=	${LIBKRB5} ${LIBASN1}
     50 
     51 LDADD+=	-lcom_err -lroken
     52 DPADD+=	${LIBCOM_ERR} ${LIBROKEN}
     53 .endif
     54 
     55 .include <bsd.prog.mk>
     56 
     57 LDADD+=	-lcrypt -lutil
     58 DPADD+=	${LIBCRYPT} ${LIBUTIL}
     59 
     60 LDADD+=	-lwrap
     61 DPADD+=	${LIBWRAP}
     62