3 # All library objects contain FreeBSD revision strings by default; they may be
4 # excluded as a space-saving measure. To produce a library that does
5 # not contain these strings, add -DSTRIP_FBSDID (see <sys/cdefs.h>) to CFLAGS
6 # below. Note, there are no IDs for syscall stubs whose sources are generated.
7 # To included legacy CSRG sccsid strings, add -DLIBC_SCCS and -DSYSLIBC_SCCS
8 # (for system call stubs) to CFLAGS below. -DSYSLIBC_SCCS affects just the
13 .if ${DEFAULT_THREAD_LIB} == "libpthread" && ${SHLIBDIR} == "/usr/lib"
19 CFLAGS+=-DPTHREAD_KERNEL
20 CFLAGS+=-I${.CURDIR}/../libc/include -I${.CURDIR}/thread \
21 -I${.CURDIR}/../../include
22 CFLAGS+=-I${.CURDIR}/arch/${MACHINE_ARCH}/include
23 CFLAGS+=-I${.CURDIR}/sys
24 CFLAGS+=-I${.CURDIR}/../../libexec/rtld-elf
25 CFLAGS+=-I${.CURDIR}/../../libexec/rtld-elf/${MACHINE_ARCH}
28 # Uncomment this if you want libpthread to contain debug information for
33 # Uncomment this if you want to build a 1:1 threading mode library
34 # however it is no longer strictly conformed to POSIX
35 # CFLAGS+=-DSYSTEM_SCOPE_ONLY
37 # Enable extra internal consistancy checks.
38 CFLAGS+=-D_PTHREADS_INVARIANTS -Wall
40 VERSION_MAP=${.CURDIR}/pthread.map
44 .include "${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc"
45 .include "${.CURDIR}/support/Makefile.inc"
46 .include "${.CURDIR}/sys/Makefile.inc"
47 .include "${.CURDIR}/thread/Makefile.inc"
49 .if ${DEFAULT_THREAD_LIB} == "libpthread"
50 SYMLINKS+=lib${LIB}.a ${LIBDIR}/libpthread.a
52 SYMLINKS+=lib${LIB}.so ${LIBDIR}/libpthread.so
54 .if ${MK_PROFILE} != "no"
55 SYMLINKS+=lib${LIB}_p.a ${LIBDIR}/libpthread_p.a