summaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2011-09-06 09:45:52 +0100
committerColin Watson <cjwatson@debian.org>2011-09-06 09:45:52 +0100
commitf38224d546cdde55f45c13d3d8225d273a3f920e (patch)
treea91a26b88ac90dc72d0ea3767feabb341eaa50a8 /Makefile.in
parent338146a3fc257e216fe5c10fe40e6896b40d7739 (diff)
parente90790abaf031e037f444a6658e136e48577ea49 (diff)
merge 5.9p1
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in55
1 files changed, 14 insertions, 41 deletions
diff --git a/Makefile.in b/Makefile.in
index f966fbd31..e479a44e5 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -1,4 +1,4 @@
1# $Id: Makefile.in,v 1.320.4.1 2011/02/04 00:42:13 djm Exp $ 1# $Id: Makefile.in,v 1.325 2011/08/05 20:15:18 djm Exp $
2 2
3# uncomment if you run a non bourne compatable shell. Ie. csh 3# uncomment if you run a non bourne compatable shell. Ie. csh
4#SHELL = @SH@ 4#SHELL = @SH@
@@ -26,7 +26,6 @@ ASKPASS_PROGRAM=$(libexecdir)/ssh-askpass
26SFTP_SERVER=$(libexecdir)/sftp-server 26SFTP_SERVER=$(libexecdir)/sftp-server
27SSH_KEYSIGN=$(libexecdir)/ssh-keysign 27SSH_KEYSIGN=$(libexecdir)/ssh-keysign
28SSH_PKCS11_HELPER=$(libexecdir)/ssh-pkcs11-helper 28SSH_PKCS11_HELPER=$(libexecdir)/ssh-pkcs11-helper
29RAND_HELPER=$(libexecdir)/ssh-rand-helper
30PRIVSEP_PATH=@PRIVSEP_PATH@ 29PRIVSEP_PATH=@PRIVSEP_PATH@
31SSH_PRIVSEP_USER=@SSH_PRIVSEP_USER@ 30SSH_PRIVSEP_USER=@SSH_PRIVSEP_USER@
32STRIP_OPT=@STRIP_OPT@ 31STRIP_OPT=@STRIP_OPT@
@@ -39,7 +38,6 @@ PATHS= -DSSHDIR=\"$(sysconfdir)\" \
39 -D_PATH_SSH_PKCS11_HELPER=\"$(SSH_PKCS11_HELPER)\" \ 38 -D_PATH_SSH_PKCS11_HELPER=\"$(SSH_PKCS11_HELPER)\" \
40 -D_PATH_SSH_PIDDIR=\"$(piddir)\" \ 39 -D_PATH_SSH_PIDDIR=\"$(piddir)\" \
41 -D_PATH_PRIVSEP_CHROOT_DIR=\"$(PRIVSEP_PATH)\" \ 40 -D_PATH_PRIVSEP_CHROOT_DIR=\"$(PRIVSEP_PATH)\" \
42 -DSSH_RAND_HELPER=\"$(RAND_HELPER)\"
43 41
44CC=@CC@ 42CC=@CC@
45LD=@LD@ 43LD=@LD@
@@ -61,10 +59,7 @@ LDFLAGS=-L. -Lopenbsd-compat/ @LDFLAGS@
61EXEEXT=@EXEEXT@ 59EXEEXT=@EXEEXT@
62MANFMT=@MANFMT@ 60MANFMT=@MANFMT@
63 61
64INSTALL_SSH_PRNG_CMDS=@INSTALL_SSH_PRNG_CMDS@ 62TARGETS=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)
65INSTALL_SSH_RAND_HELPER=@INSTALL_SSH_RAND_HELPER@
66
67TARGETS=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 63
69LIBSSH_OBJS=acss.o authfd.o authfile.o bufaux.o bufbn.o buffer.o \ 64LIBSSH_OBJS=acss.o authfd.o authfile.o bufaux.o bufbn.o buffer.o \
70 canohost.o channels.o cipher.o cipher-acss.o cipher-aes.o \ 65 canohost.o channels.o cipher.o cipher-acss.o cipher-aes.o \
@@ -95,17 +90,17 @@ SSHDOBJS=sshd.o auth-rhosts.o auth-passwd.o auth-rsa.o auth-rh-rsa.o \
95 auth2-gss.o gss-serv.o gss-serv-krb5.o kexgsss.o\ 90 auth2-gss.o gss-serv.o gss-serv-krb5.o kexgsss.o\
96 loginrec.o auth-pam.o auth-shadow.o auth-sia.o md5crypt.o \ 91 loginrec.o auth-pam.o auth-shadow.o auth-sia.o md5crypt.o \
97 sftp-server.o sftp-common.o \ 92 sftp-server.o sftp-common.o \
98 roaming_common.o roaming_serv.o 93 roaming_common.o roaming_serv.o \
94 sandbox-null.o sandbox-rlimit.o sandbox-systrace.o sandbox-darwin.o
99 95
100MANPAGES = 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 96MANPAGES = 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 sshd_config.5.out ssh_config.5.out
101MANPAGES_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 97MANPAGES_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 sshd_config.5 ssh_config.5
102MANTYPE = @MANTYPE@ 98MANTYPE = @MANTYPE@
103 99
104CONFIGFILES=sshd_config.out ssh_config.out moduli.out 100CONFIGFILES=sshd_config.out ssh_config.out moduli.out
105CONFIGFILES_IN=sshd_config ssh_config moduli 101CONFIGFILES_IN=sshd_config ssh_config moduli
106 102
107PATHSUBS = \ 103PATHSUBS = \
108 -e 's|/etc/ssh/ssh_prng_cmds|$(sysconfdir)/ssh_prng_cmds|g' \
109 -e 's|/etc/ssh/ssh_config|$(sysconfdir)/ssh_config|g' \ 104 -e 's|/etc/ssh/ssh_config|$(sysconfdir)/ssh_config|g' \
110 -e 's|/etc/ssh/ssh_known_hosts|$(sysconfdir)/ssh_known_hosts|g' \ 105 -e 's|/etc/ssh/ssh_known_hosts|$(sysconfdir)/ssh_known_hosts|g' \
111 -e 's|/etc/ssh/sshd_config|$(sysconfdir)/sshd_config|g' \ 106 -e 's|/etc/ssh/sshd_config|$(sysconfdir)/sshd_config|g' \
@@ -125,7 +120,7 @@ PATHSUBS = \
125 120
126FIXPATHSCMD = $(SED) $(PATHSUBS) 121FIXPATHSCMD = $(SED) $(PATHSUBS)
127 122
128all: $(CONFIGFILES) ssh_prng_cmds.out $(MANPAGES) $(TARGETS) 123all: $(CONFIGFILES) $(MANPAGES) $(TARGETS)
129 124
130$(LIBSSH_OBJS): Makefile.in config.h 125$(LIBSSH_OBJS): Makefile.in config.h
131$(SSHOBJS): Makefile.in config.h 126$(SSHOBJS): Makefile.in config.h
@@ -176,9 +171,6 @@ sftp-server$(EXEEXT): $(LIBCOMPAT) libssh.a sftp.o sftp-common.o sftp-server.o s
176sftp$(EXEEXT): $(LIBCOMPAT) libssh.a sftp.o sftp-client.o sftp-common.o sftp-glob.o progressmeter.o 171sftp$(EXEEXT): $(LIBCOMPAT) libssh.a sftp.o sftp-client.o sftp-common.o sftp-glob.o progressmeter.o
177 $(LD) -o $@ progressmeter.o sftp.o sftp-client.o sftp-common.o sftp-glob.o $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS) $(LIBEDIT) 172 $(LD) -o $@ progressmeter.o sftp.o sftp-client.o sftp-common.o sftp-glob.o $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS) $(LIBEDIT)
178 173
179ssh-rand-helper${EXEEXT}: $(LIBCOMPAT) libssh.a ssh-rand-helper.o
180 $(LD) -o $@ ssh-rand-helper.o $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS)
181
182# test driver for the loginrec code - not built by default 174# test driver for the loginrec code - not built by default
183logintest: logintest.o $(LIBCOMPAT) libssh.a loginrec.o 175logintest: logintest.o $(LIBCOMPAT) libssh.a loginrec.o
184 $(LD) -o $@ logintest.o $(LDFLAGS) loginrec.o -lopenbsd-compat -lssh $(LIBS) 176 $(LD) -o $@ logintest.o $(LDFLAGS) loginrec.o -lopenbsd-compat -lssh $(LIBS)
@@ -199,11 +191,6 @@ $(CONFIGFILES): $(CONFIGFILES_IN)
199 conffile=`echo $@ | sed 's/.out$$//'`; \ 191 conffile=`echo $@ | sed 's/.out$$//'`; \
200 $(FIXPATHSCMD) $(srcdir)/$${conffile} > $@ 192 $(FIXPATHSCMD) $(srcdir)/$${conffile} > $@
201 193
202ssh_prng_cmds.out: ssh_prng_cmds
203 if test ! -z "$(INSTALL_SSH_PRNG_CMDS)"; then \
204 $(PERL) $(srcdir)/fixprogs ssh_prng_cmds $(ENT); \
205 fi
206
207# fake rule to stop make trying to compile moduli.o into a binary "moduli.o" 194# fake rule to stop make trying to compile moduli.o into a binary "moduli.o"
208moduli: 195moduli:
209 echo 196 echo
@@ -216,7 +203,7 @@ clean: regressclean
216distclean: regressclean 203distclean: regressclean
217 rm -f *.o *.a $(TARGETS) logintest config.cache config.log 204 rm -f *.o *.a $(TARGETS) logintest config.cache config.log
218 rm -f *.out core opensshd.init openssh.xml 205 rm -f *.out core opensshd.init openssh.xml
219 rm -f Makefile buildpkg.sh config.h config.status ssh_prng_cmds 206 rm -f Makefile buildpkg.sh config.h config.status
220 rm -f survey.sh openbsd-compat/regress/Makefile *~ 207 rm -f survey.sh openbsd-compat/regress/Makefile *~
221 rm -rf autom4te.cache 208 rm -rf autom4te.cache
222 (cd openbsd-compat && $(MAKE) distclean) 209 (cd openbsd-compat && $(MAKE) distclean)
@@ -227,6 +214,8 @@ distclean: regressclean
227veryclean: distclean 214veryclean: distclean
228 rm -f configure config.h.in *.0 215 rm -f configure config.h.in *.0
229 216
217cleandir: veryclean
218
230mrproper: veryclean 219mrproper: veryclean
231 220
232realclean: veryclean 221realclean: veryclean
@@ -243,9 +232,9 @@ distprep: catman-do
243 $(AUTORECONF) 232 $(AUTORECONF)
244 -rm -rf autom4te.cache 233 -rm -rf autom4te.cache
245 234
246install: $(CONFIGFILES) ssh_prng_cmds.out $(MANPAGES) $(TARGETS) install-files install-sysconf host-key check-config 235install: $(CONFIGFILES) $(MANPAGES) $(TARGETS) install-files install-sysconf host-key check-config
247install-nokeys: $(CONFIGFILES) ssh_prng_cmds.out $(MANPAGES) $(TARGETS) install-files install-sysconf 236install-nokeys: $(CONFIGFILES) $(MANPAGES) $(TARGETS) install-files install-sysconf
248install-nosysconf: $(CONFIGFILES) ssh_prng_cmds.out $(MANPAGES) $(TARGETS) install-files 237install-nosysconf: $(CONFIGFILES) $(MANPAGES) $(TARGETS) install-files
249 238
250check-config: 239check-config:
251 -$(DESTDIR)$(sbindir)/sshd -t -f $(DESTDIR)$(sysconfdir)/sshd_config 240 -$(DESTDIR)$(sbindir)/sshd -t -f $(DESTDIR)$(sysconfdir)/sshd_config
@@ -266,9 +255,6 @@ install-files:
266 $(INSTALL) -m 0755 $(STRIP_OPT) ssh-keygen$(EXEEXT) $(DESTDIR)$(bindir)/ssh-keygen$(EXEEXT) 255 $(INSTALL) -m 0755 $(STRIP_OPT) ssh-keygen$(EXEEXT) $(DESTDIR)$(bindir)/ssh-keygen$(EXEEXT)
267 $(INSTALL) -m 0755 $(STRIP_OPT) ssh-keyscan$(EXEEXT) $(DESTDIR)$(bindir)/ssh-keyscan$(EXEEXT) 256 $(INSTALL) -m 0755 $(STRIP_OPT) ssh-keyscan$(EXEEXT) $(DESTDIR)$(bindir)/ssh-keyscan$(EXEEXT)
268 $(INSTALL) -m 0755 $(STRIP_OPT) sshd$(EXEEXT) $(DESTDIR)$(sbindir)/sshd$(EXEEXT) 257 $(INSTALL) -m 0755 $(STRIP_OPT) sshd$(EXEEXT) $(DESTDIR)$(sbindir)/sshd$(EXEEXT)
269 if test ! -z "$(INSTALL_SSH_RAND_HELPER)" ; then \
270 $(INSTALL) -m 0755 $(STRIP_OPT) ssh-rand-helper$(EXEEXT) $(DESTDIR)$(libexecdir)/ssh-rand-helper$(EXEEXT) ; \
271 fi
272 $(INSTALL) -m 4711 $(STRIP_OPT) ssh-keysign$(EXEEXT) $(DESTDIR)$(SSH_KEYSIGN)$(EXEEXT) 258 $(INSTALL) -m 4711 $(STRIP_OPT) ssh-keysign$(EXEEXT) $(DESTDIR)$(SSH_KEYSIGN)$(EXEEXT)
273 $(INSTALL) -m 0755 $(STRIP_OPT) ssh-pkcs11-helper$(EXEEXT) $(DESTDIR)$(SSH_PKCS11_HELPER)$(EXEEXT) 259 $(INSTALL) -m 0755 $(STRIP_OPT) ssh-pkcs11-helper$(EXEEXT) $(DESTDIR)$(SSH_PKCS11_HELPER)$(EXEEXT)
274 $(INSTALL) -m 0755 $(STRIP_OPT) sftp$(EXEEXT) $(DESTDIR)$(bindir)/sftp$(EXEEXT) 260 $(INSTALL) -m 0755 $(STRIP_OPT) sftp$(EXEEXT) $(DESTDIR)$(bindir)/sftp$(EXEEXT)
@@ -283,9 +269,6 @@ install-files:
283 $(INSTALL) -m 644 sshd_config.5.out $(DESTDIR)$(mandir)/$(mansubdir)5/sshd_config.5 269 $(INSTALL) -m 644 sshd_config.5.out $(DESTDIR)$(mandir)/$(mansubdir)5/sshd_config.5
284 $(INSTALL) -m 644 ssh_config.5.out $(DESTDIR)$(mandir)/$(mansubdir)5/ssh_config.5 270 $(INSTALL) -m 644 ssh_config.5.out $(DESTDIR)$(mandir)/$(mansubdir)5/ssh_config.5
285 $(INSTALL) -m 644 sshd.8.out $(DESTDIR)$(mandir)/$(mansubdir)8/sshd.8 271 $(INSTALL) -m 644 sshd.8.out $(DESTDIR)$(mandir)/$(mansubdir)8/sshd.8
286 if [ ! -z "$(INSTALL_SSH_RAND_HELPER)" ]; then \
287 $(INSTALL) -m 644 ssh-rand-helper.8.out $(DESTDIR)$(mandir)/$(mansubdir)8/ssh-rand-helper.8 ; \
288 fi
289 $(INSTALL) -m 644 sftp.1.out $(DESTDIR)$(mandir)/$(mansubdir)1/sftp.1 272 $(INSTALL) -m 644 sftp.1.out $(DESTDIR)$(mandir)/$(mansubdir)1/sftp.1
290 $(INSTALL) -m 644 sftp-server.8.out $(DESTDIR)$(mandir)/$(mansubdir)8/sftp-server.8 273 $(INSTALL) -m 644 sftp-server.8.out $(DESTDIR)$(mandir)/$(mansubdir)8/sftp-server.8
291 $(INSTALL) -m 644 ssh-keysign.8.out $(DESTDIR)$(mandir)/$(mansubdir)8/ssh-keysign.8 274 $(INSTALL) -m 644 ssh-keysign.8.out $(DESTDIR)$(mandir)/$(mansubdir)8/ssh-keysign.8
@@ -309,13 +292,6 @@ install-sysconf:
309 else \ 292 else \
310 echo "$(DESTDIR)$(sysconfdir)/sshd_config already exists, install will not overwrite"; \ 293 echo "$(DESTDIR)$(sysconfdir)/sshd_config already exists, install will not overwrite"; \
311 fi 294 fi
312 @if [ -f ssh_prng_cmds ] && [ ! -z "$(INSTALL_SSH_PRNG_CMDS)" ]; then \
313 if [ ! -f $(DESTDIR)$(sysconfdir)/ssh_prng_cmds ] ; then \
314 $(INSTALL) -m 644 ssh_prng_cmds.out $(DESTDIR)$(sysconfdir)/ssh_prng_cmds; \
315 else \
316 echo "$(DESTDIR)$(sysconfdir)/ssh_prng_cmds already exists, install will not overwrite"; \
317 fi ; \
318 fi
319 @if [ ! -f $(DESTDIR)$(sysconfdir)/moduli ]; then \ 295 @if [ ! -f $(DESTDIR)$(sysconfdir)/moduli ]; then \
320 if [ -f $(DESTDIR)$(sysconfdir)/primes ]; then \ 296 if [ -f $(DESTDIR)$(sysconfdir)/primes ]; then \
321 echo "moving $(DESTDIR)$(sysconfdir)/primes to $(DESTDIR)$(sysconfdir)/moduli"; \ 297 echo "moving $(DESTDIR)$(sysconfdir)/primes to $(DESTDIR)$(sysconfdir)/moduli"; \
@@ -362,7 +338,6 @@ host-key-force: ssh-keygen$(EXEEXT)
362uninstallall: uninstall 338uninstallall: uninstall
363 -rm -f $(DESTDIR)$(sysconfdir)/ssh_config 339 -rm -f $(DESTDIR)$(sysconfdir)/ssh_config
364 -rm -f $(DESTDIR)$(sysconfdir)/sshd_config 340 -rm -f $(DESTDIR)$(sysconfdir)/sshd_config
365 -rm -f $(DESTDIR)$(sysconfdir)/ssh_prng_cmds
366 -rmdir $(DESTDIR)$(sysconfdir) 341 -rmdir $(DESTDIR)$(sysconfdir)
367 -rmdir $(DESTDIR)$(bindir) 342 -rmdir $(DESTDIR)$(bindir)
368 -rmdir $(DESTDIR)$(sbindir) 343 -rmdir $(DESTDIR)$(sbindir)
@@ -384,7 +359,6 @@ uninstall:
384 -rm -r $(DESTDIR)$(SFTP_SERVER)$(EXEEXT) 359 -rm -r $(DESTDIR)$(SFTP_SERVER)$(EXEEXT)
385 -rm -f $(DESTDIR)$(SSH_KEYSIGN)$(EXEEXT) 360 -rm -f $(DESTDIR)$(SSH_KEYSIGN)$(EXEEXT)
386 -rm -f $(DESTDIR)$(SSH_PKCS11_HELPER)$(EXEEXT) 361 -rm -f $(DESTDIR)$(SSH_PKCS11_HELPER)$(EXEEXT)
387 -rm -f $(DESTDIR)$(RAND_HELPER)$(EXEEXT)
388 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/ssh.1 362 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/ssh.1
389 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/scp.1 363 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/scp.1
390 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-add.1 364 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-add.1
@@ -393,7 +367,6 @@ uninstall:
393 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/sftp.1 367 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/sftp.1
394 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-keyscan.1 368 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-keyscan.1
395 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)8/sshd.8 369 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)8/sshd.8
396 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)8/ssh-rand-helper.8
397 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)8/sftp-server.8 370 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)8/sftp-server.8
398 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)8/ssh-keysign.8 371 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)8/ssh-keysign.8
399 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)8/ssh-pkcs11-helper.8 372 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)8/ssh-pkcs11-helper.8
@@ -463,7 +436,7 @@ survey: survey.sh ssh
463send-survey: survey 436send-survey: survey
464 mail portable-survey@mindrot.org <survey 437 mail portable-survey@mindrot.org <survey
465 438
466package: $(CONFIGFILES) ssh_prng_cmds.out $(MANPAGES) $(TARGETS) 439package: $(CONFIGFILES) $(MANPAGES) $(TARGETS)
467 if [ "@MAKE_PACKAGE_SUPPORTED@" = yes ]; then \ 440 if [ "@MAKE_PACKAGE_SUPPORTED@" = yes ]; then \
468 sh buildpkg.sh; \ 441 sh buildpkg.sh; \
469 fi 442 fi