1999-08-27 20:22:10 -04:00
|
|
|
# $FreeBSD$
|
1996-01-21 19:23:58 -05:00
|
|
|
#
|
2002-04-15 16:22:28 -04:00
|
|
|
# All library objects contain FreeBSD revision strings by default; they may be
|
1996-01-21 19:23:58 -05:00
|
|
|
# excluded as a space-saving measure. To produce a library that does
|
2002-04-15 16:22:28 -04: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.
|
2007-05-13 10:12:40 -04:00
|
|
|
|
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
|
2007-05-18 08:25:48 -04:00
|
|
|
.if ${DEFAULT_THREAD_LIB} == "libc_r" && ${SHLIBDIR} == "/usr/lib"
|
2007-05-17 00:54:35 -04:00
|
|
|
SHLIBDIR= /lib
|
|
|
|
|
.endif
|
|
|
|
|
|
1996-01-21 19:23:58 -05:00
|
|
|
LIB=c_r
|
2007-05-20 22:49:08 -04:00
|
|
|
SHLIB_MAJOR= 7
|
2003-07-13 01:35:30 -04:00
|
|
|
CFLAGS+=-DPTHREAD_KERNEL
|
2002-04-15 16:22:28 -04:00
|
|
|
CFLAGS+=-I${.CURDIR}/../libc/include -I${.CURDIR}/uthread \
|
2003-07-02 09:27:54 -04:00
|
|
|
-I${.CURDIR}/../../include
|
1998-06-09 19:25:13 -04:00
|
|
|
|
|
|
|
|
# Uncomment this if you want libc_r to contain debug information for
|
|
|
|
|
# thread locking.
|
1999-07-04 20:35:19 -04:00
|
|
|
CFLAGS+=-D_LOCK_DEBUG
|
|
|
|
|
|
1999-11-28 00:38:13 -05:00
|
|
|
# enable extra internal consistancy checks
|
2000-10-13 18:19:50 -04:00
|
|
|
CFLAGS+=-D_PTHREADS_INVARIANTS
|
1999-11-28 00:38:13 -05:00
|
|
|
|
2004-10-24 11:33:08 -04:00
|
|
|
PRECIOUSLIB=
|
1996-01-21 19:23:58 -05:00
|
|
|
|
|
|
|
|
.include "${.CURDIR}/uthread/Makefile.inc"
|
1997-05-02 23:57:21 -04:00
|
|
|
.include "${.CURDIR}/sys/Makefile.inc"
|
1996-01-21 19:23:58 -05:00
|
|
|
|
2007-05-13 10:12:40 -04:00
|
|
|
.if ${DEFAULT_THREAD_LIB} == "libc_r"
|
2009-02-13 11:51:36 -05:00
|
|
|
.if ${MK_INSTALLLIB} != "no"
|
2004-01-30 07:13:17 -05:00
|
|
|
SYMLINKS+=lib${LIB}.a ${LIBDIR}/libpthread.a
|
2009-02-13 11:51:36 -05:00
|
|
|
.endif
|
2004-12-21 04:33:47 -05:00
|
|
|
.if !defined(NO_PIC)
|
2006-04-12 15:51:14 -04:00
|
|
|
SYMLINKS+=lib${LIB}.so ${LIBDIR}/libpthread.so
|
2004-01-30 07:13:17 -05:00
|
|
|
.endif
|
2006-03-18 16:37:05 -05:00
|
|
|
.if ${MK_PROFILE} != "no"
|
2004-01-31 12:00:04 -05:00
|
|
|
SYMLINKS+=lib${LIB}_p.a ${LIBDIR}/libpthread_p.a
|
2004-01-30 07:13:17 -05:00
|
|
|
.endif
|
|
|
|
|
.endif
|
|
|
|
|
|
1996-01-21 19:23:58 -05:00
|
|
|
.include <bsd.lib.mk>
|