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/support | |
| parent | e20595fe257851f1d0a68f5982a0640cf1cda831 (diff) | |
Notes
Diffstat (limited to 'lib/libpthread/support')
| -rw-r--r-- | lib/libpthread/support/Makefile.inc | 36 |
1 files changed, 32 insertions, 4 deletions
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 |
