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