shithub: riscv

ref: b8986a889d7e3a445c0265c5cfb3b1db385db756
dir: /sys/src/libregexp/mkfile/

View raw version
</$objtype/mkfile

LIB=/$objtype/lib/libregexp.a
OFILES=\
	regcomp.$O\
	regerror.$O\
	regexec.$O\
	regsub.$O\
	rregexec.$O\
	rregsub.$O\
	regprint.$O\

HFILES=/sys/include/regexp.h\
	regimpl.h\

UPDATE=\
	mkfile\
	$HFILES\
	${OFILES:%.$O=%.c}\
	${LIB:/$objtype/%=/386/%}\

</sys/src/cmd/mksyslib

$O.regextest: tests/regextest.$O $LIB
	$LD -o $target regextest.$O

$O.sysregextest: tests/sysregextest.$O
	$LD -o $target sysregextest.$O