V10/lsys/fs/mkfile

CFLAGS=-I.. -I/usr/include -DKERNEL
L=../lib/fs.a
FILES=\
	$L(fs.x) $L(fsnami.x) $L(alloc.x) \
	$L(neta.x) $L(proca.x) $L(ms.x) $L(netb.x) \
	$L(errfs.x) $L(pipe.x)

$L: $FILES
	names=`membername $newprereq`
	ar r $L $names && rm $names
	ranlib $L
$L(%):N: %
%.x: %.c
	lcc $CFLAGS -S $stem.c
	 sed -f ../lib/asm.sed <$stem.s | as -o $stem.x
	rm $stem.s