shithub: riscv

ref: 82435c350a1d3530c87ea88ada68e984fc6b9b80
dir: /sys/src/ape/lib/ap/gen/mkfile/

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

ALLOFILES=\
	_assert.$O\
	abort.$O\
	abs.$O\
	atof.$O\
	atoi.$O\
	atol.$O\
	atoll.$O\
	bsearch.$O\
	calloc.$O\
	clock.$O\
	ctype.$O\
	difftime.$O\
	div.$O\
	getenv.$O\
	putenv.$O\
	isalnum.$O\
	itoa.$O\
	itol.$O\
	ldiv.$O\
	mbwc.$O\
	memccpy.$O\
	memchr.$O\
	memcmp.$O\
	memmove.$O\
	memset.$O\
	mktime.$O\
	mkstemp.$O\
	qsort.$O\
	raise.$O\
	rand.$O\
	strcat.$O\
	strchr.$O\
	strcmp.$O\
	strcoll.$O\
	strcpy.$O\
	strcspn.$O\
	strftime.$O\
	strlen.$O\
	strncat.$O\
	strncmp.$O\
	strncpy.$O\
	strnlen.$O\
	strpbrk.$O\
	strrchr.$O\
	strspn.$O\
	strstr.$O\
	strtod.$O\
	strtok.$O\
	strtol.$O\
	strtoll.$O\
	strtoul.$O\
	strtoull.$O\
	strxfrm.$O\
	toupper.$O\
	strdup.$O\

# cull things in the per-machine directories from this list
OFILES=	`{rc ./reduce $O $objtype $ALLOFILES}

</sys/src/cmd/mksyslib

CFLAGS=$CFLAGS -c -D_POSIX_SOURCE