1 # $Id: Makefile.in,v 1.318 2011/01/14 03:47:40 djm Exp $
3 # uncomment if you run a non bourne compatable shell. Ie. csh
9 exec_prefix=@
exec_prefix@
12 libexecdir
=@libexecdir@
14 datarootdir
=@datarootdir@
17 sysconfdir
=@sysconfdir@
20 top_srcdir
=@top_srcdir@
24 SSH_PROGRAM
=@
bindir@
/ssh
25 ASKPASS_PROGRAM
=$(libexecdir
)/ssh-askpass
26 SFTP_SERVER
=$(libexecdir
)/sftp-server
27 SSH_KEYSIGN
=$(libexecdir
)/ssh-keysign
28 SSH_PKCS11_HELPER
=$(libexecdir
)/ssh-pkcs11-helper
29 RAND_HELPER
=$(libexecdir
)/ssh-rand-helper
30 PRIVSEP_PATH
=@PRIVSEP_PATH@
31 SSH_PRIVSEP_USER
=@SSH_PRIVSEP_USER@
34 PATHS
= -DSSHDIR
=\"$(sysconfdir
)\" \
35 -D_PATH_SSH_PROGRAM
=\"$(SSH_PROGRAM
)\" \
36 -D_PATH_SSH_ASKPASS_DEFAULT
=\"$(ASKPASS_PROGRAM
)\" \
37 -D_PATH_SFTP_SERVER
=\"$(SFTP_SERVER
)\" \
38 -D_PATH_SSH_KEY_SIGN
=\"$(SSH_KEYSIGN
)\" \
39 -D_PATH_SSH_PKCS11_HELPER
=\"$(SSH_PKCS11_HELPER
)\" \
40 -D_PATH_SSH_PIDDIR
=\"$(piddir
)\" \
41 -D_PATH_PRIVSEP_CHROOT_DIR
=\"$(PRIVSEP_PATH
)\" \
42 -DSSH_RAND_HELPER
=\"$(RAND_HELPER
)\"
47 CPPFLAGS
=-I.
-I
$(srcdir) @CPPFLAGS@
$(PATHS
) @DEFS@
58 XAUTH_PATH
=@XAUTH_PATH@
59 LDFLAGS
=-L.
-Lopenbsd-compat
/ @LDFLAGS@
63 INSTALL_SSH_PRNG_CMDS
=@INSTALL_SSH_PRNG_CMDS@
64 INSTALL_SSH_RAND_HELPER
=@INSTALL_SSH_RAND_HELPER@
66 TARGETS
=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
) ssh-rand-helper
${EXEEXT} sftp-server
$(EXEEXT
) sftp
$(EXEEXT
)
68 LIBSSH_OBJS
=acss.o authfd.o authfile.o bufaux.o bufbn.o buffer.o \
69 canohost.o channels.o cipher.o cipher-acss.o cipher-aes.o \
70 cipher-bf1.o cipher-ctr.o cipher-3des1.o cleanup.o \
71 compat.o compress.o crc32.o deattack.o fatal.o hostfile.o \
72 log.o match.o md-sha256.o moduli.o nchan.o packet.o \
73 readpass.o rsa.o ttymodes.o xmalloc.o addrmatch.o \
74 atomicio.o key.o dispatch.o kex.o mac.o uidswap.o uuencode.o misc.o \
75 monitor_fdpass.o rijndael.o ssh-dss.o ssh-ecdsa.o ssh-rsa.o dh.o \
76 kexdh.o kexgex.o kexdhc.o kexgexc.o bufec.o kexecdh.o kexecdhc.o \
77 msg.o progressmeter.o dns.o entropy.o gss-genr.o umac.o jpake.o \
78 schnorr.o ssh-pkcs11.o
80 SSHOBJS
= ssh.o readconf.o clientloop.o sshtty.o \
81 sshconnect.o sshconnect1.o sshconnect2.o mux.o \
82 roaming_common.o roaming_client.o
84 SSHDOBJS
=sshd.o auth-rhosts.o auth-passwd.o auth-rsa.o auth-rh-rsa.o \
85 sshpty.o sshlogin.o servconf.o serverloop.o \
86 auth.o auth1.o auth2.o auth-options.o session.o \
87 auth-chall.o auth2-chall.o groupaccess.o \
88 auth-skey.o auth-bsdauth.o auth2-hostbased.o auth2-kbdint.o \
89 auth2-none.o auth2-passwd.o auth2-pubkey.o auth2-jpake.o \
90 monitor_mm.o monitor.o monitor_wrap.o kexdhs.o kexgexs.o kexecdhs.o \
92 auth2-gss.o gss-serv.o gss-serv-krb5.o \
93 loginrec.o auth-pam.o auth-shadow.o auth-sia.o md5crypt.o \
94 audit.o audit-bsm.o platform.o sftp-server.o sftp-common.o \
95 roaming_common.o roaming_serv.o
97 MANPAGES
= 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 ssh-pkcs11-helper
.8.out sshd_config
.5.out ssh_config
.5.out
98 MANPAGES_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 ssh-pkcs11-helper
.8 sshd_config
.5 ssh_config
.5
101 CONFIGFILES
=sshd_config.out ssh_config.out moduli.out
102 CONFIGFILES_IN
=sshd_config ssh_config moduli
105 -e
's|/etc/ssh/ssh_prng_cmds|$(sysconfdir)/ssh_prng_cmds|g' \
106 -e
's|/etc/ssh/ssh_config|$(sysconfdir)/ssh_config|g' \
107 -e
's|/etc/ssh/ssh_known_hosts|$(sysconfdir)/ssh_known_hosts|g' \
108 -e
's|/etc/ssh/sshd_config|$(sysconfdir)/sshd_config|g' \
109 -e
's|/usr/libexec|$(libexecdir)|g' \
110 -e
's|/etc/shosts.equiv|$(sysconfdir)/shosts.equiv|g' \
111 -e
's|/etc/ssh/ssh_host_key|$(sysconfdir)/ssh_host_key|g' \
112 -e
's|/etc/ssh/ssh_host_ecdsa_key|$(sysconfdir)/ssh_host_ecdsa_key|g' \
113 -e
's|/etc/ssh/ssh_host_dsa_key|$(sysconfdir)/ssh_host_dsa_key|g' \
114 -e
's|/etc/ssh/ssh_host_rsa_key|$(sysconfdir)/ssh_host_rsa_key|g' \
115 -e
's|/var/run/sshd.pid|$(piddir)/sshd.pid|g' \
116 -e
's|/etc/moduli|$(sysconfdir)/moduli|g' \
117 -e
's|/etc/ssh/moduli|$(sysconfdir)/moduli|g' \
118 -e
's|/etc/ssh/sshrc|$(sysconfdir)/sshrc|g' \
119 -e
's|/usr/X11R6/bin/xauth|$(XAUTH_PATH)|g' \
120 -e
's|/var/empty|$(PRIVSEP_PATH)|g' \
121 -e
's|/usr/bin:/bin:/usr/sbin:/sbin|@user_path@|g'
123 FIXPATHSCMD
= $(SED
) $(PATHSUBS
)
125 all: $(CONFIGFILES
) ssh_prng_cmds.out
$(MANPAGES
) $(TARGETS
)
127 $(LIBSSH_OBJS
): Makefile.in config.h
128 $(SSHOBJS
): Makefile.in config.h
129 $(SSHDOBJS
): Makefile.in config.h
132 $(CC
) $(CFLAGS
) $(CPPFLAGS
) -c
$<
134 LIBCOMPAT
=openbsd-compat
/libopenbsd-compat.a
136 (cd openbsd-compat
&& $(MAKE
))
139 libssh.a
: $(LIBSSH_OBJS
)
140 $(AR
) rv
$@
$(LIBSSH_OBJS
)
143 ssh
$(EXEEXT
): $(LIBCOMPAT
) libssh.a
$(SSHOBJS
)
144 $(LD
) -o
$@
$(SSHOBJS
) $(LDFLAGS
) -lssh
-lopenbsd-compat
$(LIBS
)
146 sshd
$(EXEEXT
): libssh.a
$(LIBCOMPAT
) $(SSHDOBJS
)
147 $(LD
) -o
$@
$(SSHDOBJS
) $(LDFLAGS
) -lssh
-lopenbsd-compat
$(SSHDLIBS
) $(LIBS
)
149 scp
$(EXEEXT
): $(LIBCOMPAT
) libssh.a scp.o progressmeter.o
150 $(LD
) -o
$@ scp.o progressmeter.o bufaux.o
$(LDFLAGS
) -lssh
-lopenbsd-compat
$(LIBS
)
152 ssh-add
$(EXEEXT
): $(LIBCOMPAT
) libssh.a ssh-add.o
153 $(LD
) -o
$@ ssh-add.o
$(LDFLAGS
) -lssh
-lopenbsd-compat
$(LIBS
)
155 ssh-agent
$(EXEEXT
): $(LIBCOMPAT
) libssh.a ssh-agent.o ssh-pkcs11-client.o
156 $(LD
) -o
$@ ssh-agent.o ssh-pkcs11-client.o
$(LDFLAGS
) -lssh
-lopenbsd-compat
$(LIBS
)
158 ssh-keygen
$(EXEEXT
): $(LIBCOMPAT
) libssh.a ssh-keygen.o
159 $(LD
) -o
$@ ssh-keygen.o
$(LDFLAGS
) -lssh
-lopenbsd-compat
$(LIBS
)
161 ssh-keysign
$(EXEEXT
): $(LIBCOMPAT
) libssh.a ssh-keysign.o roaming_dummy.o readconf.o
162 $(LD
) -o
$@ ssh-keysign.o readconf.o roaming_dummy.o
$(LDFLAGS
) -lssh
-lopenbsd-compat
$(LIBS
)
164 ssh-pkcs11-helper
$(EXEEXT
): $(LIBCOMPAT
) libssh.a ssh-pkcs11-helper.o ssh-pkcs11.o
165 $(LD
) -o
$@ ssh-pkcs11-helper.o ssh-pkcs11.o
$(LDFLAGS
) -lssh
-lopenbsd-compat
-lssh
-lopenbsd-compat
$(LIBS
)
167 ssh-keyscan
$(EXEEXT
): $(LIBCOMPAT
) libssh.a ssh-keyscan.o roaming_dummy.o
168 $(LD
) -o
$@ ssh-keyscan.o roaming_dummy.o
$(LDFLAGS
) -lssh
-lopenbsd-compat
-lssh
$(LIBS
)
170 sftp-server
$(EXEEXT
): $(LIBCOMPAT
) libssh.a sftp.o sftp-common.o sftp-server.o sftp-server-main.o
171 $(LD
) -o
$@ sftp-server.o sftp-common.o sftp-server-main.o
$(LDFLAGS
) -lssh
-lopenbsd-compat
$(LIBS
)
173 sftp
$(EXEEXT
): $(LIBCOMPAT
) libssh.a sftp.o sftp-client.o sftp-common.o sftp-glob.o progressmeter.o
174 $(LD
) -o
$@ progressmeter.o sftp.o sftp-client.o sftp-common.o sftp-glob.o
$(LDFLAGS
) -lssh
-lopenbsd-compat
$(LIBS
) $(LIBEDIT
)
176 ssh-rand-helper
${EXEEXT}: $(LIBCOMPAT
) libssh.a ssh-rand-helper.o
177 $(LD
) -o
$@ ssh-rand-helper.o
$(LDFLAGS
) -lssh
-lopenbsd-compat
$(LIBS
)
179 # test driver for the loginrec code - not built by default
180 logintest
: logintest.o
$(LIBCOMPAT
) libssh.a loginrec.o
181 $(LD
) -o
$@ logintest.o
$(LDFLAGS
) loginrec.o
-lopenbsd-compat
-lssh
$(LIBS
)
183 $(MANPAGES
): $(MANPAGES_IN
)
184 if
test "$(MANTYPE)" = "cat"; then \
185 manpage
=$(srcdir)/`echo $@ | sed 's/\.[1-9]\.out$$/\.0/'`; \
187 manpage
=$(srcdir)/`echo $@ | sed 's/\.out$$//'`; \
189 if
test "$(MANTYPE)" = "man"; then \
190 $(FIXPATHSCMD
) $${manpage} |
$(AWK
) -f
$(srcdir)/mdoc2man.awk
> $@
; \
192 $(FIXPATHSCMD
) $${manpage} > $@
; \
195 $(CONFIGFILES
): $(CONFIGFILES_IN
)
196 conffile
=`echo $@ | sed 's/.out$$//'`; \
197 $(FIXPATHSCMD
) $(srcdir)/$${conffile} > $@
199 ssh_prng_cmds.out
: ssh_prng_cmds
200 if
test ! -z
"$(INSTALL_SSH_PRNG_CMDS)"; then \
201 $(PERL
) $(srcdir)/fixprogs ssh_prng_cmds
$(ENT
); \
204 # fake rule to stop make trying to compile moduli.o into a binary "moduli.o"
209 rm -f
*.o
*.a
$(TARGETS
) logintest config.cache config.log
210 rm -f
*.out core survey
211 (cd openbsd-compat
&& $(MAKE
) clean)
213 distclean: regressclean
214 rm -f
*.o
*.a
$(TARGETS
) logintest config.cache config.log
215 rm -f
*.out core opensshd.init openssh.xml
216 rm -f Makefile buildpkg.sh config.h config.status ssh_prng_cmds
217 rm -f survey.sh openbsd-compat
/regress
/Makefile
*~
218 rm -rf autom4te.cache
219 (cd openbsd-compat
&& $(MAKE
) distclean)
220 if
test -d pkg
; then \
225 rm -f configure config.h.in
*.0
232 @for f in
$(MANPAGES_IN
) ; do \
233 base
=`echo $$f | sed 's/\..*$$//'` ; \
234 echo
"$$f -> $$base.0" ; \
235 $(MANFMT
) $$f | cat
-v | sed
-e
's/.\^H//g' \
241 -rm -rf autom4te.cache
243 install: $(CONFIGFILES
) ssh_prng_cmds.out
$(MANPAGES
) $(TARGETS
) install-files install-sysconf host-key check-config
244 install-nokeys
: $(CONFIGFILES
) ssh_prng_cmds.out
$(MANPAGES
) $(TARGETS
) install-files install-sysconf
245 install-nosysconf
: $(CONFIGFILES
) ssh_prng_cmds.out
$(MANPAGES
) $(TARGETS
) install-files
248 -$(DESTDIR
)$(sbindir
)/sshd
-t
-f
$(DESTDIR
)$(sysconfdir
)/sshd_config
251 $(srcdir)/mkinstalldirs
$(DESTDIR
)$(bindir)
252 $(srcdir)/mkinstalldirs
$(DESTDIR
)$(sbindir
)
253 $(srcdir)/mkinstalldirs
$(DESTDIR
)$(mandir)
254 $(srcdir)/mkinstalldirs
$(DESTDIR
)$(mandir)/$(mansubdir
)1
255 $(srcdir)/mkinstalldirs
$(DESTDIR
)$(mandir)/$(mansubdir
)5
256 $(srcdir)/mkinstalldirs
$(DESTDIR
)$(mandir)/$(mansubdir
)8
257 $(srcdir)/mkinstalldirs
$(DESTDIR
)$(libexecdir
)
258 (umask
022 ; $(srcdir)/mkinstalldirs
$(DESTDIR
)$(PRIVSEP_PATH
))
259 $(INSTALL
) -m
0755 $(STRIP_OPT
) ssh
$(EXEEXT
) $(DESTDIR
)$(bindir)/ssh
$(EXEEXT
)
260 $(INSTALL
) -m
0755 $(STRIP_OPT
) scp
$(EXEEXT
) $(DESTDIR
)$(bindir)/scp
$(EXEEXT
)
261 $(INSTALL
) -m
0755 $(STRIP_OPT
) ssh-add
$(EXEEXT
) $(DESTDIR
)$(bindir)/ssh-add
$(EXEEXT
)
262 $(INSTALL
) -m
0755 $(STRIP_OPT
) ssh-agent
$(EXEEXT
) $(DESTDIR
)$(bindir)/ssh-agent
$(EXEEXT
)
263 $(INSTALL
) -m
0755 $(STRIP_OPT
) ssh-keygen
$(EXEEXT
) $(DESTDIR
)$(bindir)/ssh-keygen
$(EXEEXT
)
264 $(INSTALL
) -m
0755 $(STRIP_OPT
) ssh-keyscan
$(EXEEXT
) $(DESTDIR
)$(bindir)/ssh-keyscan
$(EXEEXT
)
265 $(INSTALL
) -m
0755 $(STRIP_OPT
) sshd
$(EXEEXT
) $(DESTDIR
)$(sbindir
)/sshd
$(EXEEXT
)
266 if
test ! -z
"$(INSTALL_SSH_RAND_HELPER)" ; then \
267 $(INSTALL
) -m
0755 $(STRIP_OPT
) ssh-rand-helper
$(EXEEXT
) $(DESTDIR
)$(libexecdir
)/ssh-rand-helper
$(EXEEXT
) ; \
269 $(INSTALL
) -m
4711 $(STRIP_OPT
) ssh-keysign
$(EXEEXT
) $(DESTDIR
)$(SSH_KEYSIGN
)$(EXEEXT
)
270 $(INSTALL
) -m
0755 $(STRIP_OPT
) ssh-pkcs11-helper
$(EXEEXT
) $(DESTDIR
)$(SSH_PKCS11_HELPER
)$(EXEEXT
)
271 $(INSTALL
) -m
0755 $(STRIP_OPT
) sftp
$(EXEEXT
) $(DESTDIR
)$(bindir)/sftp
$(EXEEXT
)
272 $(INSTALL
) -m
0755 $(STRIP_OPT
) sftp-server
$(EXEEXT
) $(DESTDIR
)$(SFTP_SERVER
)$(EXEEXT
)
273 $(INSTALL
) -m
644 ssh
.1.out
$(DESTDIR
)$(mandir)/$(mansubdir
)1/ssh
.1
274 $(INSTALL
) -m
644 scp
.1.out
$(DESTDIR
)$(mandir)/$(mansubdir
)1/scp
.1
275 $(INSTALL
) -m
644 ssh-add
.1.out
$(DESTDIR
)$(mandir)/$(mansubdir
)1/ssh-add
.1
276 $(INSTALL
) -m
644 ssh-agent
.1.out
$(DESTDIR
)$(mandir)/$(mansubdir
)1/ssh-agent
.1
277 $(INSTALL
) -m
644 ssh-keygen
.1.out
$(DESTDIR
)$(mandir)/$(mansubdir
)1/ssh-keygen
.1
278 $(INSTALL
) -m
644 ssh-keyscan
.1.out
$(DESTDIR
)$(mandir)/$(mansubdir
)1/ssh-keyscan
.1
279 $(INSTALL
) -m
644 moduli
.5.out
$(DESTDIR
)$(mandir)/$(mansubdir
)5/moduli
.5
280 $(INSTALL
) -m
644 sshd_config
.5.out
$(DESTDIR
)$(mandir)/$(mansubdir
)5/sshd_config
.5
281 $(INSTALL
) -m
644 ssh_config
.5.out
$(DESTDIR
)$(mandir)/$(mansubdir
)5/ssh_config
.5
282 $(INSTALL
) -m
644 sshd
.8.out
$(DESTDIR
)$(mandir)/$(mansubdir
)8/sshd
.8
283 if
[ ! -z
"$(INSTALL_SSH_RAND_HELPER)" ]; then \
284 $(INSTALL
) -m
644 ssh-rand-helper
.8.out
$(DESTDIR
)$(mandir)/$(mansubdir
)8/ssh-rand-helper
.8 ; \
286 $(INSTALL
) -m
644 sftp
.1.out
$(DESTDIR
)$(mandir)/$(mansubdir
)1/sftp
.1
287 $(INSTALL
) -m
644 sftp-server
.8.out
$(DESTDIR
)$(mandir)/$(mansubdir
)8/sftp-server
.8
288 $(INSTALL
) -m
644 ssh-keysign
.8.out
$(DESTDIR
)$(mandir)/$(mansubdir
)8/ssh-keysign
.8
289 $(INSTALL
) -m
644 ssh-pkcs11-helper
.8.out
$(DESTDIR
)$(mandir)/$(mansubdir
)8/ssh-pkcs11-helper
.8
290 -rm -f
$(DESTDIR
)$(bindir)/slogin
291 ln
-s .
/ssh
$(EXEEXT
) $(DESTDIR
)$(bindir)/slogin
292 -rm -f
$(DESTDIR
)$(mandir)/$(mansubdir
)1/slogin
.1
293 ln
-s .
/ssh
.1 $(DESTDIR
)$(mandir)/$(mansubdir
)1/slogin
.1
296 if
[ ! -d
$(DESTDIR
)$(sysconfdir
) ]; then \
297 $(srcdir)/mkinstalldirs
$(DESTDIR
)$(sysconfdir
); \
299 @if
[ ! -f
$(DESTDIR
)$(sysconfdir
)/ssh_config
]; then \
300 $(INSTALL
) -m
644 ssh_config.out
$(DESTDIR
)$(sysconfdir
)/ssh_config
; \
302 echo
"$(DESTDIR)$(sysconfdir)/ssh_config already exists, install will not overwrite"; \
304 @if
[ ! -f
$(DESTDIR
)$(sysconfdir
)/sshd_config
]; then \
305 $(INSTALL
) -m
644 sshd_config.out
$(DESTDIR
)$(sysconfdir
)/sshd_config
; \
307 echo
"$(DESTDIR)$(sysconfdir)/sshd_config already exists, install will not overwrite"; \
309 @if
[ -f ssh_prng_cmds
] && [ ! -z
"$(INSTALL_SSH_PRNG_CMDS)" ]; then \
310 if
[ ! -f
$(DESTDIR
)$(sysconfdir
)/ssh_prng_cmds
] ; then \
311 $(INSTALL
) -m
644 ssh_prng_cmds.out
$(DESTDIR
)$(sysconfdir
)/ssh_prng_cmds
; \
313 echo
"$(DESTDIR)$(sysconfdir)/ssh_prng_cmds already exists, install will not overwrite"; \
316 @if
[ ! -f
$(DESTDIR
)$(sysconfdir
)/moduli
]; then \
317 if
[ -f
$(DESTDIR
)$(sysconfdir
)/primes
]; then \
318 echo
"moving $(DESTDIR)$(sysconfdir)/primes to $(DESTDIR)$(sysconfdir)/moduli"; \
319 mv
"$(DESTDIR)$(sysconfdir)/primes" "$(DESTDIR)$(sysconfdir)/moduli"; \
321 $(INSTALL
) -m
644 moduli.out
$(DESTDIR
)$(sysconfdir
)/moduli
; \
324 echo
"$(DESTDIR)$(sysconfdir)/moduli already exists, install will not overwrite"; \
327 host-key
: ssh-keygen
$(EXEEXT
)
328 @if
[ -z
"$(DESTDIR)" ] ; then \
329 if
[ -f
"$(sysconfdir)/ssh_host_key" ] ; then \
330 echo
"$(sysconfdir)/ssh_host_key already exists, skipping." ; \
332 .
/ssh-keygen
-t rsa1
-f
$(sysconfdir
)/ssh_host_key
-N
"" ; \
334 if
[ -f
$(sysconfdir
)/ssh_host_dsa_key
] ; then \
335 echo
"$(sysconfdir)/ssh_host_dsa_key already exists, skipping." ; \
337 .
/ssh-keygen
-t dsa
-f
$(sysconfdir
)/ssh_host_dsa_key
-N
"" ; \
339 if
[ -f
$(sysconfdir
)/ssh_host_rsa_key
] ; then \
340 echo
"$(sysconfdir)/ssh_host_rsa_key already exists, skipping." ; \
342 .
/ssh-keygen
-t rsa
-f
$(sysconfdir
)/ssh_host_rsa_key
-N
"" ; \
344 if
[ -z
"@COMMENT_OUT_ECC@" ] ; then \
345 if
[ -f
$(sysconfdir
)/ssh_host_ecdsa_key
] ; then \
346 echo
"$(sysconfdir)/ssh_host_ecdsa_key already exists, skipping." ; \
348 .
/ssh-keygen
-t ecdsa
-f
$(sysconfdir
)/ssh_host_ecdsa_key
-N
"" ; \
353 host-key-force
: ssh-keygen
$(EXEEXT
)
354 .
/ssh-keygen
-t rsa1
-f
$(DESTDIR
)$(sysconfdir
)/ssh_host_key
-N
""
355 .
/ssh-keygen
-t dsa
-f
$(DESTDIR
)$(sysconfdir
)/ssh_host_dsa_key
-N
""
356 .
/ssh-keygen
-t rsa
-f
$(DESTDIR
)$(sysconfdir
)/ssh_host_rsa_key
-N
""
357 test -z
"@COMMENT_OUT_ECC@" && .
/ssh-keygen
-t ecdsa
-f
$(DESTDIR
)$(sysconfdir
)/ssh_host_ecdsa_key
-N
""
359 uninstallall
: uninstall
360 -rm -f
$(DESTDIR
)$(sysconfdir
)/ssh_config
361 -rm -f
$(DESTDIR
)$(sysconfdir
)/sshd_config
362 -rm -f
$(DESTDIR
)$(sysconfdir
)/ssh_prng_cmds
363 -rmdir
$(DESTDIR
)$(sysconfdir
)
364 -rmdir
$(DESTDIR
)$(bindir)
365 -rmdir
$(DESTDIR
)$(sbindir
)
366 -rmdir
$(DESTDIR
)$(mandir)/$(mansubdir
)1
367 -rmdir
$(DESTDIR
)$(mandir)/$(mansubdir
)8
368 -rmdir
$(DESTDIR
)$(mandir)
369 -rmdir
$(DESTDIR
)$(libexecdir
)
372 -rm -f
$(DESTDIR
)$(bindir)/slogin
373 -rm -f
$(DESTDIR
)$(bindir)/ssh
$(EXEEXT
)
374 -rm -f
$(DESTDIR
)$(bindir)/scp
$(EXEEXT
)
375 -rm -f
$(DESTDIR
)$(bindir)/ssh-add
$(EXEEXT
)
376 -rm -f
$(DESTDIR
)$(bindir)/ssh-agent
$(EXEEXT
)
377 -rm -f
$(DESTDIR
)$(bindir)/ssh-keygen
$(EXEEXT
)
378 -rm -f
$(DESTDIR
)$(bindir)/ssh-keyscan
$(EXEEXT
)
379 -rm -f
$(DESTDIR
)$(bindir)/sftp
$(EXEEXT
)
380 -rm -f
$(DESTDIR
)$(sbindir
)/sshd
$(EXEEXT
)
381 -rm -r
$(DESTDIR
)$(SFTP_SERVER
)$(EXEEXT
)
382 -rm -f
$(DESTDIR
)$(SSH_KEYSIGN
)$(EXEEXT
)
383 -rm -f
$(DESTDIR
)$(SSH_PKCS11_HELPER
)$(EXEEXT
)
384 -rm -f
$(DESTDIR
)$(RAND_HELPER
)$(EXEEXT
)
385 -rm -f
$(DESTDIR
)$(mandir)/$(mansubdir
)1/ssh
.1
386 -rm -f
$(DESTDIR
)$(mandir)/$(mansubdir
)1/scp
.1
387 -rm -f
$(DESTDIR
)$(mandir)/$(mansubdir
)1/ssh-add
.1
388 -rm -f
$(DESTDIR
)$(mandir)/$(mansubdir
)1/ssh-agent
.1
389 -rm -f
$(DESTDIR
)$(mandir)/$(mansubdir
)1/ssh-keygen
.1
390 -rm -f
$(DESTDIR
)$(mandir)/$(mansubdir
)1/sftp
.1
391 -rm -f
$(DESTDIR
)$(mandir)/$(mansubdir
)1/ssh-keyscan
.1
392 -rm -f
$(DESTDIR
)$(mandir)/$(mansubdir
)8/sshd
.8
393 -rm -f
$(DESTDIR
)$(mandir)/$(mansubdir
)8/ssh-rand-helper
.8
394 -rm -f
$(DESTDIR
)$(mandir)/$(mansubdir
)8/sftp-server
.8
395 -rm -f
$(DESTDIR
)$(mandir)/$(mansubdir
)8/ssh-keysign
.8
396 -rm -f
$(DESTDIR
)$(mandir)/$(mansubdir
)8/ssh-pkcs11-helper
.8
397 -rm -f
$(DESTDIR
)$(mandir)/$(mansubdir
)1/slogin
.1
399 tests interop-tests
: $(TARGETS
)
401 [ -d
`pwd`/regress
] || mkdir
-p
`pwd`/regress
; \
402 [ -f
`pwd`/regress
/Makefile
] || \
403 ln
-s
`cd $(srcdir) && pwd`/regress
/Makefile
`pwd`/regress
/Makefile
; \
404 TEST_SHELL
="@TEST_SHELL@"; \
405 TEST_SSH_SSH
="$${BUILDDIR}/ssh"; \
406 TEST_SSH_SSHD
="$${BUILDDIR}/sshd"; \
407 TEST_SSH_SSHAGENT
="$${BUILDDIR}/ssh-agent"; \
408 TEST_SSH_SSHADD
="$${BUILDDIR}/ssh-add"; \
409 TEST_SSH_SSHKEYGEN
="$${BUILDDIR}/ssh-keygen"; \
410 TEST_SSH_SSHPKCS11HELPER
="$${BUILDDIR}/ssh-pkcs11-helper"; \
411 TEST_SSH_SSHKEYSCAN
="$${BUILDDIR}/ssh-keyscan"; \
412 TEST_SSH_SFTP
="$${BUILDDIR}/sftp"; \
413 TEST_SSH_SFTPSERVER
="$${BUILDDIR}/sftp-server"; \
414 TEST_SSH_PLINK
="plink"; \
415 TEST_SSH_PUTTYGEN
="puttygen"; \
416 TEST_SSH_CONCH
="conch"; \
417 TEST_SSH_IPV6
="@TEST_SSH_IPV6@" ; \
418 TEST_SSH_ECC
="@TEST_SSH_ECC@" ; \
419 cd
$(srcdir)/regress || exit
$$?
; \
421 .OBJDIR
="$${BUILDDIR}/regress" \
423 BUILDDIR
="$${BUILDDIR}" \
424 OBJ
="$${BUILDDIR}/regress/" \
425 PATH
="$${BUILDDIR}:$${PATH}" \
426 TEST_SHELL
="$${TEST_SHELL}" \
427 TEST_SSH_SSH
="$${TEST_SSH_SSH}" \
428 TEST_SSH_SSHD
="$${TEST_SSH_SSHD}" \
429 TEST_SSH_SSHAGENT
="$${TEST_SSH_SSHAGENT}" \
430 TEST_SSH_SSHADD
="$${TEST_SSH_SSHADD}" \
431 TEST_SSH_SSHKEYGEN
="$${TEST_SSH_SSHKEYGEN}" \
432 TEST_SSH_SSHPKCS11HELPER
="$${TEST_SSH_SSHPKCS11HELPER}" \
433 TEST_SSH_SSHKEYSCAN
="$${TEST_SSH_SSHKEYSCAN}" \
434 TEST_SSH_SFTP
="$${TEST_SSH_SFTP}" \
435 TEST_SSH_SFTPSERVER
="$${TEST_SSH_SFTPSERVER}" \
436 TEST_SSH_PLINK
="$${TEST_SSH_PLINK}" \
437 TEST_SSH_PUTTYGEN
="$${TEST_SSH_PUTTYGEN}" \
438 TEST_SSH_CONCH
="$${TEST_SSH_CONCH}" \
439 TEST_SSH_IPV6
="$${TEST_SSH_IPV6}" \
440 TEST_SSH_ECC
="$${TEST_SSH_ECC}" \
442 $@
&& echo
all tests passed
444 compat-tests
: $(LIBCOMPAT
)
445 (cd openbsd-compat
/regress
&& $(MAKE
))
448 if
[ -f regress
/Makefile
] && [ -r regress
/Makefile
]; then \
449 (cd regress
&& $(MAKE
) clean) \
452 survey
: survey.sh ssh
453 @
$(SHELL
) .
/survey.sh
> survey
454 @echo
'The survey results have been placed in the file "survey" in the'
455 @echo
'current directory. Please review the file then send with'
456 @echo
'"make send-survey".'
459 mail portable-survey@mindrot.org
<survey
461 package
: $(CONFIGFILES
) ssh_prng_cmds.out
$(MANPAGES
) $(TARGETS
)
462 if
[ "@MAKE_PACKAGE_SUPPORTED@" = yes
]; then \