2003-05-30 00:21:52 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2003-09-02 19:37:11 +00:00
|
|
|
.PATH: ${.CURDIR}/support ${.CURDIR}/../libc/gen ${.CURDIR}/../libc/string
|
2010-06-13 01:27:29 +00:00
|
|
|
.PATH: ${.CURDIR}/../libc/${MACHINE_CPUARCH}/sys
|
2003-09-02 19:37:11 +00:00
|
|
|
|
2010-06-13 01:27:29 +00:00
|
|
|
CFLAGS+= -I${.CURDIR}/../libc/${MACHINE_CPUARCH}
|
2003-09-02 19:37:11 +00:00
|
|
|
|
|
|
|
SYSCALLS= clock_gettime \
|
|
|
|
kse_create \
|
|
|
|
kse_exit \
|
|
|
|
kse_release \
|
2005-03-21 23:10:35 +00:00
|
|
|
kse_switchin \
|
2003-09-02 19:37:11 +00:00
|
|
|
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 \
|
2003-09-05 18:08:19 +00:00
|
|
|
cerror.So \
|
2003-09-02 19:37:11 +00:00
|
|
|
memcpy.So \
|
|
|
|
memset.So \
|
|
|
|
strcpy.So \
|
|
|
|
strlen.So
|
2003-05-30 00:21:52 +00:00
|
|
|
|
2003-07-02 20:52:39 +00:00
|
|
|
SOBJS+= thr_libc.So
|
2003-09-02 19:37:11 +00:00
|
|
|
CLEANFILES+= ${SYSCALL_SRC} ${SYSCALL_OBJ} ${LIBC_OBJS}
|
|
|
|
|
|
|
|
thr_libc.So: ${SYSCALL_OBJ} ${LIBC_OBJS}
|
|
|
|
${CC} -fPIC -nostdlib -o ${.TARGET} -r ${.ALLSRC}
|
2003-05-30 00:21:52 +00:00
|
|
|
|