1# $Id: Makefile.in,v 1.257 2004/02/18 03:35:11 djm Exp $ 2 3# uncomment if you run a non bourne compatable shell. Ie. csh 4#SHELL = @SH@ 5 6AUTORECONF=autoreconf 7 8prefix=@prefix@ 9exec_prefix=@exec_prefix@ 10bindir=@bindir@ 11sbindir=@sbindir@ 12libexecdir=@libexecdir@ 13datadir=@datadir@ 14mandir=@mandir@ 15mansubdir=@mansubdir@ 16sysconfdir=@sysconfdir@ 17piddir=@piddir@ 18srcdir=@srcdir@ 19top_srcdir=@top_srcdir@ 20 21DESTDIR= 22VPATH=@srcdir@ 23SSH_PROGRAM=@bindir@/ssh 24ASKPASS_PROGRAM=$(libexecdir)/ssh-askpass 25SFTP_SERVER=$(libexecdir)/sftp-server 26SSH_KEYSIGN=$(libexecdir)/ssh-keysign 27RAND_HELPER=$(libexecdir)/ssh-rand-helper 28PRIVSEP_PATH=@PRIVSEP_PATH@ 29SSH_PRIVSEP_USER=@SSH_PRIVSEP_USER@ 30STRIP_OPT=@STRIP_OPT@ 31 32PATHS= -DSSHDIR=\"$(sysconfdir)\" \ 33 -D_PATH_SSH_PROGRAM=\"$(SSH_PROGRAM)\" \ 34 -D_PATH_SSH_ASKPASS_DEFAULT=\"$(ASKPASS_PROGRAM)\" \ 35 -D_PATH_SFTP_SERVER=\"$(SFTP_SERVER)\" \ 36 -D_PATH_SSH_KEY_SIGN=\"$(SSH_KEYSIGN)\" \ 37 -D_PATH_SSH_PIDDIR=\"$(piddir)\" \ 38 -D_PATH_PRIVSEP_CHROOT_DIR=\"$(PRIVSEP_PATH)\" \ 39 -DSSH_RAND_HELPER=\"$(RAND_HELPER)\" 40 41CC=@CC@ 42LD=@LD@ 43CFLAGS=@CFLAGS@ 44CPPFLAGS=-I. -I$(srcdir) @CPPFLAGS@ $(PATHS) @DEFS@ 45LIBS=@LIBS@ 46LIBPAM=@LIBPAM@ 47LIBWRAP=@LIBWRAP@ 48AR=@AR@ 49AWK=@AWK@ 50RANLIB=@RANLIB@ 51INSTALL=@INSTALL@ 52PERL=@PERL@ 53SED=@SED@ 54ENT=@ENT@ 55XAUTH_PATH=@XAUTH_PATH@ 56LDFLAGS=-L. -Lopenbsd-compat/ @LDFLAGS@ 57EXEEXT=@EXEEXT@ 58 59INSTALL_SSH_PRNG_CMDS=@INSTALL_SSH_PRNG_CMDS@ 60INSTALL_SSH_RAND_HELPER=@INSTALL_SSH_RAND_HELPER@ 61 62TARGETS=ssh$(EXEEXT) sshd$(EXEEXT) ssh-add$(EXEEXT) ssh-keygen$(EXEEXT) ssh-keyscan${EXEEXT} ssh-keysign${EXEEXT} ssh-agent$(EXEEXT) scp$(EXEEXT) ssh-rand-helper${EXEEXT} sftp-server$(EXEEXT) sftp$(EXEEXT) 63 64LIBSSH_OBJS=acss.o authfd.o authfile.o bufaux.o buffer.o \ 65 canohost.o channels.o cipher.o cipher-acss.o cipher-aes.o \ 66 cipher-bf1.o cipher-ctr.o cipher-3des1.o cleanup.o \ 67 compat.o compress.o crc32.o deattack.o fatal.o hostfile.o \ 68 log.o match.o moduli.o mpaux.o nchan.o packet.o \ 69 readpass.o rsa.o tildexpand.o ttymodes.o xmalloc.o \ 70 atomicio.o key.o dispatch.o kex.o mac.o uuencode.o misc.o \ 71 rijndael.o ssh-dss.o ssh-rsa.o dh.o kexdh.o kexgex.o \ 72 kexdhc.o kexgexc.o scard.o msg.o progressmeter.o dns.o \ 73 entropy.o scard-opensc.o gss-genr.o 74 75SSHOBJS= ssh.o readconf.o clientloop.o sshtty.o \ 76 sshconnect.o sshconnect1.o sshconnect2.o 77 78SSHDOBJS=sshd.o auth-rhosts.o auth-passwd.o auth-rsa.o auth-rh-rsa.o \ 79 sshpty.o sshlogin.o servconf.o serverloop.o uidswap.o \ 80 auth.o auth1.o auth2.o auth-options.o session.o \ 81 auth-chall.o auth2-chall.o groupaccess.o \ 82 auth-skey.o auth-bsdauth.o auth2-hostbased.o auth2-kbdint.o \ 83 auth2-none.o auth2-passwd.o auth2-pubkey.o \ 84 monitor_mm.o monitor.o monitor_wrap.o monitor_fdpass.o \ 85 kexdhs.o kexgexs.o \ 86 auth-krb5.o \ 87 auth2-gss.o gss-serv.o gss-serv-krb5.o \ 88 loginrec.o auth-pam.o auth-shadow.o auth-sia.o md5crypt.o 89 90MANPAGES = 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-rand-helper.8.out ssh-keysign.8.out sshd_config.5.out ssh_config.5.out 91MANPAGES_IN = scp.1 ssh-add.1 ssh-agent.1 ssh-keygen.1 ssh-keyscan.1 ssh.1 sshd.8 sftp-server.8 sftp.1 ssh-rand-helper.8 ssh-keysign.8 sshd_config.5 ssh_config.5 92MANTYPE = @MANTYPE@ 93 94CONFIGFILES=sshd_config.out ssh_config.out moduli.out 95CONFIGFILES_IN=sshd_config ssh_config moduli 96 97PATHSUBS = \ 98 -e 's|/etc/ssh/ssh_prng_cmds|$(sysconfdir)/ssh_prng_cmds|g' \ 99 -e 's|/etc/ssh/ssh_config|$(sysconfdir)/ssh_config|g' \ 100 -e 's|/etc/ssh/ssh_known_hosts|$(sysconfdir)/ssh_known_hosts|g' \ 101 -e 's|/etc/ssh/sshd_config|$(sysconfdir)/sshd_config|g' \ 102 -e 's|/usr/libexec|$(libexecdir)|g' \ 103 -e 's|/etc/shosts.equiv|$(sysconfdir)/shosts.equiv|g' \ 104 -e 's|/etc/ssh/ssh_host_key|$(sysconfdir)/ssh_host_key|g' \ 105 -e 's|/etc/ssh/ssh_host_dsa_key|$(sysconfdir)/ssh_host_dsa_key|g' \ 106 -e 's|/etc/ssh/ssh_host_rsa_key|$(sysconfdir)/ssh_host_rsa_key|g' \ 107 -e 's|/var/run/sshd.pid|$(piddir)/sshd.pid|g' \ 108 -e 's|/etc/ssh/moduli|$(sysconfdir)/moduli|g' \ 109 -e 's|/etc/sshrc|$(sysconfdir)/sshrc|g' \ 110 -e 's|/usr/X11R6/bin/xauth|$(XAUTH_PATH)|g' \ 111 -e 's|/var/empty|$(PRIVSEP_PATH)|g' \ 112 -e 's|/usr/bin:/bin:/usr/sbin:/sbin|@user_path@|g' 113 114FIXPATHSCMD = $(SED) $(PATHSUBS) 115 116all: $(CONFIGFILES) ssh_prng_cmds.out $(MANPAGES) $(TARGETS) 117 118$(LIBSSH_OBJS): Makefile.in config.h 119$(SSHOBJS): Makefile.in config.h 120$(SSHDOBJS): Makefile.in config.h 121 122.c.o: 123 $(CC) $(CFLAGS) $(CPPFLAGS) -c $< 124 125LIBCOMPAT=openbsd-compat/libopenbsd-compat.a 126$(LIBCOMPAT): always 127 (cd openbsd-compat && $(MAKE)) 128always: 129 130libssh.a: $(LIBSSH_OBJS) 131 $(AR) rv $@ $(LIBSSH_OBJS) 132 $(RANLIB) $@ 133 134ssh$(EXEEXT): $(LIBCOMPAT) libssh.a $(SSHOBJS) 135 $(LD) -o $@ $(SSHOBJS) $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS) 136 137sshd$(EXEEXT): libssh.a $(LIBCOMPAT) $(SSHDOBJS) 138 $(LD) -o $@ $(SSHDOBJS) $(LDFLAGS) -lssh -lopenbsd-compat $(LIBWRAP) $(LIBPAM) $(LIBS) 139 140scp$(EXEEXT): $(LIBCOMPAT) libssh.a scp.o progressmeter.o 141 $(LD) -o $@ scp.o progressmeter.o $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS) 142 143ssh-add$(EXEEXT): $(LIBCOMPAT) libssh.a ssh-add.o 144 $(LD) -o $@ ssh-add.o $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS) 145 146ssh-agent$(EXEEXT): $(LIBCOMPAT) libssh.a ssh-agent.o 147 $(LD) -o $@ ssh-agent.o $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS) 148 149ssh-keygen$(EXEEXT): $(LIBCOMPAT) libssh.a ssh-keygen.o 150 $(LD) -o $@ ssh-keygen.o $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS) 151 152ssh-keysign$(EXEEXT): $(LIBCOMPAT) libssh.a ssh-keysign.o 153 $(LD) -o $@ ssh-keysign.o readconf.o $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS) 154 155ssh-keyscan$(EXEEXT): $(LIBCOMPAT) libssh.a ssh-keyscan.o 156 $(LD) -o $@ ssh-keyscan.o $(LDFLAGS) -lssh -lopenbsd-compat -lssh $(LIBS) 157 158sftp-server$(EXEEXT): $(LIBCOMPAT) libssh.a sftp.o sftp-common.o sftp-server.o 159 $(LD) -o $@ sftp-server.o sftp-common.o $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS) 160 161sftp$(EXEEXT): $(LIBCOMPAT) libssh.a sftp.o sftp-client.o sftp-common.o sftp-glob.o progressmeter.o 162 $(LD) -o $@ progressmeter.o sftp.o sftp-client.o sftp-common.o sftp-glob.o $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS) 163 164ssh-rand-helper${EXEEXT}: $(LIBCOMPAT) libssh.a ssh-rand-helper.o 165 $(LD) -o $@ ssh-rand-helper.o $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS) 166 167# test driver for the loginrec code - not built by default 168logintest: logintest.o $(LIBCOMPAT) libssh.a loginrec.o 169 $(LD) -o $@ logintest.o $(LDFLAGS) loginrec.o -lopenbsd-compat -lssh $(LIBS) 170 171$(MANPAGES): $(MANPAGES_IN) 172 if test "$(MANTYPE)" = "cat"; then \ 173 manpage=$(srcdir)/`echo $@ | sed 's/\.[1-9]\.out$$/\.0/'`; \ 174 else \ 175 manpage=$(srcdir)/`echo $@ | sed 's/\.out$$//'`; \ 176 fi; \ 177 if test "$(MANTYPE)" = "man"; then \ 178 $(FIXPATHSCMD) $${manpage} | $(AWK) -f $(srcdir)/mdoc2man.awk > $@; \ 179 else \ 180 $(FIXPATHSCMD) $${manpage} > $@; \ 181 fi 182 183$(CONFIGFILES): $(CONFIGFILES_IN) 184 conffile=`echo $@ | sed 's/.out$$//'`; \ 185 $(FIXPATHSCMD) $(srcdir)/$${conffile} > $@ 186 187ssh_prng_cmds.out: ssh_prng_cmds 188 if test ! -z "$(INSTALL_SSH_PRNG_CMDS)"; then \ 189 $(PERL) $(srcdir)/fixprogs ssh_prng_cmds $(ENT); \ 190 fi 191 192# fake rule to stop make trying to compile moduli.o into a binary "modulo" 193moduli: 194 echo 195 196clean: regressclean 197 rm -f *.o *.a $(TARGETS) logintest config.cache config.log 198 rm -f *.out core 199 (cd openbsd-compat && $(MAKE) clean) 200 201distclean: regressclean 202 rm -f *.o *.a $(TARGETS) logintest config.cache config.log 203 rm -f *.out core 204 rm -f Makefile config.h config.status ssh_prng_cmds *~ 205 rm -rf autom4te.cache 206 (cd openbsd-compat && $(MAKE) distclean) 207 (cd scard && $(MAKE) distclean) 208 209veryclean: distclean 210 rm -f configure config.h.in *.0 211 212mrproper: veryclean 213 214realclean: veryclean 215 216catman-do: 217 @for f in $(MANPAGES_IN) ; do \ 218 base=`echo $$f | sed 's/\..*$$//'` ; \ 219 echo "$$f -> $$base.0" ; \ 220 nroff -mandoc $$f | cat -v | sed -e 's/.\^H//g' \ 221 >$$base.0 ; \ 222 done 223 224distprep: catman-do 225 $(AUTORECONF) 226 -rm -rf autom4te.cache 227 (cd scard && $(MAKE) -f Makefile.in distprep) 228 229install: $(CONFIGFILES) ssh_prng_cmds.out $(MANPAGES) $(TARGETS) install-files host-key check-config 230install-nokeys: $(CONFIGFILES) ssh_prng_cmds.out $(MANPAGES) $(TARGETS) install-files 231 232check-config: 233 -$(DESTDIR)$(sbindir)/sshd -t -f $(DESTDIR)$(sysconfdir)/sshd_config 234 235scard-install: 236 (cd scard && $(MAKE) DESTDIR=$(DESTDIR) install) 237 238install-files: scard-install 239 $(srcdir)/mkinstalldirs $(DESTDIR)$(bindir) 240 $(srcdir)/mkinstalldirs $(DESTDIR)$(sbindir) 241 $(srcdir)/mkinstalldirs $(DESTDIR)$(mandir) 242 $(srcdir)/mkinstalldirs $(DESTDIR)$(datadir) 243 $(srcdir)/mkinstalldirs $(DESTDIR)$(mandir)/$(mansubdir)1 244 $(srcdir)/mkinstalldirs $(DESTDIR)$(mandir)/$(mansubdir)5 245 $(srcdir)/mkinstalldirs $(DESTDIR)$(mandir)/$(mansubdir)8 246 $(srcdir)/mkinstalldirs $(DESTDIR)$(libexecdir) 247 (umask 022 ; $(srcdir)/mkinstalldirs $(DESTDIR)$(PRIVSEP_PATH)) 248 $(INSTALL) -m 0755 $(STRIP_OPT) ssh $(DESTDIR)$(bindir)/ssh 249 $(INSTALL) -m 0755 $(STRIP_OPT) scp $(DESTDIR)$(bindir)/scp 250 $(INSTALL) -m 0755 $(STRIP_OPT) ssh-add $(DESTDIR)$(bindir)/ssh-add 251 $(INSTALL) -m 0755 $(STRIP_OPT) ssh-agent $(DESTDIR)$(bindir)/ssh-agent 252 $(INSTALL) -m 0755 $(STRIP_OPT) ssh-keygen $(DESTDIR)$(bindir)/ssh-keygen 253 $(INSTALL) -m 0755 $(STRIP_OPT) ssh-keyscan $(DESTDIR)$(bindir)/ssh-keyscan 254 $(INSTALL) -m 0755 $(STRIP_OPT) sshd $(DESTDIR)$(sbindir)/sshd 255 if test ! -z "$(INSTALL_SSH_RAND_HELPER)" ; then \ 256 $(INSTALL) -m 0755 $(STRIP_OPT) ssh-rand-helper $(DESTDIR)$(libexecdir)/ssh-rand-helper ; \ 257 fi 258 $(INSTALL) -m 4711 $(STRIP_OPT) ssh-keysign $(DESTDIR)$(SSH_KEYSIGN) 259 $(INSTALL) -m 0755 $(STRIP_OPT) sftp $(DESTDIR)$(bindir)/sftp 260 $(INSTALL) -m 0755 $(STRIP_OPT) sftp-server $(DESTDIR)$(SFTP_SERVER) 261 $(INSTALL) -m 644 ssh.1.out $(DESTDIR)$(mandir)/$(mansubdir)1/ssh.1 262 $(INSTALL) -m 644 scp.1.out $(DESTDIR)$(mandir)/$(mansubdir)1/scp.1 263 $(INSTALL) -m 644 ssh-add.1.out $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-add.1 264 $(INSTALL) -m 644 ssh-agent.1.out $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-agent.1 265 $(INSTALL) -m 644 ssh-keygen.1.out $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-keygen.1 266 $(INSTALL) -m 644 ssh-keyscan.1.out $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-keyscan.1 267 $(INSTALL) -m 644 sshd_config.5.out $(DESTDIR)$(mandir)/$(mansubdir)5/sshd_config.5 268 $(INSTALL) -m 644 ssh_config.5.out $(DESTDIR)$(mandir)/$(mansubdir)5/ssh_config.5 269 $(INSTALL) -m 644 sshd.8.out $(DESTDIR)$(mandir)/$(mansubdir)8/sshd.8 270 if [ ! -z "$(INSTALL_SSH_RAND_HELPER)" ]; then \ 271 $(INSTALL) -m 644 ssh-rand-helper.8.out $(DESTDIR)$(mandir)/$(mansubdir)8/ssh-rand-helper.8 ; \ 272 fi 273 $(INSTALL) -m 644 sftp.1.out $(DESTDIR)$(mandir)/$(mansubdir)1/sftp.1 274 $(INSTALL) -m 644 sftp-server.8.out $(DESTDIR)$(mandir)/$(mansubdir)8/sftp-server.8 275 $(INSTALL) -m 644 ssh-keysign.8.out $(DESTDIR)$(mandir)/$(mansubdir)8/ssh-keysign.8 276 -rm -f $(DESTDIR)$(bindir)/slogin 277 ln -s ./ssh$(EXEEXT) $(DESTDIR)$(bindir)/slogin 278 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/slogin.1 279 ln -s ./ssh.1 $(DESTDIR)$(mandir)/$(mansubdir)1/slogin.1 280 if [ ! -d $(DESTDIR)$(sysconfdir) ]; then \ 281 $(srcdir)/mkinstalldirs $(DESTDIR)$(sysconfdir); \ 282 fi 283 @if [ ! -f $(DESTDIR)$(sysconfdir)/ssh_config ]; then \ 284 $(INSTALL) -m 644 ssh_config.out $(DESTDIR)$(sysconfdir)/ssh_config; \ 285 else \ 286 echo "$(DESTDIR)$(sysconfdir)/ssh_config already exists, install will not overwrite"; \ 287 fi 288 @if [ ! -f $(DESTDIR)$(sysconfdir)/sshd_config ]; then \ 289 $(INSTALL) -m 644 sshd_config.out $(DESTDIR)$(sysconfdir)/sshd_config; \ 290 else \ 291 echo "$(DESTDIR)$(sysconfdir)/sshd_config already exists, install will not overwrite"; \ 292 fi 293 @if [ -f ssh_prng_cmds -a ! -z "$(INSTALL_SSH_PRNG_CMDS)" ]; then \ 294 if [ ! -f $(DESTDIR)$(sysconfdir)/ssh_prng_cmds ] ; then \ 295 $(INSTALL) -m 644 ssh_prng_cmds.out $(DESTDIR)$(sysconfdir)/ssh_prng_cmds; \ 296 else \ 297 echo "$(DESTDIR)$(sysconfdir)/ssh_prng_cmds already exists, install will not overwrite"; \ 298 fi ; \ 299 fi 300 @if [ ! -f $(DESTDIR)$(sysconfdir)/moduli ]; then \ 301 if [ -f $(DESTDIR)$(sysconfdir)/primes ]; then \ 302 echo "moving $(DESTDIR)$(sysconfdir)/primes to $(DESTDIR)$(sysconfdir)/moduli"; \ 303 mv "$(DESTDIR)$(sysconfdir)/primes" "$(DESTDIR)$(sysconfdir)/moduli"; \ 304 else \ 305 $(INSTALL) -m 644 moduli.out $(DESTDIR)$(sysconfdir)/moduli; \ 306 fi ; \ 307 else \ 308 echo "$(DESTDIR)$(sysconfdir)/moduli already exists, install will not overwrite"; \ 309 fi 310 311host-key: ssh-keygen$(EXEEXT) 312 @if [ -z "$(DESTDIR)" ] ; then \ 313 if [ -f "$(DESTDIR)$(sysconfdir)/ssh_host_key" ] ; then \ 314 echo "$(DESTDIR)$(sysconfdir)/ssh_host_key already exists, skipping." ; \ 315 else \ 316 ./ssh-keygen -t rsa1 -f $(DESTDIR)$(sysconfdir)/ssh_host_key -N "" ; \ 317 fi ; \ 318 if [ -f $(DESTDIR)$(sysconfdir)/ssh_host_dsa_key ] ; then \ 319 echo "$(DESTDIR)$(sysconfdir)/ssh_host_dsa_key already exists, skipping." ; \ 320 else \ 321 ./ssh-keygen -t dsa -f $(DESTDIR)$(sysconfdir)/ssh_host_dsa_key -N "" ; \ 322 fi ; \ 323 if [ -f $(DESTDIR)$(sysconfdir)/ssh_host_rsa_key ] ; then \ 324 echo "$(DESTDIR)$(sysconfdir)/ssh_host_rsa_key already exists, skipping." ; \ 325 else \ 326 ./ssh-keygen -t rsa -f $(DESTDIR)$(sysconfdir)/ssh_host_rsa_key -N "" ; \ 327 fi ; \ 328 fi ; 329 330host-key-force: ssh-keygen$(EXEEXT) 331 ./ssh-keygen -t rsa1 -f $(DESTDIR)$(sysconfdir)/ssh_host_key -N "" 332 ./ssh-keygen -t dsa -f $(DESTDIR)$(sysconfdir)/ssh_host_dsa_key -N "" 333 ./ssh-keygen -t rsa -f $(DESTDIR)$(sysconfdir)/ssh_host_rsa_key -N "" 334 335uninstallall: uninstall 336 -rm -f $(DESTDIR)$(sysconfdir)/ssh_config 337 -rm -f $(DESTDIR)$(sysconfdir)/sshd_config 338 -rm -f $(DESTDIR)$(sysconfdir)/ssh_prng_cmds 339 -rmdir $(DESTDIR)$(sysconfdir) 340 -rmdir $(DESTDIR)$(bindir) 341 -rmdir $(DESTDIR)$(sbindir) 342 -rmdir $(DESTDIR)$(mandir)/$(mansubdir)1 343 -rmdir $(DESTDIR)$(mandir)/$(mansubdir)8 344 -rmdir $(DESTDIR)$(mandir) 345 -rmdir $(DESTDIR)$(libexecdir) 346 347uninstall: 348 -rm -f $(DESTDIR)$(bindir)/slogin 349 -rm -f $(DESTDIR)$(bindir)/ssh$(EXEEXT) 350 -rm -f $(DESTDIR)$(bindir)/scp$(EXEEXT) 351 -rm -f $(DESTDIR)$(bindir)/ssh-add$(EXEEXT) 352 -rm -f $(DESTDIR)$(bindir)/ssh-agent$(EXEEXT) 353 -rm -f $(DESTDIR)$(bindir)/ssh-keygen$(EXEEXT) 354 -rm -f $(DESTDIR)$(bindir)/ssh-keyscan$(EXEEXT) 355 -rm -f $(DESTDIR)$(bindir)/sftp$(EXEEXT) 356 -rm -f $(DESTDIR)$(sbindir)/sshd$(EXEEXT) 357 -rm -r $(DESTDIR)$(SFTP_SERVER)$(EXEEXT) 358 -rm -f $(DESTDIR)$(SSH_KEYSIGN)$(EXEEXT) 359 -rm -f $(DESTDIR)$(RAND_HELPER)$(EXEEXT) 360 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/ssh.1 361 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/scp.1 362 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-add.1 363 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-agent.1 364 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-keygen.1 365 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/sftp.1 366 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-keyscan.1 367 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)8/sshd.8 368 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)8/ssh-rand-helper.8 369 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)8/sftp-server.8 370 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)8/ssh-keysign.8 371 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/slogin.1 372 373tests: $(TARGETS) 374 BUILDDIR=`pwd`; \ 375 [ -d `pwd`/regress ] || mkdir -p `pwd`/regress; \ 376 [ -f `pwd`/regress/Makefile ] || \ 377 ln -s $(srcdir)/regress/Makefile `pwd`/regress/Makefile ; \ 378 TEST_SHELL="@TEST_MINUS_S_SH@"; \ 379 TEST_SSH_SSH="$${BUILDDIR}/ssh"; \ 380 TEST_SSH_SSHD="$${BUILDDIR}/sshd"; \ 381 TEST_SSH_SSHAGENT="$${BUILDDIR}/ssh-agent"; \ 382 TEST_SSH_SSHADD="$${BUILDDIR}/ssh-add"; \ 383 TEST_SSH_SSHKEYGEN="$${BUILDDIR}/ssh-keygen"; \ 384 TEST_SSH_SSHKEYSCAN="$${BUILDDIR}/ssh-keyscan"; \ 385 TEST_SSH_SFTP="$${BUILDDIR}/sftp"; \ 386 TEST_SSH_SFTPSERVER="$${BUILDDIR}/sftp-server"; \ 387 cd $(srcdir)/regress || exit $$?; \ 388 $(MAKE) \ 389 .OBJDIR="$${BUILDDIR}/regress" \ 390 .CURDIR="`pwd`" \ 391 BUILDDIR="$${BUILDDIR}" \ 392 OBJ="$${BUILDDIR}/regress/" \ 393 PATH="$${BUILDDIR}:$${PATH}" \ 394 TEST_SHELL="$${TEST_SHELL}" \ 395 TEST_SSH_SSH="$${TEST_SSH_SSH}" \ 396 TEST_SSH_SSHD="$${TEST_SSH_SSHD}" \ 397 TEST_SSH_SSHAGENT="$${TEST_SSH_SSHAGENT}" \ 398 TEST_SSH_SSHADD="$${TEST_SSH_SSHADD}" \ 399 TEST_SSH_SSHKEYGEN="$${TEST_SSH_SSHKEYGEN}" \ 400 TEST_SSH_SSHKEYSCAN="$${TEST_SSH_SSHKEYSCAN}" \ 401 TEST_SSH_SFTP="$${TEST_SSH_SFTP}" \ 402 TEST_SSH_SFTPSERVER="$${TEST_SSH_SFTPSERVER}" \ 403 EXEEXT="$(EXEEXT)" \ 404 $@ 405 406regressclean: 407 if [ -f regress/Makefile -a -r regress/Makefile ]; then \ 408 (cd regress && $(MAKE) clean) \ 409 fi 410