]> andersk Git - openssh.git/blame - Makefile.in
- Redhat RPM spec fixes from Jim Knoble <jmknoble@pobox.com>
[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
d4f11b59 9SSH_PROGRAM=@bindir@/ssh
bc7ea646 10ASKPASS_LOCATION=@libexecdir@/ssh
11ASKPASS_PROGRAM=$(ASKPASS_LOCATION)/ssh-askpass
d4f11b59 12
5881cd60 13CC=@CC@
db28aeb5 14PATHS=-DETCDIR=\"$(sysconfdir)\" -DSSH_PROGRAM=\"$(SSH_PROGRAM)\" -DSSH_ASKPASS_DEFAULT=\"$(ASKPASS_PROGRAM)\"
d4f11b59 15CFLAGS=@CFLAGS@ $(PATHS) @DEFS@
6a0aeebc 16EXTRA_TARGETS=@GNOME_ASKPASS@
17TARGETS=libssh.a ssh sshd ssh-add ssh-keygen ssh-agent scp $(EXTRA_TARGETS)
17f0f4a7 18LIBS=@LIBS@
87e91331 19LIBWRAP=@LIBWRAP@
5881cd60 20AR=@AR@
21RANLIB=@RANLIB@
cf8dd513 22INSTALL=@INSTALL@
6cfb695b 23LDFLAGS=-L. @LDFLAGS@
5881cd60 24
17f0f4a7 25GNOME_CFLAGS=`gnome-config --cflags gnome gnomeui`
26GNOME_LIBS=`gnome-config --libs gnome gnomeui`
27
847e8865 28OBJS= atomicio.o authfd.o authfile.o auth-krb4.o auth-passwd.o \
29 auth-rhosts.o auth-rh-rsa.o auth-rsa.o auth-skey.o bsd-daemon.o \
884bcb37 30 bsd-login.o bsd-mktemp.o bsd-snprintf.o bsd-strlcat.o bsd-strlcpy.o \
847e8865 31 bufaux.o buffer.o canohost.o channels.o cipher.o clientloop.o \
32 compress.o crc32.o deattack.o helper.o helper.o hostfile.o \
33 log-client.o login.o log-server.o match.o md5crypt.o mpaux.o \
34 packet.o pty.o radix.o readconf.o readpass.o rsa.o servconf.o \
35 serverloop.o sshconnect.o tildexpand.o ttymodes.o uidswap.o \
36 xmalloc.o
5881cd60 37
6cfb695b 38LIBOBJS= atomicio.o authfd.o authfile.o bsd-daemon.o bsd-mktemp.o \
a408af76 39 bsd-snprintf.o bsd-strlcat.o bsd-strlcpy.o bufaux.o \
40 buffer.o canohost.o channels.o cipher.o compat.o \
41 compress.o crc32.o deattack.o fingerprint.o helper.o \
42 hostfile.o log.o match.o mpaux.o nchan.o packet.o \
847e8865 43 radix.o readpass.o rsa.o tildexpand.o ttymodes.o uidswap.o \
44 xmalloc.o
6cfb695b 45
46all: $(OBJS) $(TARGETS)
47
f74efc8d 48$(OBJS): config.h
49
50$(LIBOBJS): config.h
51
6cfb695b 52libssh.a: $(LIBOBJS)
53 $(AR) rv $@ $(LIBOBJS)
5881cd60 54 $(RANLIB) $@
55
17f0f4a7 56ssh: ssh.o sshconnect.o log-client.o readconf.o clientloop.o libssh.a
6cfb695b 57 $(CC) -o $@ ssh.o sshconnect.o log-client.o readconf.o \
58 clientloop.o $(LDFLAGS) -lssh $(LIBS)
5881cd60 59
847e8865 60sshd: sshd.o auth-rhosts.o auth-krb4.o auth-passwd.o auth-rsa.o \
61 auth-rh-rsa.o pty.o log-server.o login.o servconf.o serverloop.o \
62 bsd-login.o md5crypt.o libssh.a
6cfb695b 63 $(CC) -o $@ sshd.o auth-rhosts.o auth-krb4.o auth-passwd.o \
64 auth-rsa.o auth-rh-rsa.o pty.o log-server.o login.o servconf.o \
65 serverloop.o bsd-login.o md5crypt.o $(LDFLAGS) -lssh $(LIBS) $(LIBWRAP)
5881cd60 66
17f0f4a7 67scp: scp.o libssh.a
6cfb695b 68 $(CC) -o $@ scp.o $(LDFLAGS) -lssh $(LIBS)
5881cd60 69
17f0f4a7 70ssh-add: ssh-add.o log-client.o libssh.a
6cfb695b 71 $(CC) -o $@ ssh-add.o log-client.o $(LDFLAGS) -lssh $(LIBS)
5881cd60 72
17f0f4a7 73ssh-agent: ssh-agent.o log-client.o libssh.a
6cfb695b 74 $(CC) -o $@ ssh-agent.o log-client.o $(LDFLAGS) -lssh $(LIBS)
5881cd60 75
17f0f4a7 76ssh-keygen: ssh-keygen.o log-client.o libssh.a
6cfb695b 77 $(CC) -o $@ ssh-keygen.o log-client.o $(LDFLAGS) -lssh $(LIBS)
5881cd60 78
17f0f4a7 79gnome-ssh-askpass: gnome-ssh-askpass.c
80 $(CC) $(CFLAGS) $(GNOME_CFLAGS) -o $@ gnome-ssh-askpass.c $(GNOME_LIBS)
81
5881cd60 82clean:
e8162ec0 83 rm -f *.o core $(TARGETS) config.status config.cache config.log
e1a9c08d 84
df16c1f2 85install: all
cf8dd513 86 $(INSTALL) -d $(bindir)
87 $(INSTALL) -d $(sbindir)
88 $(INSTALL) -d $(mandir)
89 $(INSTALL) -d $(mandir)/man1
90 $(INSTALL) -d $(mandir)/man8
d8b40f88 91 $(INSTALL) -s ssh $(bindir)/ssh
92 $(INSTALL) -s scp $(bindir)/scp
93 $(INSTALL) -s ssh-add $(bindir)/ssh-add
94 $(INSTALL) -s ssh-agent $(bindir)/ssh-agent
95 $(INSTALL) -s ssh-keygen $(bindir)/ssh-keygen
96 $(INSTALL) -s sshd $(sbindir)/sshd
847e8865 97 $(INSTALL) -m 644 ssh.1 $(mandir)/man1/ssh.1
98 $(INSTALL) -m 644 scp.1 $(mandir)/man1/scp.1
99 $(INSTALL) -m 644 ssh-add.1 $(mandir)/man1/ssh-add.1
100 $(INSTALL) -m 644 ssh-agent.1 $(mandir)/man1/ssh-agent.1
101 $(INSTALL) -m 644 ssh-keygen.1 $(mandir)/man1/ssh-keygen.1
102 $(INSTALL) -m 644 sshd.8 $(mandir)/man8/sshd.8
c6aeb966 103 -rm -f $(bindir)/slogin
104 ln -s ssh $(bindir)/slogin
105 -rm -f $(mandir)/man1/slogin.1
106 ln -s ssh.1 $(mandir)/man1/slogin.1
045672f9 107
a2b62424 108 if [ ! -z "@GNOME_ASKPASS@" ] ; then \
5ee321fc 109 $(INSTALL) -d $(libexecdir) ; \
110 $(INSTALL) -d $(libexecdir)/ssh ; \
bc7ea646 111 $(INSTALL) -s @GNOME_ASKPASS@ ${ASKPASS_LOCATION} ; \
045672f9 112 fi
5881cd60 113
af381f02 114 if [ ! -f $(sysconfdir)/ssh_config -a ! -f $(sysconfdir)/sshd_config ]; then \
cf8dd513 115 $(INSTALL) -d $(sysconfdir); \
847e8865 116 $(INSTALL) -m 644 ssh_config $(sysconfdir)/ssh_config; \
117 $(INSTALL) -m 644 sshd_config $(sysconfdir)/sshd_config; \
af381f02 118 fi
119
8946db53 120uninstallall: uninstall
121 -rm -f $(sysconfdir)/ssh_config
122 -rm -f $(sysconfdir)/sshd_config
123 -rmdir $(sysconfdir)
124 -rmdir $(bindir)
125 -rmdir $(sbindir)
126 -rmdir $(mandir)/man1
127 -rmdir $(mandir)/man8
128 -rmdir $(mandir)
129 -rmdir $(libexecdir)
130
131uninstall:
132 -rm -f $(bindir)/ssh
133 -rm -f $(bindir)/scp
134 -rm -f $(bindir)/ssh-add
135 -rm -f $(bindir)/ssh-agent
136 -rm -f $(bindir)/ssh-keygen
137 -rm -f $(sbindir)/sshd
138 -rm -f $(mandir)/man1/ssh.1
139 -rm -f $(mandir)/man1/scp.1
140 -rm -f $(mandir)/man1/ssh-add.1
141 -rm -f $(mandir)/man1/ssh-agent.1
142 -rm -f $(mandir)/man1/ssh-keygen.1
143 -rm -f $(mandir)/man8/sshd.8
144 -rm -f $(bindir)/slogin
145 -rm -f $(mandir)/man1/slogin.1
8946db53 146 -rm -f ${ASKPASS_PROGRAM}
147 -rmdir $(libexecdir)/ssh ;
148
5881cd60 149distclean: clean
e1a9c08d 150 rm -f Makefile config.h core *~
5881cd60 151
152mrproper: distclean
e1a9c08d 153
154veryclean: distclean
d4f11b59 155 rm -f configure config.h.in
156
This page took 0.082071 seconds and 5 git commands to generate.