shithub: riscv

ref: 7d7650dffc20c3853eb1acd551c9a02f73751ae3
dir: /sys/src/cmd/cwfs/portmkfile/

View raw version
</$objtype/mkfile

BIN=/$objtype/bin
TARG=cwfs$FS
OFILES=\
	9p1.$O\
	9p1lib.$O\
	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\
	../9p1.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