Lines Matching +full:scp +full:- +full:core

24 ASKPASS_PROGRAM=$(libexecdir)/ssh-askpass
25 SFTP_SERVER=$(libexecdir)/sftp-server
26 SSH_KEYSIGN=$(libexecdir)/ssh-keysign
27 SSH_PKCS11_HELPER=$(libexecdir)/ssh-pkcs11-helper
28 SSH_SK_HELPER=$(libexecdir)/ssh-sk-helper
35 PATHS= -DSSHDIR=\"$(sysconfdir)\" \
36 -D_PATH_SSH_PROGRAM=\"$(SSH_PROGRAM)\" \
37 -D_PATH_SSH_ASKPASS_DEFAULT=\"$(ASKPASS_PROGRAM)\" \
38 -D_PATH_SFTP_SERVER=\"$(SFTP_SERVER)\" \
39 -D_PATH_SSH_KEY_SIGN=\"$(SSH_KEYSIGN)\" \
40 -D_PATH_SSH_PKCS11_HELPER=\"$(SSH_PKCS11_HELPER)\" \
41 -D_PATH_SSH_SK_HELPER=\"$(SSH_SK_HELPER)\" \
42 -D_PATH_SSH_PIDDIR=\"$(piddir)\" \
43 -D_PATH_PRIVSEP_CHROOT_DIR=\"$(PRIVSEP_PATH)\"
49 CPPFLAGS=-I. -I$(srcdir) @CPPFLAGS@ $(PATHS) @DEFS@
64 LDFLAGS=-L. -Lopenbsd-compat/ @LDFLAGS@
65 LDFLAGS_NOPIE=-L. -Lopenbsd-compat/ @LDFLAGS_NOPIE@
72-add$(EXEEXT) ssh-keygen$(EXEEXT) ssh-keyscan${EXEEXT} ssh-keysign${EXEEXT} ssh-pkcs11-helper$(EXE…
75 ssh-xmss.o \
76 sshkey-xmss.o \
88 sshbuf-getput-basic.o \
89 sshbuf-misc.o \
90 sshbuf-getput-crypto.o \
97 canohost.o channels.o cipher.o cipher-aes.o cipher-aesctr.o \
103 monitor_fdpass.o rijndael.o ssh-dss.o ssh-ecdsa.o ssh-ecdsa-sk.o \
104 ssh-ed25519-sk.o ssh-rsa.o dh.o \
105 msg.o progressmeter.o dns.o entropy.o gss-genr.o umac.o umac128.o \
106 ssh-pkcs11.o smult_curve25519_ref.o \
107 poly1305.o chacha.o cipher-chachapoly.o cipher-chachapoly-libcrypto.o \
108 ssh-ed25519.o digest-openssl.o digest-libc.o \
113 sftp-realpath.o platform-pledge.o platform-tracing.o platform-misc.o \
114 sshbuf-io.o
116 SKOBJS= ssh-sk-client.o
121 SSHDOBJS=sshd.o auth-rhosts.o auth-passwd.o \
122 audit.o audit-bsm.o audit-linux.o platform.o \
124 auth.o auth2.o auth-options.o session.o \
125 auth2-chall.o groupaccess.o \
126 auth-bsdauth.o auth2-hostbased.o auth2-kbdint.o \
127 auth2-none.o auth2-passwd.o auth2-pubkey.o auth2-pubkeyfile.o \
128 monitor.o monitor_wrap.o auth-krb5.o \
129 auth2-gss.o gss-serv.o gss-serv-krb5.o \
130 loginrec.o auth-pam.o auth-shadow.o auth-sia.o \
131 srclimit.o sftp-server.o sftp-common.o \
132 sandbox-null.o sandbox-rlimit.o sandbox-systrace.o sandbox-darwin.o \
133 sandbox-seccomp-filter.o sandbox-capsicum.o sandbox-pledge.o \
134 sandbox-solaris.o uidswap.o $(SKOBJS)
136 SFTP_CLIENT_OBJS=sftp-common.o sftp-client.o sftp-glob.o
138 SCP_OBJS= scp.o progressmeter.o $(SFTP_CLIENT_OBJS)
140 SSHADD_OBJS= ssh-add.o $(SKOBJS)
142 SSHAGENT_OBJS= ssh-agent.o ssh-pkcs11-client.o $(SKOBJS)
144 SSHKEYGEN_OBJS= ssh-keygen.o sshsig.o $(SKOBJS)
146 SSHKEYSIGN_OBJS=ssh-keysign.o readconf.o uidswap.o $(SKOBJS)
148 P11HELPER_OBJS= ssh-pkcs11-helper.o ssh-pkcs11.o $(SKOBJS)
150 SKHELPER_OBJS= ssh-sk-helper.o ssh-sk.o sk-usbhid.o
152 SSHKEYSCAN_OBJS=ssh-keyscan.o $(SKOBJS)
154 SFTPSERVER_OBJS=sftp-common.o sftp-server.o sftp-server-main.o
156 SFTP_OBJS= sftp.o sftp-usergroup.o progressmeter.o $(SFTP_CLIENT_OBJS)
158scp.1.out ssh-add.1.out ssh-agent.1.out ssh-keygen.1.out ssh-keyscan.1.out ssh.1.out sshd.8.out sf…
159 …= moduli.5 scp.1 ssh-add.1 ssh-agent.1 ssh-keygen.1 ssh-keyscan.1 ssh.1 sshd.8 sftp-server.8 sftp.…
166 -e 's|/etc/ssh/ssh_config|$(sysconfdir)/ssh_config|g' \
167 -e 's|/etc/ssh/ssh_known_hosts|$(sysconfdir)/ssh_known_hosts|g' \
168 -e 's|/etc/ssh/sshd_config|$(sysconfdir)/sshd_config|g' \
169 -e 's|/usr/libexec|$(libexecdir)|g' \
170 -e 's|/etc/shosts.equiv|$(sysconfdir)/shosts.equiv|g' \
171 -e 's|/etc/ssh/ssh_host_key|$(sysconfdir)/ssh_host_key|g' \
172 -e 's|/etc/ssh/ssh_host_ecdsa_key|$(sysconfdir)/ssh_host_ecdsa_key|g' \
173 -e 's|/etc/ssh/ssh_host_dsa_key|$(sysconfdir)/ssh_host_dsa_key|g' \
174 -e 's|/etc/ssh/ssh_host_rsa_key|$(sysconfdir)/ssh_host_rsa_key|g' \
175 -e 's|/etc/ssh/ssh_host_ed25519_key|$(sysconfdir)/ssh_host_ed25519_key|g' \
176 -e 's|/var/run/sshd.pid|$(piddir)/sshd.pid|g' \
177 -e 's|/etc/moduli|$(sysconfdir)/moduli|g' \
178 -e 's|/etc/ssh/moduli|$(sysconfdir)/moduli|g' \
179 -e 's|/etc/ssh/sshrc|$(sysconfdir)/sshrc|g' \
180 -e 's|/usr/X11R6/bin/xauth|$(XAUTH_PATH)|g' \
181 -e 's|/var/empty|$(PRIVSEP_PATH)|g' \
182 -e 's|/usr/bin:/bin:/usr/sbin:/sbin|@user_path@|g'
195 $(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@
197 LIBCOMPAT=openbsd-compat/libopenbsd-compat.a
199 (cd openbsd-compat && $(MAKE))
207 $(LD) -o $@ $(SSHOBJS) $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS) $(GSSLIBS) $(CHANNELLIBS)
210 …$(LD) -o $@ $(SSHDOBJS) $(LDFLAGS) -lssh -lopenbsd-compat $(SSHDLIBS) $(LIBS) $(GSSLIBS) $(K5LIBS)…
212 scp$(EXEEXT): $(LIBCOMPAT) libssh.a $(SCP_OBJS)
213 $(LD) -o $@ $(SCP_OBJS) $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS)
215 ssh-add$(EXEEXT): $(LIBCOMPAT) libssh.a $(SSHADD_OBJS)
216 $(LD) -o $@ $(SSHADD_OBJS) $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS) $(CHANNELLIBS)
218 ssh-agent$(EXEEXT): $(LIBCOMPAT) libssh.a $(SSHAGENT_OBJS)
219 $(LD) -o $@ $(SSHAGENT_OBJS) $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS) $(CHANNELLIBS)
221 ssh-keygen$(EXEEXT): $(LIBCOMPAT) libssh.a $(SSHKEYGEN_OBJS)
222 $(LD) -o $@ $(SSHKEYGEN_OBJS) $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS) $(CHANNELLIBS)
224 ssh-keysign$(EXEEXT): $(LIBCOMPAT) libssh.a $(SSHKEYSIGN_OBJS)
225 $(LD) -o $@ $(SSHKEYSIGN_OBJS) $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS) $(CHANNELLIBS)
227 ssh-pkcs11-helper$(EXEEXT): $(LIBCOMPAT) libssh.a $(P11HELPER_OBJS)
228 …$(LD) -o $@ $(P11HELPER_OBJS) $(LDFLAGS) -lssh -lopenbsd-compat -lssh -lopenbsd-compat $(LIBS) $(C…
230 ssh-sk-helper$(EXEEXT): $(LIBCOMPAT) libssh.a $(SKHELPER_OBJS)
231 …$(LD) -o $@ $(SKHELPER_OBJS) $(LDFLAGS) -lssh -lopenbsd-compat -lssh -lopenbsd-compat $(LIBS) $(LI…
233 ssh-keyscan$(EXEEXT): $(LIBCOMPAT) libssh.a $(SSHKEYSCAN_OBJS)
234 $(LD) -o $@ $(SSHKEYSCAN_OBJS) $(LDFLAGS) -lssh -lopenbsd-compat -lssh $(LIBS) $(CHANNELLIBS)
236 sftp-server$(EXEEXT): $(LIBCOMPAT) libssh.a $(SFTPSERVER_OBJS)
237 $(LD) -o $@ $(SFTPSERVER_OBJS) $(LDFLAGS) -lssh -lopenbsd-compat -lssh $(LIBS)
240 $(LD) -o $@ $(SFTP_OBJS) $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS) $(LIBEDIT)
242 # test driver for the loginrec code - not built by default
244 $(LD) -o $@ logintest.o $(LDFLAGS) loginrec.o -lopenbsd-compat -lssh $(LIBS)
248 manpage=$(srcdir)/`echo $@ | sed 's/\.[1-9]\.out$$/\.0/'`; \
254 $(AWK) -f $(srcdir)/mdoc2man.awk > $@; \
268 rm -f *.o *.lo *.a $(TARGETS) logintest config.cache config.log
269 rm -f *.out core survey
270 rm -f regress/check-perm$(EXEEXT)
271 rm -f regress/mkdtemp$(EXEEXT)
272 rm -f regress/unittests/test_helper/*.a
273 rm -f regress/unittests/test_helper/*.o
274 rm -f regress/unittests/authopt/*.o
275 rm -f regress/unittests/authopt/test_authopt$(EXEEXT)
276 rm -f regress/unittests/bitmap/*.o
277 rm -f regress/unittests/bitmap/test_bitmap$(EXEEXT)
278 rm -f regress/unittests/conversion/*.o
279 rm -f regress/unittests/conversion/test_conversion$(EXEEXT)
280 rm -f regress/unittests/hostkeys/*.o
281 rm -f regress/unittests/hostkeys/test_hostkeys$(EXEEXT)
282 rm -f regress/unittests/kex/*.o
283 rm -f regress/unittests/kex/test_kex$(EXEEXT)
284 rm -f regress/unittests/match/*.o
285 rm -f regress/unittests/match/test_match$(EXEEXT)
286 rm -f regress/unittests/misc/*.o
287 rm -f regress/unittests/misc/test_misc$(EXEEXT)
288 rm -f regress/unittests/sshbuf/*.o
289 rm -f regress/unittests/sshbuf/test_sshbuf$(EXEEXT)
290 rm -f regress/unittests/sshkey/*.o
291 rm -f regress/unittests/sshkey/test_sshkey$(EXEEXT)
292 rm -f regress/unittests/sshsig/*.o
293 rm -f regress/unittests/sshsig/test_sshsig$(EXEEXT)
294 rm -f regress/unittests/utf8/*.o
295 rm -f regress/unittests/utf8/test_utf8$(EXEEXT)
296 rm -f regress/misc/sk-dummy/*.o
297 rm -f regress/misc/sk-dummy/*.lo
298 rm -f regress/misc/sk-dummy/sk-dummy.so
299 (cd openbsd-compat && $(MAKE) clean)
302 rm -f *.o *.a $(TARGETS) logintest config.cache config.log
303 rm -f *.out core opensshd.init openssh.xml
304 rm -f Makefile buildpkg.sh config.h config.status
305 rm -f survey.sh openbsd-compat/regress/Makefile *~
306 rm -rf autom4te.cache
307 rm -f regress/check-perm
308 rm -f regress/mkdtemp
309 rm -f regress/unittests/test_helper/*.a
310 rm -f regress/unittests/test_helper/*.o
311 rm -f regress/unittests/authopt/*.o
312 rm -f regress/unittests/authopt/test_authopt
313 rm -f regress/unittests/bitmap/*.o
314 rm -f regress/unittests/bitmap/test_bitmap
315 rm -f regress/unittests/conversion/*.o
316 rm -f regress/unittests/conversion/test_conversion
317 rm -f regress/unittests/hostkeys/*.o
318 rm -f regress/unittests/hostkeys/test_hostkeys
319 rm -f regress/unittests/kex/*.o
320 rm -f regress/unittests/kex/test_kex
321 rm -f regress/unittests/match/*.o
322 rm -f regress/unittests/match/test_match
323 rm -f regress/unittests/misc/*.o
324 rm -f regress/unittests/misc/test_misc
325 rm -f regress/unittests/sshbuf/*.o
326 rm -f regress/unittests/sshbuf/test_sshbuf
327 rm -f regress/unittests/sshkey/*.o
328 rm -f regress/unittests/sshkey/test_sshkey
329 rm -f regress/unittests/sshsig/*.o
330 rm -f regress/unittests/sshsig/test_sshsig
331 rm -f regress/unittests/utf8/*.o
332 rm -f regress/unittests/utf8/test_utf8
333 rm -f regress/misc/sk-dummy/*.o
334 rm -f regress/misc/sk-dummy/*.lo
335 rm -f regress/misc/sk-dummy/sk-dummy.so
336 (cd openbsd-compat && $(MAKE) distclean)
337 if test -d pkg ; then \
338 rm -fr pkg ; \
342 rm -f configure config.h.in *.0
350 catman-do:
353 echo "$$f -> $$base.0" ; \
354 $(MANFMT) $$f | cat -v | sed -e 's/.\^H//g' \
358 depend: depend-rebuild
359 rm -f .depend.bak
361 depend-rebuild:
363 rm -f config.h .depend
365 makedepend -w1000 -Y. -f .depend *.c 2>/dev/null
369 rm -f .depend.bak
371 rm -f config.h
373 depend-check: depend-rebuild
376 distprep: catman-do depend-check
378 -rm -rf autom4te.cache .depend.bak
380 install: $(CONFIGFILES) $(MANPAGES) $(TARGETS) install-files install-sysconf host-key check-config
381 install-nokeys: $(CONFIGFILES) $(MANPAGES) $(TARGETS) install-files install-sysconf
382 install-nosysconf: $(CONFIGFILES) $(MANPAGES) $(TARGETS) install-files
384 check-config:
385 -$(DESTDIR)$(sbindir)/sshd -t -f $(DESTDIR)$(sysconfdir)/sshd_config
387 install-files:
394 $(MKDIR_P) -m 0755 $(DESTDIR)$(PRIVSEP_PATH)
395 $(INSTALL) -m 0755 $(STRIP_OPT) ssh$(EXEEXT) $(DESTDIR)$(bindir)/ssh$(EXEEXT)
396 $(INSTALL) -m 0755 $(STRIP_OPT) scp$(EXEEXT) $(DESTDIR)$(bindir)/scp$(EXEEXT)
397 $(INSTALL) -m 0755 $(STRIP_OPT) ssh-add$(EXEEXT) $(DESTDIR)$(bindir)/ssh-add$(EXEEXT)
398 $(INSTALL) -m 0755 $(STRIP_OPT) ssh-agent$(EXEEXT) $(DESTDIR)$(bindir)/ssh-agent$(EXEEXT)
399 $(INSTALL) -m 0755 $(STRIP_OPT) ssh-keygen$(EXEEXT) $(DESTDIR)$(bindir)/ssh-keygen$(EXEEXT)
400 $(INSTALL) -m 0755 $(STRIP_OPT) ssh-keyscan$(EXEEXT) $(DESTDIR)$(bindir)/ssh-keyscan$(EXEEXT)
401 $(INSTALL) -m 0755 $(STRIP_OPT) sshd$(EXEEXT) $(DESTDIR)$(sbindir)/sshd$(EXEEXT)
402 $(INSTALL) -m 4711 $(STRIP_OPT) ssh-keysign$(EXEEXT) $(DESTDIR)$(SSH_KEYSIGN)$(EXEEXT)
403 $(INSTALL) -m 0755 $(STRIP_OPT) ssh-pkcs11-helper$(EXEEXT) $(DESTDIR)$(SSH_PKCS11_HELPER)$(EXEEXT)
404 $(INSTALL) -m 0755 $(STRIP_OPT) ssh-sk-helper$(EXEEXT) $(DESTDIR)$(SSH_SK_HELPER)$(EXEEXT)
405 $(INSTALL) -m 0755 $(STRIP_OPT) sftp$(EXEEXT) $(DESTDIR)$(bindir)/sftp$(EXEEXT)
406 $(INSTALL) -m 0755 $(STRIP_OPT) sftp-server$(EXEEXT) $(DESTDIR)$(SFTP_SERVER)$(EXEEXT)
407 $(INSTALL) -m 644 ssh.1.out $(DESTDIR)$(mandir)/$(mansubdir)1/ssh.1
408 $(INSTALL) -m 644 scp.1.out $(DESTDIR)$(mandir)/$(mansubdir)1/scp.1
409 $(INSTALL) -m 644 ssh-add.1.out $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-add.1
410 $(INSTALL) -m 644 ssh-agent.1.out $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-agent.1
411 $(INSTALL) -m 644 ssh-keygen.1.out $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-keygen.1
412 $(INSTALL) -m 644 ssh-keyscan.1.out $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-keyscan.1
413 $(INSTALL) -m 644 moduli.5.out $(DESTDIR)$(mandir)/$(mansubdir)5/moduli.5
414 $(INSTALL) -m 644 sshd_config.5.out $(DESTDIR)$(mandir)/$(mansubdir)5/sshd_config.5
415 $(INSTALL) -m 644 ssh_config.5.out $(DESTDIR)$(mandir)/$(mansubdir)5/ssh_config.5
416 $(INSTALL) -m 644 sshd.8.out $(DESTDIR)$(mandir)/$(mansubdir)8/sshd.8
417 $(INSTALL) -m 644 sftp.1.out $(DESTDIR)$(mandir)/$(mansubdir)1/sftp.1
418 $(INSTALL) -m 644 sftp-server.8.out $(DESTDIR)$(mandir)/$(mansubdir)8/sftp-server.8
419 $(INSTALL) -m 644 ssh-keysign.8.out $(DESTDIR)$(mandir)/$(mansubdir)8/ssh-keysign.8
420 $(INSTALL) -m 644 ssh-pkcs11-helper.8.out $(DESTDIR)$(mandir)/$(mansubdir)8/ssh-pkcs11-helper.8
421 $(INSTALL) -m 644 ssh-sk-helper.8.out $(DESTDIR)$(mandir)/$(mansubdir)8/ssh-sk-helper.8
423 install-sysconf:
425 @if [ ! -f $(DESTDIR)$(sysconfdir)/ssh_config ]; then \
426 $(INSTALL) -m 644 ssh_config.out $(DESTDIR)$(sysconfdir)/ssh_config; \
430 @if [ ! -f $(DESTDIR)$(sysconfdir)/sshd_config ]; then \
431 $(INSTALL) -m 644 sshd_config.out $(DESTDIR)$(sysconfdir)/sshd_config; \
435 @if [ ! -f $(DESTDIR)$(sysconfdir)/moduli ]; then \
436 if [ -f $(DESTDIR)$(sysconfdir)/primes ]; then \
440 $(INSTALL) -m 644 moduli.out $(DESTDIR)$(sysconfdir)/moduli; \
446 host-key: ssh-keygen$(EXEEXT)
447 @if [ -z "$(DESTDIR)" ] ; then \
448 ./ssh-keygen -A; \
451 host-key-force: ssh-keygen$(EXEEXT) ssh$(EXEEXT)
452 ./ssh-keygen -t dsa -f $(DESTDIR)$(sysconfdir)/ssh_host_dsa_key -N ""
453 ./ssh-keygen -t rsa -f $(DESTDIR)$(sysconfdir)/ssh_host_rsa_key -N ""
454 ./ssh-keygen -t ed25519 -f $(DESTDIR)$(sysconfdir)/ssh_host_ed25519_key -N ""
455 if ./ssh -Q key | grep ecdsa >/dev/null ; then \
456 ./ssh-keygen -t ecdsa -f $(DESTDIR)$(sysconfdir)/ssh_host_ecdsa_key -N ""; \
460 -rm -f $(DESTDIR)$(sysconfdir)/ssh_config
461 -rm -f $(DESTDIR)$(sysconfdir)/sshd_config
462 -rmdir $(DESTDIR)$(sysconfdir)
463 -rmdir $(DESTDIR)$(bindir)
464 -rmdir $(DESTDIR)$(sbindir)
465 -rmdir $(DESTDIR)$(mandir)/$(mansubdir)1
466 -rmdir $(DESTDIR)$(mandir)/$(mansubdir)8
467 -rmdir $(DESTDIR)$(mandir)
468 -rmdir $(DESTDIR)$(libexecdir)
471 -rm -f $(DESTDIR)$(bindir)/ssh$(EXEEXT)
472 -rm -f $(DESTDIR)$(bindir)/scp$(EXEEXT)
473 -rm -f $(DESTDIR)$(bindir)/ssh-add$(EXEEXT)
474 -rm -f $(DESTDIR)$(bindir)/ssh-agent$(EXEEXT)
475 -rm -f $(DESTDIR)$(bindir)/ssh-keygen$(EXEEXT)
476 -rm -f $(DESTDIR)$(bindir)/ssh-keyscan$(EXEEXT)
477 -rm -f $(DESTDIR)$(bindir)/sftp$(EXEEXT)
478 -rm -f $(DESTDIR)$(sbindir)/sshd$(EXEEXT)
479 -rm -r $(DESTDIR)$(SFTP_SERVER)$(EXEEXT)
480 -rm -f $(DESTDIR)$(SSH_KEYSIGN)$(EXEEXT)
481 -rm -f $(DESTDIR)$(SSH_PKCS11_HELPER)$(EXEEXT)
482 -rm -f $(DESTDIR)$(SSH_SK_HELPER)$(EXEEXT)
483 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/ssh.1
484 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/scp.1
485 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-add.1
486 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-agent.1
487 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-keygen.1
488 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/sftp.1
489 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-keyscan.1
490 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)8/sshd.8
491 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)8/sftp-server.8
492 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)8/ssh-keysign.8
493 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)8/ssh-pkcs11-helper.8
494 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)8/ssh-sk-helper.8
496 regress-prep:
509 $(MKDIR_P) `pwd`/regress/misc/sk-dummy
510 [ -f `pwd`/regress/Makefile ] || \
511 ln -s `cd $(srcdir) && pwd`/regress/Makefile `pwd`/regress/Makefile
517 $(CC) $(CFLAGS) $(CPPFLAGS) -o $@ $(srcdir)/regress/modpipe.c \
518 $(LDFLAGS) -lssh -lopenbsd-compat -lssh -lopenbsd-compat $(TESTLIBS)
521 $(CC) $(CFLAGS) $(CPPFLAGS) -o $@ $(srcdir)/regress/timestamp.c \
522 $(LDFLAGS) -lssh -lopenbsd-compat -lssh -lopenbsd-compat $(TESTLIBS)
524 regress/setuid-allowed$(EXEEXT): $(srcdir)/regress/setuid-allowed.c $(REGRESSLIBS)
525 $(CC) $(CFLAGS) $(CPPFLAGS) -o $@ $(srcdir)/regress/setuid-allowed.c \
526 $(LDFLAGS) -lssh -lopenbsd-compat -lssh -lopenbsd-compat $(TESTLIBS)
529 $(CC) $(CFLAGS) $(CPPFLAGS) -o $@ $(srcdir)/regress/netcat.c \
530 $(LDFLAGS) -lssh -lopenbsd-compat -lssh -lopenbsd-compat $(TESTLIBS)
532 regress/check-perm$(EXEEXT): $(srcdir)/regress/check-perm.c $(REGRESSLIBS)
533 $(CC) $(CFLAGS) $(CPPFLAGS) -o $@ $(srcdir)/regress/check-perm.c \
534 $(LDFLAGS) -lssh -lopenbsd-compat -lssh -lopenbsd-compat $(TESTLIBS)
537 $(CC) $(CFLAGS) $(CPPFLAGS) -o $@ $(srcdir)/regress/mkdtemp.c \
538 $(LDFLAGS) -lssh -lopenbsd-compat -lssh -lopenbsd-compat $(TESTLIBS)
560 $(LD) -o $@ $(LDFLAGS) $(UNITTESTS_TEST_SSHBUF_OBJS) \
562 -lssh -lopenbsd-compat -lssh -lopenbsd-compat $(TESTLIBS)
574 $(LD) -o $@ $(LDFLAGS) $(UNITTESTS_TEST_SSHKEY_OBJS) \
576 -lssh -lopenbsd-compat -lssh -lopenbsd-compat $(TESTLIBS)
585 $(LD) -o $@ $(LDFLAGS) $(UNITTESTS_TEST_SSHSIG_OBJS) \
587 -lssh -lopenbsd-compat -lssh -lopenbsd-compat $(TESTLIBS)
594 $(LD) -o $@ $(LDFLAGS) $(UNITTESTS_TEST_BITMAP_OBJS) \
596 -lssh -lopenbsd-compat -lssh -lopenbsd-compat $(TESTLIBS)
600 auth-options.o \
606 $(LD) -o $@ $(LDFLAGS) $(UNITTESTS_TEST_AUTHOPT_OBJS) \
608 -lssh -lopenbsd-compat -lssh -lopenbsd-compat $(TESTLIBS)
616 $(LD) -o $@ $(LDFLAGS) $(UNITTESTS_TEST_CONVERSION_OBJS) \
618 -lssh -lopenbsd-compat -lssh -lopenbsd-compat $(TESTLIBS)
628 $(LD) -o $@ $(LDFLAGS) $(UNITTESTS_TEST_KEX_OBJS) \
630 -lssh -lopenbsd-compat -lssh -lopenbsd-compat $(TESTLIBS)
640 $(LD) -o $@ $(LDFLAGS) $(UNITTESTS_TEST_HOSTKEYS_OBJS) \
642 -lssh -lopenbsd-compat -lssh -lopenbsd-compat $(TESTLIBS)
650 $(LD) -o $@ $(LDFLAGS) $(UNITTESTS_TEST_MATCH_OBJS) \
652 -lssh -lopenbsd-compat -lssh -lopenbsd-compat $(TESTLIBS)
667 $(LD) -o $@ $(LDFLAGS) $(UNITTESTS_TEST_MISC_OBJS) \
669 -lssh -lopenbsd-compat -lssh -lopenbsd-compat $(TESTLIBS)
677 $(LD) -o $@ $(LDFLAGS) $(UNITTESTS_TEST_UTF8_OBJS) \
679 -lssh -lopenbsd-compat -lssh -lopenbsd-compat $(TESTLIBS)
681 # These all need to be compiled -fPIC, so they are treated differently.
683 regress/misc/sk-dummy/sk-dummy.lo \
684 regress/misc/sk-dummy/fatal.lo \
690 $(CC) $(CFLAGS_NOPIE) $(PICFLAG) $(CPPFLAGS) -c $< -o $@
692 regress/misc/sk-dummy/sk-dummy.so: $(SK_DUMMY_OBJS)
693 $(CC) $(CFLAGS) $(CPPFLAGS) $(PICFLAG) -shared -o $@ $(SK_DUMMY_OBJS) \
694 -L. -Lopenbsd-compat -lopenbsd-compat $(LDFLAGS_NOPIE) $(TESTLIBS)
696 regress-binaries: regress-prep $(LIBCOMPAT) \
699 regress/setuid-allowed$(EXEEXT) \
701 regress/check-perm$(EXEEXT) \
705 regress-unit-binaries: regress-prep $(REGRESSLIBS) \
718 tests: file-tests t-exec interop-tests extra-tests unit
721 unit: regress-unit-binaries
729 interop-tests t-exec file-tests extra-tests: regress-prep regress-binaries $(TARGETS)
741 TEST_SSH_SCP="$(BUILDDIR)/scp" \
744 TEST_SSH_SSHAGENT="$(BUILDDIR)/ssh-agent" \
745 TEST_SSH_SSHADD="$(BUILDDIR)/ssh-add" \
746 TEST_SSH_SSHKEYGEN="$(BUILDDIR)/ssh-keygen" \
747 TEST_SSH_SSHPKCS11HELPER="$(BUILDDIR)/ssh-pkcs11-helper" \
748 TEST_SSH_SSHKEYSCAN="$(BUILDDIR)/ssh-keyscan" \
750 TEST_SSH_PKCS11_HELPER="$(BUILDDIR)/ssh-pkcs11-helper" \
751 TEST_SSH_SK_HELPER="$(BUILDDIR)/ssh-sk-helper" \
752 TEST_SSH_SFTPSERVER="$(BUILDDIR)/sftp-server" \
767 compat-tests: $(LIBCOMPAT)
768 (cd openbsd-compat/regress && $(MAKE))
771 if [ -f regress/Makefile ] && [ -r regress/Makefile ]; then \
779 @echo '"make send-survey".'
781 send-survey: survey
782 mail portable-survey@mindrot.org <survey