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