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} == "libkse" || ${MK_LIBTHR} == "no"
15 .if ${SHLIBDIR} == "/usr/lib"
23 CFLAGS+=-DPTHREAD_KERNEL
24 CFLAGS+=-I${.CURDIR}/../libc/include -I${.CURDIR}/thread \
25 -I${.CURDIR}/../../include
26 CFLAGS+=-I${.CURDIR}/arch/${MACHINE_ARCH}/include
27 CFLAGS+=-I${.CURDIR}/sys
28 CFLAGS+=-I${.CURDIR}/../../libexec/rtld-elf
29 CFLAGS+=-I${.CURDIR}/../../libexec/rtld-elf/${MACHINE_ARCH}
32 # Uncomment this if you want libkse to contain debug information for
37 # Uncomment this if you want to build a 1:1 threading mode library
38 # however it is no longer strictly conformed to POSIX
39 # CFLAGS+=-DSYSTEM_SCOPE_ONLY
41 # Enable extra internal consistancy checks.
42 CFLAGS+=-D_PTHREADS_INVARIANTS -Wall
44 VERSION_DEF=${.CURDIR}/../libc/Versions.def
45 SYMBOL_MAPS=${.CURDIR}/kse.map
49 .include "${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc"
50 .include "${.CURDIR}/support/Makefile.inc"
51 .include "${.CURDIR}/sys/Makefile.inc"
52 .include "${.CURDIR}/thread/Makefile.inc"
54 .if ${DEFAULT_THREAD_LIB} == "libkse" || ${MK_LIBTHR} == "no"
55 SYMLINKS+=lib${LIB}.a ${LIBDIR}/libpthread.a
57 SYMLINKS+=lib${LIB}.so ${LIBDIR}/libpthread.so
59 .if ${MK_PROFILE} != "no"
60 SYMLINKS+=lib${LIB}_p.a ${LIBDIR}/libpthread_p.a