freebsd-dev/lib/libpthread/support/Makefile.inc

38 lines
714 B
PHP
Raw Normal View History

# $FreeBSD$
.PATH: ${.CURDIR}/support ${.CURDIR}/../libc/gen ${.CURDIR}/../libc/string
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 \
memcpy.So \
memset.So \
strcpy.So \
strlen.So
2003-07-02 20:52:39 +00:00
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}