1999-08-28 00:22:10 +00:00
|
|
|
# $FreeBSD$
|
1996-01-22 00:23:58 +00:00
|
|
|
#
|
2002-04-15 20:22:28 +00:00
|
|
|
# All library objects contain FreeBSD revision strings by default; they may be
|
1996-01-22 00:23:58 +00:00
|
|
|
# excluded as a space-saving measure. To produce a library that does
|
2002-04-15 20:22:28 +00:00
|
|
|
# not contain these strings, add -DSTRIP_FBSDID (see <sys/cdefs.h>) to CFLAGS
|
|
|
|
# below. Note, there are no IDs for syscall stubs whose sources are generated.
|
|
|
|
# To included legacy CSRG sccsid strings, add -DLIBC_SCCS and -DSYSLIBC_SCCS
|
|
|
|
# (for system call stubs) to CFLAGS below. -DSYSLIBC_SCCS affects just the
|
|
|
|
# system call stubs.
|
2004-01-30 12:13:17 +00:00
|
|
|
.if ${MACHINE_ARCH} == "alpha" || ${MACHINE_ARCH} == "sparc64"
|
2003-04-25 01:31:56 +00:00
|
|
|
LIB=kse
|
2004-01-30 12:13:17 +00:00
|
|
|
.else
|
|
|
|
LIB=pthread
|
2006-04-12 19:42:20 +00:00
|
|
|
SHLIBDIR?= /lib
|
2004-01-30 12:13:17 +00:00
|
|
|
.endif
|
2005-07-22 17:19:05 +00:00
|
|
|
SHLIB_MAJOR= 2
|
2003-04-18 05:04:16 +00:00
|
|
|
CFLAGS+=-DPTHREAD_KERNEL
|
2002-09-16 08:45:36 +00:00
|
|
|
CFLAGS+=-I${.CURDIR}/../libc/include -I${.CURDIR}/thread \
|
2002-04-15 20:22:28 +00:00
|
|
|
-I${.CURDIR}/../../include
|
2003-04-18 05:04:16 +00:00
|
|
|
CFLAGS+=-I${.CURDIR}/arch/${MACHINE_ARCH}/include
|
|
|
|
CFLAGS+=-I${.CURDIR}/sys
|
2003-05-30 00:21:52 +00:00
|
|
|
CFLAGS+=-I${.CURDIR}/../../libexec/rtld-elf
|
2004-08-16 03:27:29 +00:00
|
|
|
CFLAGS+=-I${.CURDIR}/../../libexec/rtld-elf/${MACHINE_ARCH}
|
2003-05-30 00:21:52 +00:00
|
|
|
CFLAGS+=-fno-builtin
|
1998-06-09 23:25:13 +00:00
|
|
|
|
2002-09-16 19:29:34 +00:00
|
|
|
# Uncomment this if you want libpthread to contain debug information for
|
1998-06-09 23:25:13 +00:00
|
|
|
# thread locking.
|
2003-04-21 04:02:56 +00:00
|
|
|
CFLAGS+=-D_LOCK_DEBUG
|
2006-03-29 05:38:19 +00:00
|
|
|
WARNS?=2
|
2003-04-21 04:02:56 +00:00
|
|
|
|
2003-07-17 23:02:30 +00:00
|
|
|
# Uncomment this if you want to build a 1:1 threading mode library
|
|
|
|
# however it is no longer strictly conformed to POSIX
|
|
|
|
# CFLAGS+=-DSYSTEM_SCOPE_ONLY
|
|
|
|
|
2006-03-16 15:17:47 +00:00
|
|
|
# Enable extra internal consistancy checks.
|
2003-04-18 05:04:16 +00:00
|
|
|
CFLAGS+=-D_PTHREADS_INVARIANTS -Wall
|
2006-03-16 15:17:47 +00:00
|
|
|
|
|
|
|
VERSION_MAP=${.CURDIR}/pthread.map
|
|
|
|
|
2006-03-13 00:59:51 +00:00
|
|
|
.if defined(SYMVER_ENABLED)
|
2006-03-16 15:17:47 +00:00
|
|
|
# Remove this if library version is bumped and LIBPTHREAD_1_0
|
|
|
|
# compatability hacks are removed (see thread/thr_private.h).
|
|
|
|
LDFLAGS+=-Wl,-zmuldefs
|
2006-03-13 00:59:51 +00:00
|
|
|
CFLAGS+=-DSYMBOL_VERSIONING
|
|
|
|
.endif
|
1999-11-28 05:38:13 +00:00
|
|
|
|
2004-10-24 15:33:08 +00:00
|
|
|
PRECIOUSLIB=
|
1996-01-22 00:23:58 +00:00
|
|
|
|
2003-06-23 04:28:31 +00:00
|
|
|
.include "${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc"
|
2003-05-30 00:21:52 +00:00
|
|
|
.include "${.CURDIR}/support/Makefile.inc"
|
2003-06-23 04:28:31 +00:00
|
|
|
.include "${.CURDIR}/sys/Makefile.inc"
|
|
|
|
.include "${.CURDIR}/thread/Makefile.inc"
|
1996-01-22 00:23:58 +00:00
|
|
|
|
|
|
|
.include <bsd.lib.mk>
|