Home | History | Annotate | Line # | Download | only in sshd
Makefile revision 1.15
      1  1.15  christos #	$NetBSD: Makefile,v 1.15 2017/01/28 23:38:48 christos Exp $
      2   1.1  christos 
      3   1.1  christos .include <bsd.own.mk>
      4   1.1  christos 
      5   1.1  christos PROG=	sshd
      6   1.1  christos MAN=	sshd.8 sshd_config.5 moduli.5
      7   1.1  christos 
      8   1.1  christos BINDIR=	/usr/sbin
      9   1.1  christos 
     10  1.14  christos SRCS=	sshd.c auth-rhosts.c auth-passwd.c \
     11   1.2      adam 	sshpty.c sshlogin.c servconf.c serverloop.c \
     12  1.14  christos 	auth.c auth2.c auth-options.c session.c \
     13  1.14  christos 	auth-krb5.c auth2-chall.c groupaccess.c \
     14  1.14  christos 	auth-bsdauth.c auth2-hostbased.c auth2-kbdint.c \
     15   1.1  christos 	auth2-none.c auth2-passwd.c auth2-pubkey.c \
     16  1.14  christos 	monitor.c monitor_wrap.c \
     17   1.6  christos 	kexdhs.c kexgexs.c kexecdhs.c sftp-server.c sftp-common.c \
     18  1.13  christos 	sandbox-rlimit.c pfilter.c
     19   1.2      adam 
     20  1.14  christos COPTS.auth-options.c+=	-Wno-pointer-sign
     21  1.14  christos COPTS.ldapauth.c+=	-Wno-format-nonliteral	# XXX: should fix
     22   1.1  christos 
     23   1.1  christos .if (${USE_PAM} != "no")
     24   1.2      adam SRCS+=	auth-pam.c
     25   1.1  christos LDADD+=	-lpam ${PAM_STATIC_LDADD}
     26   1.1  christos DPADD+=	${LIBPAM} ${PAM_STATIC_DPADD}
     27   1.1  christos 
     28   1.1  christos .if ${USE_YP} != "no"
     29   1.1  christos LDADD+= -lrpcsvc
     30   1.1  christos DPADD+= ${LIBRPCSVC}
     31   1.1  christos .endif
     32   1.1  christos 
     33   1.1  christos .else	# USE_PAM == no
     34   1.1  christos 
     35   1.1  christos .if (${USE_SKEY} != "no")
     36   1.1  christos LDADD+=	-lskey
     37   1.1  christos DPADD+=	${LIBSKEY}
     38   1.1  christos .endif
     39   1.1  christos 
     40   1.1  christos .endif	# USE_PAM == no
     41   1.1  christos 
     42   1.1  christos .if (${USE_KERBEROS} != "no")
     43   1.2      adam SRCS+=	gss-genr.c auth2-gss.c gss-serv.c gss-serv-krb5.c
     44   1.1  christos LDADD+=	-lgssapi -lheimntlm
     45   1.1  christos DPADD+=	${LIBGSSAPI} ${LIBHEIMNTLM}
     46   1.1  christos 
     47   1.1  christos LDADD+=	-lkafs
     48   1.1  christos DPADD+= ${LIBKAFS}
     49   1.1  christos 
     50  1.14  christos SRCS+=	auth2-krb5.c
     51   1.1  christos LDADD+=	-lkrb5 -lasn1
     52   1.1  christos DPADD+=	${LIBKRB5} ${LIBASN1}
     53   1.1  christos 
     54  1.15  christos LDADD+=	-lcom_err -lroken -lsqlite3
     55  1.15  christos DPADD+=	${LIBCOM_ERR} ${LIBROKEN} ${LIBSQLITE3}
     56   1.1  christos .endif
     57   1.1  christos 
     58   1.2      adam .if (${USE_LDAP} != "no")
     59   1.2      adam SRCS+=	ldapauth.c
     60   1.4        he LDADD+=	-lldap -lssl -llber
     61   1.4        he DPADD+=	${LIBLDAP} ${LIBSSL} ${LIBLBER}
     62   1.2      adam .endif
     63   1.2      adam 
     64   1.1  christos .include <bsd.prog.mk>
     65   1.1  christos 
     66   1.1  christos LDADD+=	-lcrypt -lutil
     67   1.1  christos DPADD+=	${LIBCRYPT} ${LIBUTIL}
     68   1.1  christos 
     69   1.1  christos LDADD+=	-lwrap
     70   1.1  christos DPADD+=	${LIBWRAP}
     71  1.11  christos 
     72  1.12  christos .ifdef CRUNCHEDPROG
     73  1.12  christos CPPFLAGS+=-DSMALL
     74  1.12  christos .else
     75  1.11  christos LDADD+=	-lblacklist
     76  1.11  christos DPADD+=	${LIBBLACKLIST}
     77  1.12  christos .endif
     78