1# $OpenBSD: Makefile,v 1.40 2015/05/19 20:50:06 guenther Exp $ 2 3LIB=pthread 4LIBCSRCDIR= ${.CURDIR}/../libc 5 6CFLAGS+=-Wall -g -Werror -Wshadow 7CFLAGS+=-Wmissing-prototypes -Wstrict-prototypes 8CFLAGS+=-Wsign-compare 9CFLAGS+=-I${LIBCSRCDIR}/arch/${MACHINE_CPU} -I${LIBCSRCDIR}/include 10CDIAGFLAGS= 11LDADD = -Wl,-znodelete,-zinitfirst,-znodlopen 12 13.if defined(NOPIC) 14CFLAGS+=-DNO_PIC 15.endif 16 17.PATH: ${.CURDIR}/arch/${MACHINE_CPU} 18SRCS= rthread.c \ 19 rthread_attr.c \ 20 rthread_barrier.c \ 21 rthread_barrier_attr.c \ 22 rthread_cancel.c \ 23 rthread_condattr.c \ 24 rthread_debug.c \ 25 rthread_file.c \ 26 rthread_fork.c \ 27 rthread_getcpuclockid.c \ 28 rthread_libc.c \ 29 rthread_mutex_prio.c \ 30 rthread_mutexattr.c \ 31 rthread_np.c \ 32 rthread_once.c \ 33 rthread_rwlock.c \ 34 rthread_rwlockattr.c \ 35 rthread_sched.c \ 36 rthread_sem.c \ 37 rthread_sig.c \ 38 rthread_stack.c \ 39 rthread_spin_lock.c \ 40 rthread_sync.c \ 41 rthread_tls.c \ 42 sched_prio.c 43 44OBJS+= _atomic_lock.o cerror.o 45 46SRCDIR= ${.CURDIR}/../libpthread 47.include "${SRCDIR}/include/Makefile.inc" 48.include "${SRCDIR}/man/Makefile.inc" 49.include <bsd.lib.mk> 50