shithub: regress

ref: 9a91d5b20e00cf2a74ef82aa0d6f1f4d847dc04f
dir: /regress/

View raw version
all:VQ:
	echo $t
	for(t in $TEST) @{
		if(test -d $t)
			@{cd $t && mk $MKFLAGS all}
		if not
			mk $t.test
	}

%.test:V: $O.%
	./$O.$stem

%.test:V: %.rc
	./$stem.rc

%.$O:	$HFILES		# don't combine with following %.$O rules

%.$O:	%.c
	$CC $CFLAGS $stem.c

%.$O:	%.s
	$AS $AFLAGS $stem.s

$O.%:V:	%.$O $OFILES $LIB
	$LD $LDFLAGS -o $target $prereq

# [$OS].??* avoids file names like 9.h
nuke:V:
	rm -f *.[$OS] y.tab.? lex.yy.c y.debug y.output [$OS].??* *.acid $TARG $CLEANFILES

clean:V:
	rm -f *.[$OS] *.a[$OS] y.tab.? lex.yy.c y.debug y.output [$OS].??* $TARG $CLEANFILES

%.clean:V:
	rm -f $stem.[$OS] [$OS].$stem $stem.acid $stem