diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 80 |
1 files changed, 71 insertions, 9 deletions
@@ -1,13 +1,75 @@ | |||
1 | # $OpenBSD: Makefile,v 1.5 1999/10/25 20:27:26 markus Exp $ | 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 | ||
2 | 7 | ||
3 | .include <bsd.own.mk> | 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 | ||
4 | 16 | ||
5 | SUBDIR= lib ssh sshd ssh-add ssh-keygen ssh-agent scp | 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 | ||
6 | 24 | ||
7 | distribution: | 25 | all: $(OBJS) $(TARGETS) |
8 | install -C -o root -g wheel -m 0644 ${.CURDIR}/ssh_config \ | ||
9 | ${DESTDIR}/etc/ssh_config | ||
10 | install -C -o root -g wheel -m 0644 ${.CURDIR}/sshd_config \ | ||
11 | ${DESTDIR}/etc/sshd_config | ||
12 | 26 | ||
13 | .include <bsd.subdir.mk> | 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 | ||