]> andersk Git - openssh.git/blob - Makefile.in
- Substitute PID directory in sshd.8. Suggestion from Andrew
[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 sysconfdir=@sysconfdir@
8 piddir=@piddir@
9 srcdir=@srcdir@
10 top_srcdir=@top_srcdir@
11
12 VPATH=@srcdir@
13
14 SSH_PROGRAM=@bindir@/ssh
15 ASKPASS_LOCATION=@libexecdir@/ssh
16 ASKPASS_PROGRAM=$(ASKPASS_LOCATION)/ssh-askpass
17
18 CC=@CC@
19 PATHS=-DETCDIR=\"$(sysconfdir)\" -DSSH_PROGRAM=\"$(SSH_PROGRAM)\" -DSSH_ASKPASS_DEFAULT=\"$(ASKPASS_PROGRAM)\"
20 CFLAGS=@CFLAGS@ $(PATHS) @DEFS@
21 EXTRA_TARGETS=@GNOME_ASKPASS@
22 LIBS=@LIBS@
23 AR=@AR@
24 RANLIB=@RANLIB@
25 INSTALL=@INSTALL@
26 PERL=@PERL@
27 FIXPATHS=$(PERL) @top_srcdir@/fixpaths -Dsysconfdir=${sysconfdir} -Dpiddir=${piddir}
28 LDFLAGS=-L. @LDFLAGS@
29
30 GNOME_CFLAGS=`gnome-config --cflags gnome gnomeui`
31 GNOME_LIBS=`gnome-config --libs gnome gnomeui`
32
33 TARGETS=ssh sshd ssh-add ssh-keygen ssh-agent scp $(EXTRA_TARGETS)
34
35 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 readpass.o rsa.o tildexpand.o ttymodes.o uidswap.o xmalloc.o 
36
37 SSHOBJS= ssh.o sshconnect.o log-client.o readconf.o clientloop.o
38
39 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
40
41 MANPAGES=scp.1 ssh-add.1 ssh-agent.1 ssh-keygen.1 ssh.1 sshd.8
42
43 CONFIGFILES=sshd_config ssh_config
44
45 all: $(TARGETS) $(MANPAGES) $(CONFIGFILES)
46
47 $(OBJS): config.h
48
49 $(LIBOBJS): config.h
50
51 libssh.a: $(LIBOBJS)
52         $(AR) rv $@ $(LIBOBJS)
53         $(RANLIB) $@
54
55 ssh: libssh.a $(SSHOBJS)
56         $(CC) -o $@ $(SSHOBJS) $(LDFLAGS) -lssh $(LIBS)
57
58 sshd: libssh.a  $(SSHDOBJS)
59         $(CC) -o $@ $(SSHDOBJS) $(LDFLAGS) -lssh $(LIBS)
60
61 scp: libssh.a scp.o
62         $(CC) -o $@ scp.o $(LDFLAGS) -lssh $(LIBS) 
63
64 ssh-add: libssh.a ssh-add.o log-client.o
65         $(CC) -o $@ ssh-add.o log-client.o $(LDFLAGS) -lssh $(LIBS) 
66
67 ssh-agent: libssh.a ssh-agent.o log-client.o
68         $(CC) -o $@ ssh-agent.o log-client.o $(LDFLAGS) -lssh $(LIBS) 
69
70 ssh-keygen: libssh.a ssh-keygen.o log-client.o
71         $(CC) -o $@ ssh-keygen.o log-client.o $(LDFLAGS) -lssh $(LIBS) 
72
73 gnome-ssh-askpass: gnome-ssh-askpass.c
74         $(CC) $(CFLAGS) $(GNOME_CFLAGS) -o $@ gnome-ssh-askpass.c $(GNOME_LIBS)
75
76 scp.1: scp.1.in
77         $(FIXPATHS) $(srcdir)/scp.1.in
78
79 ssh-add.1: ssh-add.1.in
80         $(FIXPATHS) ssh-add.1.in
81
82 ssh-agent.1: ssh-agent.1.in
83         $(FIXPATHS) ssh-agent.1.in
84
85 ssh-keygen.1: ssh-keygen.1.in
86         $(FIXPATHS) ssh-keygen.1.in
87
88 ssh.1: ssh.1.in
89         $(FIXPATHS) ssh.1.in
90
91 sshd.8: sshd.8.in
92         $(FIXPATHS) sshd.8.in
93
94 sshd_config: sshd_config.in
95         $(FIXPATHS) sshd_config.in
96
97 ssh_config: ssh_config.in
98         $(FIXPATHS) ssh_config.in
99
100 clean:
101         rm -f *.o *.a $(TARGETS) config.status config.cache config.log 
102         rm -f core *.1 *.8 sshd_config ssh_config
103
104 distclean: clean
105         rm -f Makefile config.h core *~
106
107 mrproper: distclean
108
109 veryclean: distclean
110         rm -f configure config.h.in
111
112 install: $(TARGETS)
113         $(INSTALL) -d $(bindir)
114         $(INSTALL) -d $(sbindir)
115         $(INSTALL) -d $(mandir)
116         $(INSTALL) -d $(mandir)/man1
117         $(INSTALL) -d $(mandir)/man8
118         $(INSTALL) -s ssh $(bindir)/ssh
119         $(INSTALL) -s scp $(bindir)/scp
120         $(INSTALL) -s ssh-add $(bindir)/ssh-add
121         $(INSTALL) -s ssh-agent $(bindir)/ssh-agent
122         $(INSTALL) -s ssh-keygen $(bindir)/ssh-keygen
123         $(INSTALL) -s sshd $(sbindir)/sshd
124         $(INSTALL) -m 644 ssh.1 $(mandir)/man1/ssh.1
125         $(INSTALL) -m 644 scp.1 $(mandir)/man1/scp.1
126         $(INSTALL) -m 644 ssh-add.1 $(mandir)/man1/ssh-add.1
127         $(INSTALL) -m 644 ssh-agent.1 $(mandir)/man1/ssh-agent.1
128         $(INSTALL) -m 644 ssh-keygen.1 $(mandir)/man1/ssh-keygen.1
129         $(INSTALL) -m 644 sshd.8 $(mandir)/man8/sshd.8
130         -rm -f $(bindir)/slogin
131         ln -s ssh $(bindir)/slogin
132         -rm -f $(mandir)/man1/slogin.1
133         ln -s ssh.1 $(mandir)/man1/slogin.1
134
135         if [ ! -z "@GNOME_ASKPASS@" ] ; then \
136                 $(INSTALL) -d $(libexecdir) ; \
137                 $(INSTALL) -d $(libexecdir)/ssh ; \
138                 $(INSTALL) -s @GNOME_ASKPASS@ ${ASKPASS_LOCATION} ; \
139         fi
140
141         if [ ! -f $(sysconfdir)/ssh_config -a ! -f $(sysconfdir)/sshd_config ]; then \
142                 $(INSTALL) -d $(sysconfdir); \
143                 $(INSTALL) -m 644 ssh_config $(sysconfdir)/ssh_config; \
144                 $(INSTALL) -m 644 sshd_config $(sysconfdir)/sshd_config; \
145         fi
146
147 uninstallall:   uninstall
148         -rm -f $(sysconfdir)/ssh_config
149         -rm -f $(sysconfdir)/sshd_config
150         -rmdir $(sysconfdir)
151         -rmdir $(bindir)
152         -rmdir $(sbindir)
153         -rmdir $(mandir)/man1
154         -rmdir $(mandir)/man8
155         -rmdir $(mandir)
156         -rmdir $(libexecdir)
157
158 uninstall: 
159         -rm -f $(bindir)/ssh
160         -rm -f $(bindir)/scp
161         -rm -f $(bindir)/ssh-add
162         -rm -f $(bindir)/ssh-agent
163         -rm -f $(bindir)/ssh-keygen
164         -rm -f $(sbindir)/sshd
165         -rm -f $(mandir)/man1/ssh.1
166         -rm -f $(mandir)/man1/scp.1
167         -rm -f $(mandir)/man1/ssh-add.1
168         -rm -f $(mandir)/man1/ssh-agent.1
169         -rm -f $(mandir)/man1/ssh-keygen.1
170         -rm -f $(mandir)/man8/sshd.8
171         -rm -f $(bindir)/slogin
172         -rm -f $(mandir)/man1/slogin.1
173         -rm -f ${ASKPASS_PROGRAM}
174         -rmdir $(libexecdir)/ssh ;
175
176 preformat:
177         -rm -f catman
178         -mkdir catman
179         for x in $(MANPAGES) ; do man ./$${x}.in > catman/$${x}.in ; done
This page took 0.051158 seconds and 5 git commands to generate.