1# $FreeBSD: head/lib/libkse/Makefile 172403 2007-10-01 18:22:32Z ru $
| 1# $FreeBSD: head/lib/libkse/Makefile 172491 2007-10-09 13:42:34Z obrien $
|
2# 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 9# system call stubs. 10 11.include <bsd.own.mk> 12
| 2# 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 9# system call stubs. 10 11.include <bsd.own.mk> 12
|
13.if (${DEFAULT_THREAD_LIB} == "libpthread" || ${MK_LIBTHR} == "no") && \
| 13.if (${DEFAULT_THREAD_LIB} == "libkse" || ${MK_LIBTHR} == "no") && \
|
14 ${SHLIBDIR} == "/usr/lib" 15SHLIBDIR= /lib 16.endif 17 18LIB=kse
| 14 ${SHLIBDIR} == "/usr/lib" 15SHLIBDIR= /lib 16.endif 17 18LIB=kse
|
19SHLIB_MAJOR= 3
| 19SHLIB_MAJOR= 0
|
20CFLAGS+=-DPTHREAD_KERNEL 21CFLAGS+=-I${.CURDIR}/../libc/include -I${.CURDIR}/thread \ 22 -I${.CURDIR}/../../include 23CFLAGS+=-I${.CURDIR}/arch/${MACHINE_ARCH}/include 24CFLAGS+=-I${.CURDIR}/sys 25CFLAGS+=-I${.CURDIR}/../../libexec/rtld-elf 26CFLAGS+=-I${.CURDIR}/../../libexec/rtld-elf/${MACHINE_ARCH} 27CFLAGS+=-fno-builtin 28
| 20CFLAGS+=-DPTHREAD_KERNEL 21CFLAGS+=-I${.CURDIR}/../libc/include -I${.CURDIR}/thread \ 22 -I${.CURDIR}/../../include 23CFLAGS+=-I${.CURDIR}/arch/${MACHINE_ARCH}/include 24CFLAGS+=-I${.CURDIR}/sys 25CFLAGS+=-I${.CURDIR}/../../libexec/rtld-elf 26CFLAGS+=-I${.CURDIR}/../../libexec/rtld-elf/${MACHINE_ARCH} 27CFLAGS+=-fno-builtin 28
|
29# Uncomment this if you want libpthread to contain debug information for
| 29# Uncomment this if you want libkse to contain debug information for
|
30# thread locking. 31CFLAGS+=-D_LOCK_DEBUG 32WARNS?=2 33 34# Uncomment this if you want to build a 1:1 threading mode library 35# however it is no longer strictly conformed to POSIX 36# CFLAGS+=-DSYSTEM_SCOPE_ONLY 37 38# Enable extra internal consistancy checks. 39CFLAGS+=-D_PTHREADS_INVARIANTS -Wall 40
| 30# thread locking. 31CFLAGS+=-D_LOCK_DEBUG 32WARNS?=2 33 34# Uncomment this if you want to build a 1:1 threading mode library 35# however it is no longer strictly conformed to POSIX 36# CFLAGS+=-DSYSTEM_SCOPE_ONLY 37 38# Enable extra internal consistancy checks. 39CFLAGS+=-D_PTHREADS_INVARIANTS -Wall 40
|
41VERSION_MAP=${.CURDIR}/pthread.map
| 41VERSION_MAP=${.CURDIR}/kse.map
|
42 43PRECIOUSLIB= 44 45.include "${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc" 46.include "${.CURDIR}/support/Makefile.inc" 47.include "${.CURDIR}/sys/Makefile.inc" 48.include "${.CURDIR}/thread/Makefile.inc" 49
| 42 43PRECIOUSLIB= 44 45.include "${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc" 46.include "${.CURDIR}/support/Makefile.inc" 47.include "${.CURDIR}/sys/Makefile.inc" 48.include "${.CURDIR}/thread/Makefile.inc" 49
|
50.if ${DEFAULT_THREAD_LIB} == "libpthread" || ${MK_LIBTHR} == "no"
| 50.if ${DEFAULT_THREAD_LIB} == "libkse" || ${MK_LIBTHR} == "no"
|
51SYMLINKS+=lib${LIB}.a ${LIBDIR}/libpthread.a 52.if !defined(NO_PIC) 53SYMLINKS+=lib${LIB}.so ${LIBDIR}/libpthread.so 54.endif 55.if ${MK_PROFILE} != "no" 56SYMLINKS+=lib${LIB}_p.a ${LIBDIR}/libpthread_p.a 57.endif 58.endif 59 60.include <bsd.lib.mk>
| 51SYMLINKS+=lib${LIB}.a ${LIBDIR}/libpthread.a 52.if !defined(NO_PIC) 53SYMLINKS+=lib${LIB}.so ${LIBDIR}/libpthread.so 54.endif 55.if ${MK_PROFILE} != "no" 56SYMLINKS+=lib${LIB}_p.a ${LIBDIR}/libpthread_p.a 57.endif 58.endif 59 60.include <bsd.lib.mk>
|