]> andersk Git - openssh.git/blame - Makefile.in
- Run fixpaths before install. (Andre Lucas)
[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
d2dcff5f 57all: $(OBJS) $(TARGETS) manpages
6cfb695b 58
f74efc8d 59$(OBJS): config.h
60
61$(LIBOBJS): config.h
62
6cfb695b 63libssh.a: $(LIBOBJS)
64 $(AR) rv $@ $(LIBOBJS)
5881cd60 65 $(RANLIB) $@
66
a5c9cd31 67ssh: $(SSHOBJS) libssh.a
68 $(CC) -o $@ $(SSHOBJS) $(LDFLAGS) -lssh $(LIBS)
5881cd60 69
a5c9cd31 70sshd: $(SSHDOBJS) libssh.a
71 $(CC) -o $@ $(SSHDOBJS) $(LDFLAGS) -lssh $(LIBS) $(LIBWRAP)
5881cd60 72
17f0f4a7 73scp: scp.o libssh.a
6cfb695b 74 $(CC) -o $@ scp.o $(LDFLAGS) -lssh $(LIBS)
5881cd60 75
17f0f4a7 76ssh-add: ssh-add.o log-client.o libssh.a
6cfb695b 77 $(CC) -o $@ ssh-add.o log-client.o $(LDFLAGS) -lssh $(LIBS)
5881cd60 78
17f0f4a7 79ssh-agent: ssh-agent.o log-client.o libssh.a
6cfb695b 80 $(CC) -o $@ ssh-agent.o log-client.o $(LDFLAGS) -lssh $(LIBS)
5881cd60 81
17f0f4a7 82ssh-keygen: ssh-keygen.o log-client.o libssh.a
6cfb695b 83 $(CC) -o $@ ssh-keygen.o log-client.o $(LDFLAGS) -lssh $(LIBS)
5881cd60 84
17f0f4a7 85gnome-ssh-askpass: gnome-ssh-askpass.c
86 $(CC) $(CFLAGS) $(GNOME_CFLAGS) -o $@ gnome-ssh-askpass.c $(GNOME_LIBS)
87
5881cd60 88clean:
d94aa2ae 89 rm -f *.o $(TARGETS) config.status config.cache config.log core \
d2dcff5f 90 *.1 *.8 sshd_config ssh_config
91
92manpages:
5ab44a92 93 $(PERL) $(FIXPATHS) -Dsysconfdir=${sysconfdir} $(srcdir)/*.[18].in $(srcdir)/ssh*_config.in
e1a9c08d 94
ea3c15bc 95install: manpages all
cf8dd513 96 $(INSTALL) -d $(bindir)
97 $(INSTALL) -d $(sbindir)
98 $(INSTALL) -d $(mandir)
99 $(INSTALL) -d $(mandir)/man1
100 $(INSTALL) -d $(mandir)/man8
d8b40f88 101 $(INSTALL) -s ssh $(bindir)/ssh
102 $(INSTALL) -s scp $(bindir)/scp
103 $(INSTALL) -s ssh-add $(bindir)/ssh-add
104 $(INSTALL) -s ssh-agent $(bindir)/ssh-agent
105 $(INSTALL) -s ssh-keygen $(bindir)/ssh-keygen
106 $(INSTALL) -s sshd $(sbindir)/sshd
847e8865 107 $(INSTALL) -m 644 ssh.1 $(mandir)/man1/ssh.1
108 $(INSTALL) -m 644 scp.1 $(mandir)/man1/scp.1
109 $(INSTALL) -m 644 ssh-add.1 $(mandir)/man1/ssh-add.1
110 $(INSTALL) -m 644 ssh-agent.1 $(mandir)/man1/ssh-agent.1
111 $(INSTALL) -m 644 ssh-keygen.1 $(mandir)/man1/ssh-keygen.1
112 $(INSTALL) -m 644 sshd.8 $(mandir)/man8/sshd.8
c6aeb966 113 -rm -f $(bindir)/slogin
114 ln -s ssh $(bindir)/slogin
115 -rm -f $(mandir)/man1/slogin.1
116 ln -s ssh.1 $(mandir)/man1/slogin.1
045672f9 117
a2b62424 118 if [ ! -z "@GNOME_ASKPASS@" ] ; then \
5ee321fc 119 $(INSTALL) -d $(libexecdir) ; \
120 $(INSTALL) -d $(libexecdir)/ssh ; \
bc7ea646 121 $(INSTALL) -s @GNOME_ASKPASS@ ${ASKPASS_LOCATION} ; \
045672f9 122 fi
5881cd60 123
af381f02 124 if [ ! -f $(sysconfdir)/ssh_config -a ! -f $(sysconfdir)/sshd_config ]; then \
cf8dd513 125 $(INSTALL) -d $(sysconfdir); \
847e8865 126 $(INSTALL) -m 644 ssh_config $(sysconfdir)/ssh_config; \
127 $(INSTALL) -m 644 sshd_config $(sysconfdir)/sshd_config; \
af381f02 128 fi
129
8946db53 130uninstallall: uninstall
131 -rm -f $(sysconfdir)/ssh_config
132 -rm -f $(sysconfdir)/sshd_config
133 -rmdir $(sysconfdir)
134 -rmdir $(bindir)
135 -rmdir $(sbindir)
136 -rmdir $(mandir)/man1
137 -rmdir $(mandir)/man8
138 -rmdir $(mandir)
139 -rmdir $(libexecdir)
140
141uninstall:
142 -rm -f $(bindir)/ssh
143 -rm -f $(bindir)/scp
144 -rm -f $(bindir)/ssh-add
145 -rm -f $(bindir)/ssh-agent
146 -rm -f $(bindir)/ssh-keygen
147 -rm -f $(sbindir)/sshd
148 -rm -f $(mandir)/man1/ssh.1
149 -rm -f $(mandir)/man1/scp.1
150 -rm -f $(mandir)/man1/ssh-add.1
151 -rm -f $(mandir)/man1/ssh-agent.1
152 -rm -f $(mandir)/man1/ssh-keygen.1
153 -rm -f $(mandir)/man8/sshd.8
154 -rm -f $(bindir)/slogin
155 -rm -f $(mandir)/man1/slogin.1
8946db53 156 -rm -f ${ASKPASS_PROGRAM}
157 -rmdir $(libexecdir)/ssh ;
158
5881cd60 159distclean: clean
e1a9c08d 160 rm -f Makefile config.h core *~
5881cd60 161
162mrproper: distclean
e1a9c08d 163
164veryclean: distclean
d4f11b59 165 rm -f configure config.h.in
166
This page took 1.140389 seconds and 5 git commands to generate.