jcs's openbsd hax
openbsd
at jcs 35 lines 615 B view raw
1# $OpenBSD: Makefile.inc,v 1.20 2025/08/04 01:44:33 dlg 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_libc.c \ 12 rthread_once.c \ 13 rthread_tls.c \ 14 15notyet= rthread_condattr_clock.c \ 16 rthread_equal.c \ 17 rthread_exit.c \ 18 spinlock.c \ 19 spinlocktry.c 20 21.if ${MACHINE_ARCH} == "hppa" || ${MACHINE_ARCH} == "m88k" || \ 22 ${MACHINE_ARCH} == "sh" 23SRCS+= rthread_sync.c 24.else 25CFLAGS+= -DFUTEX 26SRCS+= rthread_mutex.c \ 27 rthread_cond.c 28.endif 29 30.if defined(NOPIC) 31CFLAGS+=-DNO_PIC 32.endif 33 34OBJS+= _atomic_lock.o 35