]> andersk Git - openssh.git/blame_incremental - Makefile.in
- Fixed configure not passing LDFLAGS to Solaris. Report from David G.
[openssh.git] / Makefile.in
... / ...
CommitLineData
1prefix=@prefix@
2exec_prefix=@exec_prefix@
3bindir=@bindir@
4sbindir=@sbindir@
5libexecdir=@libexecdir@
6mandir=@mandir@
7mansubdir=@mansubdir@
8sysconfdir=@sysconfdir@
9piddir=@piddir@
10srcdir=@srcdir@
11top_srcdir=@top_srcdir@
12
13DESTDIR=
14
15VPATH=@srcdir@
16
17SSH_PROGRAM=@bindir@/ssh
18ASKPASS_LOCATION=@libexecdir@/ssh
19ASKPASS_PROGRAM=$(ASKPASS_LOCATION)/ssh-askpass
20
21CC=@CC@
22PATHS=-DETCDIR=\"$(sysconfdir)\" -DSSH_PROGRAM=\"$(SSH_PROGRAM)\" -DSSH_ASKPASS_DEFAULT=\"$(ASKPASS_PROGRAM)\"
23CFLAGS=@CFLAGS@ $(PATHS) @DEFS@
24LIBS=@LIBS@
25AR=@AR@
26RANLIB=@RANLIB@
27INSTALL=@INSTALL@
28PERL=@PERL@
29LDFLAGS=-L. @LDFLAGS@
30
31TARGETS=ssh sshd ssh-add ssh-keygen ssh-agent scp $(EXTRA_TARGETS)
32
33LIBOBJS= atomicio.o authfd.o authfile.o bsd-bindresvport.o bsd-daemon.o bsd-misc.o bsd-mktemp.o bsd-rresvport.o bsd-snprintf.o bsd-strlcat.o bsd-strlcpy.o bufaux.o buffer.o canohost.o channels.o cipher.o compat.o compress.o crc32.o deattack.o fake-getaddrinfo.o fake-getnameinfo.o fingerprint.o hostfile.o log.o match.o mpaux.o nchan.o packet.o radix.o random.o readpass.o rsa.o tildexpand.o ttymodes.o uidswap.o xmalloc.o
34
35SSHOBJS= ssh.o sshconnect.o log-client.o readconf.o clientloop.o
36
37SSHDOBJS= sshd.o auth-rhosts.o auth-krb4.o auth-pam.o auth-passwd.o auth-rsa.o auth-rh-rsa.o pty.o log-server.o login.o servconf.o serverloop.o bsd-login.o md5crypt.o
38
39TROFFMAN = scp.1 ssh-add.1 ssh-agent.1 ssh-keygen.1 ssh.1 sshd.8
40CATMAN = scp.0 ssh-add.0 ssh-agent.0 ssh-keygen.0 ssh.0 sshd.0
41MANPAGES = @MANTYPE@
42
43CONFIGFILES=sshd_config ssh_config
44
45PATHSUBS = -D/etc/ssh_config=$(sysconfdir)/ssh_config -D/etc/known_hosts=$(sysconfdir)/ssh_known_hosts -D/etc/sshd_config=$(sysconfdir)/sshd_config -D/etc/shosts.equiv=$(sysconfdir)/shosts.equiv -D/etc/ssh_host_key=$(sysconfdir)/ssh_host_key -D/var/run/sshd.pid=$(piddir)/sshd.pid
46
47FIXPATHSCMD = $(PERL) $(srcdir)/fixpaths $(PATHSUBS)
48
49all: $(TARGETS) $(MANPAGES) $(CONFIGFILES)
50
51$(LIBOBJS): config.h
52
53libssh.a: $(LIBOBJS)
54 $(AR) rv $@ $(LIBOBJS)
55 $(RANLIB) $@
56
57ssh: libssh.a $(SSHOBJS)
58 $(CC) -o $@ $(SSHOBJS) $(LDFLAGS) -lssh $(LIBS)
59
60sshd: libssh.a $(SSHDOBJS)
61 $(CC) -o $@ $(SSHDOBJS) $(LDFLAGS) -lssh $(LIBS)
62
63scp: libssh.a scp.o
64 $(CC) -o $@ scp.o $(LDFLAGS) -lssh $(LIBS)
65
66ssh-add: libssh.a ssh-add.o log-client.o
67 $(CC) -o $@ ssh-add.o log-client.o $(LDFLAGS) -lssh $(LIBS)
68
69ssh-agent: libssh.a ssh-agent.o log-client.o
70 $(CC) -o $@ ssh-agent.o log-client.o $(LDFLAGS) -lssh $(LIBS)
71
72ssh-keygen: libssh.a ssh-keygen.o log-client.o
73 $(CC) -o $@ ssh-keygen.o log-client.o $(LDFLAGS) -lssh $(LIBS)
74
75$(MANPAGES) $(CONFIGFILES)::
76 $(FIXPATHSCMD) $(srcdir)/$@
77
78clean:
79 rm -f *.o *.a $(TARGETS) config.status config.cache config.log
80 rm -f *.out core
81
82distclean: clean
83 rm -f Makefile config.h core *~
84
85mrproper: distclean
86
87veryclean: distclean
88 rm -f configure config.h.in *.0
89
90catman-do:
91 @for f in $(TROFFMAN) ; do \
92 echo "$$f -> $${f%%.[18]}.0" ; \
93 nroff -mandoc $$f | cat -v | sed -e 's/.\^H//g' \
94 >$${f%%.[18]}.0 ; \
95 done
96
97install: $(TARGETS)
98 $(INSTALL) -d $(DESTDIR)$(bindir)
99 $(INSTALL) -d $(DESTDIR)$(sbindir)
100 $(INSTALL) -d $(DESTDIR)$(mandir)
101 $(INSTALL) -d $(DESTDIR)$(mandir)/$(mansubdir)1
102 $(INSTALL) -d $(DESTDIR)$(mandir)/$(mansubdir)8
103 $(INSTALL) -m 4755 -s ssh $(DESTDIR)$(bindir)/ssh
104 $(INSTALL) -s scp $(DESTDIR)$(bindir)/scp
105 $(INSTALL) -s ssh-add $(DESTDIR)$(bindir)/ssh-add
106 $(INSTALL) -s ssh-agent $(DESTDIR)$(bindir)/ssh-agent
107 $(INSTALL) -s ssh-keygen $(DESTDIR)$(bindir)/ssh-keygen
108 $(INSTALL) -s sshd $(DESTDIR)$(sbindir)/sshd
109 $(INSTALL) -m 644 ssh.[01].out $(DESTDIR)$(mandir)/$(mansubdir)1/ssh.1
110 $(INSTALL) -m 644 scp.[01].out $(DESTDIR)$(mandir)/$(mansubdir)1/scp.1
111 $(INSTALL) -m 644 ssh-add.[01].out $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-add.1
112 $(INSTALL) -m 644 ssh-agent.[01].out $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-agent.1
113 $(INSTALL) -m 644 ssh-keygen.[01].out $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-keygen.1
114 $(INSTALL) -m 644 sshd.[08].out $(DESTDIR)$(mandir)/$(mansubdir)8/sshd.8
115 -rm -f $(DESTDIR)$(bindir)/slogin
116 ln -s ssh $(DESTDIR)$(bindir)/slogin
117 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/slogin.1
118 ln -s ssh.1 $(DESTDIR)$(mandir)/$(mansubdir)1/slogin.1
119
120 if [ ! -f $(DESTDIR)$(sysconfdir)/ssh_config -a ! -f $(DESTDIR)$(sysconfdir)/sshd_config ]; then \
121 $(INSTALL) -d $(DESTDIR)$(sysconfdir); \
122 $(INSTALL) -m 644 ssh_config.out $(DESTDIR)$(sysconfdir)/ssh_config; \
123 $(INSTALL) -m 644 sshd_config.out $(DESTDIR)$(sysconfdir)/sshd_config; \
124 fi
125
126host-key: ssh-keygen
127 ./ssh-keygen -b 1024 -f $(sysconfdir)/ssh_host_key -N ''
128
129uninstallall: uninstall
130 -rm -f $(DESTDIR)$(sysconfdir)/ssh_config
131 -rm -f $(DESTDIR)$(sysconfdir)/sshd_config
132 -rmdir $(DESTDIR)$(sysconfdir)
133 -rmdir $(DESTDIR)$(bindir)
134 -rmdir $(DESTDIR)$(sbindir)
135 -rmdir $(DESTDIR)$(mandir)/$(mansubdir)1
136 -rmdir $(DESTDIR)$(mandir)/$(mansubdir)8
137 -rmdir $(DESTDIR)$(mandir)
138 -rmdir $(DESTDIR)$(libexecdir)
139
140uninstall:
141 -rm -f $(DESTDIR)$(bindir)/ssh
142 -rm -f $(DESTDIR)$(bindir)/scp
143 -rm -f $(DESTDIR)$(bindir)/ssh-add
144 -rm -f $(DESTDIR)$(bindir)/ssh-agent
145 -rm -f $(DESTDIR)$(bindir)/ssh-keygen
146 -rm -f $(DESTDIR)$(sbindir)/sshd
147 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/ssh.1
148 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/scp.1
149 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-add.1
150 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-agent.1
151 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-keygen.1
152 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)8/sshd.8
153 -rm -f $(DESTDIR)$(bindir)/slogin
154 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/slogin.1
155 -rm -f $(DESTDIR)${ASKPASS_PROGRAM}
156 -rmdir $(DESTDIR)$(libexecdir)/ssh ;
This page took 0.598428 seconds and 5 git commands to generate.