shithub: rc

ref: 024840612b2fca4f1d5251d002b43ed642230a26
dir: /mkfile/

View raw version
</$objtype/mkfile

TARG=rc
OFILES=\
	code.$O\
	exec.$O\
	getflags.$O\
	glob.$O\
	here.$O\
	io.$O\
	lex.$O\
	pcmd.$O\
	pfnc.$O\
	simple.$O\
	subr.$O\
	trap.$O\
	tree.$O\
	var.$O\
	havefork.$O\
	plan9.$O\
	y.tab.$O\

HFILES=rc.h\
	y.tab.h\
	io.h\
	exec.h\
	fns.h\
	getflags.h\

YFILES=syn.y

BIN=/$objtype/bin

UPDATE=\
	mkfile\
	$HFILES\
	${OFILES:%.$O=%.c}\
	$YFILES\
	${TARG:%=/386/bin/%}\

CFLAGS=$CFLAGS -DPlan9

</sys/src/cmd/mkone

clean:V:
	rm -f [$OS].out *.[$OS] y.tab.? y.debug $TARG