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