[BACK]Return to Makefile CVS log [TXT][DIR] Up to [local] / src / lib / libpthread

File: [local] / src / lib / libpthread / Attic / Makefile (download)

Revision 1.22, Sun Jan 18 23:54:20 2004 UTC (20 years, 4 months ago) by marc
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8, OPENBSD_3_7_BASE, OPENBSD_3_7, OPENBSD_3_6_BASE, OPENBSD_3_6, OPENBSD_3_5_BASE, OPENBSD_3_5
Changes since 1.21: +1 -2 lines


don't include bsd.own.mk, it's included at the top of bsd.lib.mk

#	$OpenBSD: Makefile,v 1.22 2004/01/18 23:54:20 marc Exp $

#
# The pthread library is formed from the FreeBSD uthread sources of 
# libc_r, and exploits weak symbols in libc.
#

SRCDIR=		${.CURDIR}
LIBCSRCDIR=	${.CURDIR}/../libc

LIB=		pthread
LINTFLAGS=	-z
CFLAGS+=	-DPTHREAD_KERNEL -D_POSIX_THREADS -D_THREAD_SAFE -Wall
CFLAGS+=	-Wpointer-arith -Wwrite-strings -Wstrict-prototypes
CFLAGS+=	-Wmissing-prototypes -Wsign-compare # -Werror
CFLAGS+=	-I${SRCDIR}/uthread
CFLAGS+=	-I${SRCDIR}/include
CFLAGS+=	-I${LIBCSRCDIR}/include
AINC+=		-I${SRCDIR}/uthread

# Uncomment this if you want libpthread to contain debug information for
# thread locking.
CFLAGS+=	-D_LOCK_DEBUG
#DEBUG=		-g

# enable extra internal consistency checks
CFLAGS+=	-D_PTHREADS_INVARIANTS

.include "${SRCDIR}/include/Makefile.inc"
.include "${SRCDIR}/sys/Makefile.inc"
.include "${SRCDIR}/thread/Makefile.inc"
.include "${SRCDIR}/uthread/Makefile.inc"
.include "${SRCDIR}/man/Makefile.inc"

.include <bsd.lib.mk>