3 .PATH: ${.CURDIR}/support ${.CURDIR}/../libc/gen ${.CURDIR}/../libc/string
4 .PATH: ${.CURDIR}/../libc/${MACHINE_ARCH}/sys
6 CFLAGS+= -I${.CURDIR}/../libc/${MACHINE_ARCH}
10 SYSCALL_SRC= ${SYSCALLS:S/$/.S/}
11 SYSCALL_OBJ= ${SYSCALLS:S/$/.So/}
14 printf '#include "SYS.h"\nRSYSCALL(${.PREFIX})\n' > ${.TARGET}
19 CLEANFILES+= ${SYSCALL_SRC} ${SYSCALL_OBJ} ${LIBC_OBJS}
21 thr_libc.So: ${SYSCALL_OBJ} ${LIBC_OBJS}
22 ${CC} -fPIC -nostdlib -o ${.TARGET} -r ${.ALLSRC}