3 .PATH: ${.CURDIR}/support ${.CURDIR}/../libc/gen ${.CURDIR}/../libc/string
5 # libc must search machine_arch, then machine_cpuarch, but libthr has all its
6 # code implemented in machine_cpuarch. Cope.
7 .if exists(${.CURDIR}/../libc/${MACHINE_ARCH}/sys)
8 .PATH: ${.CURDIR}/../libc/${MACHINE_ARCH}/sys
9 CFLAGS+= -I${.CURDIR}/../libc/${MACHINE_ARCH}
11 .PATH: ${.CURDIR}/../libc/${MACHINE_CPUARCH}/sys
12 CFLAGS+= -I${.CURDIR}/../libc/${MACHINE_CPUARCH}
17 SYSCALL_SRC= ${SYSCALLS:S/$/.S/}
18 SYSCALL_OBJ= ${SYSCALLS:S/$/.So/}
21 printf '#include "SYS.h"\nRSYSCALL(${.PREFIX})\n' > ${.TARGET}
26 CLEANFILES+= ${SYSCALL_SRC} ${SYSCALL_OBJ} ${LIBC_OBJS}
28 thr_libc.So: ${SYSCALL_OBJ} ${LIBC_OBJS}
29 ${CC} -fPIC -nostdlib -o ${.TARGET} -r ${.ALLSRC}