ssh: tidy include handling
Centralize optional krb5_config.h handling in ssh.mk. Do not add headers (that are committed to the src tree) to SRCS as there is no need. Reviewed by: imp, jlduran, kevans (all earlier) MFC after: 1 month Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D34409
This commit is contained in:
@@ -50,11 +50,6 @@ SRCS+= getrrsetbyname-ldns.c
|
||||
LIBADD+= ldns
|
||||
.endif
|
||||
|
||||
.if ${MK_GSSAPI} != "no" && ${MK_KERBEROS_SUPPORT} != "no"
|
||||
CFLAGS+= -include krb5_config.h
|
||||
SRCS+= krb5_config.h
|
||||
.endif
|
||||
|
||||
.if defined(LOCALBASE)
|
||||
CFLAGS+= -D_PATH_SSH_ASKPASS_DEFAULT='"${LOCALBASE}/bin/ssh-askpass"'
|
||||
.endif
|
||||
|
||||
@@ -45,8 +45,6 @@ LDFLAGS+=-L${LIBBLACKLISTDIR}
|
||||
.endif
|
||||
|
||||
.if ${MK_GSSAPI} != "no" && ${MK_KERBEROS_SUPPORT} != "no"
|
||||
CFLAGS+= -include krb5_config.h
|
||||
SRCS+= krb5_config.h
|
||||
LIBADD+= gssapi_krb5 gssapi krb5
|
||||
.endif
|
||||
|
||||
|
||||
+4
-1
@@ -5,7 +5,10 @@
|
||||
SSHDIR= ${SRCTOP}/crypto/openssh
|
||||
|
||||
CFLAGS+= -I${SSHDIR} -include ssh_namespace.h
|
||||
SRCS+= ssh_namespace.h
|
||||
|
||||
.if ${MK_GSSAPI} != "no" && ${MK_KERBEROS_SUPPORT} != "no"
|
||||
CFLAGS+= -include krb5_config.h
|
||||
.endif
|
||||
|
||||
CFLAGS+= -DXAUTH_PATH=\"${LOCALBASE:U/usr/local}/bin/xauth\"
|
||||
|
||||
|
||||
@@ -22,8 +22,6 @@ CFLAGS+= -DHAVE_LDNS=1
|
||||
.endif
|
||||
|
||||
.if ${MK_GSSAPI} != "no" && ${MK_KERBEROS_SUPPORT} != "no"
|
||||
CFLAGS+= -include krb5_config.h
|
||||
SRCS+= krb5_config.h
|
||||
LIBADD+= gssapi
|
||||
.endif
|
||||
|
||||
|
||||
@@ -17,8 +17,6 @@ moduli: .MADE
|
||||
LIBADD= ssh util
|
||||
|
||||
.if ${MK_GSSAPI} != "no" && ${MK_KERBEROS_SUPPORT} != "no"
|
||||
CFLAGS+= -include krb5_config.h
|
||||
SRCS+= krb5_config.h
|
||||
LIBADD+= gssapi_krb5 gssapi krb5
|
||||
.endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user