- (djm) [Makefile.in]
[openssh-git.git] / Makefile.in
blobfe510028f844a53a31971caf4c05dbc3dfe13fa7
1 # $Id: Makefile.in,v 1.279 2006/07/24 05:30:19 djm Exp $
3 # uncomment if you run a non bourne compatable shell. Ie. csh
4 #SHELL = @SH@
6 AUTORECONF=autoreconf
8 prefix=@prefix@
9 exec_prefix=@exec_prefix@
10 bindir=@bindir@
11 sbindir=@sbindir@
12 libexecdir=@libexecdir@
13 datadir=@datadir@
14 mandir=@mandir@
15 mansubdir=@mansubdir@
16 sysconfdir=@sysconfdir@
17 piddir=@piddir@
18 srcdir=@srcdir@
19 top_srcdir=@top_srcdir@
21 DESTDIR=
22 VPATH=@srcdir@
23 SSH_PROGRAM=@bindir@/ssh
24 ASKPASS_PROGRAM=$(libexecdir)/ssh-askpass
25 SFTP_SERVER=$(libexecdir)/sftp-server
26 SSH_KEYSIGN=$(libexecdir)/ssh-keysign
27 RAND_HELPER=$(libexecdir)/ssh-rand-helper
28 PRIVSEP_PATH=@PRIVSEP_PATH@
29 SSH_PRIVSEP_USER=@SSH_PRIVSEP_USER@
30 STRIP_OPT=@STRIP_OPT@
32 PATHS= -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)\"
41 CC=@CC@
42 LD=@LD@
43 CFLAGS=@CFLAGS@
44 CPPFLAGS=-I. -I$(srcdir) @CPPFLAGS@ $(PATHS) @DEFS@
45 LIBS=@LIBS@
46 LIBSELINUX=@LIBSELINUX@
47 LIBEDIT=@LIBEDIT@
48 LIBPAM=@LIBPAM@
49 LIBWRAP=@LIBWRAP@
50 AR=@AR@
51 AWK=@AWK@
52 RANLIB=@RANLIB@
53 INSTALL=@INSTALL@
54 PERL=@PERL@
55 SED=@SED@
56 ENT=@ENT@
57 XAUTH_PATH=@XAUTH_PATH@
58 LDFLAGS=-L. -Lopenbsd-compat/ @LDFLAGS@
59 EXEEXT=@EXEEXT@
61 INSTALL_SSH_PRNG_CMDS=@INSTALL_SSH_PRNG_CMDS@
62 INSTALL_SSH_RAND_HELPER=@INSTALL_SSH_RAND_HELPER@
64 TARGETS=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)
66 LIBSSH_OBJS=acss.o authfd.o authfile.o bufaux.o bufbn.o buffer.o \
67 canohost.o channels.o cipher.o cipher-acss.o cipher-aes.o \
68 cipher-bf1.o cipher-ctr.o cipher-3des1.o cleanup.o \
69 compat.o compress.o crc32.o deattack.o fatal.o hostfile.o \
70 log.o match.o md-sha256.o moduli.o nchan.o packet.o \
71 readpass.o rsa.o ttymodes.o xmalloc.o \
72 atomicio.o key.o dispatch.o kex.o mac.o uidswap.o uuencode.o misc.o \
73 monitor_fdpass.o rijndael.o ssh-dss.o ssh-rsa.o dh.o kexdh.o \
74 kexgex.o kexdhc.o kexgexc.o scard.o msg.o progressmeter.o dns.o \
75 entropy.o scard-opensc.o gss-genr.o
77 SSHOBJS= ssh.o readconf.o clientloop.o sshtty.o \
78 sshconnect.o sshconnect1.o sshconnect2.o
80 SSHDOBJS=sshd.o auth-rhosts.o auth-passwd.o auth-rsa.o auth-rh-rsa.o \
81 sshpty.o sshlogin.o servconf.o serverloop.o \
82 auth.o auth1.o auth2.o auth-options.o session.o \
83 auth-chall.o auth2-chall.o groupaccess.o \
84 auth-skey.o auth-bsdauth.o auth2-hostbased.o auth2-kbdint.o \
85 auth2-none.o auth2-passwd.o auth2-pubkey.o \
86 monitor_mm.o monitor.o monitor_wrap.o kexdhs.o kexgexs.o \
87 auth-krb5.o \
88 auth2-gss.o gss-serv.o gss-serv-krb5.o \
89 loginrec.o auth-pam.o auth-shadow.o auth-sia.o md5crypt.o \
90 audit.o audit-bsm.o
92 MANPAGES = 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
93 MANPAGES_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
94 MANTYPE = @MANTYPE@
96 CONFIGFILES=sshd_config.out ssh_config.out moduli.out
97 CONFIGFILES_IN=sshd_config ssh_config moduli
99 PATHSUBS = \
100 -e 's|/etc/ssh/ssh_prng_cmds|$(sysconfdir)/ssh_prng_cmds|g' \
101 -e 's|/etc/ssh/ssh_config|$(sysconfdir)/ssh_config|g' \
102 -e 's|/etc/ssh/ssh_known_hosts|$(sysconfdir)/ssh_known_hosts|g' \
103 -e 's|/etc/ssh/sshd_config|$(sysconfdir)/sshd_config|g' \
104 -e 's|/usr/libexec|$(libexecdir)|g' \
105 -e 's|/etc/shosts.equiv|$(sysconfdir)/shosts.equiv|g' \
106 -e 's|/etc/ssh/ssh_host_key|$(sysconfdir)/ssh_host_key|g' \
107 -e 's|/etc/ssh/ssh_host_dsa_key|$(sysconfdir)/ssh_host_dsa_key|g' \
108 -e 's|/etc/ssh/ssh_host_rsa_key|$(sysconfdir)/ssh_host_rsa_key|g' \
109 -e 's|/var/run/sshd.pid|$(piddir)/sshd.pid|g' \
110 -e 's|/etc/ssh/moduli|$(sysconfdir)/moduli|g' \
111 -e 's|/etc/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'
116 FIXPATHSCMD = $(SED) $(PATHSUBS)
118 all: $(CONFIGFILES) ssh_prng_cmds.out $(MANPAGES) $(TARGETS)
120 $(LIBSSH_OBJS): Makefile.in config.h
121 $(SSHOBJS): Makefile.in config.h
122 $(SSHDOBJS): Makefile.in config.h
124 .c.o:
125 $(CC) $(CFLAGS) $(CPPFLAGS) -c $<
127 LIBCOMPAT=openbsd-compat/libopenbsd-compat.a
128 $(LIBCOMPAT): always
129 (cd openbsd-compat && $(MAKE))
130 always:
132 libssh.a: $(LIBSSH_OBJS)
133 $(AR) rv $@ $(LIBSSH_OBJS)
134 $(RANLIB) $@
136 ssh$(EXEEXT): $(LIBCOMPAT) libssh.a $(SSHOBJS)
137 $(LD) -o $@ $(SSHOBJS) $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS)
139 sshd$(EXEEXT): libssh.a $(LIBCOMPAT) $(SSHDOBJS)
140 $(LD) -o $@ $(SSHDOBJS) $(LDFLAGS) -lssh -lopenbsd-compat $(LIBWRAP) $(LIBPAM) $(LIBSELINUX) $(LIBS)
142 scp$(EXEEXT): $(LIBCOMPAT) libssh.a scp.o progressmeter.o
143 $(LD) -o $@ scp.o progressmeter.o bufaux.o $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS)
145 ssh-add$(EXEEXT): $(LIBCOMPAT) libssh.a ssh-add.o
146 $(LD) -o $@ ssh-add.o $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS)
148 ssh-agent$(EXEEXT): $(LIBCOMPAT) libssh.a ssh-agent.o
149 $(LD) -o $@ ssh-agent.o $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS)
151 ssh-keygen$(EXEEXT): $(LIBCOMPAT) libssh.a ssh-keygen.o
152 $(LD) -o $@ ssh-keygen.o $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS)
154 ssh-keysign$(EXEEXT): $(LIBCOMPAT) libssh.a ssh-keysign.o
155 $(LD) -o $@ ssh-keysign.o readconf.o $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS)
157 ssh-keyscan$(EXEEXT): $(LIBCOMPAT) libssh.a ssh-keyscan.o
158 $(LD) -o $@ ssh-keyscan.o $(LDFLAGS) -lssh -lopenbsd-compat -lssh $(LIBS)
160 sftp-server$(EXEEXT): $(LIBCOMPAT) libssh.a sftp.o sftp-common.o sftp-server.o
161 $(LD) -o $@ sftp-server.o sftp-common.o $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS)
163 sftp$(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)
166 ssh-rand-helper${EXEEXT}: $(LIBCOMPAT) libssh.a ssh-rand-helper.o
167 $(LD) -o $@ ssh-rand-helper.o $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS)
169 # test driver for the loginrec code - not built by default
170 logintest: logintest.o $(LIBCOMPAT) libssh.a loginrec.o
171 $(LD) -o $@ logintest.o $(LDFLAGS) loginrec.o -lopenbsd-compat -lssh $(LIBS)
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} > $@; \
185 $(CONFIGFILES): $(CONFIGFILES_IN)
186 conffile=`echo $@ | sed 's/.out$$//'`; \
187 $(FIXPATHSCMD) $(srcdir)/$${conffile} > $@
189 ssh_prng_cmds.out: ssh_prng_cmds
190 if test ! -z "$(INSTALL_SSH_PRNG_CMDS)"; then \
191 $(PERL) $(srcdir)/fixprogs ssh_prng_cmds $(ENT); \
194 # fake rule to stop make trying to compile moduli.o into a binary "moduli.o"
195 moduli:
196 echo
198 clean: regressclean
199 rm -f *.o *.a $(TARGETS) logintest config.cache config.log
200 rm -f *.out core survey
201 (cd openbsd-compat && $(MAKE) clean)
203 distclean: regressclean
204 rm -f *.o *.a $(TARGETS) logintest config.cache config.log
205 rm -f *.out core opensshd.init
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 ; \
215 veryclean: distclean
216 rm -f configure config.h.in *.0
218 mrproper: veryclean
220 realclean: veryclean
222 catman-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
230 distprep: catman-do
231 $(AUTORECONF)
232 -rm -rf autom4te.cache
233 (cd scard && $(MAKE) -f Makefile.in distprep)
235 install: $(CONFIGFILES) ssh_prng_cmds.out $(MANPAGES) $(TARGETS) install-files install-sysconf host-key check-config
236 install-nokeys: $(CONFIGFILES) ssh_prng_cmds.out $(MANPAGES) $(TARGETS) install-files install-sysconf
237 install-nosysconf: $(CONFIGFILES) ssh_prng_cmds.out $(MANPAGES) $(TARGETS) install-files
239 check-config:
240 -$(DESTDIR)$(sbindir)/sshd -t -f $(DESTDIR)$(sysconfdir)/sshd_config
242 scard-install:
243 (cd scard && $(MAKE) DESTDIR=$(DESTDIR) install)
245 install-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 ; \
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 sshd_config.5.out $(DESTDIR)$(mandir)/$(mansubdir)5/sshd_config.5
275 $(INSTALL) -m 644 ssh_config.5.out $(DESTDIR)$(mandir)/$(mansubdir)5/ssh_config.5
276 $(INSTALL) -m 644 sshd.8.out $(DESTDIR)$(mandir)/$(mansubdir)8/sshd.8
277 if [ ! -z "$(INSTALL_SSH_RAND_HELPER)" ]; then \
278 $(INSTALL) -m 644 ssh-rand-helper.8.out $(DESTDIR)$(mandir)/$(mansubdir)8/ssh-rand-helper.8 ; \
280 $(INSTALL) -m 644 sftp.1.out $(DESTDIR)$(mandir)/$(mansubdir)1/sftp.1
281 $(INSTALL) -m 644 sftp-server.8.out $(DESTDIR)$(mandir)/$(mansubdir)8/sftp-server.8
282 $(INSTALL) -m 644 ssh-keysign.8.out $(DESTDIR)$(mandir)/$(mansubdir)8/ssh-keysign.8
283 -rm -f $(DESTDIR)$(bindir)/slogin
284 ln -s ./ssh$(EXEEXT) $(DESTDIR)$(bindir)/slogin
285 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/slogin.1
286 ln -s ./ssh.1 $(DESTDIR)$(mandir)/$(mansubdir)1/slogin.1
288 install-sysconf:
289 if [ ! -d $(DESTDIR)$(sysconfdir) ]; then \
290 $(srcdir)/mkinstalldirs $(DESTDIR)$(sysconfdir); \
292 @if [ ! -f $(DESTDIR)$(sysconfdir)/ssh_config ]; then \
293 $(INSTALL) -m 644 ssh_config.out $(DESTDIR)$(sysconfdir)/ssh_config; \
294 else \
295 echo "$(DESTDIR)$(sysconfdir)/ssh_config already exists, install will not overwrite"; \
297 @if [ ! -f $(DESTDIR)$(sysconfdir)/sshd_config ]; then \
298 $(INSTALL) -m 644 sshd_config.out $(DESTDIR)$(sysconfdir)/sshd_config; \
299 else \
300 echo "$(DESTDIR)$(sysconfdir)/sshd_config already exists, install will not overwrite"; \
302 @if [ -f ssh_prng_cmds ] && [ ! -z "$(INSTALL_SSH_PRNG_CMDS)" ]; then \
303 if [ ! -f $(DESTDIR)$(sysconfdir)/ssh_prng_cmds ] ; then \
304 $(INSTALL) -m 644 ssh_prng_cmds.out $(DESTDIR)$(sysconfdir)/ssh_prng_cmds; \
305 else \
306 echo "$(DESTDIR)$(sysconfdir)/ssh_prng_cmds already exists, install will not overwrite"; \
307 fi ; \
309 @if [ ! -f $(DESTDIR)$(sysconfdir)/moduli ]; then \
310 if [ -f $(DESTDIR)$(sysconfdir)/primes ]; then \
311 echo "moving $(DESTDIR)$(sysconfdir)/primes to $(DESTDIR)$(sysconfdir)/moduli"; \
312 mv "$(DESTDIR)$(sysconfdir)/primes" "$(DESTDIR)$(sysconfdir)/moduli"; \
313 else \
314 $(INSTALL) -m 644 moduli.out $(DESTDIR)$(sysconfdir)/moduli; \
315 fi ; \
316 else \
317 echo "$(DESTDIR)$(sysconfdir)/moduli already exists, install will not overwrite"; \
320 host-key: ssh-keygen$(EXEEXT)
321 @if [ -z "$(DESTDIR)" ] ; then \
322 if [ -f "$(DESTDIR)$(sysconfdir)/ssh_host_key" ] ; then \
323 echo "$(DESTDIR)$(sysconfdir)/ssh_host_key already exists, skipping." ; \
324 else \
325 ./ssh-keygen -t rsa1 -f $(DESTDIR)$(sysconfdir)/ssh_host_key -N "" ; \
326 fi ; \
327 if [ -f $(DESTDIR)$(sysconfdir)/ssh_host_dsa_key ] ; then \
328 echo "$(DESTDIR)$(sysconfdir)/ssh_host_dsa_key already exists, skipping." ; \
329 else \
330 ./ssh-keygen -t dsa -f $(DESTDIR)$(sysconfdir)/ssh_host_dsa_key -N "" ; \
331 fi ; \
332 if [ -f $(DESTDIR)$(sysconfdir)/ssh_host_rsa_key ] ; then \
333 echo "$(DESTDIR)$(sysconfdir)/ssh_host_rsa_key already exists, skipping." ; \
334 else \
335 ./ssh-keygen -t rsa -f $(DESTDIR)$(sysconfdir)/ssh_host_rsa_key -N "" ; \
336 fi ; \
337 fi ;
339 host-key-force: ssh-keygen$(EXEEXT)
340 ./ssh-keygen -t rsa1 -f $(DESTDIR)$(sysconfdir)/ssh_host_key -N ""
341 ./ssh-keygen -t dsa -f $(DESTDIR)$(sysconfdir)/ssh_host_dsa_key -N ""
342 ./ssh-keygen -t rsa -f $(DESTDIR)$(sysconfdir)/ssh_host_rsa_key -N ""
344 uninstallall: uninstall
345 -rm -f $(DESTDIR)$(sysconfdir)/ssh_config
346 -rm -f $(DESTDIR)$(sysconfdir)/sshd_config
347 -rm -f $(DESTDIR)$(sysconfdir)/ssh_prng_cmds
348 -rmdir $(DESTDIR)$(sysconfdir)
349 -rmdir $(DESTDIR)$(bindir)
350 -rmdir $(DESTDIR)$(sbindir)
351 -rmdir $(DESTDIR)$(mandir)/$(mansubdir)1
352 -rmdir $(DESTDIR)$(mandir)/$(mansubdir)8
353 -rmdir $(DESTDIR)$(mandir)
354 -rmdir $(DESTDIR)$(libexecdir)
356 uninstall:
357 -rm -f $(DESTDIR)$(bindir)/slogin
358 -rm -f $(DESTDIR)$(bindir)/ssh$(EXEEXT)
359 -rm -f $(DESTDIR)$(bindir)/scp$(EXEEXT)
360 -rm -f $(DESTDIR)$(bindir)/ssh-add$(EXEEXT)
361 -rm -f $(DESTDIR)$(bindir)/ssh-agent$(EXEEXT)
362 -rm -f $(DESTDIR)$(bindir)/ssh-keygen$(EXEEXT)
363 -rm -f $(DESTDIR)$(bindir)/ssh-keyscan$(EXEEXT)
364 -rm -f $(DESTDIR)$(bindir)/sftp$(EXEEXT)
365 -rm -f $(DESTDIR)$(sbindir)/sshd$(EXEEXT)
366 -rm -r $(DESTDIR)$(SFTP_SERVER)$(EXEEXT)
367 -rm -f $(DESTDIR)$(SSH_KEYSIGN)$(EXEEXT)
368 -rm -f $(DESTDIR)$(RAND_HELPER)$(EXEEXT)
369 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/ssh.1
370 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/scp.1
371 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-add.1
372 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-agent.1
373 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-keygen.1
374 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/sftp.1
375 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-keyscan.1
376 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)8/sshd.8
377 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)8/ssh-rand-helper.8
378 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)8/sftp-server.8
379 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)8/ssh-keysign.8
380 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/slogin.1
382 tests: $(TARGETS)
383 BUILDDIR=`pwd`; \
384 [ -d `pwd`/regress ] || mkdir -p `pwd`/regress; \
385 [ -f `pwd`/regress/Makefile ] || \
386 ln -s `cd $(srcdir) && pwd`/regress/Makefile `pwd`/regress/Makefile ; \
387 TEST_SHELL="@TEST_SHELL@"; \
388 TEST_SSH_SSH="$${BUILDDIR}/ssh"; \
389 TEST_SSH_SSHD="$${BUILDDIR}/sshd"; \
390 TEST_SSH_SSHAGENT="$${BUILDDIR}/ssh-agent"; \
391 TEST_SSH_SSHADD="$${BUILDDIR}/ssh-add"; \
392 TEST_SSH_SSHKEYGEN="$${BUILDDIR}/ssh-keygen"; \
393 TEST_SSH_SSHKEYSCAN="$${BUILDDIR}/ssh-keyscan"; \
394 TEST_SSH_SFTP="$${BUILDDIR}/sftp"; \
395 TEST_SSH_SFTPSERVER="$${BUILDDIR}/sftp-server"; \
396 cd $(srcdir)/regress || exit $$?; \
397 $(MAKE) \
398 .OBJDIR="$${BUILDDIR}/regress" \
399 .CURDIR="`pwd`" \
400 BUILDDIR="$${BUILDDIR}" \
401 OBJ="$${BUILDDIR}/regress/" \
402 PATH="$${BUILDDIR}:$${PATH}" \
403 TEST_SHELL="$${TEST_SHELL}" \
404 TEST_SSH_SSH="$${TEST_SSH_SSH}" \
405 TEST_SSH_SSHD="$${TEST_SSH_SSHD}" \
406 TEST_SSH_SSHAGENT="$${TEST_SSH_SSHAGENT}" \
407 TEST_SSH_SSHADD="$${TEST_SSH_SSHADD}" \
408 TEST_SSH_SSHKEYGEN="$${TEST_SSH_SSHKEYGEN}" \
409 TEST_SSH_SSHKEYSCAN="$${TEST_SSH_SSHKEYSCAN}" \
410 TEST_SSH_SFTP="$${TEST_SSH_SFTP}" \
411 TEST_SSH_SFTPSERVER="$${TEST_SSH_SFTPSERVER}" \
412 EXEEXT="$(EXEEXT)" \
415 compat-tests: $(LIBCOMPAT)
416 (cd openbsd-compat/regress && $(MAKE))
418 regressclean:
419 if [ -f regress/Makefile ] && [ -r regress/Makefile ]; then \
420 (cd regress && $(MAKE) clean) \
423 survey: survey.sh ssh
424 @$(SHELL) ./survey.sh > survey
425 @echo 'The survey results have been placed in the file "survey" in the'
426 @echo 'current directory. Please review the file then send with'
427 @echo '"make send-survey".'
429 send-survey: survey
430 mail portable-survey@mindrot.org <survey
432 package: $(CONFIGFILES) ssh_prng_cmds.out $(MANPAGES) $(TARGETS)
433 if [ "@MAKE_PACKAGE_SUPPORTED@" = yes ]; then \
434 sh buildpkg.sh; \