ssh/lib hasn't worked towards our code-sharing goals for a quit while,
authorderaadt <deraadt@openbsd.org>
Sun, 10 Dec 2017 19:37:57 +0000 (19:37 +0000)
committerderaadt <deraadt@openbsd.org>
Sun, 10 Dec 2017 19:37:57 +0000 (19:37 +0000)
perhaps it is too verbose?  Change each */Makefile to specifying exactly
what sources that program requires, compiling it seperate.  Maybe we'll
iterate by sorting those into seperatable chunks, splitting up files
which contain common code + server/client specific code, or whatnot. But
this isn't one step, or we'd have done it a long time ago..
ok dtucker markus djm

14 files changed:
usr.bin/ssh/Makefile
usr.bin/ssh/Makefile.inc
usr.bin/ssh/lib/Makefile [deleted file]
usr.bin/ssh/scp/Makefile
usr.bin/ssh/sftp-server/Makefile
usr.bin/ssh/sftp/Makefile
usr.bin/ssh/ssh-add/Makefile
usr.bin/ssh/ssh-agent/Makefile
usr.bin/ssh/ssh-keygen/Makefile
usr.bin/ssh/ssh-keyscan/Makefile
usr.bin/ssh/ssh-keysign/Makefile
usr.bin/ssh/ssh-pkcs11-helper/Makefile
usr.bin/ssh/ssh/Makefile
usr.bin/ssh/sshd/Makefile

index cef9c96..b88be95 100644 (file)
@@ -1,8 +1,8 @@
-#      $OpenBSD: Makefile,v 1.15 2010/02/09 08:55:31 markus Exp $
+#      $OpenBSD: Makefile,v 1.16 2017/12/10 19:37:57 deraadt Exp $
 
 .include <bsd.own.mk>
 
-SUBDIR=        lib ssh sshd ssh-add ssh-keygen ssh-agent scp sftp-server \
+SUBDIR=        ssh sshd ssh-add ssh-keygen ssh-agent scp sftp-server \
        ssh-keysign ssh-keyscan sftp ssh-pkcs11-helper
 
 distribution:
index 4962ae6..4db9181 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: Makefile.inc,v 1.55 2017/06/02 06:06:10 djm Exp $
+#      $OpenBSD: Makefile.inc,v 1.56 2017/12/10 19:37:57 deraadt Exp $
 
 .include <bsd.own.mk>
 
@@ -38,13 +38,3 @@ CFLAGS+=     -DHAVE_DLOPEN
 .endif
 
 .include <bsd.obj.mk>
-
-.if exists(${.CURDIR}/../lib/${__objdir})
-LDADD+=         -L${.CURDIR}/../lib/${__objdir} -lssh
-DPADD+=         ${.CURDIR}/../lib/${__objdir}/libssh.a
-.else
-LDADD+=         -L${.CURDIR}/../lib -lssh
-DPADD+=         ${.CURDIR}/../lib/libssh.a
-.endif
-
-LDADD+=                -lutil
diff --git a/usr.bin/ssh/lib/Makefile b/usr.bin/ssh/lib/Makefile
deleted file mode 100644 (file)
index 76b31fc..0000000
+++ /dev/null
@@ -1,78 +0,0 @@
-#      $OpenBSD: Makefile,v 1.89 2017/07/01 13:50:45 djm Exp $
-
-.PATH:         ${.CURDIR}/..
-.include "${.CURDIR}/../Makefile.inc"
-
-LIB=   ssh
-
-# These are files intended for a standalone libopenssh in the future.
-LIB_SRCS= \
-       ssh_api.c \
-       ssherr.c \
-       sshbuf.c \
-       sshbuf-getput-basic.c \
-       sshbuf-misc.c \
-       sshkey.c \
-       bitmap.c \
-       krl.c
-
-.if (${OPENSSL:L} == "yes")
-LIB_SRCS+=     sshbuf-getput-crypto.c digest-openssl.c
-.else
-LIB_SRCS+=     digest-libc.c
-.endif
-
-SRCS=  ${LIB_SRCS} \
-       authfd.c authfile.c bufaux.c buffer.c canohost.c \
-       channels.c cipher.c \
-       cleanup.c compat.c crc32.c fatal.c \
-       hostfile.c log.c match.c nchan.c packet.c opacket.c readpass.c \
-       ttymodes.c xmalloc.c atomicio.c \
-       key.c dispatch.c kex.c mac.c uidswap.c uuencode.c misc.c utf8.c \
-       msg.c progressmeter.c dns.c \
-       monitor_fdpass.c addrmatch.c \
-       smult_curve25519_ref.c \
-       kexc25519.c kexc25519c.c kexc25519s.c \
-       chacha.c poly1305.c cipher-chachapoly.c ssh-ed25519.c hmac.c umac.c
-
-.if (${OPENSSL:L} == "yes")
-SRCS+= bufec.c bufbn.c \
-       ssh-dss.c ssh-rsa.c ssh-ecdsa.c dh.c \
-       kexdh.c kexgex.c kexecdh.c \
-       kexdhc.c kexgexc.c kexecdhc.c \
-       kexdhs.c kexgexs.c kexecdhs.c \
-       ssh-pkcs11.c
-.else
-SRCS+= rijndael.c cipher-aesctr.c
-.endif
-
-# ed25519, from supercop
-SRCS+= sc25519.c ge25519.c fe25519.c ed25519.c verify.c hash.c blocks.c
-
-SRCS+= umac128.c
-CLEANFILES+=   umac128.c
-umac128.c: umac.c Makefile
-       sed \
-           -e "s/^#define UMAC_OUTPUT_LEN     8/#define UMAC_OUTPUT_LEN 16/" \
-           -e s/umac_new/umac128_new/g \
-           -e s/umac_update/umac128_update/g \
-           -e s/umac_final/umac128_final/g \
-           -e s/umac_delete/umac128_delete/g \
-           < ${.CURDIR}/../umac.c > ${.TARGET}
-
-NOPROFILE= yes
-NOPIC= yes
-
-install:
-       @echo -n
-
-.include <bsd.own.mk>
-
-# .if (${KERBEROS5:L} == "yes")
-# CFLAGS+= -DKRB5 -I${DESTDIR}/usr/include/kerberosV
-
-# SRCS+= gss-genr.c
-# CFLAGS+= -DGSSAPI
-# .endif # KERBEROS5
-
-.include <bsd.lib.mk>
index 4aaed12..ff6baa4 100644 (file)
@@ -1,7 +1,11 @@
-#      $OpenBSD: Makefile,v 1.17 2017/07/10 14:09:59 espie Exp $
+#      $OpenBSD: Makefile,v 1.18 2017/12/10 19:37:57 deraadt Exp $
 
 .PATH:         ${.CURDIR}/..
 
+SRCS=  scp.c
+SRCS+= atomicio.c cleanup.c fatal.c log.c misc.c progressmeter.c \
+       sshbuf-getput-basic.c sshbuf.c ssherr.c uidswap.c utf8.c xmalloc.c
+
 PROG=  scp
 BINOWN=        root
 
index bb9fb0d..7a18d73 100644 (file)
@@ -1,7 +1,11 @@
-#      $OpenBSD: Makefile,v 1.9 2013/07/02 13:32:38 markus Exp $
+#      $OpenBSD: Makefile,v 1.10 2017/12/10 19:37:57 deraadt Exp $
 
 .PATH:         ${.CURDIR}/..
 
+SRCS=  sftp-server.c sftp-common.c sftp-server-main.c
+SRCS+= addrmatch.c fatal.c log.c match.c misc.c sshbuf-getput-basic.c \
+       sshbuf.c ssherr.c uidswap.c xmalloc.c
+
 PROG=  sftp-server
 BINOWN=        root
 
@@ -10,8 +14,6 @@ BINMODE?=555
 BINDIR=        /usr/libexec
 MAN=   sftp-server.8
 
-SRCS=  sftp-server.c sftp-common.c sftp-server-main.c
-
 LDADD+=        -lutil
 DPADD+= ${LIBUTIL}
 
index 3b10634..102c6d3 100644 (file)
@@ -1,7 +1,11 @@
-#      $OpenBSD: Makefile,v 1.13 2017/07/10 14:09:59 espie Exp $
+#      $OpenBSD: Makefile,v 1.14 2017/12/10 19:37:57 deraadt Exp $
 
 .PATH:         ${.CURDIR}/..
 
+SRCS=  sftp.c sftp-client.c sftp-common.c sftp-glob.c
+SRCS+= atomicio.c cleanup.c fatal.c log.c misc.c progressmeter.c \
+       sshbuf-getput-basic.c sshbuf.c ssherr.c uidswap.c utf8.c xmalloc.c
+
 PROG=  sftp
 BINOWN=        root
 
@@ -9,8 +13,6 @@ BINMODE?=555
 
 BINDIR=        /usr/bin
 
-SRCS=  sftp.c sftp-client.c sftp-common.c sftp-glob.c
-
 .include <bsd.prog.mk>
 
 LDADD+=        -ledit -ltermcap -lutil
index a6b2c78..ee388ab 100644 (file)
@@ -1,7 +1,15 @@
-#      $OpenBSD: Makefile,v 1.21 2017/07/10 14:09:59 espie Exp $
+#      $OpenBSD: Makefile,v 1.22 2017/12/10 19:37:57 deraadt Exp $
 
 .PATH:         ${.CURDIR}/..
 
+SRCS=  ssh-add.c
+SRCS+= addrmatch.c atomicio.c authfd.c authfile.c bitmap.c blocks.c chacha.c \
+       cipher-chachapoly.c cipher.c cleanup.c digest-openssl.c ed25519.c \
+       fatal.c fe25519.c ge25519.c hash.c krl.c log.c match.c misc.c \
+       poly1305.c readpass.c sc25519.c ssh-dss.c ssh-ecdsa.c ssh-ed25519.c \
+       ssh-rsa.c sshbuf-getput-basic.c sshbuf-getput-crypto.c sshbuf-misc.c \
+       sshbuf.c ssherr.c sshkey.c uidswap.c verify.c xmalloc.c
+
 PROG=  ssh-add
 BINOWN=        root
 
@@ -11,5 +19,5 @@ BINDIR=       /usr/bin
 
 .include <bsd.prog.mk>
 
-LDADD+=        -lcrypto
-DPADD+= ${LIBCRYPTO}
+LDADD+=        -lcrypto -lutil
+DPADD+= ${LIBCRYPTO} ${LIBUTIL}
index bfdc7d2..b81d25e 100644 (file)
@@ -1,7 +1,15 @@
-#      $OpenBSD: Makefile,v 1.25 2017/07/10 14:09:59 espie Exp $
+#      $OpenBSD: Makefile,v 1.26 2017/12/10 19:37:57 deraadt Exp $
 
 .PATH:         ${.CURDIR}/..
 
+SRCS=  ssh-agent.c ssh-pkcs11-client.c
+SRCS+= addrmatch.c atomicio.c authfile.c bitmap.c blocks.c bufaux.c buffer.c \
+       chacha.c cipher-chachapoly.c cipher.c compat.c digest-openssl.c \
+       ed25519.c fatal.c fe25519.c ge25519.c hash.c key.c krl.c log.c match.c \
+       misc.c poly1305.c readpass.c sc25519.c ssh-dss.c ssh-ecdsa.c \
+       ssh-ed25519.c ssh-rsa.c sshbuf-getput-basic.c sshbuf-getput-crypto.c \
+       sshbuf-misc.c sshbuf.c ssherr.c sshkey.c uidswap.c verify.c xmalloc.c
+
 PROG=  ssh-agent
 BINOWN=        root
 BINGRP=        _sshagnt
@@ -10,9 +18,8 @@ BINMODE?=2555
 
 BINDIR=        /usr/bin
 
-SRCS=  ssh-agent.c ssh-pkcs11-client.c
-
 .include <bsd.prog.mk>
 
-LDADD+=        -lcrypto
-DPADD+=        ${LIBCRYPTO}
+LDADD+=        -lcrypto -lutil
+DPADD+=        ${LIBCRYPTO} ${LIBUTIL}
+
index 08e84b2..9966310 100644 (file)
@@ -1,7 +1,16 @@
-#      $OpenBSD: Makefile,v 1.23 2017/07/10 14:09:59 espie Exp $
+#      $OpenBSD: Makefile,v 1.24 2017/12/10 19:37:57 deraadt Exp $
 
 .PATH:         ${.CURDIR}/..
 
+SRCS=  ssh-keygen.c moduli.c
+SRCS+= addrmatch.c atomicio.c authfd.c authfile.c bitmap.c blocks.c chacha.c \
+       cipher-chachapoly.c cipher.c cleanup.c digest-openssl.c dns.c \
+       ed25519.c fatal.c fe25519.c ge25519.c hash.c hmac.c hostfile.c krl.c \
+       log.c match.c misc.c poly1305.c readpass.c sc25519.c ssh-dss.c \
+       ssh-ecdsa.c ssh-ed25519.c ssh-pkcs11.c ssh-rsa.c sshbuf-getput-basic.c \
+       sshbuf-getput-crypto.c sshbuf-misc.c sshbuf.c ssherr.c sshkey.c \
+       uidswap.c utf8.c uuencode.c verify.c xmalloc.c
+
 PROG=  ssh-keygen
 BINOWN=        root
 
@@ -9,9 +18,8 @@ BINMODE?=555
 
 BINDIR=        /usr/bin
 
-SRCS=  ssh-keygen.c moduli.c
-
 .include <bsd.prog.mk>
 
-LDADD+=        -lcrypto
-DPADD+=        ${LIBCRYPTO}
+LDADD+=        -lcrypto -lutil
+DPADD+=        ${LIBCRYPTO} ${LIBUTIL}
+
index e7d6965..6363e52 100644 (file)
@@ -1,7 +1,29 @@
-#      $OpenBSD: Makefile,v 1.7 2017/07/10 14:09:59 espie Exp $
+#      $OpenBSD: Makefile,v 1.8 2017/12/10 19:37:57 deraadt Exp $
 
 .PATH:         ${.CURDIR}/..
 
+SRCS=  ssh-keyscan.c
+
+umac128.c: umac.c
+       sed \
+           -e "s/^#define UMAC_OUTPUT_LEN     8/#define UMAC_OUTPUT_LEN 16/" \
+           -e s/umac_new/umac128_new/g \
+           -e s/umac_update/umac128_update/g \
+           -e s/umac_final/umac128_final/g \
+           -e s/umac_delete/umac128_delete/g \
+           < ${.CURDIR}/../umac.c > ${.TARGET}
+
+SRCS+= addrmatch.c atomicio.c blocks.c canohost.c chacha.c \
+       cipher-chachapoly.c cipher.c cleanup.c compat.c dh.c digest-openssl.c \
+       dispatch.c ed25519.c fe25519.c ge25519.c hash.c hmac.c hostfile.c \
+       kex.c kexc25519.c kexc25519c.c kexc25519s.c kexdh.c kexdhc.c kexdhs.c \
+       kexecdh.c kexecdhc.c kexecdhs.c kexgex.c kexgexc.c kexgexs.c log.c \
+       mac.c match.c misc.c packet.c poly1305.c sc25519.c \
+       smult_curve25519_ref.c ssh-dss.c ssh-ecdsa.c ssh-ed25519.c ssh-rsa.c \
+       ssh_api.c sshbuf-getput-basic.c sshbuf-getput-crypto.c sshbuf-misc.c \
+       sshbuf.c ssherr.c sshkey.c uidswap.c umac.c umac128.c verify.c \
+       xmalloc.c
+
 PROG=  ssh-keyscan
 BINOWN=        root
 
@@ -11,5 +33,6 @@ BINDIR=       /usr/bin
 
 .include <bsd.prog.mk>
 
-LDADD+= -lcrypto -lz
-DPADD+= ${LIBCRYPTO} ${LIBZ}
+LDADD+= -lcrypto -lz -lutil
+DPADD+= ${LIBCRYPTO} ${LIBZ} ${LIBUTIL}
+
index aef8b82..2746748 100644 (file)
@@ -1,7 +1,26 @@
-#      $OpenBSD: Makefile,v 1.9 2016/01/14 16:17:40 markus Exp $
+#      $OpenBSD: Makefile,v 1.10 2017/12/10 19:37:57 deraadt Exp $
 
 .PATH:         ${.CURDIR}/..
 
+SRCS=  ssh-keysign.c readconf.c
+
+umac128.c: umac.c
+       sed \
+           -e "s/^#define UMAC_OUTPUT_LEN     8/#define UMAC_OUTPUT_LEN 16/" \
+           -e s/umac_new/umac128_new/g \
+           -e s/umac_update/umac128_update/g \
+           -e s/umac_final/umac128_final/g \
+           -e s/umac_delete/umac128_delete/g \
+           < ${.CURDIR}/../umac.c > ${.TARGET}
+
+SRCS+= addrmatch.c atomicio.c authfile.c bitmap.c blocks.c canohost.c \
+       chacha.c cipher-chachapoly.c cipher.c cleanup.c digest-openssl.c \
+       dispatch.c ed25519.c fatal.c fe25519.c ge25519.c hash.c hmac.c kex.c \
+       krl.c log.c mac.c match.c misc.c msg.c packet.c poly1305.c sc25519.c \
+       ssh-dss.c ssh-ecdsa.c ssh-ed25519.c ssh-rsa.c sshbuf-getput-basic.c \
+       sshbuf-getput-crypto.c sshbuf-misc.c sshbuf.c ssherr.c sshkey.c \
+       uidswap.c umac.c umac128.c verify.c xmalloc.c
+
 PROG=  ssh-keysign
 BINOWN=        root
 
@@ -10,8 +29,6 @@ BINMODE?=4555
 BINDIR=        /usr/libexec
 MAN=   ssh-keysign.8
 
-SRCS=  ssh-keysign.c readconf.c
-
 .include <bsd.prog.mk>
 
 LDADD+=        -lcrypto -lutil -lz
index 7cd1b3b..bb5e19f 100644 (file)
@@ -1,7 +1,15 @@
-#      $OpenBSD: Makefile,v 1.2 2010/02/09 08:25:32 markus Exp $
+#      $OpenBSD: Makefile,v 1.3 2017/12/10 19:37:57 deraadt Exp $
 
 .PATH:         ${.CURDIR}/..
 
+SRCS=  ssh-pkcs11-helper.c ssh-pkcs11.c
+SRCS+= addrmatch.c atomicio.c authfile.c bitmap.c blocks.c bufaux.c buffer.c \
+       chacha.c cipher-chachapoly.c cipher.c compat.c digest-openssl.c \
+       ed25519.c fatal.c fe25519.c ge25519.c hash.c key.c krl.c log.c match.c \
+       misc.c poly1305.c readpass.c sc25519.c ssh-dss.c ssh-ecdsa.c \
+       ssh-ed25519.c ssh-rsa.c sshbuf-getput-basic.c sshbuf-getput-crypto.c \
+       sshbuf-misc.c sshbuf.c ssherr.c sshkey.c uidswap.c verify.c xmalloc.c
+
 PROG=  ssh-pkcs11-helper
 BINOWN=        root
 
@@ -10,9 +18,8 @@ BINMODE?=555
 BINDIR=        /usr/libexec
 MAN=   ssh-pkcs11-helper.8
 
-SRCS=  ssh-pkcs11-helper.c ssh-pkcs11.c
-
 .include <bsd.prog.mk>
 
-LDADD+=        -lcrypto
-DPADD+=        ${LIBCRYPTO}
+LDADD+=        -lcrypto -lutil
+DPADD+=        ${LIBCRYPTO} ${LIBUTIL}
+
index 52c4dbd..604c897 100644 (file)
@@ -1,7 +1,30 @@
-#      $OpenBSD: Makefile,v 1.67 2017/04/30 23:17:37 djm Exp $
+#      $OpenBSD: Makefile,v 1.68 2017/12/10 19:37:57 deraadt Exp $
 
 .PATH:         ${.CURDIR}/..
-.include "${.CURDIR}/../Makefile.inc"
+
+SRCS=  ssh.c readconf.c clientloop.c sshtty.c sshconnect.c sshconnect2.c mux.c
+
+umac128.c: umac.c
+       sed \
+           -e "s/^#define UMAC_OUTPUT_LEN     8/#define UMAC_OUTPUT_LEN 16/" \
+           -e s/umac_new/umac128_new/g \
+           -e s/umac_update/umac128_update/g \
+           -e s/umac_final/umac128_final/g \
+           -e s/umac_delete/umac128_delete/g \
+           < ${.CURDIR}/../umac.c > ${.TARGET}
+
+SRCS+= addrmatch.c atomicio.c authfd.c authfile.c bitmap.c blocks.c bufaux.c \
+       bufbn.c bufec.c buffer.c canohost.c chacha.c channels.c \
+       cipher-chachapoly.c cipher.c compat.c crc32.c dh.c digest-openssl.c \
+       dispatch.c dns.c ed25519.c fatal.c fe25519.c ge25519.c hash.c hmac.c \
+       hostfile.c kex.c kexc25519.c kexc25519c.c kexc25519s.c kexdh.c \
+       kexdhc.c kexdhs.c kexecdh.c kexecdhc.c kexecdhs.c kexgex.c kexgexc.c \
+       key.c krl.c log.c mac.c match.c misc.c monitor_fdpass.c msg.c nchan.c \
+       opacket.c packet.c poly1305.c progressmeter.c readpass.c sc25519.c \
+       smult_curve25519_ref.c ssh-dss.c ssh-ecdsa.c ssh-ed25519.c \
+       ssh-pkcs11.c ssh-rsa.c sshbuf-getput-basic.c sshbuf-getput-crypto.c \
+       sshbuf-misc.c sshbuf.c ssherr.c sshkey.c ttymodes.c uidswap.c umac.c \
+       umac128.c utf8.c uuencode.c verify.c xmalloc.c
 
 PROG=  ssh
 BINOWN=        root
@@ -11,9 +34,6 @@ BINOWN=       root
 BINDIR=        /usr/bin
 MAN=   ssh.1 ssh_config.5
 
-SRCS=  ssh.c readconf.c clientloop.c sshtty.c \
-       sshconnect.c sshconnect2.c mux.c
-
 .include <bsd.own.mk>
 
 KERBEROS5=no
index 979c061..79b53c5 100644 (file)
@@ -1,7 +1,34 @@
-#      $OpenBSD: Makefile,v 1.90 2016/09/28 16:33:07 djm Exp $
+#      $OpenBSD: Makefile,v 1.91 2017/12/10 19:37:57 deraadt Exp $
 
 .PATH:         ${.CURDIR}/..
-.include "${.CURDIR}/../Makefile.inc"
+
+SRCS=  sshd.c auth-rhosts.c auth-passwd.c sshpty.c sshlogin.c servconf.c \
+       serverloop.c auth.c auth2.c auth-options.c session.c auth2-chall.c \
+       groupaccess.c auth-bsdauth.c auth2-hostbased.c auth2-kbdint.c \
+       auth2-none.c auth2-passwd.c auth2-pubkey.c monitor.c monitor_wrap.c \
+       sftp-server.c sftp-common.c sandbox-pledge.c
+
+umac128.c: umac.c
+       sed \
+           -e "s/^#define UMAC_OUTPUT_LEN     8/#define UMAC_OUTPUT_LEN 16/" \
+           -e s/umac_new/umac128_new/g \
+           -e s/umac_update/umac128_update/g \
+           -e s/umac_final/umac128_final/g \
+           -e s/umac_delete/umac128_delete/g \
+           < ${.CURDIR}/../umac.c > ${.TARGET}
+
+SRCS+= addrmatch.c atomicio.c authfd.c authfile.c bitmap.c blocks.c bufaux.c \
+       bufbn.c bufec.c buffer.c canohost.c chacha.c channels.c \
+       cipher-chachapoly.c cipher.c compat.c crc32.c dh.c digest-openssl.c \
+       dispatch.c dns.c ed25519.c fatal.c fe25519.c ge25519.c hash.c hmac.c \
+       hostfile.c kex.c kexc25519.c kexc25519c.c kexc25519s.c kexdh.c \
+       kexdhc.c kexdhs.c kexecdh.c kexecdhc.c kexecdhs.c kexgex.c kexgexc.c \
+       kexgexs.c key.c krl.c log.c mac.c match.c misc.c monitor_fdpass.c \
+       msg.c nchan.c opacket.c packet.c poly1305.c progressmeter.c readpass.c \
+       sc25519.c smult_curve25519_ref.c ssh-dss.c ssh-ecdsa.c ssh-ed25519.c \
+       ssh-pkcs11.c ssh-rsa.c sshbuf-getput-basic.c sshbuf-getput-crypto.c \
+       sshbuf-misc.c sshbuf.c ssherr.c sshkey.c ttymodes.c uidswap.c umac.c \
+       umac128.c utf8.c uuencode.c verify.c xmalloc.c
 
 PROG=  sshd
 BINOWN=        root
@@ -9,16 +36,6 @@ BINMODE=555
 BINDIR=        /usr/sbin
 MAN=   sshd.8 sshd_config.5
 
-SRCS=  sshd.c auth-rhosts.c auth-passwd.c \
-       sshpty.c sshlogin.c servconf.c serverloop.c \
-       auth.c auth2.c auth-options.c session.c \
-       auth2-chall.c groupaccess.c \
-       auth-bsdauth.c auth2-hostbased.c auth2-kbdint.c \
-       auth2-none.c auth2-passwd.c auth2-pubkey.c \
-       monitor.c monitor_wrap.c \
-       sftp-server.c sftp-common.c \
-       sandbox-pledge.c
-
 .include <bsd.own.mk> # for KERBEROS and AFS
 
 KERBEROS5=no