]> andersk Git - openssh.git/blob - Makefile.in
- Created contrib/ subdirectory. Included helpers from Phil Hands'
[openssh.git] / Makefile.in
1 prefix=@prefix@
2 exec_prefix=@exec_prefix@
3 bindir=@bindir@
4 sbindir=@sbindir@
5 libexecdir=@libexecdir@
6 mandir=@mandir@
7 mansubdir=@mansubdir@
8 sysconfdir=@sysconfdir@
9 piddir=@piddir@
10 srcdir=@srcdir@
11 top_srcdir=@top_srcdir@
12
13 DESTDIR=
14
15 VPATH=@srcdir@
16
17 SSH_PROGRAM=@bindir@/ssh
18 ASKPASS_LOCATION=@libexecdir@/ssh
19 ASKPASS_PROGRAM=$(ASKPASS_LOCATION)/ssh-askpass
20
21 CC=@CC@
22 PATHS=-DETCDIR=\"$(sysconfdir)\" -DSSH_PROGRAM=\"$(SSH_PROGRAM)\" -DSSH_ASKPASS_DEFAULT=\"$(ASKPASS_PROGRAM)\"
23 CFLAGS=@CFLAGS@ $(PATHS) @DEFS@
24 LIBS=@LIBS@
25 AR=@AR@
26 RANLIB=@RANLIB@
27 INSTALL=@INSTALL@
28 PERL=@PERL@
29 LDFLAGS=-L. @LDFLAGS@
30
31 TARGETS=ssh sshd ssh-add ssh-keygen ssh-agent scp $(EXTRA_TARGETS)
32
33 LIBOBJS= 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
35 SSHOBJS= ssh.o sshconnect.o log-client.o readconf.o clientloop.o
36
37 SSHDOBJS= 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
39 TROFFMAN        = scp.1 ssh-add.1 ssh-agent.1 ssh-keygen.1 ssh.1 sshd.8
40 CATMAN          = scp.0 ssh-add.0 ssh-agent.0 ssh-keygen.0 ssh.0 sshd.0
41 MANPAGES        = @MANTYPE@
42
43 CONFIGFILES=sshd_config ssh_config
44
45 PATHSUBS        = -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
47 FIXPATHSCMD     = $(PERL) $(srcdir)/fixpaths $(PATHSUBS)
48
49 all: $(TARGETS) $(MANPAGES) $(CONFIGFILES)
50
51 $(LIBOBJS): config.h
52
53 libssh.a: $(LIBOBJS)
54         $(AR) rv $@ $(LIBOBJS)
55         $(RANLIB) $@
56
57 ssh: libssh.a $(SSHOBJS)
58         $(CC) -o $@ $(SSHOBJS) $(LDFLAGS) -lssh $(LIBS)
59
60 sshd: libssh.a  $(SSHDOBJS)
61         $(CC) -o $@ $(SSHDOBJS) $(LDFLAGS) -lssh $(LIBS)
62
63 scp: libssh.a scp.o
64         $(CC) -o $@ scp.o $(LDFLAGS) -lssh $(LIBS) 
65
66 ssh-add: libssh.a ssh-add.o log-client.o
67         $(CC) -o $@ ssh-add.o log-client.o $(LDFLAGS) -lssh $(LIBS) 
68
69 ssh-agent: libssh.a ssh-agent.o log-client.o
70         $(CC) -o $@ ssh-agent.o log-client.o $(LDFLAGS) -lssh $(LIBS) 
71
72 ssh-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
78 clean:
79         rm -f *.o *.a $(TARGETS) config.status config.cache config.log 
80         rm -f *.out core
81
82 distclean: clean
83         rm -f Makefile config.h core *~
84
85 mrproper: distclean
86
87 veryclean: distclean
88         rm -f configure config.h.in *.0
89
90 catman-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
97 install: $(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
126 host-key: ssh-keygen
127         ./ssh-keygen -b 1024 -f $(sysconfdir)/ssh_host_key -N ''
128
129 uninstallall:   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
140 uninstall: 
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.050909 seconds and 5 git commands to generate.