]> andersk Git - openssh.git/blob - Makefile.in
- Fixpaths was missing /etc/ssh_known_hosts. Report from Jim Knoble
[openssh.git] / Makefile.in
1 prefix=@prefix@
2 exec_prefix=@exec_prefix@
3 bindir=@bindir@
4 sbindir=@sbindir@
5 libexecdir=@libexecdir@
6 mandir=@mandir@
7 mansubdir=@mansubdir@
8 sysconfdir=@sysconfdir@
9 piddir=@piddir@
10 srcdir=@srcdir@
11 top_srcdir=@top_srcdir@
12
13 VPATH=@srcdir@
14
15 SSH_PROGRAM=@bindir@/ssh
16 ASKPASS_LOCATION=@libexecdir@/ssh
17 ASKPASS_PROGRAM=$(ASKPASS_LOCATION)/ssh-askpass
18
19 CC=@CC@
20 PATHS=-DETCDIR=\"$(sysconfdir)\" -DSSH_PROGRAM=\"$(SSH_PROGRAM)\" -DSSH_ASKPASS_DEFAULT=\"$(ASKPASS_PROGRAM)\"
21 CFLAGS=@CFLAGS@ $(PATHS) @DEFS@
22 EXTRA_TARGETS=@GNOME_ASKPASS@
23 LIBS=@LIBS@
24 AR=@AR@
25 RANLIB=@RANLIB@
26 INSTALL=@INSTALL@
27 PERL=@PERL@
28 LDFLAGS=-L. @LDFLAGS@
29
30 GNOME_CFLAGS=`gnome-config --cflags gnome gnomeui`
31 GNOME_LIBS=`gnome-config --libs gnome gnomeui`
32
33 TARGETS=ssh sshd ssh-add ssh-keygen ssh-agent scp $(EXTRA_TARGETS)
34
35 LIBOBJS= 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 
36
37 SSHOBJS= ssh.o sshconnect.o log-client.o readconf.o clientloop.o
38
39 SSHDOBJS= 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
40
41 TROFFMAN        = scp.1 ssh-add.1 ssh-agent.1 ssh-keygen.1 ssh.1 sshd.8
42 CATMAN          = scp.0 ssh-add.0 ssh-agent.0 ssh-keygen.0 ssh.0 sshd.0
43 MANPAGES        = @MANTYPE@
44
45 CONFIGFILES=sshd_config ssh_config
46
47 PATHSUBS        = -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
48
49 FIXPATHSCMD     = $(PERL) $(srcdir)/fixpaths $(PATHSUBS)
50
51 all: $(TARGETS) $(MANPAGES) $(CONFIGFILES)
52
53 $(LIBOBJS): config.h
54
55 libssh.a: $(LIBOBJS)
56         $(AR) rv $@ $(LIBOBJS)
57         $(RANLIB) $@
58
59 ssh: libssh.a $(SSHOBJS)
60         $(CC) -o $@ $(SSHOBJS) $(LDFLAGS) -lssh $(LIBS)
61
62 sshd: libssh.a  $(SSHDOBJS)
63         $(CC) -o $@ $(SSHDOBJS) $(LDFLAGS) -lssh $(LIBS)
64
65 scp: libssh.a scp.o
66         $(CC) -o $@ scp.o $(LDFLAGS) -lssh $(LIBS) 
67
68 ssh-add: libssh.a ssh-add.o log-client.o
69         $(CC) -o $@ ssh-add.o log-client.o $(LDFLAGS) -lssh $(LIBS) 
70
71 ssh-agent: libssh.a ssh-agent.o log-client.o
72         $(CC) -o $@ ssh-agent.o log-client.o $(LDFLAGS) -lssh $(LIBS) 
73
74 ssh-keygen: libssh.a ssh-keygen.o log-client.o
75         $(CC) -o $@ ssh-keygen.o log-client.o $(LDFLAGS) -lssh $(LIBS) 
76
77 gnome-ssh-askpass: gnome-ssh-askpass.c
78         $(CC) $(CFLAGS) $(GNOME_CFLAGS) -o $@ gnome-ssh-askpass.c $(GNOME_LIBS)
79
80 $(MANPAGES) $(CONFIGFILES)::
81         $(FIXPATHSCMD) $(srcdir)/$@
82
83 clean:
84         rm -f *.o *.a $(TARGETS) config.status config.cache config.log 
85         rm -f *.out core
86
87 distclean: clean
88         rm -f Makefile config.h core *~
89
90 mrproper: distclean
91
92 veryclean: distclean
93         rm -f configure config.h.in *.0
94
95 catman-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
101
102 install: $(TARGETS)
103         $(INSTALL) -d $(bindir)
104         $(INSTALL) -d $(sbindir)
105         $(INSTALL) -d $(mandir)
106         $(INSTALL) -d $(mandir)/$(mansubdir)1
107         $(INSTALL) -d $(mandir)/$(mansubdir)8
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
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
120         -rm -f $(bindir)/slogin
121         ln -s ssh $(bindir)/slogin
122         -rm -f $(mandir)/$(mansubdir)1/slogin.1
123         ln -s ssh.1 $(mandir)/$(mansubdir)1/slogin.1
124
125         if [ ! -z "@GNOME_ASKPASS@" ] ; then \
126                 $(INSTALL) -d $(libexecdir) ; \
127                 $(INSTALL) -d $(libexecdir)/ssh ; \
128                 $(INSTALL) -s @GNOME_ASKPASS@ ${ASKPASS_LOCATION} ; \
129         fi
130
131         if [ ! -f $(sysconfdir)/ssh_config -a ! -f $(sysconfdir)/sshd_config ]; then \
132                 $(INSTALL) -d $(sysconfdir); \
133                 $(INSTALL) -m 644 ssh_config.out $(sysconfdir)/ssh_config; \
134                 $(INSTALL) -m 644 sshd_config.out $(sysconfdir)/sshd_config; \
135         fi
136
137 uninstallall:   uninstall
138         -rm -f $(sysconfdir)/ssh_config
139         -rm -f $(sysconfdir)/sshd_config
140         -rmdir $(sysconfdir)
141         -rmdir $(bindir)
142         -rmdir $(sbindir)
143         -rmdir $(mandir)/$(mansubdir)1
144         -rmdir $(mandir)/$(mansubdir)8
145         -rmdir $(mandir)
146         -rmdir $(libexecdir)
147
148 uninstall: 
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
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
161         -rm -f $(bindir)/slogin
162         -rm -f $(mandir)/$(mansubdir)1/slogin.1
163         -rm -f ${ASKPASS_PROGRAM}
164         -rmdir $(libexecdir)/ssh ;
This page took 0.042138 seconds and 5 git commands to generate.