]>
Commit | Line | Data |
---|---|---|
5aecb327 | 1 | # Generated automatically from Makefile.in by configure. |
2 | prefix=/usr/local | |
3 | exec_prefix=${prefix} | |
4 | bindir=${exec_prefix}/bin | |
5 | sbindir=${exec_prefix}/sbin | |
6 | libdir=${exec_prefix}/lib | |
8efc0c15 | 7 | |
5aecb327 | 8 | CC=gcc |
9 | OPT_FLAGS=-g | |
10 | CFLAGS=$(OPT_FLAGS) -Wall -DETCDIR=\"${prefix}/etc\" -DHAVE_CONFIG_H | |
11 | TARGETS=bin/libopenssh.a bin/openssh bin/opensshd bin/openssh-add bin/openssh-keygen bin/openssh-agent bin/openscp | |
12 | LFLAGS=-L./bin | |
13 | LIBS=-lopenssh -lpam -ldl -lpwdb -lz -lutil -lcrypto | |
14 | AR=ar | |
15 | RANLIB=ranlib | |
8efc0c15 | 16 | |
5aecb327 | 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 | |
8efc0c15 | 24 | |
5aecb327 | 25 | all: $(OBJS) $(TARGETS) |
8efc0c15 | 26 | |
5aecb327 | 27 | 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 |
28 | [ -d bin ] || mkdir bin | |
29 | $(AR) rv $@ $^ | |
30 | $(RANLIB) $@ | |
31 | ||
32 | bin/openssh: ssh.o sshconnect.o log-client.o readconf.o clientloop.o | |
33 | [ -d bin ] || mkdir bin | |
34 | $(CC) -o $@ $^ $(LFLAGS) $(LIBS) | |
35 | ||
36 | 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 | |
37 | [ -d bin ] || mkdir bin | |
38 | $(CC) -o $@ $^ $(LFLAGS) $(LIBS) | |
39 | ||
40 | bin/openscp: scp.o | |
41 | [ -d bin ] || mkdir bin | |
42 | $(CC) -o $@ $^ $(LFLAGS) $(LIBS) | |
43 | ||
44 | bin/openssh-add: ssh-add.o log-client.o | |
45 | [ -d bin ] || mkdir bin | |
46 | $(CC) -o $@ $^ $(LFLAGS) $(LIBS) | |
47 | ||
48 | bin/openssh-agent: ssh-agent.o log-client.o | |
49 | [ -d bin ] || mkdir bin | |
50 | $(CC) -o $@ $^ $(LFLAGS) $(LIBS) | |
51 | ||
52 | bin/openssh-keygen: ssh-keygen.o log-client.o | |
53 | [ -d bin ] || mkdir bin | |
54 | $(CC) -o $@ $^ $(LFLAGS) $(LIBS) | |
55 | ||
56 | clean: | |
57 | rm -f *.o core bin/* config.status config.cache config.log | |
58 | ||
59 | install: | |
60 | install -d $(bindir) | |
61 | install -d $(sbindir) | |
62 | install -d $(libdir) | |
63 | install -c bin/openssh $(bindir)/openssh | |
64 | install -c bin/openscp $(bindir)/openscp | |
65 | install -c bin/openssh-add $(bindir)/openssh-add | |
66 | install -c bin/openssh-agent $(bindir)/openssh-agent | |
67 | install -c bin/openssh-keygen $(bindir)/openssh-keygen | |
68 | install -c bin/opensshd $(sbindir)/opensshd | |
69 | install -c bin/libopenssh.a $(libdir)/libopenssh.a | |
70 | ||
71 | distclean: clean | |
72 | rm -f Makefile config.h *~ | |
73 | rm -rf bin | |
74 | ||
75 | mrproper: distclean |