diff options
author | Damien Miller <djm@mindrot.org> | 1999-10-29 10:21:15 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 1999-10-29 10:21:15 +1000 |
commit | 5eeedae9fec512d9c41a09cec2564c0446fbda97 (patch) | |
tree | d69112a9c7f6b6ace4eebb198f1877c5bb00f93d /Makefile | |
parent | 9438816a5c561fe74a61773aee386cd1deb05ad2 (diff) |
make install patch
Picked up lost bit of OpenBSD update to ssh.h
Fix compile warning in new pam_env stuff
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 42 |
1 files changed, 25 insertions, 17 deletions
@@ -4,13 +4,14 @@ exec_prefix=${prefix} | |||
4 | bindir=${exec_prefix}/bin | 4 | bindir=${exec_prefix}/bin |
5 | sbindir=${exec_prefix}/sbin | 5 | sbindir=${exec_prefix}/sbin |
6 | libdir=${exec_prefix}/lib | 6 | libdir=${exec_prefix}/lib |
7 | mandir=${prefix}/man | ||
7 | 8 | ||
8 | CC=gcc | 9 | CC=gcc |
9 | OPT_FLAGS=-g | 10 | OPT_FLAGS=-g |
10 | CFLAGS=$(OPT_FLAGS) -Wall -DETCDIR=\"${prefix}/etc\" -DHAVE_CONFIG_H | 11 | 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 | TARGETS=bin/libssh.a bin/ssh bin/sshd bin/ssh-add bin/ssh-keygen bin/ssh-agent bin/scp |
12 | LFLAGS=-L./bin | 13 | LFLAGS=-L./bin |
13 | LIBS=-lopenssh -lpam -ldl -lpwdb -lz -lutil -lcrypto | 14 | LIBS=-lssh -lpam -ldl -lpwdb -lz -lutil -lcrypto |
14 | AR=ar | 15 | AR=ar |
15 | RANLIB=ranlib | 16 | RANLIB=ranlib |
16 | 17 | ||
@@ -24,32 +25,32 @@ OBJS= authfd.o authfile.o auth-passwd.o auth-rhosts.o auth-rh-rsa.o \ | |||
24 | 25 | ||
25 | all: $(OBJS) $(TARGETS) | 26 | all: $(OBJS) $(TARGETS) |
26 | 27 | ||
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 | bin/libssh.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 | [ -d bin ] || mkdir bin |
29 | $(AR) rv $@ $^ | 30 | $(AR) rv $@ $^ |
30 | $(RANLIB) $@ | 31 | $(RANLIB) $@ |
31 | 32 | ||
32 | bin/openssh: ssh.o sshconnect.o log-client.o readconf.o clientloop.o | 33 | bin/ssh: ssh.o sshconnect.o log-client.o readconf.o clientloop.o |
33 | [ -d bin ] || mkdir bin | 34 | [ -d bin ] || mkdir bin |
34 | $(CC) -o $@ $^ $(LFLAGS) $(LIBS) | 35 | $(CC) -o $@ $^ $(LFLAGS) $(LIBS) |
35 | 36 | ||
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 | bin/sshd: 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 | [ -d bin ] || mkdir bin |
38 | $(CC) -o $@ $^ $(LFLAGS) $(LIBS) | 39 | $(CC) -o $@ $^ $(LFLAGS) $(LIBS) |
39 | 40 | ||
40 | bin/openscp: scp.o | 41 | bin/scp: scp.o |
41 | [ -d bin ] || mkdir bin | 42 | [ -d bin ] || mkdir bin |
42 | $(CC) -o $@ $^ $(LFLAGS) $(LIBS) | 43 | $(CC) -o $@ $^ $(LFLAGS) $(LIBS) |
43 | 44 | ||
44 | bin/openssh-add: ssh-add.o log-client.o | 45 | bin/ssh-add: ssh-add.o log-client.o |
45 | [ -d bin ] || mkdir bin | 46 | [ -d bin ] || mkdir bin |
46 | $(CC) -o $@ $^ $(LFLAGS) $(LIBS) | 47 | $(CC) -o $@ $^ $(LFLAGS) $(LIBS) |
47 | 48 | ||
48 | bin/openssh-agent: ssh-agent.o log-client.o | 49 | bin/ssh-agent: ssh-agent.o log-client.o |
49 | [ -d bin ] || mkdir bin | 50 | [ -d bin ] || mkdir bin |
50 | $(CC) -o $@ $^ $(LFLAGS) $(LIBS) | 51 | $(CC) -o $@ $^ $(LFLAGS) $(LIBS) |
51 | 52 | ||
52 | bin/openssh-keygen: ssh-keygen.o log-client.o | 53 | bin/ssh-keygen: ssh-keygen.o log-client.o |
53 | [ -d bin ] || mkdir bin | 54 | [ -d bin ] || mkdir bin |
54 | $(CC) -o $@ $^ $(LFLAGS) $(LIBS) | 55 | $(CC) -o $@ $^ $(LFLAGS) $(LIBS) |
55 | 56 | ||
@@ -59,14 +60,21 @@ clean: | |||
59 | install: | 60 | install: |
60 | install -d $(bindir) | 61 | install -d $(bindir) |
61 | install -d $(sbindir) | 62 | install -d $(sbindir) |
62 | install -d $(libdir) | 63 | install -d $(mandir) |
63 | install -c bin/openssh $(bindir)/openssh | 64 | install -d $(mandir)/man1 |
64 | install -c bin/openscp $(bindir)/openscp | 65 | install -d $(mandir)/man8 |
65 | install -c bin/openssh-add $(bindir)/openssh-add | 66 | install -s -c bin/ssh $(bindir)/ssh |
66 | install -c bin/openssh-agent $(bindir)/openssh-agent | 67 | install -s -c bin/scp $(bindir)/scp |
67 | install -c bin/openssh-keygen $(bindir)/openssh-keygen | 68 | install -s -c bin/ssh-add $(bindir)/ssh-add |
68 | install -c bin/opensshd $(sbindir)/opensshd | 69 | install -s -c bin/ssh-agent $(bindir)/ssh-agent |
69 | install -c bin/libopenssh.a $(libdir)/libopenssh.a | 70 | install -s -c bin/ssh-keygen $(bindir)/ssh-keygen |
71 | install -s -c bin/sshd $(sbindir)/sshd | ||
72 | install -m644 -c ssh.1 $(mandir)/man1/ssh.1 | ||
73 | install -m644 -c scp.1 $(mandir)/man1/scp.1 | ||
74 | install -m644 -c ssh-add.1 $(mandir)/man1/ssh-add.1 | ||
75 | install -m644 -c ssh-agent.1 $(mandir)/man1/ssh-agent.1 | ||
76 | install -m644 -c ssh-keygen.1 $(mandir)/man1/ssh-keygen.1 | ||
77 | install -m644 -c sshd.8 $(mandir)/man8/sshd.8 | ||
70 | 78 | ||
71 | distclean: clean | 79 | distclean: clean |
72 | rm -f Makefile config.h *~ | 80 | rm -f Makefile config.h *~ |