summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Leonard <d@cvs.openbsd.org>2000-01-04 00:54:52 +0000
committerDavid Leonard <d@cvs.openbsd.org>2000-01-04 00:54:52 +0000
commit178871a0d2fa0de65663787e947dd6d9557d3b2f (patch)
treeacac51385a82001203ac81a55d6fbba2f647ab3a
parentc71b08c1a72ef3ae0cdacf4d4ab27813c622f980 (diff)
flesh
-rw-r--r--lib/libpthread/Makefile31
1 files changed, 28 insertions, 3 deletions
diff --git a/lib/libpthread/Makefile b/lib/libpthread/Makefile
index ba2a9c7b32e..80db72525af 100644
--- a/lib/libpthread/Makefile
+++ b/lib/libpthread/Makefile
@@ -1,8 +1,33 @@
+# $OpenBSD: Makefile,v 1.10 2000/01/04 00:54:51 d Exp $
-LIB=pthread
-LIBC_RDIR= ${.CURDIR}/../libc_r
+LIBC_RSRCDIR= ${.CURDIR}/../libc_r
+LIBCSRCDIR= ${.CURDIR}/../libc
-.PATH: ${LIBC_RDIR}
+.PATH: ${LIBC_RSRCDIR}
+DEBUG= -ggdb -Wall
+LIB= pthread
+LINTFLAGS= -z
+CFLAGS+= -DPTHREAD_KERNEL -D_POSIX_THREADS -D_THREAD_SAFE
+CFLAGS+= -D_PTHREADS_INVARIANTS
+CFLAGS+= -DNOPOLL -I${LIBC_RSRCDIR}/uthread
+CFLAGS+= -I${LIBC_RSRCDIR}/include
+# Uncomment this if you want libc_r to contain debug information for
+# thread locking.
+CFLAGS+= -D_LOCK_DEBUG
+
+.include "${LIBC_RSRCDIR}/uthread/Makefile.inc"
+
+CFLAGS+= -I${LIBCSRCDIR}/include
+SRCS+= libc_storage.c
+
+.include "${LIBC_RSRCDIR}/man/Makefile.inc"
+.include "${LIBC_RSRCDIR}/sys/Makefile.inc"
+
+AINC+= -I${LIBC_RSRCDIR}/uthread
+
+.include "${LIBC_RSRCDIR}/include/Makefile.inc"
+
+.include <bsd.own.mk>
.include <bsd.lib.mk>