1SHELL=@SH@ 2 3AUTORECONF=autoreconf 4 5prefix=@prefix@ 6exec_prefix=@exec_prefix@ 7bindir=@bindir@ 8sbindir=@sbindir@ 9libexecdir=@libexecdir@ 10datadir=@datadir@ 11datarootdir=@datarootdir@ 12mandir=@mandir@ 13mansubdir=@mansubdir@ 14sysconfdir=@sysconfdir@ 15piddir=@piddir@ 16srcdir=@srcdir@ 17top_srcdir=@top_srcdir@ 18abs_top_srcdir=@abs_top_srcdir@ 19abs_top_builddir=@abs_top_builddir@ 20 21DESTDIR= 22VPATH=@srcdir@ 23SSH_PROGRAM=@bindir@/ssh 24ASKPASS_PROGRAM=$(libexecdir)/ssh-askpass 25SFTP_SERVER=$(libexecdir)/sftp-server 26SSH_KEYSIGN=$(libexecdir)/ssh-keysign 27SSH_PKCS11_HELPER=$(libexecdir)/ssh-pkcs11-helper 28SSH_SK_HELPER=$(libexecdir)/ssh-sk-helper 29PRIVSEP_PATH=@PRIVSEP_PATH@ 30SSH_PRIVSEP_USER=@SSH_PRIVSEP_USER@ 31STRIP_OPT=@STRIP_OPT@ 32TEST_SHELL=@TEST_SHELL@ 33BUILDDIR=@abs_top_builddir@ 34 35PATHS= -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)\" 44 45CC=@CC@ 46LD=@LD@ 47CFLAGS=@CFLAGS@ 48CFLAGS_NOPIE=@CFLAGS_NOPIE@ 49CPPFLAGS=-I. -I$(srcdir) @CPPFLAGS@ $(PATHS) @DEFS@ 50PICFLAG=@PICFLAG@ 51LIBS=@LIBS@ 52K5LIBS=@K5LIBS@ 53GSSLIBS=@GSSLIBS@ 54SSHDLIBS=@SSHDLIBS@ 55LIBEDIT=@LIBEDIT@ 56LIBFIDO2=@LIBFIDO2@ 57AR=@AR@ 58AWK=@AWK@ 59RANLIB=@RANLIB@ 60INSTALL=@INSTALL@ 61SED=@SED@ 62XAUTH_PATH=@XAUTH_PATH@ 63LDFLAGS=-L. -Lopenbsd-compat/ @LDFLAGS@ 64LDFLAGS_NOPIE=-L. -Lopenbsd-compat/ @LDFLAGS_NOPIE@ 65EXEEXT=@EXEEXT@ 66MANFMT=@MANFMT@ 67MKDIR_P=@MKDIR_P@ 68 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) 72 73XMSS_OBJS=\ 74 ssh-xmss.o \ 75 sshkey-xmss.o \ 76 xmss_commons.o \ 77 xmss_fast.o \ 78 xmss_hash.o \ 79 xmss_hash_address.o \ 80 xmss_wots.o 81 82LIBOPENSSH_OBJS=\ 83 ssh_api.o \ 84 ssherr.o \ 85 sshbuf.o \ 86 sshkey.o \ 87 sshbuf-getput-basic.o \ 88 sshbuf-misc.o \ 89 sshbuf-getput-crypto.o \ 90 krl.o \ 91 bitmap.o \ 92 ${XMSS_OBJS} 93 94LIBSSH_OBJS=${LIBOPENSSH_OBJS} \ 95 authfd.o authfile.o \ 96 canohost.o channels.o cipher.o cipher-aes.o cipher-aesctr.o \ 97 cipher-ctr.o cleanup.o \ 98 compat.o fatal.o hostfile.o \ 99 log.o match.o moduli.o nchan.o packet.o \ 100 readpass.o ttymodes.o xmalloc.o addr.o addrmatch.o \ 101 atomicio.o dispatch.o mac.o misc.o utf8.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 \ 104 msg.o progressmeter.o dns.o entropy.o gss-genr.o umac.o umac128.o \ 105 ssh-pkcs11.o smult_curve25519_ref.o \ 106 poly1305.o chacha.o cipher-chachapoly.o cipher-chachapoly-libcrypto.o \ 107 ssh-ed25519.o digest-openssl.o digest-libc.o \ 108 hmac.o sc25519.o ge25519.o fe25519.o ed25519.o verify.o hash.o \ 109 kex.o kexdh.o kexgex.o kexecdh.o kexc25519.o \ 110 kexgexc.o kexgexs.o \ 111 kexsntrup761x25519.o sntrup761.o kexgen.o \ 112 sftp-realpath.o platform-pledge.o platform-tracing.o platform-misc.o \ 113 sshbuf-io.o 114 115SKOBJS= ssh-sk-client.o 116 117SSHOBJS= ssh.o readconf.o clientloop.o sshtty.o \ 118 sshconnect.o sshconnect2.o mux.o $(SKOBJS) 119 120SSHDOBJS=sshd.o auth-rhosts.o auth-passwd.o \ 121 audit.o audit-bsm.o audit-linux.o platform.o \ 122 sshpty.o sshlogin.o servconf.o serverloop.o \ 123 auth.o auth2.o auth-options.o session.o \ 124 auth2-chall.o groupaccess.o \ 125 auth-bsdauth.o auth2-hostbased.o auth2-kbdint.o \ 126 auth2-none.o auth2-passwd.o auth2-pubkey.o \ 127 monitor.o monitor_wrap.o auth-krb5.o \ 128 auth2-gss.o gss-serv.o gss-serv-krb5.o \ 129 loginrec.o auth-pam.o auth-shadow.o auth-sia.o \ 130 srclimit.o sftp-server.o sftp-common.o \ 131 sandbox-null.o sandbox-rlimit.o sandbox-systrace.o sandbox-darwin.o \ 132 sandbox-seccomp-filter.o sandbox-capsicum.o sandbox-pledge.o \ 133 sandbox-solaris.o uidswap.o $(SKOBJS) 134 135SFTP_CLIENT_OBJS=sftp-common.o sftp-client.o sftp-glob.o 136 137SCP_OBJS= scp.o progressmeter.o $(SFTP_CLIENT_OBJS) 138 139SSHADD_OBJS= ssh-add.o $(SKOBJS) 140 141SSHAGENT_OBJS= ssh-agent.o ssh-pkcs11-client.o $(SKOBJS) 142 143SSHKEYGEN_OBJS= ssh-keygen.o sshsig.o $(SKOBJS) 144 145SSHKEYSIGN_OBJS=ssh-keysign.o readconf.o uidswap.o $(SKOBJS) 146 147P11HELPER_OBJS= ssh-pkcs11-helper.o ssh-pkcs11.o $(SKOBJS) 148 149SKHELPER_OBJS= ssh-sk-helper.o ssh-sk.o sk-usbhid.o 150 151SSHKEYSCAN_OBJS=ssh-keyscan.o $(SKOBJS) 152 153SFTPSERVER_OBJS=sftp-common.o sftp-server.o sftp-server-main.o 154 155SFTP_OBJS= sftp.o progressmeter.o $(SFTP_CLIENT_OBJS) 156 157MANPAGES = 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 158MANPAGES_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 159MANTYPE = @MANTYPE@ 160 161CONFIGFILES=sshd_config.out ssh_config.out moduli.out 162CONFIGFILES_IN=sshd_config ssh_config moduli 163 164PATHSUBS = \ 165 -e 's|/etc/ssh/ssh_config|$(sysconfdir)/ssh_config|g' \ 166 -e 's|/etc/ssh/ssh_known_hosts|$(sysconfdir)/ssh_known_hosts|g' \ 167 -e 's|/etc/ssh/sshd_config|$(sysconfdir)/sshd_config|g' \ 168 -e 's|/usr/libexec|$(libexecdir)|g' \ 169 -e 's|/etc/shosts.equiv|$(sysconfdir)/shosts.equiv|g' \ 170 -e 's|/etc/ssh/ssh_host_key|$(sysconfdir)/ssh_host_key|g' \ 171 -e 's|/etc/ssh/ssh_host_ecdsa_key|$(sysconfdir)/ssh_host_ecdsa_key|g' \ 172 -e 's|/etc/ssh/ssh_host_dsa_key|$(sysconfdir)/ssh_host_dsa_key|g' \ 173 -e 's|/etc/ssh/ssh_host_rsa_key|$(sysconfdir)/ssh_host_rsa_key|g' \ 174 -e 's|/etc/ssh/ssh_host_ed25519_key|$(sysconfdir)/ssh_host_ed25519_key|g' \ 175 -e 's|/var/run/sshd.pid|$(piddir)/sshd.pid|g' \ 176 -e 's|/etc/moduli|$(sysconfdir)/moduli|g' \ 177 -e 's|/etc/ssh/moduli|$(sysconfdir)/moduli|g' \ 178 -e 's|/etc/ssh/sshrc|$(sysconfdir)/sshrc|g' \ 179 -e 's|/usr/X11R6/bin/xauth|$(XAUTH_PATH)|g' \ 180 -e 's|/var/empty|$(PRIVSEP_PATH)|g' \ 181 -e 's|/usr/bin:/bin:/usr/sbin:/sbin|@user_path@|g' 182 183FIXPATHSCMD = $(SED) $(PATHSUBS) 184FIXALGORITHMSCMD= $(SHELL) $(srcdir)/fixalgorithms $(SED) \ 185 @UNSUPPORTED_ALGORITHMS@ 186 187all: configure-check $(CONFIGFILES) $(MANPAGES) $(TARGETS) 188 189$(LIBSSH_OBJS): Makefile.in config.h 190$(SSHOBJS): Makefile.in config.h 191$(SSHDOBJS): Makefile.in config.h 192configure-check: $(srcdir)/configure 193 194$(srcdir)/configure: configure.ac $(srcdir)/m4/*.m4 195 @echo "ERROR: configure is out of date; please run ${AUTORECONF} (and configure)" 1>&2 196 @exit 1 197 198.c.o: 199 $(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@ 200 201LIBCOMPAT=openbsd-compat/libopenbsd-compat.a 202$(LIBCOMPAT): always 203 (cd openbsd-compat && $(MAKE)) 204always: 205 206libssh.a: $(LIBSSH_OBJS) 207 $(AR) rv $@ $(LIBSSH_OBJS) 208 $(RANLIB) $@ 209 210ssh$(EXEEXT): $(LIBCOMPAT) libssh.a $(SSHOBJS) 211 $(LD) -o $@ $(SSHOBJS) $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS) $(GSSLIBS) 212 213sshd$(EXEEXT): libssh.a $(LIBCOMPAT) $(SSHDOBJS) 214 $(LD) -o $@ $(SSHDOBJS) $(LDFLAGS) -lssh -lopenbsd-compat $(SSHDLIBS) $(LIBS) $(GSSLIBS) $(K5LIBS) 215 216scp$(EXEEXT): $(LIBCOMPAT) libssh.a $(SCP_OBJS) 217 $(LD) -o $@ $(SCP_OBJS) $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS) 218 219ssh-add$(EXEEXT): $(LIBCOMPAT) libssh.a $(SSHADD_OBJS) 220 $(LD) -o $@ $(SSHADD_OBJS) $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS) 221 222ssh-agent$(EXEEXT): $(LIBCOMPAT) libssh.a $(SSHAGENT_OBJS) 223 $(LD) -o $@ $(SSHAGENT_OBJS) $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS) 224 225ssh-keygen$(EXEEXT): $(LIBCOMPAT) libssh.a $(SSHKEYGEN_OBJS) 226 $(LD) -o $@ $(SSHKEYGEN_OBJS) $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS) 227 228ssh-keysign$(EXEEXT): $(LIBCOMPAT) libssh.a $(SSHKEYSIGN_OBJS) 229 $(LD) -o $@ $(SSHKEYSIGN_OBJS) $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS) 230 231ssh-pkcs11-helper$(EXEEXT): $(LIBCOMPAT) libssh.a $(P11HELPER_OBJS) 232 $(LD) -o $@ $(P11HELPER_OBJS) $(LDFLAGS) -lssh -lopenbsd-compat -lssh -lopenbsd-compat $(LIBS) 233 234ssh-sk-helper$(EXEEXT): $(LIBCOMPAT) libssh.a $(SKHELPER_OBJS) 235 $(LD) -o $@ $(SKHELPER_OBJS) $(LDFLAGS) -lssh -lopenbsd-compat -lssh -lopenbsd-compat $(LIBS) $(LIBFIDO2) 236 237ssh-keyscan$(EXEEXT): $(LIBCOMPAT) libssh.a $(SSHKEYSCAN_OBJS) 238 $(LD) -o $@ $(SSHKEYSCAN_OBJS) $(LDFLAGS) -lssh -lopenbsd-compat -lssh $(LIBS) 239 240sftp-server$(EXEEXT): $(LIBCOMPAT) libssh.a $(SFTPSERVER_OBJS) 241 $(LD) -o $@ $(SFTPSERVER_OBJS) $(LDFLAGS) -lssh -lopenbsd-compat -lssh $(LIBS) 242 243sftp$(EXEEXT): $(LIBCOMPAT) libssh.a $(SFTP_OBJS) 244 $(LD) -o $@ $(SFTP_OBJS) $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS) $(LIBEDIT) 245 246# test driver for the loginrec code - not built by default 247logintest: logintest.o $(LIBCOMPAT) libssh.a loginrec.o 248 $(LD) -o $@ logintest.o $(LDFLAGS) loginrec.o -lopenbsd-compat -lssh $(LIBS) 249 250$(MANPAGES): $(MANPAGES_IN) 251 if test "$(MANTYPE)" = "cat"; then \ 252 manpage=$(srcdir)/`echo $@ | sed 's/\.[1-9]\.out$$/\.0/'`; \ 253 else \ 254 manpage=$(srcdir)/`echo $@ | sed 's/\.out$$//'`; \ 255 fi; \ 256 if test "$(MANTYPE)" = "man"; then \ 257 $(FIXPATHSCMD) $${manpage} | $(FIXALGORITHMSCMD) | \ 258 $(AWK) -f $(srcdir)/mdoc2man.awk > $@; \ 259 else \ 260 $(FIXPATHSCMD) $${manpage} | $(FIXALGORITHMSCMD) > $@; \ 261 fi 262 263$(CONFIGFILES): $(CONFIGFILES_IN) 264 conffile=`echo $@ | sed 's/.out$$//'`; \ 265 $(FIXPATHSCMD) $(srcdir)/$${conffile} > $@ 266 267# fake rule to stop make trying to compile moduli.o into a binary "moduli.o" 268moduli: 269 echo 270 271clean: regressclean 272 rm -f *.o *.lo *.a $(TARGETS) logintest config.cache config.log 273 rm -f *.out core survey 274 rm -f regress/check-perm$(EXEEXT) 275 rm -f regress/mkdtemp$(EXEEXT) 276 rm -f regress/unittests/test_helper/*.a 277 rm -f regress/unittests/test_helper/*.o 278 rm -f regress/unittests/authopt/*.o 279 rm -f regress/unittests/authopt/test_authopt$(EXEEXT) 280 rm -f regress/unittests/bitmap/*.o 281 rm -f regress/unittests/bitmap/test_bitmap$(EXEEXT) 282 rm -f regress/unittests/conversion/*.o 283 rm -f regress/unittests/conversion/test_conversion$(EXEEXT) 284 rm -f regress/unittests/hostkeys/*.o 285 rm -f regress/unittests/hostkeys/test_hostkeys$(EXEEXT) 286 rm -f regress/unittests/kex/*.o 287 rm -f regress/unittests/kex/test_kex$(EXEEXT) 288 rm -f regress/unittests/match/*.o 289 rm -f regress/unittests/match/test_match$(EXEEXT) 290 rm -f regress/unittests/misc/*.o 291 rm -f regress/unittests/misc/test_misc$(EXEEXT) 292 rm -f regress/unittests/sshbuf/*.o 293 rm -f regress/unittests/sshbuf/test_sshbuf$(EXEEXT) 294 rm -f regress/unittests/sshkey/*.o 295 rm -f regress/unittests/sshkey/test_sshkey$(EXEEXT) 296 rm -f regress/unittests/sshsig/*.o 297 rm -f regress/unittests/sshsig/test_sshsig$(EXEEXT) 298 rm -f regress/unittests/utf8/*.o 299 rm -f regress/unittests/utf8/test_utf8$(EXEEXT) 300 rm -f regress/misc/sk-dummy/*.o 301 rm -f regress/misc/sk-dummy/*.lo 302 rm -f regress/misc/sk-dummy/sk-dummy.so 303 (cd openbsd-compat && $(MAKE) clean) 304 305distclean: regressclean 306 rm -f *.o *.a $(TARGETS) logintest config.cache config.log 307 rm -f *.out core opensshd.init openssh.xml 308 rm -f Makefile buildpkg.sh config.h config.status 309 rm -f survey.sh openbsd-compat/regress/Makefile *~ 310 rm -rf autom4te.cache 311 rm -f regress/check-perm 312 rm -f regress/mkdtemp 313 rm -f regress/unittests/test_helper/*.a 314 rm -f regress/unittests/test_helper/*.o 315 rm -f regress/unittests/authopt/*.o 316 rm -f regress/unittests/authopt/test_authopt 317 rm -f regress/unittests/bitmap/*.o 318 rm -f regress/unittests/bitmap/test_bitmap 319 rm -f regress/unittests/conversion/*.o 320 rm -f regress/unittests/conversion/test_conversion 321 rm -f regress/unittests/hostkeys/*.o 322 rm -f regress/unittests/hostkeys/test_hostkeys 323 rm -f regress/unittests/kex/*.o 324 rm -f regress/unittests/kex/test_kex 325 rm -f regress/unittests/match/*.o 326 rm -f regress/unittests/match/test_match 327 rm -f regress/unittests/misc/*.o 328 rm -f regress/unittests/misc/test_misc 329 rm -f regress/unittests/sshbuf/*.o 330 rm -f regress/unittests/sshbuf/test_sshbuf 331 rm -f regress/unittests/sshkey/*.o 332 rm -f regress/unittests/sshkey/test_sshkey 333 rm -f regress/unittests/sshsig/*.o 334 rm -f regress/unittests/sshsig/test_sshsig 335 rm -f regress/unittests/utf8/*.o 336 rm -f regress/unittests/utf8/test_utf8 337 rm -f regress/misc/sk-dummy/*.o 338 rm -f regress/misc/sk-dummy/*.lo 339 rm -f regress/misc/sk-dummy/sk-dummy.so 340 (cd openbsd-compat && $(MAKE) distclean) 341 if test -d pkg ; then \ 342 rm -fr pkg ; \ 343 fi 344 345veryclean: distclean 346 rm -f configure config.h.in *.0 347 348cleandir: veryclean 349 350mrproper: veryclean 351 352realclean: veryclean 353 354catman-do: 355 @for f in $(MANPAGES_IN) ; do \ 356 base=`echo $$f | sed 's/\..*$$//'` ; \ 357 echo "$$f -> $$base.0" ; \ 358 $(MANFMT) $$f | cat -v | sed -e 's/.\^H//g' \ 359 >$$base.0 ; \ 360 done 361 362depend: depend-rebuild 363 rm -f .depend.bak 364 365depend-rebuild: 366 mv .depend .depend.old 367 rm -f config.h .depend 368 touch config.h .depend 369 makedepend -w1000 -Y. -f .depend *.c 2>/dev/null 370 (echo '# Automatically generated by makedepend.'; \ 371 echo '# Run "make depend" to rebuild.'; sort .depend ) >.depend.tmp 372 mv .depend.tmp .depend 373 rm -f .depend.bak 374 mv .depend.old .depend.bak 375 rm -f config.h 376 377depend-check: depend-rebuild 378 cmp .depend .depend.bak || (echo .depend stale && exit 1) 379 380distprep: catman-do depend-check 381 $(AUTORECONF) 382 -rm -rf autom4te.cache .depend.bak 383 384install: $(CONFIGFILES) $(MANPAGES) $(TARGETS) install-files install-sysconf host-key check-config 385install-nokeys: $(CONFIGFILES) $(MANPAGES) $(TARGETS) install-files install-sysconf 386install-nosysconf: $(CONFIGFILES) $(MANPAGES) $(TARGETS) install-files 387 388check-config: 389 -$(DESTDIR)$(sbindir)/sshd -t -f $(DESTDIR)$(sysconfdir)/sshd_config 390 391install-files: 392 $(MKDIR_P) $(DESTDIR)$(bindir) 393 $(MKDIR_P) $(DESTDIR)$(sbindir) 394 $(MKDIR_P) $(DESTDIR)$(mandir)/$(mansubdir)1 395 $(MKDIR_P) $(DESTDIR)$(mandir)/$(mansubdir)5 396 $(MKDIR_P) $(DESTDIR)$(mandir)/$(mansubdir)8 397 $(MKDIR_P) $(DESTDIR)$(libexecdir) 398 $(MKDIR_P) -m 0755 $(DESTDIR)$(PRIVSEP_PATH) 399 $(INSTALL) -m 0755 $(STRIP_OPT) ssh$(EXEEXT) $(DESTDIR)$(bindir)/ssh$(EXEEXT) 400 $(INSTALL) -m 0755 $(STRIP_OPT) scp$(EXEEXT) $(DESTDIR)$(bindir)/scp$(EXEEXT) 401 $(INSTALL) -m 0755 $(STRIP_OPT) ssh-add$(EXEEXT) $(DESTDIR)$(bindir)/ssh-add$(EXEEXT) 402 $(INSTALL) -m 0755 $(STRIP_OPT) ssh-agent$(EXEEXT) $(DESTDIR)$(bindir)/ssh-agent$(EXEEXT) 403 $(INSTALL) -m 0755 $(STRIP_OPT) ssh-keygen$(EXEEXT) $(DESTDIR)$(bindir)/ssh-keygen$(EXEEXT) 404 $(INSTALL) -m 0755 $(STRIP_OPT) ssh-keyscan$(EXEEXT) $(DESTDIR)$(bindir)/ssh-keyscan$(EXEEXT) 405 $(INSTALL) -m 0755 $(STRIP_OPT) sshd$(EXEEXT) $(DESTDIR)$(sbindir)/sshd$(EXEEXT) 406 $(INSTALL) -m 4711 $(STRIP_OPT) ssh-keysign$(EXEEXT) $(DESTDIR)$(SSH_KEYSIGN)$(EXEEXT) 407 $(INSTALL) -m 0755 $(STRIP_OPT) ssh-pkcs11-helper$(EXEEXT) $(DESTDIR)$(SSH_PKCS11_HELPER)$(EXEEXT) 408 $(INSTALL) -m 0755 $(STRIP_OPT) ssh-sk-helper$(EXEEXT) $(DESTDIR)$(SSH_SK_HELPER)$(EXEEXT) 409 $(INSTALL) -m 0755 $(STRIP_OPT) sftp$(EXEEXT) $(DESTDIR)$(bindir)/sftp$(EXEEXT) 410 $(INSTALL) -m 0755 $(STRIP_OPT) sftp-server$(EXEEXT) $(DESTDIR)$(SFTP_SERVER)$(EXEEXT) 411 $(INSTALL) -m 644 ssh.1.out $(DESTDIR)$(mandir)/$(mansubdir)1/ssh.1 412 $(INSTALL) -m 644 scp.1.out $(DESTDIR)$(mandir)/$(mansubdir)1/scp.1 413 $(INSTALL) -m 644 ssh-add.1.out $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-add.1 414 $(INSTALL) -m 644 ssh-agent.1.out $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-agent.1 415 $(INSTALL) -m 644 ssh-keygen.1.out $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-keygen.1 416 $(INSTALL) -m 644 ssh-keyscan.1.out $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-keyscan.1 417 $(INSTALL) -m 644 moduli.5.out $(DESTDIR)$(mandir)/$(mansubdir)5/moduli.5 418 $(INSTALL) -m 644 sshd_config.5.out $(DESTDIR)$(mandir)/$(mansubdir)5/sshd_config.5 419 $(INSTALL) -m 644 ssh_config.5.out $(DESTDIR)$(mandir)/$(mansubdir)5/ssh_config.5 420 $(INSTALL) -m 644 sshd.8.out $(DESTDIR)$(mandir)/$(mansubdir)8/sshd.8 421 $(INSTALL) -m 644 sftp.1.out $(DESTDIR)$(mandir)/$(mansubdir)1/sftp.1 422 $(INSTALL) -m 644 sftp-server.8.out $(DESTDIR)$(mandir)/$(mansubdir)8/sftp-server.8 423 $(INSTALL) -m 644 ssh-keysign.8.out $(DESTDIR)$(mandir)/$(mansubdir)8/ssh-keysign.8 424 $(INSTALL) -m 644 ssh-pkcs11-helper.8.out $(DESTDIR)$(mandir)/$(mansubdir)8/ssh-pkcs11-helper.8 425 $(INSTALL) -m 644 ssh-sk-helper.8.out $(DESTDIR)$(mandir)/$(mansubdir)8/ssh-sk-helper.8 426 427install-sysconf: 428 $(MKDIR_P) $(DESTDIR)$(sysconfdir) 429 @if [ ! -f $(DESTDIR)$(sysconfdir)/ssh_config ]; then \ 430 $(INSTALL) -m 644 ssh_config.out $(DESTDIR)$(sysconfdir)/ssh_config; \ 431 else \ 432 echo "$(DESTDIR)$(sysconfdir)/ssh_config already exists, install will not overwrite"; \ 433 fi 434 @if [ ! -f $(DESTDIR)$(sysconfdir)/sshd_config ]; then \ 435 $(INSTALL) -m 644 sshd_config.out $(DESTDIR)$(sysconfdir)/sshd_config; \ 436 else \ 437 echo "$(DESTDIR)$(sysconfdir)/sshd_config already exists, install will not overwrite"; \ 438 fi 439 @if [ ! -f $(DESTDIR)$(sysconfdir)/moduli ]; then \ 440 if [ -f $(DESTDIR)$(sysconfdir)/primes ]; then \ 441 echo "moving $(DESTDIR)$(sysconfdir)/primes to $(DESTDIR)$(sysconfdir)/moduli"; \ 442 mv "$(DESTDIR)$(sysconfdir)/primes" "$(DESTDIR)$(sysconfdir)/moduli"; \ 443 else \ 444 $(INSTALL) -m 644 moduli.out $(DESTDIR)$(sysconfdir)/moduli; \ 445 fi ; \ 446 else \ 447 echo "$(DESTDIR)$(sysconfdir)/moduli already exists, install will not overwrite"; \ 448 fi 449 450host-key: ssh-keygen$(EXEEXT) 451 @if [ -z "$(DESTDIR)" ] ; then \ 452 ./ssh-keygen -A; \ 453 fi 454 455host-key-force: ssh-keygen$(EXEEXT) ssh$(EXEEXT) 456 ./ssh-keygen -t dsa -f $(DESTDIR)$(sysconfdir)/ssh_host_dsa_key -N "" 457 ./ssh-keygen -t rsa -f $(DESTDIR)$(sysconfdir)/ssh_host_rsa_key -N "" 458 ./ssh-keygen -t ed25519 -f $(DESTDIR)$(sysconfdir)/ssh_host_ed25519_key -N "" 459 if ./ssh -Q key | grep ecdsa >/dev/null ; then \ 460 ./ssh-keygen -t ecdsa -f $(DESTDIR)$(sysconfdir)/ssh_host_ecdsa_key -N ""; \ 461 fi 462 463uninstallall: uninstall 464 -rm -f $(DESTDIR)$(sysconfdir)/ssh_config 465 -rm -f $(DESTDIR)$(sysconfdir)/sshd_config 466 -rmdir $(DESTDIR)$(sysconfdir) 467 -rmdir $(DESTDIR)$(bindir) 468 -rmdir $(DESTDIR)$(sbindir) 469 -rmdir $(DESTDIR)$(mandir)/$(mansubdir)1 470 -rmdir $(DESTDIR)$(mandir)/$(mansubdir)8 471 -rmdir $(DESTDIR)$(mandir) 472 -rmdir $(DESTDIR)$(libexecdir) 473 474uninstall: 475 -rm -f $(DESTDIR)$(bindir)/ssh$(EXEEXT) 476 -rm -f $(DESTDIR)$(bindir)/scp$(EXEEXT) 477 -rm -f $(DESTDIR)$(bindir)/ssh-add$(EXEEXT) 478 -rm -f $(DESTDIR)$(bindir)/ssh-agent$(EXEEXT) 479 -rm -f $(DESTDIR)$(bindir)/ssh-keygen$(EXEEXT) 480 -rm -f $(DESTDIR)$(bindir)/ssh-keyscan$(EXEEXT) 481 -rm -f $(DESTDIR)$(bindir)/sftp$(EXEEXT) 482 -rm -f $(DESTDIR)$(sbindir)/sshd$(EXEEXT) 483 -rm -r $(DESTDIR)$(SFTP_SERVER)$(EXEEXT) 484 -rm -f $(DESTDIR)$(SSH_KEYSIGN)$(EXEEXT) 485 -rm -f $(DESTDIR)$(SSH_PKCS11_HELPER)$(EXEEXT) 486 -rm -f $(DESTDIR)$(SSH_SK_HELPER)$(EXEEXT) 487 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/ssh.1 488 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/scp.1 489 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-add.1 490 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-agent.1 491 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-keygen.1 492 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/sftp.1 493 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-keyscan.1 494 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)8/sshd.8 495 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)8/sftp-server.8 496 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)8/ssh-keysign.8 497 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)8/ssh-pkcs11-helper.8 498 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)8/ssh-sk-helper.8 499 500regress-prep: 501 $(MKDIR_P) `pwd`/regress/unittests/test_helper 502 $(MKDIR_P) `pwd`/regress/unittests/authopt 503 $(MKDIR_P) `pwd`/regress/unittests/bitmap 504 $(MKDIR_P) `pwd`/regress/unittests/conversion 505 $(MKDIR_P) `pwd`/regress/unittests/hostkeys 506 $(MKDIR_P) `pwd`/regress/unittests/kex 507 $(MKDIR_P) `pwd`/regress/unittests/match 508 $(MKDIR_P) `pwd`/regress/unittests/misc 509 $(MKDIR_P) `pwd`/regress/unittests/sshbuf 510 $(MKDIR_P) `pwd`/regress/unittests/sshkey 511 $(MKDIR_P) `pwd`/regress/unittests/sshsig 512 $(MKDIR_P) `pwd`/regress/unittests/utf8 513 $(MKDIR_P) `pwd`/regress/misc/sk-dummy 514 [ -f `pwd`/regress/Makefile ] || \ 515 ln -s `cd $(srcdir) && pwd`/regress/Makefile `pwd`/regress/Makefile 516 517REGRESSLIBS=libssh.a $(LIBCOMPAT) 518 519regress/modpipe$(EXEEXT): $(srcdir)/regress/modpipe.c $(REGRESSLIBS) 520 $(CC) $(CFLAGS) $(CPPFLAGS) -o $@ $(srcdir)/regress/modpipe.c \ 521 $(LDFLAGS) -lssh -lopenbsd-compat -lssh -lopenbsd-compat $(LIBS) 522 523regress/setuid-allowed$(EXEEXT): $(srcdir)/regress/setuid-allowed.c $(REGRESSLIBS) 524 $(CC) $(CFLAGS) $(CPPFLAGS) -o $@ $(srcdir)/regress/setuid-allowed.c \ 525 $(LDFLAGS) -lssh -lopenbsd-compat -lssh -lopenbsd-compat $(LIBS) 526 527regress/netcat$(EXEEXT): $(srcdir)/regress/netcat.c $(REGRESSLIBS) 528 $(CC) $(CFLAGS) $(CPPFLAGS) -o $@ $(srcdir)/regress/netcat.c \ 529 $(LDFLAGS) -lssh -lopenbsd-compat -lssh -lopenbsd-compat $(LIBS) 530 531regress/check-perm$(EXEEXT): $(srcdir)/regress/check-perm.c $(REGRESSLIBS) 532 $(CC) $(CFLAGS) $(CPPFLAGS) -o $@ $(srcdir)/regress/check-perm.c \ 533 $(LDFLAGS) -lssh -lopenbsd-compat -lssh -lopenbsd-compat $(LIBS) 534 535regress/mkdtemp$(EXEEXT): $(srcdir)/regress/mkdtemp.c $(REGRESSLIBS) 536 $(CC) $(CFLAGS) $(CPPFLAGS) -o $@ $(srcdir)/regress/mkdtemp.c \ 537 $(LDFLAGS) -lssh -lopenbsd-compat -lssh -lopenbsd-compat $(LIBS) 538 539UNITTESTS_TEST_HELPER_OBJS=\ 540 regress/unittests/test_helper/test_helper.o \ 541 regress/unittests/test_helper/fuzz.o 542 543regress/unittests/test_helper/libtest_helper.a: ${UNITTESTS_TEST_HELPER_OBJS} 544 $(AR) rv $@ $(UNITTESTS_TEST_HELPER_OBJS) 545 $(RANLIB) $@ 546 547UNITTESTS_TEST_SSHBUF_OBJS=\ 548 regress/unittests/sshbuf/tests.o \ 549 regress/unittests/sshbuf/test_sshbuf.o \ 550 regress/unittests/sshbuf/test_sshbuf_getput_basic.o \ 551 regress/unittests/sshbuf/test_sshbuf_getput_crypto.o \ 552 regress/unittests/sshbuf/test_sshbuf_misc.o \ 553 regress/unittests/sshbuf/test_sshbuf_fuzz.o \ 554 regress/unittests/sshbuf/test_sshbuf_getput_fuzz.o \ 555 regress/unittests/sshbuf/test_sshbuf_fixed.o 556 557regress/unittests/sshbuf/test_sshbuf$(EXEEXT): ${UNITTESTS_TEST_SSHBUF_OBJS} \ 558 regress/unittests/test_helper/libtest_helper.a libssh.a 559 $(LD) -o $@ $(LDFLAGS) $(UNITTESTS_TEST_SSHBUF_OBJS) \ 560 regress/unittests/test_helper/libtest_helper.a \ 561 -lssh -lopenbsd-compat -lssh -lopenbsd-compat $(LIBS) 562 563UNITTESTS_TEST_SSHKEY_OBJS=\ 564 regress/unittests/sshkey/test_fuzz.o \ 565 regress/unittests/sshkey/tests.o \ 566 regress/unittests/sshkey/common.o \ 567 regress/unittests/sshkey/test_file.o \ 568 regress/unittests/sshkey/test_sshkey.o \ 569 $(SKOBJS) 570 571regress/unittests/sshkey/test_sshkey$(EXEEXT): ${UNITTESTS_TEST_SSHKEY_OBJS} \ 572 regress/unittests/test_helper/libtest_helper.a libssh.a 573 $(LD) -o $@ $(LDFLAGS) $(UNITTESTS_TEST_SSHKEY_OBJS) \ 574 regress/unittests/test_helper/libtest_helper.a \ 575 -lssh -lopenbsd-compat -lssh -lopenbsd-compat $(LIBS) 576 577UNITTESTS_TEST_SSHSIG_OBJS=\ 578 sshsig.o \ 579 regress/unittests/sshsig/tests.o \ 580 $(SKOBJS) 581 582regress/unittests/sshsig/test_sshsig$(EXEEXT): ${UNITTESTS_TEST_SSHSIG_OBJS} \ 583 regress/unittests/test_helper/libtest_helper.a libssh.a 584 $(LD) -o $@ $(LDFLAGS) $(UNITTESTS_TEST_SSHSIG_OBJS) \ 585 regress/unittests/test_helper/libtest_helper.a \ 586 -lssh -lopenbsd-compat -lssh -lopenbsd-compat $(LIBS) 587 588UNITTESTS_TEST_BITMAP_OBJS=\ 589 regress/unittests/bitmap/tests.o 590 591regress/unittests/bitmap/test_bitmap$(EXEEXT): ${UNITTESTS_TEST_BITMAP_OBJS} \ 592 regress/unittests/test_helper/libtest_helper.a libssh.a 593 $(LD) -o $@ $(LDFLAGS) $(UNITTESTS_TEST_BITMAP_OBJS) \ 594 regress/unittests/test_helper/libtest_helper.a \ 595 -lssh -lopenbsd-compat -lssh -lopenbsd-compat $(LIBS) 596 597UNITTESTS_TEST_AUTHOPT_OBJS=\ 598 regress/unittests/authopt/tests.o \ 599 auth-options.o \ 600 $(SKOBJS) 601 602regress/unittests/authopt/test_authopt$(EXEEXT): \ 603 ${UNITTESTS_TEST_AUTHOPT_OBJS} \ 604 regress/unittests/test_helper/libtest_helper.a libssh.a 605 $(LD) -o $@ $(LDFLAGS) $(UNITTESTS_TEST_AUTHOPT_OBJS) \ 606 regress/unittests/test_helper/libtest_helper.a \ 607 -lssh -lopenbsd-compat -lssh -lopenbsd-compat $(LIBS) 608 609UNITTESTS_TEST_CONVERSION_OBJS=\ 610 regress/unittests/conversion/tests.o 611 612regress/unittests/conversion/test_conversion$(EXEEXT): \ 613 ${UNITTESTS_TEST_CONVERSION_OBJS} \ 614 regress/unittests/test_helper/libtest_helper.a libssh.a 615 $(LD) -o $@ $(LDFLAGS) $(UNITTESTS_TEST_CONVERSION_OBJS) \ 616 regress/unittests/test_helper/libtest_helper.a \ 617 -lssh -lopenbsd-compat -lssh -lopenbsd-compat $(LIBS) 618 619UNITTESTS_TEST_KEX_OBJS=\ 620 regress/unittests/kex/tests.o \ 621 regress/unittests/kex/test_kex.o \ 622 $(SKOBJS) 623 624regress/unittests/kex/test_kex$(EXEEXT): ${UNITTESTS_TEST_KEX_OBJS} \ 625 regress/unittests/test_helper/libtest_helper.a libssh.a 626 $(LD) -o $@ $(LDFLAGS) $(UNITTESTS_TEST_KEX_OBJS) \ 627 regress/unittests/test_helper/libtest_helper.a \ 628 -lssh -lopenbsd-compat -lssh -lopenbsd-compat $(LIBS) 629 630UNITTESTS_TEST_HOSTKEYS_OBJS=\ 631 regress/unittests/hostkeys/tests.o \ 632 regress/unittests/hostkeys/test_iterate.o \ 633 $(SKOBJS) 634 635regress/unittests/hostkeys/test_hostkeys$(EXEEXT): \ 636 ${UNITTESTS_TEST_HOSTKEYS_OBJS} \ 637 regress/unittests/test_helper/libtest_helper.a libssh.a 638 $(LD) -o $@ $(LDFLAGS) $(UNITTESTS_TEST_HOSTKEYS_OBJS) \ 639 regress/unittests/test_helper/libtest_helper.a \ 640 -lssh -lopenbsd-compat -lssh -lopenbsd-compat $(LIBS) 641 642UNITTESTS_TEST_MATCH_OBJS=\ 643 regress/unittests/match/tests.o 644 645regress/unittests/match/test_match$(EXEEXT): \ 646 ${UNITTESTS_TEST_MATCH_OBJS} \ 647 regress/unittests/test_helper/libtest_helper.a libssh.a 648 $(LD) -o $@ $(LDFLAGS) $(UNITTESTS_TEST_MATCH_OBJS) \ 649 regress/unittests/test_helper/libtest_helper.a \ 650 -lssh -lopenbsd-compat -lssh -lopenbsd-compat $(LIBS) 651 652UNITTESTS_TEST_MISC_OBJS=\ 653 regress/unittests/misc/tests.o \ 654 regress/unittests/misc/test_parse.o \ 655 regress/unittests/misc/test_expand.o \ 656 regress/unittests/misc/test_convtime.o \ 657 regress/unittests/misc/test_argv.o \ 658 regress/unittests/misc/test_strdelim.o \ 659 regress/unittests/misc/test_hpdelim.o 660 661regress/unittests/misc/test_misc$(EXEEXT): \ 662 ${UNITTESTS_TEST_MISC_OBJS} \ 663 regress/unittests/test_helper/libtest_helper.a libssh.a 664 $(LD) -o $@ $(LDFLAGS) $(UNITTESTS_TEST_MISC_OBJS) \ 665 regress/unittests/test_helper/libtest_helper.a \ 666 -lssh -lopenbsd-compat -lssh -lopenbsd-compat $(LIBS) 667 668UNITTESTS_TEST_UTF8_OBJS=\ 669 regress/unittests/utf8/tests.o 670 671regress/unittests/utf8/test_utf8$(EXEEXT): \ 672 ${UNITTESTS_TEST_UTF8_OBJS} \ 673 regress/unittests/test_helper/libtest_helper.a libssh.a 674 $(LD) -o $@ $(LDFLAGS) $(UNITTESTS_TEST_UTF8_OBJS) \ 675 regress/unittests/test_helper/libtest_helper.a \ 676 -lssh -lopenbsd-compat -lssh -lopenbsd-compat $(LIBS) 677 678# These all need to be compiled -fPIC, so they are treated differently. 679SK_DUMMY_OBJS=\ 680 regress/misc/sk-dummy/sk-dummy.lo \ 681 regress/misc/sk-dummy/fatal.lo \ 682 ed25519.lo hash.lo ge25519.lo fe25519.lo sc25519.lo verify.lo 683 684SK_DUMMY_LIBRARY=@SK_DUMMY_LIBRARY@ 685 686.c.lo: Makefile.in config.h 687 $(CC) $(CFLAGS_NOPIE) $(PICFLAG) $(CPPFLAGS) -c $< -o $@ 688 689regress/misc/sk-dummy/sk-dummy.so: $(SK_DUMMY_OBJS) 690 $(CC) $(CFLAGS) $(CPPFLAGS) $(PICFLAG) -shared -o $@ $(SK_DUMMY_OBJS) \ 691 -L. -Lopenbsd-compat -lopenbsd-compat $(LDFLAGS_NOPIE) $(LIBS) 692 693regress-binaries: regress-prep $(LIBCOMPAT) \ 694 regress/modpipe$(EXEEXT) \ 695 regress/setuid-allowed$(EXEEXT) \ 696 regress/netcat$(EXEEXT) \ 697 regress/check-perm$(EXEEXT) \ 698 regress/mkdtemp$(EXEEXT) \ 699 $(SK_DUMMY_LIBRARY) 700 701regress-unit-binaries: regress-prep $(REGRESSLIBS) \ 702 regress/unittests/authopt/test_authopt$(EXEEXT) \ 703 regress/unittests/bitmap/test_bitmap$(EXEEXT) \ 704 regress/unittests/conversion/test_conversion$(EXEEXT) \ 705 regress/unittests/hostkeys/test_hostkeys$(EXEEXT) \ 706 regress/unittests/kex/test_kex$(EXEEXT) \ 707 regress/unittests/match/test_match$(EXEEXT) \ 708 regress/unittests/misc/test_misc$(EXEEXT) \ 709 regress/unittests/sshbuf/test_sshbuf$(EXEEXT) \ 710 regress/unittests/sshkey/test_sshkey$(EXEEXT) \ 711 regress/unittests/sshsig/test_sshsig$(EXEEXT) \ 712 regress/unittests/utf8/test_utf8$(EXEEXT) 713 714tests: file-tests t-exec interop-tests unit 715 echo all tests passed 716 717unit: regress-unit-binaries 718 cd $(srcdir)/regress || exit $$?; \ 719 $(MAKE) \ 720 .CURDIR="$(abs_top_srcdir)/regress" \ 721 .OBJDIR="$(BUILDDIR)/regress" \ 722 OBJ="$(BUILDDIR)/regress" \ 723 $@ && echo $@ tests passed 724 725interop-tests t-exec file-tests: regress-prep regress-binaries $(TARGETS) 726 cd $(srcdir)/regress || exit $$?; \ 727 EGREP='@EGREP@' \ 728 $(MAKE) \ 729 .CURDIR="$(abs_top_srcdir)/regress" \ 730 .OBJDIR="$(BUILDDIR)/regress" \ 731 BUILDDIR="$(BUILDDIR)" \ 732 OBJ="$(BUILDDIR)/regress" \ 733 PATH="$(BUILDDIR):$${PATH}" \ 734 TEST_ENV=MALLOC_OPTIONS="@TEST_MALLOC_OPTIONS@" \ 735 TEST_MALLOC_OPTIONS="@TEST_MALLOC_OPTIONS@" \ 736 TEST_SSH_SCP="$(BUILDDIR)/scp" \ 737 TEST_SSH_SSH="$(BUILDDIR)/ssh" \ 738 TEST_SSH_SSHD="$(BUILDDIR)/sshd" \ 739 TEST_SSH_SSHAGENT="$(BUILDDIR)/ssh-agent" \ 740 TEST_SSH_SSHADD="$(BUILDDIR)/ssh-add" \ 741 TEST_SSH_SSHKEYGEN="$(BUILDDIR)/ssh-keygen" \ 742 TEST_SSH_SSHPKCS11HELPER="$(BUILDDIR)/ssh-pkcs11-helper" \ 743 TEST_SSH_SSHKEYSCAN="$(BUILDDIR)/ssh-keyscan" \ 744 TEST_SSH_SFTP="$(BUILDDIR)/sftp" \ 745 TEST_SSH_PKCS11_HELPER="$(BUILDDIR)/ssh-pkcs11-helper" \ 746 TEST_SSH_SK_HELPER="$(BUILDDIR)/ssh-sk-helper" \ 747 TEST_SSH_SFTPSERVER="$(BUILDDIR)/sftp-server" \ 748 TEST_SSH_MODULI_FILE="$(abs_top_srcdir)/moduli" \ 749 TEST_SSH_PLINK="plink" \ 750 TEST_SSH_PUTTYGEN="puttygen" \ 751 TEST_SSH_CONCH="conch" \ 752 TEST_SSH_IPV6="@TEST_SSH_IPV6@" \ 753 TEST_SSH_UTF8="@TEST_SSH_UTF8@" \ 754 TEST_SHELL="$(TEST_SHELL)" \ 755 EXEEXT="$(EXEEXT)" \ 756 $@ && echo all $@ passed 757 758compat-tests: $(LIBCOMPAT) 759 (cd openbsd-compat/regress && $(MAKE)) 760 761regressclean: 762 if [ -f regress/Makefile ] && [ -r regress/Makefile ]; then \ 763 (cd regress && $(MAKE) clean) \ 764 fi 765 766survey: survey.sh ssh 767 @$(SHELL) ./survey.sh > survey 768 @echo 'The survey results have been placed in the file "survey" in the' 769 @echo 'current directory. Please review the file then send with' 770 @echo '"make send-survey".' 771 772send-survey: survey 773 mail portable-survey@mindrot.org <survey 774 775package: $(CONFIGFILES) $(MANPAGES) $(TARGETS) 776 if [ "@MAKE_PACKAGE_SUPPORTED@" = yes ]; then \ 777 sh buildpkg.sh; \ 778 fi 779 780# @DEPEND@ 781