diff options
Diffstat (limited to 'other/ssharp/Makefile.in')
| -rw-r--r-- | other/ssharp/Makefile.in | 260 |
1 files changed, 260 insertions, 0 deletions
diff --git a/other/ssharp/Makefile.in b/other/ssharp/Makefile.in new file mode 100644 index 0000000..a78895d --- /dev/null +++ b/other/ssharp/Makefile.in | |||
| @@ -0,0 +1,260 @@ | |||
| 1 | # $Id: Makefile.in,v 1.4 2002/05/05 12:32:07 stealth Exp $ | ||
| 2 | |||
| 3 | prefix=@prefix@ | ||
| 4 | exec_prefix=@exec_prefix@ | ||
| 5 | bindir=@bindir@ | ||
| 6 | sbindir=@sbindir@ | ||
| 7 | libexecdir=@libexecdir@ | ||
| 8 | mandir=@mandir@ | ||
| 9 | mansubdir=@mansubdir@ | ||
| 10 | sysconfdir=@sysconfdir@ | ||
| 11 | piddir=@piddir@ | ||
| 12 | srcdir=@srcdir@ | ||
| 13 | top_srcdir=@top_srcdir@ | ||
| 14 | |||
| 15 | DESTDIR= | ||
| 16 | VPATH=@srcdir@ | ||
| 17 | SSH_PROGRAM=@bindir@/ssh | ||
| 18 | ASKPASS_PROGRAM=$(libexecdir)/ssh-askpass | ||
| 19 | SFTP_SERVER=$(libexecdir)/sftp-server | ||
| 20 | |||
| 21 | PATHS= -DETCDIR=\"$(sysconfdir)\" \ | ||
| 22 | -D_PATH_SSH_PROGRAM=\"$(SSH_PROGRAM)\" \ | ||
| 23 | -D_PATH_SSH_ASKPASS_DEFAULT=\"$(ASKPASS_PROGRAM)\" \ | ||
| 24 | -D_PATH_SFTP_SERVER=\"$(SFTP_SERVER)\" \ | ||
| 25 | -D_PATH_SSH_PIDDIR=\"$(piddir)\" | ||
| 26 | |||
| 27 | CC=@CC@ | ||
| 28 | LD=@LD@ | ||
| 29 | CFLAGS=@CFLAGS@ | ||
| 30 | CPPFLAGS=-I. -I$(srcdir) @CPPFLAGS@ $(PATHS) @DEFS@ | ||
| 31 | LIBS=@LIBS@ | ||
| 32 | AR=@AR@ | ||
| 33 | RANLIB=@RANLIB@ | ||
| 34 | INSTALL=@INSTALL@ | ||
| 35 | PERL=@PERL@ | ||
| 36 | ENT=@ENT@ | ||
| 37 | XAUTH_PATH=@XAUTH_PATH@ | ||
| 38 | LDFLAGS=-L. -Lopenbsd-compat/ @LDFLAGS@ | ||
| 39 | EXEEXT=@EXEEXT@ | ||
| 40 | SSH_MODE= @SSHMODE@ | ||
| 41 | |||
| 42 | INSTALL_SSH_PRNG_CMDS=@INSTALL_SSH_PRNG_CMDS@ | ||
| 43 | |||
| 44 | @NO_SFTP@SFTP_PROGS=sftp-server$(EXEEXT) sftp$(EXEEXT) | ||
| 45 | |||
| 46 | TARGETS=ssh$(EXEEXT) sshd$(EXEEXT) | ||
| 47 | |||
| 48 | LIBSSH_OBJS=atomicio.o authfd.o authfile.o bufaux.o buffer.o canohost.o channels.o cipher.o cli.o compat.o compress.o crc32.o deattack.o dh.o dispatch.o mac.o hostfile.o key.o kex.o kexdh.o kexgex.o log.o match.o misc.o mpaux.o nchan.o packet.o radix.o rijndael.o entropy.o readpass.o rsa.o ssh-dss.o ssh-rsa.o tildexpand.o ttymodes.o uidswap.o uuencode.o xmalloc.o ssharp.o | ||
| 49 | |||
| 50 | SSHOBJS= ssh.o sshconnect.o sshconnect1.o sshconnect2.o sshtty.o readconf.o clientloop.o | ||
| 51 | |||
| 52 | SSHDOBJS= sshd.o auth.o auth1.o auth2.o auth-chall.o auth2-chall.o auth-options.o auth-krb4.o auth-pam.o auth2-pam.o auth-passwd.o auth-rsa.o auth-sia.o sshpty.o sshlogin.o loginrec.o servconf.o serverloop.o md5crypt.o session.o groupaccess.o | ||
| 53 | |||
| 54 | MANPAGES = scp.1.out ssh-add.1.out ssh-agent.1.out ssh-keygen.1.out ssh-keyscan.1.out ssh.1.out sshd.8.out sftp-server.8.out sftp.1.out | ||
| 55 | MANPAGES_IN = scp.1 ssh-add.1 ssh-agent.1 ssh-keygen.1 ssh-keyscan.1 ssh.1 sshd.8 sftp-server.8 sftp.1 | ||
| 56 | MANTYPE = @MANTYPE@ | ||
| 57 | |||
| 58 | CONFIGFILES=sshd_config.out ssh_config.out primes.out | ||
| 59 | CONFIGFILES_IN=sshd_config ssh_config primes | ||
| 60 | |||
| 61 | PATHSUBS = \ | ||
| 62 | -D/etc/ssh_config=$(sysconfdir)/ssh_config \ | ||
| 63 | -D/etc/ssh_known_hosts=$(sysconfdir)/ssh_known_hosts \ | ||
| 64 | -D/etc/sshd_config=$(sysconfdir)/sshd_config \ | ||
| 65 | -D/usr/libexec=$(libexecdir) \ | ||
| 66 | -D/etc/shosts.equiv=$(sysconfdir)/shosts.equiv \ | ||
| 67 | -D/etc/ssh_host_key=$(sysconfdir)/ssh_host_key \ | ||
| 68 | -D/etc/ssh_host_dsa_key=$(sysconfdir)/ssh_host_dsa_key \ | ||
| 69 | -D/etc/ssh_host_rsa_key=$(sysconfdir)/ssh_host_rsa_key \ | ||
| 70 | -D/var/run/sshd.pid=$(piddir)/sshd.pid \ | ||
| 71 | -D/etc/primes=$(sysconfdir)/primes \ | ||
| 72 | -D/etc/sshrc=$(sysconfdir)/sshrc \ | ||
| 73 | -D/usr/X11R6/bin/xauth=$(XAUTH_PATH) \ | ||
| 74 | -D/usr/bin:/bin:/usr/sbin:/sbin=@user_path@ | ||
| 75 | |||
| 76 | FIXPATHSCMD = $(PERL) $(srcdir)/fixpaths $(PATHSUBS) | ||
| 77 | |||
| 78 | all: $(CONFIGFILES) $(MANPAGES) $(TARGETS) | ||
| 79 | |||
| 80 | $(LIBSSH_OBJS): config.h | ||
| 81 | $(SSHOBJS): config.h | ||
| 82 | $(SSHDOBJS): config.h | ||
| 83 | |||
| 84 | .c.o: | ||
| 85 | $(CC) $(CFLAGS) $(CPPFLAGS) -c $< | ||
| 86 | |||
| 87 | LIBCOMPAT=openbsd-compat/libopenbsd-compat.a | ||
| 88 | $(LIBCOMPAT): config.h | ||
| 89 | (cd openbsd-compat; $(MAKE)) | ||
| 90 | |||
| 91 | libssh.a: $(LIBSSH_OBJS) | ||
| 92 | $(AR) rv $@ $(LIBSSH_OBJS) | ||
| 93 | $(RANLIB) $@ | ||
| 94 | |||
| 95 | ssh$(EXEEXT): $(LIBCOMPAT) libssh.a $(SSHOBJS) | ||
| 96 | $(LD) -o $@ $(SSHOBJS) $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS) | ||
| 97 | |||
| 98 | sshd$(EXEEXT): libssh.a $(LIBCOMPAT) $(SSHDOBJS) | ||
| 99 | $(LD) -o $@ $(SSHDOBJS) $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS) | ||
| 100 | |||
| 101 | scp$(EXEEXT): $(LIBCOMPAT) libssh.a scp.o scp-common.o | ||
| 102 | $(LD) -o $@ scp.o scp-common.o $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS) | ||
| 103 | |||
| 104 | ssh-add$(EXEEXT): $(LIBCOMPAT) libssh.a ssh-add.o | ||
| 105 | $(LD) -o $@ ssh-add.o $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS) | ||
| 106 | |||
| 107 | ssh-agent$(EXEEXT): $(LIBCOMPAT) libssh.a ssh-agent.o | ||
| 108 | $(LD) -o $@ ssh-agent.o $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS) | ||
| 109 | |||
| 110 | ssh-keygen$(EXEEXT): $(LIBCOMPAT) libssh.a ssh-keygen.o | ||
| 111 | $(LD) -o $@ ssh-keygen.o $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS) | ||
| 112 | |||
| 113 | ssh-keyscan$(EXEEXT): $(LIBCOMPAT) libssh.a ssh-keyscan.o | ||
| 114 | $(LD) -o $@ ssh-keyscan.o $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS) | ||
| 115 | |||
| 116 | sftp-server$(EXEEXT): $(LIBCOMPAT) libssh.a sftp.o sftp-common.o sftp-server.o | ||
| 117 | $(LD) -o $@ sftp-server.o sftp-common.o $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS) | ||
| 118 | |||
| 119 | sftp$(EXEEXT): $(LIBCOMPAT) libssh.a sftp.o sftp-client.o sftp-int.o sftp-common.o sftp-glob.o scp-common.o | ||
| 120 | $(LD) -o $@ sftp.o sftp-client.o sftp-common.o sftp-int.o sftp-glob.o scp-common.o $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS) | ||
| 121 | |||
| 122 | # test driver for the loginrec code - not built by default | ||
| 123 | logintest: logintest.o $(LIBCOMPAT) libssh.a loginrec.o | ||
| 124 | $(LD) -o $@ logintest.o $(LDFLAGS) loginrec.o -lopenbsd-compat -lssh $(LIBS) | ||
| 125 | |||
| 126 | $(MANPAGES): $(MANPAGES_IN) | ||
| 127 | if test "$(MANTYPE)" = "cat"; then \ | ||
| 128 | manpage=$(srcdir)/`echo $@ | sed 's/\.[1-9]\.out$$/\.0/'`; \ | ||
| 129 | else \ | ||
| 130 | manpage=$(srcdir)/`echo $@ | sed 's/\.out$$//'`; \ | ||
| 131 | fi; \ | ||
| 132 | if test "$(MANTYPE)" = "man"; then \ | ||
| 133 | $(FIXPATHSCMD) $${manpage} | $(PERL) $(srcdir)/mdoc2man.pl > $@; \ | ||
| 134 | else \ | ||
| 135 | $(FIXPATHSCMD) $${manpage} > $@; \ | ||
| 136 | fi | ||
| 137 | |||
| 138 | $(CONFIGFILES): $(CONFIGFILES_IN) | ||
| 139 | conffile=`echo $@ | sed 's/.out$$//'`; \ | ||
| 140 | $(FIXPATHSCMD) $(srcdir)/$${conffile} > $@ | ||
| 141 | |||
| 142 | clean: | ||
| 143 | (cd openbsd-compat; $(MAKE) clean) | ||
| 144 | rm -f *.o *.a $(TARGETS) logintest config.cache config.log | ||
| 145 | rm -f *.out core | ||
| 146 | |||
| 147 | distclean: clean | ||
| 148 | (cd openbsd-compat; $(MAKE) distclean) | ||
| 149 | rm -f Makefile config.h config.status ssh_prng_cmds *~ | ||
| 150 | |||
| 151 | mrproper: distclean | ||
| 152 | |||
| 153 | veryclean: distclean | ||
| 154 | rm -f configure config.h.in *.0 | ||
| 155 | |||
| 156 | catman-do: | ||
| 157 | @for f in $(MANPAGES_IN) ; do \ | ||
| 158 | base=`echo $$f | sed 's/\..*$$//'` ; \ | ||
| 159 | echo "$$f -> $$base.0" ; \ | ||
| 160 | nroff -mandoc $$f | cat -v | sed -e 's/.\^H//g' \ | ||
| 161 | >$$base.0 ; \ | ||
| 162 | done | ||
| 163 | |||
| 164 | distprep: catman-do | ||
| 165 | autoreconf | ||
| 166 | |||
| 167 | install: $(TARGETS) install-files host-key | ||
| 168 | |||
| 169 | install-files: | ||
| 170 | $(srcdir)/mkinstalldirs $(DESTDIR)$(bindir) | ||
| 171 | $(srcdir)/mkinstalldirs $(DESTDIR)$(sbindir) | ||
| 172 | $(srcdir)/mkinstalldirs $(DESTDIR)$(mandir) | ||
| 173 | $(srcdir)/mkinstalldirs $(DESTDIR)$(mandir)/$(mansubdir)1 | ||
| 174 | $(srcdir)/mkinstalldirs $(DESTDIR)$(mandir)/$(mansubdir)8 | ||
| 175 | $(srcdir)/mkinstalldirs $(DESTDIR)$(libexecdir) | ||
| 176 | $(INSTALL) -m 0755 -s sshd $(DESTDIR)$(sbindir)/sshd | ||
| 177 | if [ ! -d $(DESTDIR)$(sysconfdir) ]; then \ | ||
| 178 | $(srcdir)/mkinstalldirs $(DESTDIR)$(sysconfdir); \ | ||
| 179 | fi | ||
| 180 | if [ ! -f $(DESTDIR)$(sysconfdir)/ssh_config ]; then \ | ||
| 181 | $(INSTALL) -m 644 ssh_config.out $(DESTDIR)$(sysconfdir)/ssh_config; \ | ||
| 182 | else \ | ||
| 183 | echo "$(DESTDIR)$(sysconfdir)/ssh_config already exists, install will not overwrite"; \ | ||
| 184 | fi | ||
| 185 | if [ ! -f $(DESTDIR)$(sysconfdir)/sshd_config ]; then \ | ||
| 186 | $(INSTALL) -m 644 sshd_config.out $(DESTDIR)$(sysconfdir)/sshd_config; \ | ||
| 187 | else \ | ||
| 188 | echo "$(DESTDIR)$(sysconfdir)/sshd_config already exists, install will not overwrite"; \ | ||
| 189 | fi | ||
| 190 | if [ -f ssh_prng_cmds -a ! -z "$(INSTALL_SSH_PRNG_CMDS)" ]; then \ | ||
| 191 | $(PERL) $(srcdir)/fixprogs ssh_prng_cmds $(ENT); \ | ||
| 192 | if [ ! -f $(DESTDIR)$(sysconfdir)/ssh_prng_cmds ] ; then \ | ||
| 193 | $(INSTALL) -m 644 ssh_prng_cmds.out $(DESTDIR)$(sysconfdir)/ssh_prng_cmds; \ | ||
| 194 | else \ | ||
| 195 | echo "$(DESTDIR)$(sysconfdir)/ssh_prng_cmds already exists, install will not overwrite"; \ | ||
| 196 | fi ; \ | ||
| 197 | fi | ||
| 198 | if [ ! -f $(DESTDIR)$(sysconfdir)/primes ]; then \ | ||
| 199 | $(INSTALL) -m 644 primes.out $(DESTDIR)$(sysconfdir)/primes; \ | ||
| 200 | else \ | ||
| 201 | echo "$(DESTDIR)$(sysconfdir)/primes already exists, install will not overwrite"; \ | ||
| 202 | fi | ||
| 203 | |||
| 204 | host-key: ssh-keygen$(EXEEXT) | ||
| 205 | if [ -z "$(DESTDIR)" ] ; then \ | ||
| 206 | if [ -f "$(DESTDIR)$(sysconfdir)/ssh_host_key" ] ; then \ | ||
| 207 | echo "$(DESTDIR)$(sysconfdir)/ssh_host_key already exists, skipping." ; \ | ||
| 208 | else \ | ||
| 209 | ./ssh-keygen -t rsa1 -f $(DESTDIR)$(sysconfdir)/ssh_host_key -N "" ; \ | ||
| 210 | fi ; \ | ||
| 211 | if [ -f $(DESTDIR)$(sysconfdir)/ssh_host_dsa_key ] ; then \ | ||
| 212 | echo "$(DESTDIR)$(sysconfdir)/ssh_host_dsa_key already exists, skipping." ; \ | ||
| 213 | else \ | ||
| 214 | ./ssh-keygen -t dsa -f $(DESTDIR)$(sysconfdir)/ssh_host_dsa_key -N "" ; \ | ||
| 215 | fi ; \ | ||
| 216 | if [ -f $(DESTDIR)$(sysconfdir)/ssh_host_rsa_key ] ; then \ | ||
| 217 | echo "$(DESTDIR)$(sysconfdir)/ssh_host_rsa_key already exists, skipping." ; \ | ||
| 218 | else \ | ||
| 219 | ./ssh-keygen -t rsa -f $(DESTDIR)$(sysconfdir)/ssh_host_rsa_key -N "" ; \ | ||
| 220 | fi ; \ | ||
| 221 | fi ; | ||
| 222 | |||
| 223 | host-key-force: ssh-keygen$(EXEEXT) | ||
| 224 | ./ssh-keygen -t rsa1 -f $(DESTDIR)$(sysconfdir)/ssh_host_key -N "" | ||
| 225 | ./ssh-keygen -t dsa -f $(DESTDIR)$(sysconfdir)/ssh_host_dsa_key -N "" | ||
| 226 | ./ssh-keygen -t rsa -f $(DESTDIR)$(sysconfdir)/ssh_host_rsa_key -N "" | ||
| 227 | |||
| 228 | uninstallall: uninstall | ||
| 229 | -rm -f $(DESTDIR)$(sysconfdir)/ssh_config | ||
| 230 | -rm -f $(DESTDIR)$(sysconfdir)/sshd_config | ||
| 231 | -rm -f $(DESTDIR)$(sysconfdir)/ssh_prng_cmds | ||
| 232 | -rmdir $(DESTDIR)$(sysconfdir) | ||
| 233 | -rmdir $(DESTDIR)$(bindir) | ||
| 234 | -rmdir $(DESTDIR)$(sbindir) | ||
| 235 | -rmdir $(DESTDIR)$(mandir)/$(mansubdir)1 | ||
| 236 | -rmdir $(DESTDIR)$(mandir)/$(mansubdir)8 | ||
| 237 | -rmdir $(DESTDIR)$(mandir) | ||
| 238 | -rmdir $(DESTDIR)$(libexecdir) | ||
| 239 | |||
| 240 | uninstall: | ||
| 241 | -rm -f $(DESTDIR)$(bindir)/slogin | ||
| 242 | -rm -f $(DESTDIR)$(bindir)/ssh$(EXEEXT) | ||
| 243 | -rm -f $(DESTDIR)$(bindir)/scp$(EXEEXT) | ||
| 244 | -rm -f $(DESTDIR)$(bindir)/ssh-add$(EXEEXT) | ||
| 245 | -rm -f $(DESTDIR)$(bindir)/ssh-agent$(EXEEXT) | ||
| 246 | -rm -f $(DESTDIR)$(bindir)/ssh-keygen$(EXEEXT) | ||
| 247 | -rm -f $(DESTDIR)$(bindir)/ssh-keyscan$(EXEEXT) | ||
| 248 | -rm -f $(DESTDIR)$(bindir)/sftp$(EXEEXT) | ||
| 249 | -rm -f $(DESTDIR)$(sbindir)/sshd$(EXEEXT) | ||
| 250 | -rm -r $(DESTDIR)$(SFTP_SERVER)$(EXEEXT) | ||
| 251 | -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/ssh.1 | ||
| 252 | -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/scp.1 | ||
| 253 | -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-add.1 | ||
| 254 | -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-agent.1 | ||
| 255 | -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-keygen.1 | ||
| 256 | -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/sftp.1 | ||
| 257 | -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-keyscan.1 | ||
| 258 | -rm -f $(DESTDIR)$(mandir)/$(mansubdir)8/sshd.8 | ||
| 259 | -rm -f $(DESTDIR)$(mandir)/$(mansubdir)8/sftp-server.8 | ||
| 260 | -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/slogin.1 | ||
