]>
Commit | Line | Data |
---|---|---|
5881cd60 | 1 | prefix=@prefix@ |
2 | exec_prefix=@exec_prefix@ | |
3 | bindir=@bindir@ | |
4 | sbindir=@sbindir@ | |
5 | libdir=@libdir@ | |
bb0dd7f6 | 6 | mandir=@mandir@ |
5881cd60 | 7 | |
8 | CC=@CC@ | |
5aecb327 | 9 | OPT_FLAGS=-g |
10 | CFLAGS=$(OPT_FLAGS) -Wall -DETCDIR=\"@sysconfdir@\" @DEFS@ | |
e8162ec0 | 11 | TARGETS=libssh.a ssh sshd ssh-add ssh-keygen ssh-agent scp |
12 | LFLAGS=-L. | |
f1bcacf9 | 13 | LIBS=-lssh @LIBS@ |
5881cd60 | 14 | AR=@AR@ |
15 | RANLIB=@RANLIB@ | |
16 | ||
17 | OBJS= authfd.o authfile.o auth-passwd.o auth-rhosts.o auth-rh-rsa.o \ | |
18 | auth-rsa.o bufaux.o buffer.o canohost.o channels.o cipher.o \ | |
19 | clientloop.o compress.o crc32.o deattack.o helper.o hostfile.o \ | |
20 | log-client.o login.o log-server.o match.o mpaux.o packet.o pty.o \ | |
21 | readconf.o readpass.o rsa.o servconf.o serverloop.o \ | |
22 | sshconnect.o tildexpand.o ttymodes.o uidswap.o xmalloc.o \ | |
23 | helper.o mktemp.o strlcpy.o rc4.o | |
24 | ||
25 | all: $(OBJS) $(TARGETS) | |
26 | ||
e8162ec0 | 27 | 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 |
5881cd60 | 28 | $(AR) rv $@ $^ |
29 | $(RANLIB) $@ | |
30 | ||
e8162ec0 | 31 | ssh: ssh.o sshconnect.o log-client.o readconf.o clientloop.o |
5881cd60 | 32 | $(CC) -o $@ $^ $(LFLAGS) $(LIBS) |
33 | ||
e8162ec0 | 34 | 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 |
5881cd60 | 35 | $(CC) -o $@ $^ $(LFLAGS) $(LIBS) |
36 | ||
e8162ec0 | 37 | scp: scp.o |
5881cd60 | 38 | $(CC) -o $@ $^ $(LFLAGS) $(LIBS) |
39 | ||
e8162ec0 | 40 | ssh-add: ssh-add.o log-client.o |
5881cd60 | 41 | $(CC) -o $@ $^ $(LFLAGS) $(LIBS) |
42 | ||
e8162ec0 | 43 | ssh-agent: ssh-agent.o log-client.o |
5881cd60 | 44 | $(CC) -o $@ $^ $(LFLAGS) $(LIBS) |
45 | ||
e8162ec0 | 46 | ssh-keygen: ssh-keygen.o log-client.o |
5881cd60 | 47 | $(CC) -o $@ $^ $(LFLAGS) $(LIBS) |
48 | ||
49 | clean: | |
e8162ec0 | 50 | rm -f *.o core $(TARGETS) config.status config.cache config.log |
5881cd60 | 51 | |
52 | install: | |
53 | install -d $(bindir) | |
54 | install -d $(sbindir) | |
bb0dd7f6 | 55 | install -d $(mandir) |
56 | install -d $(mandir)/man1 | |
57 | install -d $(mandir)/man8 | |
e8162ec0 | 58 | install -s -c ssh $(bindir)/ssh |
59 | install -s -c scp $(bindir)/scp | |
60 | install -s -c ssh-add $(bindir)/ssh-add | |
61 | install -s -c ssh-agent $(bindir)/ssh-agent | |
62 | install -s -c ssh-keygen $(bindir)/ssh-keygen | |
63 | install -s -c sshd $(sbindir)/sshd | |
bb0dd7f6 | 64 | install -m644 -c ssh.1 $(mandir)/man1/ssh.1 |
65 | install -m644 -c scp.1 $(mandir)/man1/scp.1 | |
66 | install -m644 -c ssh-add.1 $(mandir)/man1/ssh-add.1 | |
67 | install -m644 -c ssh-agent.1 $(mandir)/man1/ssh-agent.1 | |
68 | install -m644 -c ssh-keygen.1 $(mandir)/man1/ssh-keygen.1 | |
69 | install -m644 -c sshd.8 $(mandir)/man8/sshd.8 | |
5881cd60 | 70 | |
71 | distclean: clean | |
549b3eed | 72 | rm -f Makefile config.h core configure *~ |
5881cd60 | 73 | |
74 | mrproper: distclean |