shithub: riscv

ref: a847d7a53d64b1f7d11eb3b969c2684ea0aa399b
dir: /sys/src/libc/spim/mkfile/

View raw version
objtype=spim
</$objtype/mkfile

LIB=/$objtype/lib/libc.a
MIPSSFILES=\
	argv0.s\
	atom.s\
	getcallerpc.s\
	getfcr.s\
	main9.s\
	main9p.s\
	memmove.s\
	memset.s\
	setjmp.s\
	strcmp.s\
	strcpy.s\
	tas.s\

MIPSCFILES=\
	cycles.c\
	lock.c\
	notejmp.c\

SFILES=\
	memccpy.s\
	memchr.s\
	memcmp.s\
	strchr.s\
	vlop.s\

CFILES=\
	sqrt.c\
	vlrt.c\

HFILES=/sys/include/libc.h

OFILES=\
	${MIPSSFILES:%.s=%.$O}\
	${SFILES:%.s=%.$O}\
	${MIPSCFILES:%.c=%.$O}\
	${CFILES:%.c=%.$O}\

MIPSS=`{echo $MIPSSFILES | sed 's/\.s//g; s/ /|/g'}
^($MIPSS)\.$O:R:	'../mips/\1.s'
	$AS $AFLAGS ../mips/$stem1.s

MIPSC=`{echo $MIPSCFILES | sed 's/\.c//g; s/ /|/g'}
^($MIPSC)\.$O:R:	'../mips/\1.c'
	$CC $CFLAGS ../mips/$stem1.c

</sys/src/cmd/mksyslib