Home | History | Annotate | Line # | Download | only in sshd
Makefile revision 1.25.2.2
      1  1.25.2.2    martin #	$NetBSD: Makefile,v 1.25.2.2 2023/08/11 15:36:41 martin 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.25  christos SRCS=	sshd.c auth-rhosts.c auth-passwd.c auth2-pubkeyfile.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.23  christos 	monitor.c monitor_wrap.c srclimit.c \
     17      1.17  christos 	kexgexs.c sftp-server.c sftp-common.c \
     18      1.21  christos 	sftp-realpath.c 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.16       mrg LDADD+= ${LIBKRB5_LDADD}
     52      1.16       mrg DPADD+= ${LIBKRB5_DPADD}
     53       1.1  christos .endif
     54       1.1  christos 
     55       1.2      adam .if (${USE_LDAP} != "no")
     56       1.2      adam SRCS+=	ldapauth.c
     57      1.24  christos LDADD+=	${LIBLDAP_LDADD}
     58      1.24  christos DPADD+=	${LIBLDAP_DPADD}
     59       1.2      adam .endif
     60       1.2      adam 
     61       1.1  christos LDADD+=	-lcrypt -lutil
     62       1.1  christos DPADD+=	${LIBCRYPT} ${LIBUTIL}
     63       1.1  christos 
     64       1.1  christos LDADD+=	-lwrap
     65       1.1  christos DPADD+=	${LIBWRAP}
     66      1.11  christos 
     67      1.12  christos .ifdef CRUNCHEDPROG
     68      1.12  christos CPPFLAGS+=-DSMALL
     69      1.12  christos .else
     70      1.22  christos LDADD+=	-lblocklist
     71      1.22  christos DPADD+=	${LIBBLOCKLIST}
     72      1.12  christos .endif
     73      1.19       mrg 
     74  1.25.2.2    martin COPTS.sshlogin.c+=	${CC_WNO_STRINGOP_TRUNCATION}
     75  1.25.2.2    martin COPTS.ldapauth.c+=	${CC_WNO_STRINGOP_TRUNCATION} ${CC_WNO_STRINGOP_OVERFLOW}
     76  1.25.2.1    martin COPTS.monitor.c+= -Wno-error=deprecated-declarations
     77  1.25.2.1    martin COPTS.kexgexs.c+= -Wno-error=deprecated-declarations
     78      1.19       mrg 
     79      1.19       mrg .include <bsd.prog.mk>
     80