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