summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>1999-10-28 14:03:14 +1000
committerDamien Miller <djm@mindrot.org>1999-10-28 14:03:14 +1000
commit062307657e30c9b970514eb53b4b743f9d571231 (patch)
tree04b1d6b094442720b4197eb442ee53c010cdc1d7 /Makefile
parent7f6ea0264d01aa40b20df8dc75141631479da054 (diff)
Big rename ssh* -> openssh*
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile80
1 files changed, 71 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index 668900c3b..e09e1eb9f 100644
--- a/Makefile
+++ b/Makefile
@@ -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.
2prefix=/usr/local
3exec_prefix=${prefix}
4bindir=${exec_prefix}/bin
5sbindir=${exec_prefix}/sbin
6libdir=${exec_prefix}/lib
2 7
3.include <bsd.own.mk> 8CC=gcc
9OPT_FLAGS=-g
10CFLAGS=$(OPT_FLAGS) -Wall -DETCDIR=\"${prefix}/etc\" -DHAVE_CONFIG_H
11TARGETS=bin/libopenssh.a bin/openssh bin/opensshd bin/openssh-add bin/openssh-keygen bin/openssh-agent bin/openscp
12LFLAGS=-L./bin
13LIBS=-lopenssh -lpam -ldl -lpwdb -lz -lutil -lcrypto
14AR=ar
15RANLIB=ranlib
4 16
5SUBDIR= lib ssh sshd ssh-add ssh-keygen ssh-agent scp 17OBJS= 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
7distribution: 25all: $(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> 27bin/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
32bin/openssh: ssh.o sshconnect.o log-client.o readconf.o clientloop.o
33 [ -d bin ] || mkdir bin
34 $(CC) -o $@ $^ $(LFLAGS) $(LIBS)
35
36bin/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
40bin/openscp: scp.o
41 [ -d bin ] || mkdir bin
42 $(CC) -o $@ $^ $(LFLAGS) $(LIBS)
43
44bin/openssh-add: ssh-add.o log-client.o
45 [ -d bin ] || mkdir bin
46 $(CC) -o $@ $^ $(LFLAGS) $(LIBS)
47
48bin/openssh-agent: ssh-agent.o log-client.o
49 [ -d bin ] || mkdir bin
50 $(CC) -o $@ $^ $(LFLAGS) $(LIBS)
51
52bin/openssh-keygen: ssh-keygen.o log-client.o
53 [ -d bin ] || mkdir bin
54 $(CC) -o $@ $^ $(LFLAGS) $(LIBS)
55
56clean:
57 rm -f *.o core bin/* config.status config.cache config.log
58
59install:
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
71distclean: clean
72 rm -f Makefile config.h *~
73 rm -rf bin
74
75mrproper: distclean