mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-21 11:13:30 +00:00
48b9d042a8
jumping to .cerror. This means .cerror has to be present in the same module with its consumers, or bad things will happen.
40 lines
773 B
Makefile
40 lines
773 B
Makefile
# $FreeBSD$
|
|
|
|
.PATH: ${.CURDIR}/support ${.CURDIR}/../libc/gen ${.CURDIR}/../libc/string
|
|
.PATH: ${.CURDIR}/../libc/${MACHINE_ARCH}/sys
|
|
|
|
CFLAGS+= -I${.CURDIR}/../libc/${MACHINE_ARCH}
|
|
|
|
SYSCALLS= clock_gettime \
|
|
kse_create \
|
|
kse_exit \
|
|
kse_release \
|
|
kse_thr_interrupt \
|
|
kse_wakeup \
|
|
sigaction \
|
|
sigprocmask \
|
|
sigtimedwait \
|
|
write
|
|
|
|
SYSCALL_SRC= ${SYSCALLS:S/$/.S/}
|
|
SYSCALL_OBJ= ${SYSCALLS:S/$/.So/}
|
|
|
|
${SYSCALL_SRC}:
|
|
printf '#include "SYS.h"\nRSYSCALL(${.PREFIX})\n' > ${.TARGET}
|
|
|
|
LIBC_OBJS= sigsetops.So \
|
|
bcopy.So \
|
|
bzero.So \
|
|
cerror.So \
|
|
memcpy.So \
|
|
memset.So \
|
|
strcpy.So \
|
|
strlen.So
|
|
|
|
SOBJS+= thr_libc.So
|
|
CLEANFILES+= ${SYSCALL_SRC} ${SYSCALL_OBJ} ${LIBC_OBJS}
|
|
|
|
thr_libc.So: ${SYSCALL_OBJ} ${LIBC_OBJS}
|
|
${CC} -fPIC -nostdlib -o ${.TARGET} -r ${.ALLSRC}
|
|
|