2 exec_prefix=@exec_prefix@
8 CFLAGS=-g -Wall -DETCDIR=\"/etc/ssh\" @DEFS@
9 TARGETS=bin/libopenssh.a bin/openssh bin/opensshd bin/openssh-add bin/openssh-keygen bin/openssh-agent bin/openscp
15 OBJS= authfd.o authfile.o auth-passwd.o auth-rhosts.o auth-rh-rsa.o \
16 auth-rsa.o bufaux.o buffer.o canohost.o channels.o cipher.o \
17 clientloop.o compress.o crc32.o deattack.o helper.o hostfile.o \
18 log-client.o login.o log-server.o match.o mpaux.o packet.o pty.o \
19 readconf.o readpass.o rsa.o servconf.o serverloop.o \
20 sshconnect.o tildexpand.o ttymodes.o uidswap.o xmalloc.o \
21 helper.o mktemp.o strlcpy.o rc4.o
23 all: $(OBJS) $(TARGETS)
25 bin/libopenssh.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
26 [ -d bin ] || mkdir bin
30 bin/openssh: ssh.o sshconnect.o log-client.o readconf.o clientloop.o
31 [ -d bin ] || mkdir bin
32 $(CC) -o $@ $^ $(LFLAGS) $(LIBS)
34 bin/opensshd: 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
35 [ -d bin ] || mkdir bin
36 $(CC) -o $@ $^ $(LFLAGS) $(LIBS)
39 [ -d bin ] || mkdir bin
40 $(CC) -o $@ $^ $(LFLAGS) $(LIBS)
42 bin/openssh-add: ssh-add.o log-client.o
43 [ -d bin ] || mkdir bin
44 $(CC) -o $@ $^ $(LFLAGS) $(LIBS)
46 bin/openssh-agent: ssh-agent.o log-client.o
47 [ -d bin ] || mkdir bin
48 $(CC) -o $@ $^ $(LFLAGS) $(LIBS)
50 bin/openssh-keygen: ssh-keygen.o log-client.o
51 [ -d bin ] || mkdir bin
52 $(CC) -o $@ $^ $(LFLAGS) $(LIBS)
55 rm -f *.o core bin/* config.status config.cache config.log
61 install -c bin/openssh $(bindir)/openssh
62 install -c bin/openscp $(bindir)/openscp
63 install -c bin/openssh-add $(bindir)/openssh-add
64 install -c bin/openssh-agent $(bindir)/openssh-agent
65 install -c bin/openssh-keygen $(bindir)/openssh-keygen
66 install -c bin/opensshd $(sbindir)/opensshd
67 install -c bin/libopenssh.a $(libdir)/libopenssh.a
70 rm -f Makefile config.h *~