]> andersk Git - openssh.git/blame - Makefile.in
- Integrated patch from Dan Brosemer <odin@linuxfreak.com>
[openssh.git] / Makefile.in
CommitLineData
5881cd60 1prefix=@prefix@
2exec_prefix=@exec_prefix@
3bindir=@bindir@
4sbindir=@sbindir@
5libdir=@libdir@
6
7CC=@CC@
8CFLAGS=-g -Wall -DETCDIR=\"/etc/ssh\" @DEFS@
9TARGETS=bin/libopenssh.a bin/openssh bin/opensshd bin/openssh-add bin/openssh-keygen bin/openssh-agent bin/openscp
10LFLAGS=-L./bin
11LIBS=-lopenssh @LIBS@
12AR=@AR@
13RANLIB=@RANLIB@
14
15OBJS= 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
22
23all: $(OBJS) $(TARGETS)
24
25bin/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
27 $(AR) rv $@ $^
28 $(RANLIB) $@
29
30bin/openssh: ssh.o sshconnect.o log-client.o readconf.o clientloop.o
31 [ -d bin ] || mkdir bin
32 $(CC) -o $@ $^ $(LFLAGS) $(LIBS)
33
34bin/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)
37
38bin/openscp: scp.o
39 [ -d bin ] || mkdir bin
40 $(CC) -o $@ $^ $(LFLAGS) $(LIBS)
41
42bin/openssh-add: ssh-add.o log-client.o
43 [ -d bin ] || mkdir bin
44 $(CC) -o $@ $^ $(LFLAGS) $(LIBS)
45
46bin/openssh-agent: ssh-agent.o log-client.o
47 [ -d bin ] || mkdir bin
48 $(CC) -o $@ $^ $(LFLAGS) $(LIBS)
49
50bin/openssh-keygen: ssh-keygen.o log-client.o
51 [ -d bin ] || mkdir bin
52 $(CC) -o $@ $^ $(LFLAGS) $(LIBS)
53
54clean:
55 rm -f *.o core bin/* config.status config.cache config.log
56
57install:
58 install -d $(bindir)
59 install -d $(sbindir)
60 install -d $(libdir)
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
68
69distclean: clean
70 rm -f Makefile config.h *~
71 rm -rf bin
72
73mrproper: distclean
This page took 0.052398 seconds and 5 git commands to generate.