shithub: riscv

ref: 9861f1a92b373a16939fd6f3c167e5dad9f253d3
dir: /sys/src/cmd/cwfs/portmkfile/

View raw version
</$objtype/mkfile

BIN=/$objtype/bin
TARG=cwfs$FS
OFILES=\
	9p2.$O\
	auth.$O\
	chk.$O\
	con.$O\
	config.$O\
	console.$O\
	cw.$O\
	data.$O\
	dentry.$O\
	fworm.$O\
	iobuf.$O\
	juke.$O\
	main.$O\
	malloc.$O\
	mworm.$O\
	net.$O\
	proc.$O\
	scsi.$O\
	sub.$O\
	time.$O\
	uidgid.$O\
	wren.$O\
	srv.$O\

HFILES=\
	../32bit.h\
	../64bit.h\
	../64xbit.h\
	../all.h\
	dat.h\
	../io.h\
	../portdat.h\
	../portfns.h\

# SRC=${OBJ:%.$O=../%.c}
CFLAGS=$CFLAGS -I..

default:V: $O.cwfs$FS

</sys/src/cmd/mkmany

%.$O:	../%.c
	$CC $CFLAGS ../$stem.c
%.$O:	../%.s
	$AS $AFLAGS ../$stem.s

acid: ${OFILES:%.acid=../%.c}

$O.cwfs$FS: conf.c $OFILES
	$CC $CFLAGS -DDATE'='`{date -n} conf.c
	$LD -o $target $OFILES conf.$O
	size $target

test:V: 8.cwfs$FS
	cputype=debug $prereq -a 'tcp!*!1234' </dev/null