</$objtype/mkfile

TARG=edit bwedit run
OFILES=cf.6 interpret.6
HFILES=dict.h cf.h gui.h
UPDATE=mkfile $HFILES $OFILES ${TARG:%=%.c} memset.s memmove.s forth.s syscalls.s

BIN=/$objtype/bin/cf
</sys/src/cmd/mkmany

cf.$O: syscalls.s forth.s memset.s memmove.s

tests:VQ: all
	@{cd test && mk tests}

$O.run: run.$O $OFILES
	$LD $LDFLAGS -o $target $prereq

$O.edit: edit.$O $OFILES gui.$O
	$LD $LDFLAGS -o $target $prereq

$O.bwedit: bwedit.$O $OFILES gui.$O
	$LD $LDFLAGS -o $target $prereq

# Override install target to install rc.
install:V:
	mkdir -p $BIN
	for (i in $TARG)
		mk $MKFLAGS $i.install

wc:
	wc -l $HFILES cf.s interpret.c edit.c run.c gui.c forth.s syscalls.s memset.s memmove.s
