shithub: riscv

ref: 2e9835e771c54cb9a0c9cd81012e7b4b75f878f7
dir: /sys/src/ape/lib/ap/spim/mkfile/

View raw version
APE=/sys/src/ape
<$APE/config
LIB=/$objtype/lib/ape/libap.a

MIPSSFILES=\
	getfcr.s\
	main9.s\
	main9p.s\
	memmove.s\
	memset.s\
	setjmp.s\
	strcmp.s\
	strcpy.s\
	tas.s\

MIPSCFILES=\
	cycles.c\
	lock.c\
	notetramp.c\

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

CFILES=\
	vlrt.c\

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

CFLAGS=-c -D_POSIX_SOURCE -D_PLAN9_SOURCE