shithub: castor9

ref: 059574a9bdc29c5381e12ed18158f05320ad7cd7
dir: /mkfile/

View raw version
</$objtype/mkfile

TARG=castor
LIB=libpanel/libpanel.$O.a
OFILES=url.$O util.$O castor.$O
HFILES=castor.h libpanel/panel.h libpanel/rtext.h
TESTS=testurl
BIN=/$objtype/bin/

</sys/src/cmd/mkone

CFLAGS=-FTVw -Ilibpanel

$LIB:V:
	cd libpanel
	mk

clean nuke:V:
	@{ cd libpanel; mk $target }
	rm -f *.[$OS] [$OS].out tests/*.[$OS] $TARG
	for (test in $TESTS)
		rm -f tests/$test

test:V: url.$O util.$O
	for (test in $TESTS) {
		$CC -o tests/$test.$O tests/$test.c
		$LD -o tests/$test tests/$test.$O url.$O util.$O
		if (./tests/$test);
		if not echo 'FAIL'
	}