blob: bc9edd58c5e81dba6c1dc1f6fd7fd9069a9b9412 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# $OpenBSD: Makefile.inc,v 1.19 2020/02/06 03:13:45 jsg Exp $
.PATH: ${LIBCSRCDIR}/thread
SRCS+= callbacks.c atfork.c
# threads infrastructure
SRCS+= rthread.c \
rthread_condattr.c \
rthread_debug.c \
rthread_file.c \
rthread_libc.c \
rthread_once.c \
rthread_tls.c \
notyet= rthread_condattr_clock.c \
rthread_equal.c \
rthread_exit.c \
spinlock.c \
spinlocktry.c
.if ${MACHINE_ARCH} == "hppa" || ${MACHINE_ARCH} == "m88k" || \
${MACHINE_ARCH} == "sh"
SRCS+= rthread_sync.c
.else
CFLAGS+= -DFUTEX
SRCS+= rthread_mutex.c \
rthread_cond.c
.endif
.if defined(NOPIC)
CFLAGS+=-DNO_PIC
.endif
OBJS+= _atomic_lock.o
|