Plan 9 from Bell Labs’s /usr/web/sources/contrib/fgb/root/sys/src/cmd/openssh/mkfile

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


APE=/sys/src/ape
<$APE/config


BIN=/$objtype/bin/openssh

TARG=\
	scp\
	sftp\
	ssh-add\
	ssh-agent\
	ssh-keygen\
	ssh-keyscan\
	ssh-keysign\
	ssh\
#	sshd\

OSSH=\
	clientloop.$O\
	readconf.$O\
	ssh.$O\
	sshtty.$O\
	sshconnect.$O\
	sshconnect1.$O\
	sshconnect2.$O\

OSSHD=\
	audit.$O\
	audit-bsm.$O\
	auth-bsdauth.$O\
	auth-chall.$O\
	auth-krb5.$O\
	auth-options.$O\
	auth-pam.$O\
	auth-passwd.$O\
	auth-rh-rsa.$O\
	auth-rhosts.$O\
	auth-rsa.$O\
	auth-shadow.$O\
	auth-sia.$O\
	auth-skey.$O\
	auth.$O\
	auth1.$O\
	auth2-chall.$O\
	auth2-gss.$O\
	auth2-hostbased.$O\
	auth2-kbdint.$O\
	auth2-none.$O\
	auth2-passwd.$O\
	auth2-pubkey.$O\
	auth2.$O\
	groupaccess.$O\
	gss-serv-krb5.$O\
	gss-serv.$O\
	kexdhs.$O\
	kexgexs.$O\
	loginrec.$O\
	md5crypt.$O\
	monitor.$O\
	monitor_mm.$O\
	monitor_wrap.$O\
	servconf.$O\
	serverloop.$O\
	session.$O\
	sshd.$O\
	sshlogin.$O\
	sshpty.$O\

OFILES=\
	libssh.a$O\
	libopenbsd-compat.a$O\

LIB=\
	/$objtype/lib/ape/libcrypto.a

HFILES=\
	config.h\

</sys/src/cmd/mkmany

CFLAGS=-c -I. -D_POSIX_SOURCE -D_BSD_EXTENSION -D_SUSV2_SOURCE -D_RESEARCH_SOURCE -D_C99_SNPRINTF_EXTENSION -DHAVE_CONFIG_H -DPLAN9 -DT$objtype

libssh.a$O:
	mk -f mkfile.lib

libopenbsd-compat.a$O:
	@{
		cd openbsd-compat
		mk
	}

$O.scp: scp.$O progressmeter.$O $OFILES
	$LD -o $target $prereq $LIB

$O.sftp: sftp.$O sftp-client.$O sftp-common.$O sftp-glob.$O progressmeter.$O $OFILES
	$LD -o $target $prereq $LIB

$O.ssh-add: ssh-add.$O $OFILES
	$LD -o $target $prereq $LIB

$O.ssh-agent: ssh-agent.$O $OFILES
	$LD -o $target $prereq $LIB

$O.ssh-keygen: ssh-keygen.$O $OFILES
	$LD -o $target $prereq $LIB

$O.ssh-keyscan: ssh-keyscan.$O $OFILES
	$LD -o $target $prereq $LIB

$O.ssh-keysign: ssh-keysign.$O readconf.$O $OFILES
	$LD -o $target $prereq $LIB

$O.ssh-rand-helper: ssh-rand-helper.$O $OFILES
	$LD -o $target $prereq $LIB

$O.ssh: $OSSH $OFILES
	$LD -o $target $prereq $LIB

$O.sshd: $OSSHD $OFILES
	$LD -o $target $prereq $LIB

$O.logintest: logintest.$O loginrec.$O $OFILES
	$LD -o $target $prereq $LIB

clean:V:
	@{
		cd openbsd-compat
		mk clean
	}
	rm -f *.[$OS] [$OS].*  $TARG libssh.a[$OS] libopenbsd-compat.a[$OS]

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.