Plan 9 from Bell Labs’s /usr/web/sources/patch/sorry/htfilefs/mkfile.orig

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


</$objtype/mkfile

TARG = 	dhcpclient\
	ftpd\
	gping\
	hogports\
	ipconfig\
	ping\
	pppoe\
	pptp\
	pptpd\
	rarpd\
	rexexec\
	rip\
	rlogind\
	telnet\
	telnetd\
	tftpd\
	traceroute\
	udpecho\

DIRS=ftpfs dhcpd httpd ppp imap4d snoopy

BIN=/$objtype/bin/ip
HFILES=dhcp.h arp.h glob.h telnet.h

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

</sys/src/cmd/mkmany

all:V:	$DIRS

$DIRS:V:
	for (i in $DIRS) @{
		echo mk $i
		cd $i
		mk all
	}

install:V:	installdirs

installdirs:V:
	for (i in $DIRS) @{
		echo mk $i
		cd $i
		mk install
	}

update:V:
	update $UPDATEFLAGS $UPDATE
	for (i in $DIRS) @{
		echo update $i
		cd $i
		mk 'UPDATEFLAGS='$"UPDATEFLAGS update
	}

clean:V:
	for (i in $DIRS) @{
		echo clean $i
		cd $i
		mk clean
	}
	rm -f [$OS].* *.[$OS]

nuke:V:
	for (i in $DIRS) @{
		echo nuke $i
		cd $i
		mk nuke
	}
	rm -f *.[$OS] y.tab.? y.debug y.output [$OS].$TARG $TARG

$O.fakearp:	fakearp.$O getether.$O
	$LD -o $target $prereq

telnetd.$O:	telnet.h

telnet.$O:	telnet.h

$O.ftpd:	ftpd.$O glob.$O
	$LD -o $target $prereq

$BIN/telnet:V:	$O.telnet
	cp $prereq /$objtype/bin/telnet

$BIN/snoopy:V:	$O.snoopy
	cp $prereq /$objtype/bin/snoopy

$BIN/sniffer:V:	$O.sniffer
	cp $prereq /$objtype/bin/sniffer

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].