]> andersk Git - openssh.git/blame - Makefile.in
- Fixpaths was missing /etc/ssh_known_hosts. Report from Jim Knoble
[openssh.git] / Makefile.in
CommitLineData
5881cd60 1prefix=@prefix@
2exec_prefix=@exec_prefix@
3bindir=@bindir@
4sbindir=@sbindir@
42b89914 5libexecdir=@libexecdir@
bb0dd7f6 6mandir=@mandir@
c54a6257 7mansubdir=@mansubdir@
af381f02 8sysconfdir=@sysconfdir@
19d9ac2a 9piddir=@piddir@
10srcdir=@srcdir@
11top_srcdir=@top_srcdir@
5881cd60 12
d2dcff5f 13VPATH=@srcdir@
14
d4f11b59 15SSH_PROGRAM=@bindir@/ssh
bc7ea646 16ASKPASS_LOCATION=@libexecdir@/ssh
17ASKPASS_PROGRAM=$(ASKPASS_LOCATION)/ssh-askpass
d4f11b59 18
5881cd60 19CC=@CC@
db28aeb5 20PATHS=-DETCDIR=\"$(sysconfdir)\" -DSSH_PROGRAM=\"$(SSH_PROGRAM)\" -DSSH_ASKPASS_DEFAULT=\"$(ASKPASS_PROGRAM)\"
d4f11b59 21CFLAGS=@CFLAGS@ $(PATHS) @DEFS@
6a0aeebc 22EXTRA_TARGETS=@GNOME_ASKPASS@
17f0f4a7 23LIBS=@LIBS@
5881cd60 24AR=@AR@
25RANLIB=@RANLIB@
cf8dd513 26INSTALL=@INSTALL@
a0f84251 27PERL=@PERL@
6cfb695b 28LDFLAGS=-L. @LDFLAGS@
5881cd60 29
17f0f4a7 30GNOME_CFLAGS=`gnome-config --cflags gnome gnomeui`
31GNOME_LIBS=`gnome-config --libs gnome gnomeui`
32
48e671d5 33TARGETS=ssh sshd ssh-add ssh-keygen ssh-agent scp $(EXTRA_TARGETS)
34
35LIBOBJS= atomicio.o authfd.o authfile.o bsd-bindresvport.o bsd-daemon.o bsd-misc.o bsd-mktemp.o bsd-rresvport.o bsd-snprintf.o bsd-strlcat.o bsd-strlcpy.o bufaux.o buffer.o canohost.o channels.o cipher.o compat.o compress.o crc32.o deattack.o fake-getaddrinfo.o fake-getnameinfo.o fingerprint.o hostfile.o log.o match.o mpaux.o nchan.o packet.o radix.o readpass.o rsa.o tildexpand.o ttymodes.o uidswap.o xmalloc.o
6cfb695b 36
a5c9cd31 37SSHOBJS= ssh.o sshconnect.o log-client.o readconf.o clientloop.o
38
48e671d5 39SSHDOBJS= sshd.o auth-rhosts.o auth-krb4.o auth-pam.o auth-passwd.o auth-rsa.o auth-rh-rsa.o pty.o log-server.o login.o servconf.o serverloop.o bsd-login.o md5crypt.o
a5c9cd31 40
c54a6257 41TROFFMAN = scp.1 ssh-add.1 ssh-agent.1 ssh-keygen.1 ssh.1 sshd.8
42CATMAN = scp.0 ssh-add.0 ssh-agent.0 ssh-keygen.0 ssh.0 sshd.0
43MANPAGES = @MANTYPE@
a1ec4d79 44
45CONFIGFILES=sshd_config ssh_config
46
7e31dc81 47PATHSUBS = -D/etc/ssh_config=$(sysconfdir)/ssh_config -D/etc/known_hosts=$(sysconfdir)/ssh_known_hosts -D/etc/sshd_config=$(sysconfdir)/sshd_config -D/etc/shosts.equiv=$(sysconfdir)/shosts.equiv -D/etc/ssh_host_key=$(sysconfdir)/ssh_host_key -D/var/run/sshd.pid=$(piddir)/sshd.pid
5f4fdfae 48
49FIXPATHSCMD = $(PERL) $(srcdir)/fixpaths $(PATHSUBS)
50
48e671d5 51all: $(TARGETS) $(MANPAGES) $(CONFIGFILES)
6cfb695b 52
f74efc8d 53$(LIBOBJS): config.h
54
6cfb695b 55libssh.a: $(LIBOBJS)
56 $(AR) rv $@ $(LIBOBJS)
5881cd60 57 $(RANLIB) $@
58
48e671d5 59ssh: libssh.a $(SSHOBJS)
a5c9cd31 60 $(CC) -o $@ $(SSHOBJS) $(LDFLAGS) -lssh $(LIBS)
5881cd60 61
48e671d5 62sshd: libssh.a $(SSHDOBJS)
dfb95100 63 $(CC) -o $@ $(SSHDOBJS) $(LDFLAGS) -lssh $(LIBS)
5881cd60 64
48e671d5 65scp: libssh.a scp.o
6cfb695b 66 $(CC) -o $@ scp.o $(LDFLAGS) -lssh $(LIBS)
5881cd60 67
48e671d5 68ssh-add: libssh.a ssh-add.o log-client.o
6cfb695b 69 $(CC) -o $@ ssh-add.o log-client.o $(LDFLAGS) -lssh $(LIBS)
5881cd60 70
48e671d5 71ssh-agent: libssh.a ssh-agent.o log-client.o
6cfb695b 72 $(CC) -o $@ ssh-agent.o log-client.o $(LDFLAGS) -lssh $(LIBS)
5881cd60 73
48e671d5 74ssh-keygen: libssh.a ssh-keygen.o log-client.o
6cfb695b 75 $(CC) -o $@ ssh-keygen.o log-client.o $(LDFLAGS) -lssh $(LIBS)
5881cd60 76
17f0f4a7 77gnome-ssh-askpass: gnome-ssh-askpass.c
78 $(CC) $(CFLAGS) $(GNOME_CFLAGS) -o $@ gnome-ssh-askpass.c $(GNOME_LIBS)
79
5f4fdfae 80$(MANPAGES) $(CONFIGFILES)::
81 $(FIXPATHSCMD) $(srcdir)/$@
e1a9c08d 82
48e671d5 83clean:
84 rm -f *.o *.a $(TARGETS) config.status config.cache config.log
5f4fdfae 85 rm -f *.out core
48e671d5 86
87distclean: clean
88 rm -f Makefile config.h core *~
89
90mrproper: distclean
91
92veryclean: distclean
c54a6257 93 rm -f configure config.h.in *.0
94
95catman-do:
96 @for f in $(TROFFMAN) ; do \
97 echo "$$f -> $${f%%.[18]}.0" ; \
98 nroff -mandoc $$f | cat -v | sed -e 's/.\^H//g' \
99 >$${f%%.[18]}.0 ; \
100 done
48e671d5 101
a1ec4d79 102install: $(TARGETS)
cf8dd513 103 $(INSTALL) -d $(bindir)
104 $(INSTALL) -d $(sbindir)
105 $(INSTALL) -d $(mandir)
c54a6257 106 $(INSTALL) -d $(mandir)/$(mansubdir)1
107 $(INSTALL) -d $(mandir)/$(mansubdir)8
d8b40f88 108 $(INSTALL) -s ssh $(bindir)/ssh
109 $(INSTALL) -s scp $(bindir)/scp
110 $(INSTALL) -s ssh-add $(bindir)/ssh-add
111 $(INSTALL) -s ssh-agent $(bindir)/ssh-agent
112 $(INSTALL) -s ssh-keygen $(bindir)/ssh-keygen
113 $(INSTALL) -s sshd $(sbindir)/sshd
c54a6257 114 $(INSTALL) -m 644 ssh.[01].out $(mandir)/$(mansubdir)1/ssh.1
115 $(INSTALL) -m 644 scp.[01].out $(mandir)/$(mansubdir)1/scp.1
116 $(INSTALL) -m 644 ssh-add.[01].out $(mandir)/$(mansubdir)1/ssh-add.1
117 $(INSTALL) -m 644 ssh-agent.[01].out $(mandir)/$(mansubdir)1/ssh-agent.1
118 $(INSTALL) -m 644 ssh-keygen.[01].out $(mandir)/$(mansubdir)1/ssh-keygen.1
119 $(INSTALL) -m 644 sshd.[08].out $(mandir)/$(mansubdir)8/sshd.8
c6aeb966 120 -rm -f $(bindir)/slogin
121 ln -s ssh $(bindir)/slogin
c54a6257 122 -rm -f $(mandir)/$(mansubdir)1/slogin.1
123 ln -s ssh.1 $(mandir)/$(mansubdir)1/slogin.1
045672f9 124
a2b62424 125 if [ ! -z "@GNOME_ASKPASS@" ] ; then \
5ee321fc 126 $(INSTALL) -d $(libexecdir) ; \
127 $(INSTALL) -d $(libexecdir)/ssh ; \
bc7ea646 128 $(INSTALL) -s @GNOME_ASKPASS@ ${ASKPASS_LOCATION} ; \
045672f9 129 fi
5881cd60 130
af381f02 131 if [ ! -f $(sysconfdir)/ssh_config -a ! -f $(sysconfdir)/sshd_config ]; then \
cf8dd513 132 $(INSTALL) -d $(sysconfdir); \
5f4fdfae 133 $(INSTALL) -m 644 ssh_config.out $(sysconfdir)/ssh_config; \
134 $(INSTALL) -m 644 sshd_config.out $(sysconfdir)/sshd_config; \
af381f02 135 fi
136
8946db53 137uninstallall: uninstall
138 -rm -f $(sysconfdir)/ssh_config
139 -rm -f $(sysconfdir)/sshd_config
140 -rmdir $(sysconfdir)
141 -rmdir $(bindir)
142 -rmdir $(sbindir)
c54a6257 143 -rmdir $(mandir)/$(mansubdir)1
144 -rmdir $(mandir)/$(mansubdir)8
8946db53 145 -rmdir $(mandir)
146 -rmdir $(libexecdir)
147
148uninstall:
149 -rm -f $(bindir)/ssh
150 -rm -f $(bindir)/scp
151 -rm -f $(bindir)/ssh-add
152 -rm -f $(bindir)/ssh-agent
153 -rm -f $(bindir)/ssh-keygen
154 -rm -f $(sbindir)/sshd
c54a6257 155 -rm -f $(mandir)/$(mansubdir)1/ssh.1
156 -rm -f $(mandir)/$(mansubdir)1/scp.1
157 -rm -f $(mandir)/$(mansubdir)1/ssh-add.1
158 -rm -f $(mandir)/$(mansubdir)1/ssh-agent.1
159 -rm -f $(mandir)/$(mansubdir)1/ssh-keygen.1
160 -rm -f $(mandir)/$(mansubdir)8/sshd.8
8946db53 161 -rm -f $(bindir)/slogin
c54a6257 162 -rm -f $(mandir)/$(mansubdir)1/slogin.1
8946db53 163 -rm -f ${ASKPASS_PROGRAM}
164 -rmdir $(libexecdir)/ssh ;
This page took 0.115267 seconds and 5 git commands to generate.