diff options
author | Colin Watson <cjwatson@debian.org> | 2020-02-21 11:57:14 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2020-02-21 14:27:02 +0000 |
commit | 886e47e745586c34e81cfd5c5fb9b5dbc8e84d04 (patch) | |
tree | dd6c3b4dc64a17c520af7aaf213163f8a0a63e56 /Makefile.in | |
parent | ac2b4c0697fcac554041ab95f81736887eadf6ec (diff) | |
parent | a2dabf35ce0228c86a288d11cc847a9d9801604f (diff) |
New upstream release (8.2p1)
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 137 |
1 files changed, 102 insertions, 35 deletions
diff --git a/Makefile.in b/Makefile.in index 9b8a42c1e..bff1db49b 100644 --- a/Makefile.in +++ b/Makefile.in | |||
@@ -24,6 +24,7 @@ ASKPASS_PROGRAM=$(libexecdir)/ssh-askpass | |||
24 | SFTP_SERVER=$(libexecdir)/sftp-server | 24 | SFTP_SERVER=$(libexecdir)/sftp-server |
25 | SSH_KEYSIGN=$(libexecdir)/ssh-keysign | 25 | SSH_KEYSIGN=$(libexecdir)/ssh-keysign |
26 | SSH_PKCS11_HELPER=$(libexecdir)/ssh-pkcs11-helper | 26 | SSH_PKCS11_HELPER=$(libexecdir)/ssh-pkcs11-helper |
27 | SSH_SK_HELPER=$(libexecdir)/ssh-sk-helper | ||
27 | PRIVSEP_PATH=@PRIVSEP_PATH@ | 28 | PRIVSEP_PATH=@PRIVSEP_PATH@ |
28 | SSH_PRIVSEP_USER=@SSH_PRIVSEP_USER@ | 29 | SSH_PRIVSEP_USER=@SSH_PRIVSEP_USER@ |
29 | STRIP_OPT=@STRIP_OPT@ | 30 | STRIP_OPT=@STRIP_OPT@ |
@@ -35,19 +36,23 @@ PATHS= -DSSHDIR=\"$(sysconfdir)\" \ | |||
35 | -D_PATH_SFTP_SERVER=\"$(SFTP_SERVER)\" \ | 36 | -D_PATH_SFTP_SERVER=\"$(SFTP_SERVER)\" \ |
36 | -D_PATH_SSH_KEY_SIGN=\"$(SSH_KEYSIGN)\" \ | 37 | -D_PATH_SSH_KEY_SIGN=\"$(SSH_KEYSIGN)\" \ |
37 | -D_PATH_SSH_PKCS11_HELPER=\"$(SSH_PKCS11_HELPER)\" \ | 38 | -D_PATH_SSH_PKCS11_HELPER=\"$(SSH_PKCS11_HELPER)\" \ |
39 | -D_PATH_SSH_SK_HELPER=\"$(SSH_SK_HELPER)\" \ | ||
38 | -D_PATH_SSH_PIDDIR=\"$(piddir)\" \ | 40 | -D_PATH_SSH_PIDDIR=\"$(piddir)\" \ |
39 | -D_PATH_PRIVSEP_CHROOT_DIR=\"$(PRIVSEP_PATH)\" | 41 | -D_PATH_PRIVSEP_CHROOT_DIR=\"$(PRIVSEP_PATH)\" |
40 | 42 | ||
41 | CC=@CC@ | 43 | CC=@CC@ |
42 | LD=@LD@ | 44 | LD=@LD@ |
43 | CFLAGS=@CFLAGS@ | 45 | CFLAGS=@CFLAGS@ |
46 | CFLAGS_NOPIE=@CFLAGS_NOPIE@ | ||
44 | CPPFLAGS=-I. -I$(srcdir) @CPPFLAGS@ $(PATHS) @DEFS@ | 47 | CPPFLAGS=-I. -I$(srcdir) @CPPFLAGS@ $(PATHS) @DEFS@ |
48 | PICFLAG=@PICFLAG@ | ||
45 | LIBS=@LIBS@ | 49 | LIBS=@LIBS@ |
46 | K5LIBS=@K5LIBS@ | 50 | K5LIBS=@K5LIBS@ |
47 | GSSLIBS=@GSSLIBS@ | 51 | GSSLIBS=@GSSLIBS@ |
48 | SSHLIBS=@SSHLIBS@ | 52 | SSHLIBS=@SSHLIBS@ |
49 | SSHDLIBS=@SSHDLIBS@ | 53 | SSHDLIBS=@SSHDLIBS@ |
50 | LIBEDIT=@LIBEDIT@ | 54 | LIBEDIT=@LIBEDIT@ |
55 | LIBFIDO2=@LIBFIDO2@ | ||
51 | AR=@AR@ | 56 | AR=@AR@ |
52 | AWK=@AWK@ | 57 | AWK=@AWK@ |
53 | RANLIB=@RANLIB@ | 58 | RANLIB=@RANLIB@ |
@@ -56,11 +61,14 @@ SED=@SED@ | |||
56 | ENT=@ENT@ | 61 | ENT=@ENT@ |
57 | XAUTH_PATH=@XAUTH_PATH@ | 62 | XAUTH_PATH=@XAUTH_PATH@ |
58 | LDFLAGS=-L. -Lopenbsd-compat/ @LDFLAGS@ | 63 | LDFLAGS=-L. -Lopenbsd-compat/ @LDFLAGS@ |
64 | LDFLAGS_NOPIE=-L. -Lopenbsd-compat/ @LDFLAGS_NOPIE@ | ||
59 | EXEEXT=@EXEEXT@ | 65 | EXEEXT=@EXEEXT@ |
60 | MANFMT=@MANFMT@ | 66 | MANFMT=@MANFMT@ |
61 | MKDIR_P=@MKDIR_P@ | 67 | MKDIR_P=@MKDIR_P@ |
62 | 68 | ||
63 | TARGETS=ssh$(EXEEXT) sshd$(EXEEXT) ssh-add$(EXEEXT) ssh-keygen$(EXEEXT) ssh-keyscan${EXEEXT} ssh-keysign${EXEEXT} ssh-pkcs11-helper$(EXEEXT) ssh-agent$(EXEEXT) scp$(EXEEXT) sftp-server$(EXEEXT) sftp$(EXEEXT) | 69 | .SUFFIXES: .lo |
70 | |||
71 | TARGETS=ssh$(EXEEXT) sshd$(EXEEXT) ssh-add$(EXEEXT) ssh-keygen$(EXEEXT) ssh-keyscan${EXEEXT} ssh-keysign${EXEEXT} ssh-pkcs11-helper$(EXEEXT) ssh-agent$(EXEEXT) scp$(EXEEXT) sftp-server$(EXEEXT) sftp$(EXEEXT) ssh-sk-helper$(EXEEXT) | ||
64 | 72 | ||
65 | XMSS_OBJS=\ | 73 | XMSS_OBJS=\ |
66 | ssh-xmss.o \ | 74 | ssh-xmss.o \ |
@@ -91,21 +99,24 @@ LIBSSH_OBJS=${LIBOPENSSH_OBJS} \ | |||
91 | log.o match.o moduli.o nchan.o packet.o \ | 99 | log.o match.o moduli.o nchan.o packet.o \ |
92 | readpass.o ttymodes.o xmalloc.o addrmatch.o \ | 100 | readpass.o ttymodes.o xmalloc.o addrmatch.o \ |
93 | atomicio.o dispatch.o mac.o misc.o utf8.o \ | 101 | atomicio.o dispatch.o mac.o misc.o utf8.o \ |
94 | monitor_fdpass.o rijndael.o ssh-dss.o ssh-ecdsa.o ssh-rsa.o dh.o \ | 102 | monitor_fdpass.o rijndael.o ssh-dss.o ssh-ecdsa.o ssh-ecdsa-sk.o \ |
103 | ssh-ed25519-sk.o ssh-rsa.o dh.o \ | ||
95 | msg.o progressmeter.o dns.o entropy.o gss-genr.o umac.o umac128.o \ | 104 | msg.o progressmeter.o dns.o entropy.o gss-genr.o umac.o umac128.o \ |
96 | ssh-pkcs11.o smult_curve25519_ref.o \ | 105 | ssh-pkcs11.o smult_curve25519_ref.o \ |
97 | poly1305.o chacha.o cipher-chachapoly.o \ | 106 | poly1305.o chacha.o cipher-chachapoly.o \ |
98 | ssh-ed25519.o digest-openssl.o digest-libc.o hmac.o \ | 107 | ssh-ed25519.o digest-openssl.o digest-libc.o \ |
99 | sc25519.o ge25519.o fe25519.o ed25519.o verify.o hash.o \ | 108 | hmac.o sc25519.o ge25519.o fe25519.o ed25519.o verify.o hash.o \ |
100 | kex.o kexdh.o kexgex.o kexecdh.o kexc25519.o \ | 109 | kex.o kexdh.o kexgex.o kexecdh.o kexc25519.o \ |
101 | kexgexc.o kexgexs.o \ | 110 | kexgexc.o kexgexs.o \ |
102 | sntrup4591761.o kexsntrup4591761x25519.o kexgen.o \ | 111 | sntrup4591761.o kexsntrup4591761x25519.o kexgen.o \ |
103 | kexgssc.o \ | 112 | kexgssc.o \ |
104 | platform-pledge.o platform-tracing.o platform-misc.o | 113 | sftp-realpath.o platform-pledge.o platform-tracing.o platform-misc.o \ |
114 | sshbuf-io.o | ||
105 | 115 | ||
116 | SKOBJS= ssh-sk-client.o | ||
106 | 117 | ||
107 | SSHOBJS= ssh.o readconf.o clientloop.o sshtty.o \ | 118 | SSHOBJS= ssh.o readconf.o clientloop.o sshtty.o \ |
108 | sshconnect.o sshconnect2.o mux.o | 119 | sshconnect.o sshconnect2.o mux.o $(SKOBJS) |
109 | 120 | ||
110 | SSHDOBJS=sshd.o auth-rhosts.o auth-passwd.o \ | 121 | SSHDOBJS=sshd.o auth-rhosts.o auth-passwd.o \ |
111 | audit.o audit-bsm.o audit-linux.o platform.o \ | 122 | audit.o audit-bsm.o audit-linux.o platform.o \ |
@@ -117,13 +128,33 @@ SSHDOBJS=sshd.o auth-rhosts.o auth-passwd.o \ | |||
117 | monitor.o monitor_wrap.o auth-krb5.o \ | 128 | monitor.o monitor_wrap.o auth-krb5.o \ |
118 | auth2-gss.o gss-serv.o gss-serv-krb5.o kexgsss.o \ | 129 | auth2-gss.o gss-serv.o gss-serv-krb5.o kexgsss.o \ |
119 | loginrec.o auth-pam.o auth-shadow.o auth-sia.o md5crypt.o \ | 130 | loginrec.o auth-pam.o auth-shadow.o auth-sia.o md5crypt.o \ |
120 | sftp-server.o sftp-common.o sftp-realpath.o \ | 131 | sftp-server.o sftp-common.o \ |
121 | sandbox-null.o sandbox-rlimit.o sandbox-systrace.o sandbox-darwin.o \ | 132 | sandbox-null.o sandbox-rlimit.o sandbox-systrace.o sandbox-darwin.o \ |
122 | sandbox-seccomp-filter.o sandbox-capsicum.o sandbox-pledge.o \ | 133 | sandbox-seccomp-filter.o sandbox-capsicum.o sandbox-pledge.o \ |
123 | sandbox-solaris.o uidswap.o | 134 | sandbox-solaris.o uidswap.o $(SKOBJS) |
135 | |||
136 | SCP_OBJS= scp.o progressmeter.o | ||
137 | |||
138 | SSHADD_OBJS= ssh-add.o $(SKOBJS) | ||
139 | |||
140 | SSHAGENT_OBJS= ssh-agent.o ssh-pkcs11-client.o $(SKOBJS) | ||
141 | |||
142 | SSHKEYGEN_OBJS= ssh-keygen.o sshsig.o $(SKOBJS) | ||
143 | |||
144 | SSHKEYSIGN_OBJS=ssh-keysign.o readconf.o uidswap.o $(SKOBJS) | ||
145 | |||
146 | P11HELPER_OBJS= ssh-pkcs11-helper.o ssh-pkcs11.o $(SKOBJS) | ||
147 | |||
148 | SKHELPER_OBJS= ssh-sk-helper.o ssh-sk.o sk-usbhid.o | ||
149 | |||
150 | SSHKEYSCAN_OBJS=ssh-keyscan.o $(SKOBJS) | ||
124 | 151 | ||
125 | MANPAGES = moduli.5.out scp.1.out ssh-add.1.out ssh-agent.1.out ssh-keygen.1.out ssh-keyscan.1.out ssh.1.out sshd.8.out sftp-server.8.out sftp.1.out ssh-keysign.8.out ssh-pkcs11-helper.8.out sshd_config.5.out ssh_config.5.out | 152 | SFTPSERVER_OBJS=sftp-common.o sftp-server.o sftp-server-main.o |
126 | MANPAGES_IN = moduli.5 scp.1 ssh-add.1 ssh-agent.1 ssh-keygen.1 ssh-keyscan.1 ssh.1 sshd.8 sftp-server.8 sftp.1 ssh-keysign.8 ssh-pkcs11-helper.8 sshd_config.5 ssh_config.5 | 153 | |
154 | SFTP_OBJS= sftp.o sftp-client.o sftp-common.o sftp-glob.o progressmeter.o | ||
155 | |||
156 | MANPAGES = moduli.5.out scp.1.out ssh-add.1.out ssh-agent.1.out ssh-keygen.1.out ssh-keyscan.1.out ssh.1.out sshd.8.out sftp-server.8.out sftp.1.out ssh-keysign.8.out ssh-pkcs11-helper.8.out ssh-sk-helper.8.out sshd_config.5.out ssh_config.5.out | ||
157 | MANPAGES_IN = moduli.5 scp.1 ssh-add.1 ssh-agent.1 ssh-keygen.1 ssh-keyscan.1 ssh.1 sshd.8 sftp-server.8 sftp.1 ssh-keysign.8 ssh-pkcs11-helper.8 ssh-sk-helper.8 sshd_config.5 ssh_config.5 | ||
127 | MANTYPE = @MANTYPE@ | 158 | MANTYPE = @MANTYPE@ |
128 | 159 | ||
129 | CONFIGFILES=sshd_config.out ssh_config.out moduli.out | 160 | CONFIGFILES=sshd_config.out ssh_config.out moduli.out |
@@ -181,32 +212,35 @@ ssh$(EXEEXT): $(LIBCOMPAT) libssh.a $(SSHOBJS) | |||
181 | sshd$(EXEEXT): libssh.a $(LIBCOMPAT) $(SSHDOBJS) | 212 | sshd$(EXEEXT): libssh.a $(LIBCOMPAT) $(SSHDOBJS) |
182 | $(LD) -o $@ $(SSHDOBJS) $(LDFLAGS) -lssh -lopenbsd-compat $(SSHDLIBS) $(LIBS) $(GSSLIBS) $(K5LIBS) | 213 | $(LD) -o $@ $(SSHDOBJS) $(LDFLAGS) -lssh -lopenbsd-compat $(SSHDLIBS) $(LIBS) $(GSSLIBS) $(K5LIBS) |
183 | 214 | ||
184 | scp$(EXEEXT): $(LIBCOMPAT) libssh.a scp.o progressmeter.o | 215 | scp$(EXEEXT): $(LIBCOMPAT) libssh.a $(SCP_OBJS) |
185 | $(LD) -o $@ scp.o progressmeter.o $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS) | 216 | $(LD) -o $@ $(SCP_OBJS) $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS) |
217 | |||
218 | ssh-add$(EXEEXT): $(LIBCOMPAT) libssh.a $(SSHADD_OBJS) | ||
219 | $(LD) -o $@ $(SSHADD_OBJS) $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS) | ||
186 | 220 | ||
187 | ssh-add$(EXEEXT): $(LIBCOMPAT) libssh.a ssh-add.o | 221 | ssh-agent$(EXEEXT): $(LIBCOMPAT) libssh.a $(SSHAGENT_OBJS) |
188 | $(LD) -o $@ ssh-add.o $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS) | 222 | $(LD) -o $@ $(SSHAGENT_OBJS) $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS) |
189 | 223 | ||
190 | ssh-agent$(EXEEXT): $(LIBCOMPAT) libssh.a ssh-agent.o ssh-pkcs11-client.o | 224 | ssh-keygen$(EXEEXT): $(LIBCOMPAT) libssh.a $(SSHKEYGEN_OBJS) |
191 | $(LD) -o $@ ssh-agent.o ssh-pkcs11-client.o $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS) | 225 | $(LD) -o $@ $(SSHKEYGEN_OBJS) $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS) |
192 | 226 | ||
193 | ssh-keygen$(EXEEXT): $(LIBCOMPAT) libssh.a ssh-keygen.o sshsig.o | 227 | ssh-keysign$(EXEEXT): $(LIBCOMPAT) libssh.a $(SSHKEYSIGN_OBJS) |
194 | $(LD) -o $@ ssh-keygen.o sshsig.o $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS) | 228 | $(LD) -o $@ $(SSHKEYSIGN_OBJS) $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS) |
195 | 229 | ||
196 | ssh-keysign$(EXEEXT): $(LIBCOMPAT) libssh.a ssh-keysign.o readconf.o uidswap.o compat.o | 230 | ssh-pkcs11-helper$(EXEEXT): $(LIBCOMPAT) libssh.a $(P11HELPER_OBJS) |
197 | $(LD) -o $@ ssh-keysign.o readconf.o uidswap.o $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS) | 231 | $(LD) -o $@ $(P11HELPER_OBJS) $(LDFLAGS) -lssh -lopenbsd-compat -lssh -lopenbsd-compat $(LIBS) |
198 | 232 | ||
199 | ssh-pkcs11-helper$(EXEEXT): $(LIBCOMPAT) libssh.a ssh-pkcs11-helper.o ssh-pkcs11.o | 233 | ssh-sk-helper$(EXEEXT): $(LIBCOMPAT) libssh.a $(SKHELPER_OBJS) |
200 | $(LD) -o $@ ssh-pkcs11-helper.o ssh-pkcs11.o $(LDFLAGS) -lssh -lopenbsd-compat -lssh -lopenbsd-compat $(LIBS) | 234 | $(LD) -o $@ $(SKHELPER_OBJS) $(LDFLAGS) -lssh -lopenbsd-compat -lssh -lopenbsd-compat $(LIBS) $(LIBFIDO2) |
201 | 235 | ||
202 | ssh-keyscan$(EXEEXT): $(LIBCOMPAT) libssh.a ssh-keyscan.o | 236 | ssh-keyscan$(EXEEXT): $(LIBCOMPAT) libssh.a $(SSHKEYSCAN_OBJS) |
203 | $(LD) -o $@ ssh-keyscan.o $(LDFLAGS) -lssh -lopenbsd-compat -lssh $(LIBS) | 237 | $(LD) -o $@ $(SSHKEYSCAN_OBJS) $(LDFLAGS) -lssh -lopenbsd-compat -lssh $(LIBS) |
204 | 238 | ||
205 | sftp-server$(EXEEXT): $(LIBCOMPAT) libssh.a sftp.o sftp-common.o sftp-server.o sftp-realpath.o sftp-server-main.o | 239 | sftp-server$(EXEEXT): $(LIBCOMPAT) libssh.a $(SFTPSERVER_OBJS) |
206 | $(LD) -o $@ sftp-server.o sftp-common.o sftp-realpath.o sftp-server-main.o $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS) | 240 | $(LD) -o $@ $(SFTPSERVER_OBJS) $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS) |
207 | 241 | ||
208 | sftp$(EXEEXT): $(LIBCOMPAT) libssh.a sftp.o sftp-client.o sftp-common.o sftp-glob.o progressmeter.o | 242 | sftp$(EXEEXT): $(LIBCOMPAT) libssh.a $(SFTP_OBJS) |
209 | $(LD) -o $@ progressmeter.o sftp.o sftp-client.o sftp-common.o sftp-glob.o $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS) $(LIBEDIT) | 243 | $(LD) -o $@ $(SFTP_OBJS) $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS) $(LIBEDIT) |
210 | 244 | ||
211 | # test driver for the loginrec code - not built by default | 245 | # test driver for the loginrec code - not built by default |
212 | logintest: logintest.o $(LIBCOMPAT) libssh.a loginrec.o | 246 | logintest: logintest.o $(LIBCOMPAT) libssh.a loginrec.o |
@@ -234,7 +268,7 @@ moduli: | |||
234 | echo | 268 | echo |
235 | 269 | ||
236 | clean: regressclean | 270 | clean: regressclean |
237 | rm -f *.o *.a $(TARGETS) logintest config.cache config.log | 271 | rm -f *.o *.lo *.a $(TARGETS) logintest config.cache config.log |
238 | rm -f *.out core survey | 272 | rm -f *.out core survey |
239 | rm -f regress/check-perm$(EXEEXT) | 273 | rm -f regress/check-perm$(EXEEXT) |
240 | rm -f regress/mkdtemp$(EXEEXT) | 274 | rm -f regress/mkdtemp$(EXEEXT) |
@@ -258,6 +292,9 @@ clean: regressclean | |||
258 | rm -f regress/unittests/utf8/test_utf8$(EXEEXT) | 292 | rm -f regress/unittests/utf8/test_utf8$(EXEEXT) |
259 | rm -f regress/misc/kexfuzz/*.o | 293 | rm -f regress/misc/kexfuzz/*.o |
260 | rm -f regress/misc/kexfuzz/kexfuzz$(EXEEXT) | 294 | rm -f regress/misc/kexfuzz/kexfuzz$(EXEEXT) |
295 | rm -f regress/misc/sk-dummy/*.o | ||
296 | rm -f regress/misc/sk-dummy/*.lo | ||
297 | rm -f regress/misc/sk-dummy/sk-dummy.so | ||
261 | (cd openbsd-compat && $(MAKE) clean) | 298 | (cd openbsd-compat && $(MAKE) clean) |
262 | 299 | ||
263 | distclean: regressclean | 300 | distclean: regressclean |
@@ -317,6 +354,8 @@ depend-rebuild: | |||
317 | rm -f config.h | 354 | rm -f config.h |
318 | touch config.h | 355 | touch config.h |
319 | makedepend -w1000 -Y. -f .depend *.c 2>/dev/null | 356 | makedepend -w1000 -Y. -f .depend *.c 2>/dev/null |
357 | (head -2 .depend; tail +3 .depend | sort) >.depend.tmp | ||
358 | mv .depend.tmp .depend | ||
320 | rm -f config.h | 359 | rm -f config.h |
321 | 360 | ||
322 | depend-check: depend-rebuild | 361 | depend-check: depend-rebuild |
@@ -350,6 +389,7 @@ install-files: | |||
350 | $(INSTALL) -m 0755 $(STRIP_OPT) sshd$(EXEEXT) $(DESTDIR)$(sbindir)/sshd$(EXEEXT) | 389 | $(INSTALL) -m 0755 $(STRIP_OPT) sshd$(EXEEXT) $(DESTDIR)$(sbindir)/sshd$(EXEEXT) |
351 | $(INSTALL) -m 4711 $(STRIP_OPT) ssh-keysign$(EXEEXT) $(DESTDIR)$(SSH_KEYSIGN)$(EXEEXT) | 390 | $(INSTALL) -m 4711 $(STRIP_OPT) ssh-keysign$(EXEEXT) $(DESTDIR)$(SSH_KEYSIGN)$(EXEEXT) |
352 | $(INSTALL) -m 0755 $(STRIP_OPT) ssh-pkcs11-helper$(EXEEXT) $(DESTDIR)$(SSH_PKCS11_HELPER)$(EXEEXT) | 391 | $(INSTALL) -m 0755 $(STRIP_OPT) ssh-pkcs11-helper$(EXEEXT) $(DESTDIR)$(SSH_PKCS11_HELPER)$(EXEEXT) |
392 | $(INSTALL) -m 0755 $(STRIP_OPT) ssh-sk-helper$(EXEEXT) $(DESTDIR)$(SSH_SK_HELPER)$(EXEEXT) | ||
353 | $(INSTALL) -m 0755 $(STRIP_OPT) sftp$(EXEEXT) $(DESTDIR)$(bindir)/sftp$(EXEEXT) | 393 | $(INSTALL) -m 0755 $(STRIP_OPT) sftp$(EXEEXT) $(DESTDIR)$(bindir)/sftp$(EXEEXT) |
354 | $(INSTALL) -m 0755 $(STRIP_OPT) sftp-server$(EXEEXT) $(DESTDIR)$(SFTP_SERVER)$(EXEEXT) | 394 | $(INSTALL) -m 0755 $(STRIP_OPT) sftp-server$(EXEEXT) $(DESTDIR)$(SFTP_SERVER)$(EXEEXT) |
355 | $(INSTALL) -m 644 ssh.1.out $(DESTDIR)$(mandir)/$(mansubdir)1/ssh.1 | 395 | $(INSTALL) -m 644 ssh.1.out $(DESTDIR)$(mandir)/$(mansubdir)1/ssh.1 |
@@ -367,6 +407,7 @@ install-files: | |||
367 | $(INSTALL) -m 644 sftp-server.8.out $(DESTDIR)$(mandir)/$(mansubdir)8/sftp-server.8 | 407 | $(INSTALL) -m 644 sftp-server.8.out $(DESTDIR)$(mandir)/$(mansubdir)8/sftp-server.8 |
368 | $(INSTALL) -m 644 ssh-keysign.8.out $(DESTDIR)$(mandir)/$(mansubdir)8/ssh-keysign.8 | 408 | $(INSTALL) -m 644 ssh-keysign.8.out $(DESTDIR)$(mandir)/$(mansubdir)8/ssh-keysign.8 |
369 | $(INSTALL) -m 644 ssh-pkcs11-helper.8.out $(DESTDIR)$(mandir)/$(mansubdir)8/ssh-pkcs11-helper.8 | 409 | $(INSTALL) -m 644 ssh-pkcs11-helper.8.out $(DESTDIR)$(mandir)/$(mansubdir)8/ssh-pkcs11-helper.8 |
410 | $(INSTALL) -m 644 ssh-sk-helper.8.out $(DESTDIR)$(mandir)/$(mansubdir)8/ssh-sk-helper.8 | ||
370 | 411 | ||
371 | install-sysconf: | 412 | install-sysconf: |
372 | $(MKDIR_P) $(DESTDIR)$(sysconfdir) | 413 | $(MKDIR_P) $(DESTDIR)$(sysconfdir) |
@@ -427,6 +468,7 @@ uninstall: | |||
427 | -rm -r $(DESTDIR)$(SFTP_SERVER)$(EXEEXT) | 468 | -rm -r $(DESTDIR)$(SFTP_SERVER)$(EXEEXT) |
428 | -rm -f $(DESTDIR)$(SSH_KEYSIGN)$(EXEEXT) | 469 | -rm -f $(DESTDIR)$(SSH_KEYSIGN)$(EXEEXT) |
429 | -rm -f $(DESTDIR)$(SSH_PKCS11_HELPER)$(EXEEXT) | 470 | -rm -f $(DESTDIR)$(SSH_PKCS11_HELPER)$(EXEEXT) |
471 | -rm -f $(DESTDIR)$(SSH_SK_HELPER)$(EXEEXT) | ||
430 | -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/ssh.1 | 472 | -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/ssh.1 |
431 | -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/scp.1 | 473 | -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/scp.1 |
432 | -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-add.1 | 474 | -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-add.1 |
@@ -438,6 +480,7 @@ uninstall: | |||
438 | -rm -f $(DESTDIR)$(mandir)/$(mansubdir)8/sftp-server.8 | 480 | -rm -f $(DESTDIR)$(mandir)/$(mansubdir)8/sftp-server.8 |
439 | -rm -f $(DESTDIR)$(mandir)/$(mansubdir)8/ssh-keysign.8 | 481 | -rm -f $(DESTDIR)$(mandir)/$(mansubdir)8/ssh-keysign.8 |
440 | -rm -f $(DESTDIR)$(mandir)/$(mansubdir)8/ssh-pkcs11-helper.8 | 482 | -rm -f $(DESTDIR)$(mandir)/$(mansubdir)8/ssh-pkcs11-helper.8 |
483 | -rm -f $(DESTDIR)$(mandir)/$(mansubdir)8/ssh-sk-helper.8 | ||
441 | 484 | ||
442 | regress-prep: | 485 | regress-prep: |
443 | $(MKDIR_P) `pwd`/regress/unittests/test_helper | 486 | $(MKDIR_P) `pwd`/regress/unittests/test_helper |
@@ -450,6 +493,7 @@ regress-prep: | |||
450 | $(MKDIR_P) `pwd`/regress/unittests/match | 493 | $(MKDIR_P) `pwd`/regress/unittests/match |
451 | $(MKDIR_P) `pwd`/regress/unittests/utf8 | 494 | $(MKDIR_P) `pwd`/regress/unittests/utf8 |
452 | $(MKDIR_P) `pwd`/regress/misc/kexfuzz | 495 | $(MKDIR_P) `pwd`/regress/misc/kexfuzz |
496 | $(MKDIR_P) `pwd`/regress/misc/sk-dummy | ||
453 | [ -f `pwd`/regress/Makefile ] || \ | 497 | [ -f `pwd`/regress/Makefile ] || \ |
454 | ln -s `cd $(srcdir) && pwd`/regress/Makefile `pwd`/regress/Makefile | 498 | ln -s `cd $(srcdir) && pwd`/regress/Makefile `pwd`/regress/Makefile |
455 | 499 | ||
@@ -504,7 +548,8 @@ UNITTESTS_TEST_SSHKEY_OBJS=\ | |||
504 | regress/unittests/sshkey/tests.o \ | 548 | regress/unittests/sshkey/tests.o \ |
505 | regress/unittests/sshkey/common.o \ | 549 | regress/unittests/sshkey/common.o \ |
506 | regress/unittests/sshkey/test_file.o \ | 550 | regress/unittests/sshkey/test_file.o \ |
507 | regress/unittests/sshkey/test_sshkey.o | 551 | regress/unittests/sshkey/test_sshkey.o \ |
552 | $(SKOBJS) | ||
508 | 553 | ||
509 | regress/unittests/sshkey/test_sshkey$(EXEEXT): ${UNITTESTS_TEST_SSHKEY_OBJS} \ | 554 | regress/unittests/sshkey/test_sshkey$(EXEEXT): ${UNITTESTS_TEST_SSHKEY_OBJS} \ |
510 | regress/unittests/test_helper/libtest_helper.a libssh.a | 555 | regress/unittests/test_helper/libtest_helper.a libssh.a |
@@ -533,7 +578,8 @@ regress/unittests/conversion/test_conversion$(EXEEXT): \ | |||
533 | 578 | ||
534 | UNITTESTS_TEST_KEX_OBJS=\ | 579 | UNITTESTS_TEST_KEX_OBJS=\ |
535 | regress/unittests/kex/tests.o \ | 580 | regress/unittests/kex/tests.o \ |
536 | regress/unittests/kex/test_kex.o | 581 | regress/unittests/kex/test_kex.o \ |
582 | $(SKOBJS) | ||
537 | 583 | ||
538 | regress/unittests/kex/test_kex$(EXEEXT): ${UNITTESTS_TEST_KEX_OBJS} \ | 584 | regress/unittests/kex/test_kex$(EXEEXT): ${UNITTESTS_TEST_KEX_OBJS} \ |
539 | regress/unittests/test_helper/libtest_helper.a libssh.a | 585 | regress/unittests/test_helper/libtest_helper.a libssh.a |
@@ -543,7 +589,8 @@ regress/unittests/kex/test_kex$(EXEEXT): ${UNITTESTS_TEST_KEX_OBJS} \ | |||
543 | 589 | ||
544 | UNITTESTS_TEST_HOSTKEYS_OBJS=\ | 590 | UNITTESTS_TEST_HOSTKEYS_OBJS=\ |
545 | regress/unittests/hostkeys/tests.o \ | 591 | regress/unittests/hostkeys/tests.o \ |
546 | regress/unittests/hostkeys/test_iterate.o | 592 | regress/unittests/hostkeys/test_iterate.o \ |
593 | $(SKOBJS) | ||
547 | 594 | ||
548 | regress/unittests/hostkeys/test_hostkeys$(EXEEXT): \ | 595 | regress/unittests/hostkeys/test_hostkeys$(EXEEXT): \ |
549 | ${UNITTESTS_TEST_HOSTKEYS_OBJS} \ | 596 | ${UNITTESTS_TEST_HOSTKEYS_OBJS} \ |
@@ -573,18 +620,33 @@ regress/unittests/utf8/test_utf8$(EXEEXT): \ | |||
573 | -lssh -lopenbsd-compat -lssh -lopenbsd-compat $(LIBS) | 620 | -lssh -lopenbsd-compat -lssh -lopenbsd-compat $(LIBS) |
574 | 621 | ||
575 | MISC_KEX_FUZZ_OBJS=\ | 622 | MISC_KEX_FUZZ_OBJS=\ |
576 | regress/misc/kexfuzz/kexfuzz.o | 623 | regress/misc/kexfuzz/kexfuzz.o \ |
624 | $(SKOBJS) | ||
577 | 625 | ||
578 | regress/misc/kexfuzz/kexfuzz$(EXEEXT): ${MISC_KEX_FUZZ_OBJS} libssh.a | 626 | regress/misc/kexfuzz/kexfuzz$(EXEEXT): ${MISC_KEX_FUZZ_OBJS} libssh.a |
579 | $(LD) -o $@ $(LDFLAGS) $(MISC_KEX_FUZZ_OBJS) \ | 627 | $(LD) -o $@ $(LDFLAGS) $(MISC_KEX_FUZZ_OBJS) \ |
580 | -lssh -lopenbsd-compat -lssh -lopenbsd-compat $(LIBS) | 628 | -lssh -lopenbsd-compat -lssh -lopenbsd-compat $(LIBS) |
581 | 629 | ||
630 | # These all need to be compiled -fPIC, so they are treated differently. | ||
631 | SK_DUMMY_OBJS=\ | ||
632 | regress/misc/sk-dummy/sk-dummy.lo \ | ||
633 | regress/misc/sk-dummy/fatal.lo \ | ||
634 | ed25519.lo hash.lo ge25519.lo fe25519.lo sc25519.lo verify.lo | ||
635 | |||
636 | .c.lo: Makefile.in config.h | ||
637 | $(CC) $(CFLAGS_NOPIE) $(PICFLAG) $(CPPFLAGS) -c $< -o $@ | ||
638 | |||
639 | regress/misc/sk-dummy/sk-dummy.so: $(SK_DUMMY_OBJS) | ||
640 | $(CC) $(CFLAGS) $(CPPFLAGS) -fPIC -shared -o $@ $(SK_DUMMY_OBJS) \ | ||
641 | -L. -Lopenbsd-compat -lopenbsd-compat $(LDFLAGS_NOPIE) $(LIBS) | ||
642 | |||
582 | regress-binaries: regress-prep $(LIBCOMPAT) \ | 643 | regress-binaries: regress-prep $(LIBCOMPAT) \ |
583 | regress/modpipe$(EXEEXT) \ | 644 | regress/modpipe$(EXEEXT) \ |
584 | regress/setuid-allowed$(EXEEXT) \ | 645 | regress/setuid-allowed$(EXEEXT) \ |
585 | regress/netcat$(EXEEXT) \ | 646 | regress/netcat$(EXEEXT) \ |
586 | regress/check-perm$(EXEEXT) \ | 647 | regress/check-perm$(EXEEXT) \ |
587 | regress/mkdtemp$(EXEEXT) | 648 | regress/mkdtemp$(EXEEXT) \ |
649 | regress/misc/sk-dummy/sk-dummy.so | ||
588 | 650 | ||
589 | regress-unit-binaries: regress-prep $(REGRESSLIBS) \ | 651 | regress-unit-binaries: regress-prep $(REGRESSLIBS) \ |
590 | regress/unittests/sshbuf/test_sshbuf$(EXEEXT) \ | 652 | regress/unittests/sshbuf/test_sshbuf$(EXEEXT) \ |
@@ -617,10 +679,13 @@ interop-tests t-exec file-tests: regress-prep regress-binaries $(TARGETS) | |||
617 | TEST_SSH_SSHADD="$${BUILDDIR}/ssh-add"; \ | 679 | TEST_SSH_SSHADD="$${BUILDDIR}/ssh-add"; \ |
618 | TEST_SSH_SSHKEYGEN="$${BUILDDIR}/ssh-keygen"; \ | 680 | TEST_SSH_SSHKEYGEN="$${BUILDDIR}/ssh-keygen"; \ |
619 | TEST_SSH_SSHPKCS11HELPER="$${BUILDDIR}/ssh-pkcs11-helper"; \ | 681 | TEST_SSH_SSHPKCS11HELPER="$${BUILDDIR}/ssh-pkcs11-helper"; \ |
682 | TEST_SSH_SSHSKHELPER="$${BUILDDIR}/ssh-sk-helper"; \ | ||
620 | TEST_SSH_SSHKEYSCAN="$${BUILDDIR}/ssh-keyscan"; \ | 683 | TEST_SSH_SSHKEYSCAN="$${BUILDDIR}/ssh-keyscan"; \ |
621 | TEST_SSH_SFTP="$${BUILDDIR}/sftp"; \ | 684 | TEST_SSH_SFTP="$${BUILDDIR}/sftp"; \ |
622 | TEST_SSH_SFTPSERVER="$${BUILDDIR}/sftp-server"; \ | 685 | TEST_SSH_SFTPSERVER="$${BUILDDIR}/sftp-server"; \ |
623 | TEST_SSH_SSHPKCS11HELPER="$${BUILDDIR}/ssh-pkcs11-helper"; \ | 686 | TEST_SSH_PKCS11_HELPER="$${BUILDDIR}/ssh-pkcs11-helper"; \ |
687 | TEST_SSH_SK_HELPER="$${BUILDDIR}/ssh-sk-helper"; \ | ||
688 | TEST_SSH_SFTPSERVER="$${BUILDDIR}/sftp-server"; \ | ||
624 | TEST_SSH_PLINK="plink"; \ | 689 | TEST_SSH_PLINK="plink"; \ |
625 | TEST_SSH_PUTTYGEN="puttygen"; \ | 690 | TEST_SSH_PUTTYGEN="puttygen"; \ |
626 | TEST_SSH_CONCH="conch"; \ | 691 | TEST_SSH_CONCH="conch"; \ |
@@ -645,6 +710,8 @@ interop-tests t-exec file-tests: regress-prep regress-binaries $(TARGETS) | |||
645 | TEST_SSH_SSHPKCS11HELPER="$${TEST_SSH_SSHPKCS11HELPER}" \ | 710 | TEST_SSH_SSHPKCS11HELPER="$${TEST_SSH_SSHPKCS11HELPER}" \ |
646 | TEST_SSH_SSHKEYSCAN="$${TEST_SSH_SSHKEYSCAN}" \ | 711 | TEST_SSH_SSHKEYSCAN="$${TEST_SSH_SSHKEYSCAN}" \ |
647 | TEST_SSH_SFTP="$${TEST_SSH_SFTP}" \ | 712 | TEST_SSH_SFTP="$${TEST_SSH_SFTP}" \ |
713 | TEST_SSH_PKCS11_HELPER="$${TEST_SSH_PKCS11_HELPER}" \ | ||
714 | TEST_SSH_SK_HELPER="$${TEST_SSH_SK_HELPER}" \ | ||
648 | TEST_SSH_SFTPSERVER="$${TEST_SSH_SFTPSERVER}" \ | 715 | TEST_SSH_SFTPSERVER="$${TEST_SSH_SFTPSERVER}" \ |
649 | TEST_SSH_PLINK="$${TEST_SSH_PLINK}" \ | 716 | TEST_SSH_PLINK="$${TEST_SSH_PLINK}" \ |
650 | TEST_SSH_PUTTYGEN="$${TEST_SSH_PUTTYGEN}" \ | 717 | TEST_SSH_PUTTYGEN="$${TEST_SSH_PUTTYGEN}" \ |