]> andersk Git - openssh.git/blob - Makefile.in
ec7f0fd7519bcf9dbc649661e3415e891e4374b9
[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 SSH_PROGRAM=@bindir@/ssh
10 ASKPASS_PROGRAM=@libexecdir@/ssh/ssh-askpass
11
12 CC=@CC@
13 PATHS=-DETCDIR=\"$(sysconfdir)\" -DSSH_PROGRAM=\"$(SSH_PROGRAM)\" -DASKPASS_PROGRAM=\"$(ASKPASS_PROGRAM)\"
14 CFLAGS=@CFLAGS@ $(PATHS) @DEFS@
15 EXTRA_TARGETS=@GNOME_ASKPASS@
16 TARGETS=libssh.a ssh sshd ssh-add ssh-keygen ssh-agent scp $(EXTRA_TARGETS)
17 LIBS=@LIBS@
18 AR=@AR@
19 RANLIB=@RANLIB@
20 INSTALL=@INSTALL@
21 LFLAGS=@LDFLAGS@
22
23 GNOME_CFLAGS=`gnome-config --cflags gnome gnomeui`
24 GNOME_LIBS=`gnome-config --libs gnome gnomeui`
25
26 OBJS=   authfd.o authfile.o auth-passwd.o auth-rhosts.o auth-rh-rsa.o \
27                 auth-rsa.o auth-skey.o bufaux.o buffer.o canohost.o channels.o \
28                 cipher.o clientloop.o compress.o crc32.o deattack.o helper.o \
29                 hostfile.o log-client.o login.o log-server.o match.o mpaux.o \
30                 packet.o pty.o readconf.o readpass.o rsa.o servconf.o serverloop.o \
31                 sshconnect.o tildexpand.o ttymodes.o uidswap.o xmalloc.o \
32                 helper.o bsd-mktemp.o bsd-strlcpy.o bsd-strlcat.o bsd-daemon.o \
33                 bsd-login.o rc4.o md5crypt.o
34
35 all: $(OBJS) $(TARGETS)
36
37 libssh.a: authfd.o authfile.o bufaux.o buffer.o canohost.o channels.o cipher.o compat.o compress.o crc32.o deattack.o hostfile.o match.o mpaux.o nchan.o packet.o readpass.o rsa.o tildexpand.o ttymodes.o uidswap.o xmalloc.o helper.o rc4.o bsd-mktemp.o bsd-strlcpy.o bsd-strlcat.o log.o fingerprint.o
38         $(AR) rv $@ $^
39         $(RANLIB) $@
40
41 ssh: ssh.o sshconnect.o log-client.o readconf.o clientloop.o libssh.a
42         $(CC) -o $@ $^ $(LFLAGS) $(LIBS) 
43
44 sshd:   sshd.o auth-rhosts.o auth-passwd.o auth-rsa.o auth-rh-rsa.o pty.o log-server.o login.o servconf.o serverloop.o bsd-login.o bsd-daemon.o md5crypt.o libssh.a
45         $(CC) -o $@ $^ $(LFLAGS) $(LIBS) 
46
47 scp:    scp.o libssh.a
48         $(CC) -o $@ $^ $(LFLAGS) $(LIBS) 
49
50 ssh-add: ssh-add.o log-client.o libssh.a
51         $(CC) -o $@ $^ $(LFLAGS) $(LIBS) 
52
53 ssh-agent: ssh-agent.o log-client.o libssh.a
54         $(CC) -o $@ $^ $(LFLAGS) $(LIBS) 
55
56 ssh-keygen: ssh-keygen.o log-client.o libssh.a
57         $(CC) -o $@ $^ $(LFLAGS) $(LIBS) 
58
59 gnome-ssh-askpass: gnome-ssh-askpass.c
60         $(CC) $(CFLAGS) $(GNOME_CFLAGS) -o $@ gnome-ssh-askpass.c $(GNOME_LIBS)
61
62 clean:
63         rm -f *.o core $(TARGETS) config.status config.cache config.log
64
65 install: all
66         $(INSTALL) -d $(bindir)
67         $(INSTALL) -d $(sbindir)
68         $(INSTALL) -d $(mandir)
69         $(INSTALL) -d $(mandir)/man1
70         $(INSTALL) -d $(mandir)/man8
71         $(INSTALL) -s -c ssh $(bindir)/ssh
72         $(INSTALL) -s -c scp $(bindir)/scp
73         $(INSTALL) -s -c ssh-add $(bindir)/ssh-add
74         $(INSTALL) -s -c ssh-agent $(bindir)/ssh-agent
75         $(INSTALL) -s -c ssh-keygen $(bindir)/ssh-keygen
76         $(INSTALL) -s -c sshd $(sbindir)/sshd
77         $(INSTALL) -m644 -c ssh.1 $(mandir)/man1/ssh.1
78         $(INSTALL) -m644 -c scp.1 $(mandir)/man1/scp.1
79         $(INSTALL) -m644 -c ssh-add.1 $(mandir)/man1/ssh-add.1
80         $(INSTALL) -m644 -c ssh-agent.1 $(mandir)/man1/ssh-agent.1
81         $(INSTALL) -m644 -c ssh-keygen.1 $(mandir)/man1/ssh-keygen.1
82         $(INSTALL) -m644 -c sshd.8 $(mandir)/man8/sshd.8
83         ln -sf ssh $(bindir)/slogin
84         ln -sf ssh.1 $(mandir)/man1/slogin.1
85
86         if [ "x@INSTALL_ASKPASS@" = "xyes" ] ; then \
87                 $(INSTALL) -d $(libexecdir) ; \
88                 $(INSTALL) -d $(libexecdir)/ssh ; \
89                 if [ -z "@GNOME_ASKPASS@" ] ; then \
90                         $(INSTALL) -m755 -c ssh-askpass ${ASKPASS_PROGRAM}; \
91                 else \
92                         $(INSTALL) -m755 -c gnome-ssh-askpass ${ASKPASS_PROGRAM}; \
93                 fi ; \
94         fi
95
96         if [ ! -f $(sysconfdir)/ssh_config -a ! -f $(sysconfdir)/sshd_config ]; then \
97                 $(INSTALL) -d $(sysconfdir); \
98                 $(INSTALL) -m644 ssh_config $(sysconfdir)/ssh_config; \
99                 $(INSTALL) -m644 sshd_config $(sysconfdir)/sshd_config; \
100         fi
101
102 distclean: clean
103         rm -f Makefile config.h core *~
104
105 mrproper: distclean
106
107 veryclean: distclean
108         rm -f configure config.h.in
109
This page took 0.036057 seconds and 3 git commands to generate.