summaryrefslogtreecommitdiffstats
path: root/secure/usr.bin/ssh/Makefile
diff options
context:
space:
mode:
authorbdrewery <bdrewery@FreeBSD.org>2016-01-07 23:26:16 +0000
committerbdrewery <bdrewery@FreeBSD.org>2016-01-07 23:26:16 +0000
commit012c5f2da94bb4316a139c3c9064323b5eb5e147 (patch)
tree82b5b501cb92c3e7781f9c455415e7dc6d196e57 /secure/usr.bin/ssh/Makefile
parent235e0ef9f764cd597391e582c9360a518032cd4e (diff)
downloadFreeBSD-src-012c5f2da94bb4316a139c3c9064323b5eb5e147.zip
FreeBSD-src-012c5f2da94bb4316a139c3c9064323b5eb5e147.tar.gz
MFC r291941:
Replace unneeded manual dependency on header by adding it to SRCS.
Diffstat (limited to 'secure/usr.bin/ssh/Makefile')
-rw-r--r--secure/usr.bin/ssh/Makefile10
1 files changed, 4 insertions, 6 deletions
diff --git a/secure/usr.bin/ssh/Makefile b/secure/usr.bin/ssh/Makefile
index 4a46429..be5861f 100644
--- a/secure/usr.bin/ssh/Makefile
+++ b/secure/usr.bin/ssh/Makefile
@@ -3,7 +3,6 @@
.include <bsd.own.mk>
PROG= ssh
-CFLAGS+=-I${SSHDIR} -include ssh_namespace.h
LINKS= ${BINDIR}/ssh ${BINDIR}/slogin
MAN= ssh.1 ssh_config.5
MLINKS= ssh.1 slogin.1
@@ -15,6 +14,9 @@ SRCS= ssh.c readconf.c clientloop.c sshtty.c \
# gss-genr.c really belongs in libssh; see src/secure/lib/libssh/Makefile
SRCS+= gss-genr.c
+CFLAGS+=-I${SSHDIR} -include ssh_namespace.h
+SRCS+= ssh_namespace.h
+
DPADD= ${LIBSSH} ${LIBUTIL}
LDADD= -lssh -lutil
USEPRIVATELIB= ssh
@@ -28,6 +30,7 @@ USEPRIVATELIB+= ldns
.if ${MK_KERBEROS_SUPPORT} != "no"
CFLAGS+= -include krb5_config.h
+SRCS+= krb5_config.h
DPADD+= ${LIBGSSAPI}
LDADD+= -lgssapi
.endif
@@ -46,8 +49,3 @@ CFLAGS+= -DXAUTH_PATH=\"${LOCALBASE}/bin/xauth\"
.include <bsd.prog.mk>
.PATH: ${SSHDIR}
-
-${OBJS} ${POBJS} ${SOBJS}: ssh_namespace.h
-.if ${MK_KERBEROS_SUPPORT} != "no"
-${OBJS} ${POBJS} ${SOBJS}: krb5_config.h
-.endif
OpenPOWER on IntegriCloud