]> andersk Git - openssh.git/blob - Makefile.in
- Fixes to auth-skey to enable it to use the standard OpenSSL libraries
[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 sysconfdir=@sysconfdir@
8
9 srcdir = @srcdir@
10 top_srcdir = @top_srcdir@
11 VPATH=@srcdir@
12
13 SSH_PROGRAM=@bindir@/ssh
14 ASKPASS_LOCATION=@libexecdir@/ssh
15 ASKPASS_PROGRAM=$(ASKPASS_LOCATION)/ssh-askpass
16 FIXPATHS=@top_srcdir@/fixpaths
17
18 CC=@CC@
19 PATHS=-DETCDIR=\"$(sysconfdir)\" -DSSH_PROGRAM=\"$(SSH_PROGRAM)\" -DSSH_ASKPASS_DEFAULT=\"$(ASKPASS_PROGRAM)\"
20 CFLAGS=@CFLAGS@ $(PATHS) @DEFS@
21 EXTRA_TARGETS=@GNOME_ASKPASS@
22 TARGETS=libssh.a ssh sshd ssh-add ssh-keygen ssh-agent scp $(EXTRA_TARGETS)
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 OBJS= atomicio.o authfd.o authfile.o auth-krb4.o auth-passwd.o auth-pam.o \
34   auth-rhosts.o auth-rh-rsa.o auth-rsa.o auth-skey.o bsd-daemon.o \
35   bsd-login.o bsd-misc.o bsd-mktemp.o bsd-snprintf.o bsd-strlcat.o \
36   bsd-strlcpy.o bufaux.o buffer.o canohost.o channels.o cipher.o \
37   clientloop.o compress.o crc32.o deattack.o hostfile.o \
38   log-client.o login.o log-server.o match.o md5crypt.o mpaux.o \
39   packet.o pty.o radix.o readconf.o readpass.o rsa.o servconf.o \
40   serverloop.o sshconnect.o tildexpand.o ttymodes.o uidswap.o \
41   xmalloc.o 
42
43 LIBOBJS= atomicio.o authfd.o authfile.o bsd-daemon.o bsd-misc.o \
44   bsd-mktemp.o bsd-snprintf.o bsd-strlcat.o bsd-strlcpy.o bufaux.o \
45   buffer.o canohost.o channels.o cipher.o compat.o compress.o crc32.o \
46   deattack.o fingerprint.o hostfile.o log.o match.o mpaux.o nchan.o \
47   packet.o radix.o readpass.o rsa.o tildexpand.o ttymodes.o uidswap.o \
48   xmalloc.o 
49
50 SSHOBJS= ssh.o sshconnect.o log-client.o readconf.o clientloop.o
51
52 SSHDOBJS= sshd.o auth-rhosts.o auth-krb4.o auth-pam.o auth-passwd.o \
53   auth-rsa.o auth-rh-rsa.o pty.o log-server.o login.o servconf.o \
54   serverloop.o bsd-login.o md5crypt.o
55
56 MANPAGES=scp.1 ssh-add.1 ssh-agent.1 ssh-keygen.1 ssh.1 sshd.8
57
58 CONFIGFILES=sshd_config ssh_config
59
60 all: $(OBJS) $(TARGETS) $(MANPAGES) $(CONFIGFILES)
61
62 $(OBJS): config.h
63
64 $(LIBOBJS): config.h
65
66 libssh.a: $(LIBOBJS)
67         $(AR) rv $@ $(LIBOBJS)
68         $(RANLIB) $@
69
70 ssh: $(SSHOBJS) libssh.a
71         $(CC) -o $@ $(SSHOBJS) $(LDFLAGS) -lssh $(LIBS)
72
73 sshd:   $(SSHDOBJS) libssh.a
74         $(CC) -o $@ $(SSHDOBJS) $(LDFLAGS) -lssh $(LIBS)
75
76 scp:    scp.o libssh.a
77         $(CC) -o $@ scp.o $(LDFLAGS) -lssh $(LIBS) 
78
79 ssh-add: ssh-add.o log-client.o libssh.a
80         $(CC) -o $@ ssh-add.o log-client.o $(LDFLAGS) -lssh $(LIBS) 
81
82 ssh-agent: ssh-agent.o log-client.o libssh.a
83         $(CC) -o $@ ssh-agent.o log-client.o $(LDFLAGS) -lssh $(LIBS) 
84
85 ssh-keygen: ssh-keygen.o log-client.o libssh.a
86         $(CC) -o $@ ssh-keygen.o log-client.o $(LDFLAGS) -lssh $(LIBS) 
87
88 gnome-ssh-askpass: gnome-ssh-askpass.c
89         $(CC) $(CFLAGS) $(GNOME_CFLAGS) -o $@ gnome-ssh-askpass.c $(GNOME_LIBS)
90
91 clean:
92         rm -f *.o $(TARGETS) config.status config.cache config.log core \
93                 *.1 *.8 sshd_config ssh_config
94
95 scp.1: scp.1.in
96         $(PERL) $(FIXPATHS) -Dsysconfdir=${sysconfdir} $(srcdir)/scp.1.in
97
98 ssh-add.1: ssh-add.1.in
99         $(PERL) $(FIXPATHS) -Dsysconfdir=${sysconfdir} ssh-add.1.in
100
101 ssh-agent.1: ssh-agent.1.in
102         $(PERL) $(FIXPATHS) -Dsysconfdir=${sysconfdir} ssh-agent.1.in
103
104 ssh-keygen.1: ssh-keygen.1.in
105         $(PERL) $(FIXPATHS) -Dsysconfdir=${sysconfdir} ssh-keygen.1.in
106
107 ssh.1: ssh.1.in
108         $(PERL) $(FIXPATHS) -Dsysconfdir=${sysconfdir} ssh.1.in
109
110 sshd.8: sshd.8.in
111         $(PERL) $(FIXPATHS) -Dsysconfdir=${sysconfdir} sshd.8.in
112
113 sshd_config: sshd_config.in
114         $(PERL) $(FIXPATHS) -Dsysconfdir=${sysconfdir} sshd_config.in
115
116 ssh_config: ssh_config.in
117         $(PERL) $(FIXPATHS) -Dsysconfdir=${sysconfdir} ssh_config.in
118
119 install: $(TARGETS)
120         $(INSTALL) -d $(bindir)
121         $(INSTALL) -d $(sbindir)
122         $(INSTALL) -d $(mandir)
123         $(INSTALL) -d $(mandir)/man1
124         $(INSTALL) -d $(mandir)/man8
125         $(INSTALL) -s ssh $(bindir)/ssh
126         $(INSTALL) -s scp $(bindir)/scp
127         $(INSTALL) -s ssh-add $(bindir)/ssh-add
128         $(INSTALL) -s ssh-agent $(bindir)/ssh-agent
129         $(INSTALL) -s ssh-keygen $(bindir)/ssh-keygen
130         $(INSTALL) -s sshd $(sbindir)/sshd
131         $(INSTALL) -m 644 ssh.1 $(mandir)/man1/ssh.1
132         $(INSTALL) -m 644 scp.1 $(mandir)/man1/scp.1
133         $(INSTALL) -m 644 ssh-add.1 $(mandir)/man1/ssh-add.1
134         $(INSTALL) -m 644 ssh-agent.1 $(mandir)/man1/ssh-agent.1
135         $(INSTALL) -m 644 ssh-keygen.1 $(mandir)/man1/ssh-keygen.1
136         $(INSTALL) -m 644 sshd.8 $(mandir)/man8/sshd.8
137         -rm -f $(bindir)/slogin
138         ln -s ssh $(bindir)/slogin
139         -rm -f $(mandir)/man1/slogin.1
140         ln -s ssh.1 $(mandir)/man1/slogin.1
141
142         if [ ! -z "@GNOME_ASKPASS@" ] ; then \
143                 $(INSTALL) -d $(libexecdir) ; \
144                 $(INSTALL) -d $(libexecdir)/ssh ; \
145                 $(INSTALL) -s @GNOME_ASKPASS@ ${ASKPASS_LOCATION} ; \
146         fi
147
148         if [ ! -f $(sysconfdir)/ssh_config -a ! -f $(sysconfdir)/sshd_config ]; then \
149                 $(INSTALL) -d $(sysconfdir); \
150                 $(INSTALL) -m 644 ssh_config $(sysconfdir)/ssh_config; \
151                 $(INSTALL) -m 644 sshd_config $(sysconfdir)/sshd_config; \
152         fi
153
154 uninstallall:   uninstall
155         -rm -f $(sysconfdir)/ssh_config
156         -rm -f $(sysconfdir)/sshd_config
157         -rmdir $(sysconfdir)
158         -rmdir $(bindir)
159         -rmdir $(sbindir)
160         -rmdir $(mandir)/man1
161         -rmdir $(mandir)/man8
162         -rmdir $(mandir)
163         -rmdir $(libexecdir)
164
165 uninstall: 
166         -rm -f $(bindir)/ssh
167         -rm -f $(bindir)/scp
168         -rm -f $(bindir)/ssh-add
169         -rm -f $(bindir)/ssh-agent
170         -rm -f $(bindir)/ssh-keygen
171         -rm -f $(sbindir)/sshd
172         -rm -f $(mandir)/man1/ssh.1
173         -rm -f $(mandir)/man1/scp.1
174         -rm -f $(mandir)/man1/ssh-add.1
175         -rm -f $(mandir)/man1/ssh-agent.1
176         -rm -f $(mandir)/man1/ssh-keygen.1
177         -rm -f $(mandir)/man8/sshd.8
178         -rm -f $(bindir)/slogin
179         -rm -f $(mandir)/man1/slogin.1
180         -rm -f ${ASKPASS_PROGRAM}
181         -rmdir $(libexecdir)/ssh ;
182
183 distclean: clean
184         rm -f Makefile config.h core *~
185
186 mrproper: distclean
187
188 veryclean: distclean
189         rm -f configure config.h.in
190
This page took 0.403836 seconds and 5 git commands to generate.