Plan 9 from Bell Labs’s /usr/web/sources/plan9/sys/src/cmd/ssh2/mkfile

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


</$objtype/mkfile

TARG=\
	netssh\
	rsa2ssh2\
	ssh2\
	sshsession\

HFILES=\
	netssh.h\
	ssh2.h\

CIPHEROFILES=\
	cipher3des.$O\
	cipherblowfish.$O\
	cipherrc4.$O\
	cipheraes.$O\

FSOFILES=\
	dh.$O\
	pubkey.$O\
	transport.$O\

COMMON=\
	esmprint.$O\
	common.$O\

CFILES=`{echo *.c}

BIN=/$objtype/bin

UPDATE=\
	mkfile\
	$HFILES\
	${FSOFILES:%.$O=%.c}\
	${CIPHEROFILES:%.$O=%.c}\
	${TARG:%=%.c}\

</sys/src/cmd/mkmany

${TARG:%=$O.%}: $COMMON

new:V:
	rm -f /bin/sshsession /bin/aux/sshsession
	mk install

$O.rsa2ssh2 $O.ssh2key: transport.$O

$O.ssh2: dial.$O

$O.netssh: $CIPHEROFILES $FSOFILES dial.thread.$O

$BIN/sshsession:VQ: $BIN/aux/sshsession
	;

$BIN/aux/sshsession: $O.sshsession
	cp $O.sshsession $BIN/aux/sshsession

# $BIN/sshswitch:VQ: $BIN/aux/sshswitch
# 	;
#
# $BIN/aux/sshswitch: $O.sshswitch
# 	cp $O.sshswitch $BIN/aux/sshswitch

analysis:V: magic.out long.funcs

#dup:V: dup.out
#dup.out dup.sum dup.xpr dup.pro:D: $HFILES $CFILES
#	dup -t3 -xp *.c >dup.out

magic.out:D: $HFILES $CFILES
	magic >$target

long.funcs:D: $CFILES
	funclen *.c | sort -nr | awk '$1 > 24' >$target

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.