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