shithub: riscv

ref: 163dccbac04a3c9ab132005ebb4a96a0e0baec0b
dir: /sys/src/cmd/venti/srv/mkfile/

View raw version
</$objtype/mkfile

LIBOFILES=\
	arena.$O\
	arenas.$O\
	bloom.$O\
	buildbuck.$O\
	clump.$O\
	config.$O\
	conv.$O\
	dcache.$O\
	disksched.$O\
	dump.$O\
	graph.$O\
	hdisk.$O\
	hproc.$O\
	httpd.$O\
	icache.$O\
	icachewrite.$O\
	ifile.$O\
	index.$O\
	lump.$O\
	lumpcache.$O\
	lumpqueue.$O\
	part.$O\
	png.$O\
	round.$O\
	score.$O\
	sortientry.$O\
	stats.$O\
	syncarena.$O\
	syncindex0.$O\
	trace.$O\
	unwhack.$O\
	utils.$O\
	unittoull.$O\
	whack.$O\
	xml.$O\
	zblock.$O\
	zeropart.$O\

SLIB=libvs.a$O

LIB=$SLIB # /$objtype/lib/libventi.a

HFILES=	dat.h\
	fns.h\
	stdinc.h\
	/sys/include/venti.h\
	/sys/include/httpd.h\

TARG=\
	venti\
	buildindex\
	checkarenas\
	checkindex\
	clumpstats\
	conf\
	findscore\
	fixarenas\
	fmtarenas\
	fmtbloom\
	fmtindex\
	fmtisect\
	mirrorarenas\
	printarena\
	printarenapart\
	rdarena\
	syncindex\
	verifyarena\
	wrarena\

OFILES=

BIN=/$objtype/bin/venti

it:V: $O.venti

CLEANFILES=$CLEANFILES $SLIB

</sys/src/cmd/mkmany

CFLAGS=$CFLAGS -I.

$SLIB: $LIBOFILES
	ar rvc $SLIB $LIBOFILES

# xml.c:D:	mkxml dat.h
# 	./mkxml dat.h > xml.c

acid:D: lumpcache.acid
	cat $prereq >$target

$O.conf:D: conf.rc
	{
		echo '#!/bin/rc'
		echo '# THIS FILE IS AUTOMATICALLY GENERATED'
		echo '# FROM /sys/src/cmd/venti/conf.rc.  DO NOT EDIT.'
		echo 
		sed 1d conf.rc
	} >$target && chmod +x $target