summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>1999-10-29 10:21:15 +1000
committerDamien Miller <djm@mindrot.org>1999-10-29 10:21:15 +1000
commit5eeedae9fec512d9c41a09cec2564c0446fbda97 (patch)
treed69112a9c7f6b6ace4eebb198f1877c5bb00f93d /Makefile
parent9438816a5c561fe74a61773aee386cd1deb05ad2 (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--Makefile42
1 files changed, 25 insertions, 17 deletions
diff --git a/Makefile b/Makefile
index e09e1eb9f..64f389f62 100644
--- a/Makefile
+++ b/Makefile
@@ -4,13 +4,14 @@ exec_prefix=${prefix}
4bindir=${exec_prefix}/bin 4bindir=${exec_prefix}/bin
5sbindir=${exec_prefix}/sbin 5sbindir=${exec_prefix}/sbin
6libdir=${exec_prefix}/lib 6libdir=${exec_prefix}/lib
7mandir=${prefix}/man
7 8
8CC=gcc 9CC=gcc
9OPT_FLAGS=-g 10OPT_FLAGS=-g
10CFLAGS=$(OPT_FLAGS) -Wall -DETCDIR=\"${prefix}/etc\" -DHAVE_CONFIG_H 11CFLAGS=$(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 12TARGETS=bin/libssh.a bin/ssh bin/sshd bin/ssh-add bin/ssh-keygen bin/ssh-agent bin/scp
12LFLAGS=-L./bin 13LFLAGS=-L./bin
13LIBS=-lopenssh -lpam -ldl -lpwdb -lz -lutil -lcrypto 14LIBS=-lssh -lpam -ldl -lpwdb -lz -lutil -lcrypto
14AR=ar 15AR=ar
15RANLIB=ranlib 16RANLIB=ranlib
16 17
@@ -24,32 +25,32 @@ OBJS= authfd.o authfile.o auth-passwd.o auth-rhosts.o auth-rh-rsa.o \
24 25
25all: $(OBJS) $(TARGETS) 26all: $(OBJS) $(TARGETS)
26 27
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 28bin/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
32bin/openssh: ssh.o sshconnect.o log-client.o readconf.o clientloop.o 33bin/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
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 37bin/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
40bin/openscp: scp.o 41bin/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
44bin/openssh-add: ssh-add.o log-client.o 45bin/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
48bin/openssh-agent: ssh-agent.o log-client.o 49bin/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
52bin/openssh-keygen: ssh-keygen.o log-client.o 53bin/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:
59install: 60install:
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
71distclean: clean 79distclean: clean
72 rm -f Makefile config.h *~ 80 rm -f Makefile config.h *~