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

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


</$objtype/mkfile

BIN=$home/bin/$objtype
RCBIN=$home/bin/rc
#BIN=/386/bin
#RCBIN=/rc/bin
MAN=/sys/man/1

TARG=hubfs
OFILES=\
	hubfs.$O\

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

CFLAGS=-FTV
LDFLAGS=
YFLAGS=-d
AFLAGS=

default:V:	$O.out

all:V:	$O.out

$O.out:	$OFILES $LIB
	$LD $LDFLAGS -o $target $prereq

%.$O:	$HFILES		# don't combine with following %.$O rules

%.$O:	%.c
	$CC $CFLAGS $stem.c

%.$O:	%.s
	$AS $AFLAGS $stem.s

install:V:	$BIN/$TARG
	$CC $CFLAGS hubshell.c
	$LD $LDFLAGS -o hubshell hubshell.$O
	cp hubshell $BIN
	cp hub $RCBIN
	cp hubfs.man /sys/man/1/hubfs || cat README

$BIN/$TARG:	$O.out
	cp $prereq $BIN/$TARG

clean:V:
	rm -f *.[$OS] [$OS].out y.tab.? lex.yy.c y.debug y.output $TARG $CLEANFILES

safeinstall:V: $O.out
	test -e $BIN/$TARG && mv $BIN/$TARG $BIN/_$TARG
	cp $prereq $BIN/$TARG


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.