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