]> andersk Git - openssh.git/blob - Makefile.in
- Autodetection of SSL/Crypto library location via autoconf
[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
8 SSH_PROGRAM=@bindir@/ssh
9 ASKPASS_PROGRAM=@libdir@/ssh/ssh-askpass
10
11 CC=@CC@
12 PATHS=-DETCDIR=\"@sysconfdir@\" -DSSH_PROGRAM=\"$(SSH_PROGRAM)\" -DASKPASS_PROGRAM=\"$(ASKPASS_PROGRAM)\"
13 CFLAGS=@CFLAGS@ $(PATHS) @DEFS@
14 TARGETS=libssh.a ssh sshd ssh-add ssh-keygen ssh-agent scp
15 LFLAGS=-L.
16 LIBS=-lssh @LIBS@
17 AR=@AR@
18 RANLIB=@RANLIB@
19
20 OBJS=   authfd.o authfile.o auth-passwd.o auth-rhosts.o auth-rh-rsa.o \
21                 auth-rsa.o bufaux.o buffer.o canohost.o channels.o cipher.o \
22                 clientloop.o compress.o crc32.o deattack.o helper.o hostfile.o \
23                 log-client.o login.o log-server.o match.o mpaux.o packet.o pty.o \
24                 readconf.o readpass.o rsa.o servconf.o serverloop.o \
25                 sshconnect.o tildexpand.o ttymodes.o uidswap.o xmalloc.o \
26                 helper.o mktemp.o strlcpy.o rc4.o
27
28 all: $(OBJS) $(TARGETS)
29
30 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
31         $(AR) rv $@ $^
32         $(RANLIB) $@
33
34 ssh: ssh.o sshconnect.o log-client.o readconf.o clientloop.o
35         $(CC) -o $@ $^ $(LFLAGS) $(LIBS) 
36
37 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
38         $(CC) -o $@ $^ $(LFLAGS) $(LIBS) 
39
40 scp:    scp.o
41         $(CC) -o $@ $^ $(LFLAGS) $(LIBS) 
42
43 ssh-add: ssh-add.o log-client.o
44         $(CC) -o $@ $^ $(LFLAGS) $(LIBS) 
45
46 ssh-agent: ssh-agent.o log-client.o
47         $(CC) -o $@ $^ $(LFLAGS) $(LIBS) 
48
49 ssh-keygen: ssh-keygen.o log-client.o
50         $(CC) -o $@ $^ $(LFLAGS) $(LIBS) 
51
52 clean:
53         rm -f *.o core $(TARGETS) config.status config.cache config.log
54
55 install:
56         install -d $(bindir)
57         install -d $(sbindir)
58         install -d $(mandir)
59         install -d $(mandir)/man1
60         install -d $(mandir)/man8
61         install -d $(libdir)/ssh
62         install -s -c ssh $(bindir)/ssh
63         ln -sf ssh $(bindir)/slogin
64         install -s -c scp $(bindir)/scp
65         install -s -c ssh-add $(bindir)/ssh-add
66         install -m755 -c ssh-askpass $(libdir)/ssh/ssh-askpass
67         install -s -c ssh-agent $(bindir)/ssh-agent
68         install -s -c ssh-keygen $(bindir)/ssh-keygen
69         install -s -c sshd $(sbindir)/sshd
70         install -m644 -c ssh.1 $(mandir)/man1/ssh.1
71         ln -sf ssh.1 $(mandir)/man1/slogin.1
72         install -m644 -c scp.1 $(mandir)/man1/scp.1
73         install -m644 -c ssh-add.1 $(mandir)/man1/ssh-add.1
74         install -m644 -c ssh-agent.1 $(mandir)/man1/ssh-agent.1
75         install -m644 -c ssh-keygen.1 $(mandir)/man1/ssh-keygen.1
76         install -m644 -c sshd.8 $(mandir)/man8/sshd.8
77
78 distclean: clean
79         rm -f Makefile config.h core *~
80
81 mrproper: distclean
82
83 veryclean: distclean
84         rm -f configure config.h.in
85
This page took 0.061606 seconds and 5 git commands to generate.