diff options
| author | Alexander Kabaev <kan@FreeBSD.org> | 2003-09-02 19:37:11 +0000 |
|---|---|---|
| committer | Alexander Kabaev <kan@FreeBSD.org> | 2003-09-02 19:37:11 +0000 |
| commit | 523be360f15304348e8fc8eca25788d8487c3471 (patch) | |
| tree | d21b15d891848e43c52ff2c31d9fa141449b3af3 /lib/libpthread | |
| parent | e20595fe257851f1d0a68f5982a0640cf1cda831 (diff) | |
Notes
Diffstat (limited to 'lib/libpthread')
| -rw-r--r-- | lib/libpthread/Makefile | 6 | ||||
| -rw-r--r-- | lib/libpthread/support/Makefile.inc | 36 |
2 files changed, 32 insertions, 10 deletions
diff --git a/lib/libpthread/Makefile b/lib/libpthread/Makefile index 31c09dc9dd1f..3d7c8907bdad 100644 --- a/lib/libpthread/Makefile +++ b/lib/libpthread/Makefile @@ -39,9 +39,3 @@ PRECIOUSLIB= yes .include "${.CURDIR}/thread/Makefile.inc" .include <bsd.lib.mk> - -# Can't put thr_support.c in SRCS but want it in .depend. -${DEPENDFILE}: thr_support.c - -# LIBC_PIC is defined only after <bsd.lib.mk> is included. -thr_libc.So: ${LIBC_PIC} diff --git a/lib/libpthread/support/Makefile.inc b/lib/libpthread/support/Makefile.inc index 1b445abbc39a..c8176b333033 100644 --- a/lib/libpthread/support/Makefile.inc +++ b/lib/libpthread/support/Makefile.inc @@ -1,9 +1,37 @@ # $FreeBSD$ -.PATH: ${.CURDIR}/support +.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 SOBJS+= thr_libc.So -CLEANFILES+= thr_support.So +CLEANFILES+= ${SYSCALL_SRC} ${SYSCALL_OBJ} ${LIBC_OBJS} + +thr_libc.So: ${SYSCALL_OBJ} ${LIBC_OBJS} + ${CC} -fPIC -nostdlib -o ${.TARGET} -r ${.ALLSRC} -thr_libc.So: thr_support.So - ${CC} -nostdlib -o ${.TARGET} -r thr_support.So -lc_pic |
