# $OpenBSD: Makefile,v 1.13 2002/06/17 18:26:55 marc Exp $ # # The pthread library is formed from the FreeBSD uthread sources of # libc_r, and exploits weak symbols in libc. # LIBC_RSRCDIR= ${.CURDIR}/../libc_r LIBCSRCDIR= ${.CURDIR}/../libc .PATH: ${LIBC_RSRCDIR} LIB= pthread LINTFLAGS= -z CFLAGS+= -DPTHREAD_KERNEL -D_POSIX_THREADS -D_THREAD_SAFE CFLAGS+= -I${LIBC_RSRCDIR}/uthread CFLAGS+= -I${LIBC_RSRCDIR}/include CFLAGS+= -I${LIBCSRCDIR}/include AINC+= -I${LIBC_RSRCDIR}/uthread # Uncomment this if you want libc_r to contain debug information for # thread locking. CFLAGS+= -D_LOCK_DEBUG DEBUG= -ggdb -Wall # enable extra internal consistency checks CFLAGS+= -D_PTHREADS_INVARIANTS .include "${LIBC_RSRCDIR}/include/Makefile.inc" .include "${LIBC_RSRCDIR}/sys/Makefile.inc" .include "${LIBC_RSRCDIR}/thread/Makefile.inc" .include "${LIBC_RSRCDIR}/uthread/Makefile.inc" # XXX enable when libc_r is not built #.include "${LIBC_RSRCDIR}/man/Makefile.inc" .include .include