summaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2020-02-21 11:57:14 +0000
committerColin Watson <cjwatson@debian.org>2020-02-21 14:27:02 +0000
commit886e47e745586c34e81cfd5c5fb9b5dbc8e84d04 (patch)
treedd6c3b4dc64a17c520af7aaf213163f8a0a63e56 /Makefile.in
parentac2b4c0697fcac554041ab95f81736887eadf6ec (diff)
parenta2dabf35ce0228c86a288d11cc847a9d9801604f (diff)
New upstream release (8.2p1)
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in137
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
24SFTP_SERVER=$(libexecdir)/sftp-server 24SFTP_SERVER=$(libexecdir)/sftp-server
25SSH_KEYSIGN=$(libexecdir)/ssh-keysign 25SSH_KEYSIGN=$(libexecdir)/ssh-keysign
26SSH_PKCS11_HELPER=$(libexecdir)/ssh-pkcs11-helper 26SSH_PKCS11_HELPER=$(libexecdir)/ssh-pkcs11-helper
27SSH_SK_HELPER=$(libexecdir)/ssh-sk-helper
27PRIVSEP_PATH=@PRIVSEP_PATH@ 28PRIVSEP_PATH=@PRIVSEP_PATH@
28SSH_PRIVSEP_USER=@SSH_PRIVSEP_USER@ 29SSH_PRIVSEP_USER=@SSH_PRIVSEP_USER@
29STRIP_OPT=@STRIP_OPT@ 30STRIP_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
41CC=@CC@ 43CC=@CC@
42LD=@LD@ 44LD=@LD@
43CFLAGS=@CFLAGS@ 45CFLAGS=@CFLAGS@
46CFLAGS_NOPIE=@CFLAGS_NOPIE@
44CPPFLAGS=-I. -I$(srcdir) @CPPFLAGS@ $(PATHS) @DEFS@ 47CPPFLAGS=-I. -I$(srcdir) @CPPFLAGS@ $(PATHS) @DEFS@
48PICFLAG=@PICFLAG@
45LIBS=@LIBS@ 49LIBS=@LIBS@
46K5LIBS=@K5LIBS@ 50K5LIBS=@K5LIBS@
47GSSLIBS=@GSSLIBS@ 51GSSLIBS=@GSSLIBS@
48SSHLIBS=@SSHLIBS@ 52SSHLIBS=@SSHLIBS@
49SSHDLIBS=@SSHDLIBS@ 53SSHDLIBS=@SSHDLIBS@
50LIBEDIT=@LIBEDIT@ 54LIBEDIT=@LIBEDIT@
55LIBFIDO2=@LIBFIDO2@
51AR=@AR@ 56AR=@AR@
52AWK=@AWK@ 57AWK=@AWK@
53RANLIB=@RANLIB@ 58RANLIB=@RANLIB@
@@ -56,11 +61,14 @@ SED=@SED@
56ENT=@ENT@ 61ENT=@ENT@
57XAUTH_PATH=@XAUTH_PATH@ 62XAUTH_PATH=@XAUTH_PATH@
58LDFLAGS=-L. -Lopenbsd-compat/ @LDFLAGS@ 63LDFLAGS=-L. -Lopenbsd-compat/ @LDFLAGS@
64LDFLAGS_NOPIE=-L. -Lopenbsd-compat/ @LDFLAGS_NOPIE@
59EXEEXT=@EXEEXT@ 65EXEEXT=@EXEEXT@
60MANFMT=@MANFMT@ 66MANFMT=@MANFMT@
61MKDIR_P=@MKDIR_P@ 67MKDIR_P=@MKDIR_P@
62 68
63TARGETS=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
71TARGETS=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
65XMSS_OBJS=\ 73XMSS_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
116SKOBJS= ssh-sk-client.o
106 117
107SSHOBJS= ssh.o readconf.o clientloop.o sshtty.o \ 118SSHOBJS= 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
110SSHDOBJS=sshd.o auth-rhosts.o auth-passwd.o \ 121SSHDOBJS=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
136SCP_OBJS= scp.o progressmeter.o
137
138SSHADD_OBJS= ssh-add.o $(SKOBJS)
139
140SSHAGENT_OBJS= ssh-agent.o ssh-pkcs11-client.o $(SKOBJS)
141
142SSHKEYGEN_OBJS= ssh-keygen.o sshsig.o $(SKOBJS)
143
144SSHKEYSIGN_OBJS=ssh-keysign.o readconf.o uidswap.o $(SKOBJS)
145
146P11HELPER_OBJS= ssh-pkcs11-helper.o ssh-pkcs11.o $(SKOBJS)
147
148SKHELPER_OBJS= ssh-sk-helper.o ssh-sk.o sk-usbhid.o
149
150SSHKEYSCAN_OBJS=ssh-keyscan.o $(SKOBJS)
124 151
125MANPAGES = 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 152SFTPSERVER_OBJS=sftp-common.o sftp-server.o sftp-server-main.o
126MANPAGES_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
154SFTP_OBJS= sftp.o sftp-client.o sftp-common.o sftp-glob.o progressmeter.o
155
156MANPAGES = 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
157MANPAGES_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
127MANTYPE = @MANTYPE@ 158MANTYPE = @MANTYPE@
128 159
129CONFIGFILES=sshd_config.out ssh_config.out moduli.out 160CONFIGFILES=sshd_config.out ssh_config.out moduli.out
@@ -181,32 +212,35 @@ ssh$(EXEEXT): $(LIBCOMPAT) libssh.a $(SSHOBJS)
181sshd$(EXEEXT): libssh.a $(LIBCOMPAT) $(SSHDOBJS) 212sshd$(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
184scp$(EXEEXT): $(LIBCOMPAT) libssh.a scp.o progressmeter.o 215scp$(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
218ssh-add$(EXEEXT): $(LIBCOMPAT) libssh.a $(SSHADD_OBJS)
219 $(LD) -o $@ $(SSHADD_OBJS) $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS)
186 220
187ssh-add$(EXEEXT): $(LIBCOMPAT) libssh.a ssh-add.o 221ssh-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
190ssh-agent$(EXEEXT): $(LIBCOMPAT) libssh.a ssh-agent.o ssh-pkcs11-client.o 224ssh-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
193ssh-keygen$(EXEEXT): $(LIBCOMPAT) libssh.a ssh-keygen.o sshsig.o 227ssh-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
196ssh-keysign$(EXEEXT): $(LIBCOMPAT) libssh.a ssh-keysign.o readconf.o uidswap.o compat.o 230ssh-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
199ssh-pkcs11-helper$(EXEEXT): $(LIBCOMPAT) libssh.a ssh-pkcs11-helper.o ssh-pkcs11.o 233ssh-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
202ssh-keyscan$(EXEEXT): $(LIBCOMPAT) libssh.a ssh-keyscan.o 236ssh-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
205sftp-server$(EXEEXT): $(LIBCOMPAT) libssh.a sftp.o sftp-common.o sftp-server.o sftp-realpath.o sftp-server-main.o 239sftp-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
208sftp$(EXEEXT): $(LIBCOMPAT) libssh.a sftp.o sftp-client.o sftp-common.o sftp-glob.o progressmeter.o 242sftp$(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
212logintest: logintest.o $(LIBCOMPAT) libssh.a loginrec.o 246logintest: logintest.o $(LIBCOMPAT) libssh.a loginrec.o
@@ -234,7 +268,7 @@ moduli:
234 echo 268 echo
235 269
236clean: regressclean 270clean: 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
263distclean: regressclean 300distclean: 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
322depend-check: depend-rebuild 361depend-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
371install-sysconf: 412install-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
442regress-prep: 485regress-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
509regress/unittests/sshkey/test_sshkey$(EXEEXT): ${UNITTESTS_TEST_SSHKEY_OBJS} \ 554regress/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
534UNITTESTS_TEST_KEX_OBJS=\ 579UNITTESTS_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
538regress/unittests/kex/test_kex$(EXEEXT): ${UNITTESTS_TEST_KEX_OBJS} \ 584regress/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
544UNITTESTS_TEST_HOSTKEYS_OBJS=\ 590UNITTESTS_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
548regress/unittests/hostkeys/test_hostkeys$(EXEEXT): \ 595regress/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
575MISC_KEX_FUZZ_OBJS=\ 622MISC_KEX_FUZZ_OBJS=\
576 regress/misc/kexfuzz/kexfuzz.o 623 regress/misc/kexfuzz/kexfuzz.o \
624 $(SKOBJS)
577 625
578regress/misc/kexfuzz/kexfuzz$(EXEEXT): ${MISC_KEX_FUZZ_OBJS} libssh.a 626regress/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.
631SK_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
639regress/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
582regress-binaries: regress-prep $(LIBCOMPAT) \ 643regress-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
589regress-unit-binaries: regress-prep $(REGRESSLIBS) \ 651regress-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}" \