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