OpenBSD port
This commit is contained in:
parent
90f920465c
commit
53d10f48b5
10 changed files with 140 additions and 78 deletions
41
Makefile
41
Makefile
|
@ -1,41 +1,20 @@
|
|||
# $FreeBSD$
|
||||
|
||||
PACKAGE=lib${LIB}
|
||||
LIB= stdthreads
|
||||
SHLIB_MAJOR= 0
|
||||
|
||||
INCS= threads.h
|
||||
HDR= threads.h
|
||||
SRCS= threads.h call_once.c cnd.c mtx.c thrd.c tss.c
|
||||
|
||||
MAN= thrd_create.3
|
||||
MLINKS= thrd_create.3 call_once.3 \
|
||||
thrd_create.3 cnd_broadcast.3 \
|
||||
thrd_create.3 cnd_destroy.3 \
|
||||
thrd_create.3 cnd_init.3 \
|
||||
thrd_create.3 cnd_signal.3 \
|
||||
thrd_create.3 cnd_timedwait.3 \
|
||||
thrd_create.3 cnd_wait.3 \
|
||||
thrd_create.3 mtx_destroy.3 \
|
||||
thrd_create.3 mtx_init.3 \
|
||||
thrd_create.3 mtx_lock.3 \
|
||||
thrd_create.3 mtx_timedlock.3 \
|
||||
thrd_create.3 mtx_trylock.3 \
|
||||
thrd_create.3 mtx_unlock.3 \
|
||||
thrd_create.3 thrd_current.3 \
|
||||
thrd_create.3 thrd_detach.3 \
|
||||
thrd_create.3 thrd_equal.3 \
|
||||
thrd_create.3 thrd_exit.3 \
|
||||
thrd_create.3 thrd_join.3 \
|
||||
thrd_create.3 thrd_sleep.3 \
|
||||
thrd_create.3 thrd_yield.3 \
|
||||
thrd_create.3 tss_create.3 \
|
||||
thrd_create.3 tss_delete.3 \
|
||||
thrd_create.3 tss_get.3 \
|
||||
thrd_create.3 tss_set.3
|
||||
|
||||
CPPFLAGS+= -Wno-incompatible-pointer-types-discards-qualifiers
|
||||
LIBADD= pthread
|
||||
|
||||
VERSION_DEF= ${SRCTOP}/lib/libc/Versions.def
|
||||
SYMBOL_MAPS= ${.CURDIR}/Symbol.map
|
||||
VERSION_SCRIPT= ${.CURDIR}/Symbol.map
|
||||
|
||||
includes:
|
||||
@cd ${.CURDIR}; j="cmp -s ${HDR} ${DESTDIR}/usr/include/${HDR} || \
|
||||
${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} \
|
||||
-m 444 ${HDR} ${DESTDIR}/usr/include"; \
|
||||
echo $$j; \
|
||||
eval "$$j"; \
|
||||
|
||||
.include <bsd.lib.mk>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue