Makefile revision 195767
175374Sbp# $FreeBSD: head/lib/libkse/Makefile 195767 2009-07-19 17:25:24Z kensmith $ 275374Sbp# 375374Sbp# All library objects contain FreeBSD revision strings by default; they may be 475374Sbp# excluded as a space-saving measure. To produce a library that does 575374Sbp# not contain these strings, add -DSTRIP_FBSDID (see <sys/cdefs.h>) to CFLAGS 675374Sbp# below. Note, there are no IDs for syscall stubs whose sources are generated. 775374Sbp# To included legacy CSRG sccsid strings, add -DLIBC_SCCS and -DSYSLIBC_SCCS 875374Sbp# (for system call stubs) to CFLAGS below. -DSYSLIBC_SCCS affects just the 975374Sbp# system call stubs. 1075374Sbp 1175374Sbp.include <bsd.own.mk> 1275374Sbp 1375374Sbp.if ${DEFAULT_THREAD_LIB} == "libkse" || ${MK_LIBTHR} == "no" 1475374SbpLIB=kse 1575374Sbp.if ${SHLIBDIR} == "/usr/lib" 1675374SbpSHLIBDIR= /lib 1775374Sbp.endif 1875374Sbp.else 1975374SbpSHLIB=kse 2075374Sbp.endif 2175374Sbp 2275374SbpSHLIB_MAJOR= 4 2375374SbpCFLAGS+=-DPTHREAD_KERNEL 2475374SbpCFLAGS+=-I${.CURDIR}/../libc/include -I${.CURDIR}/thread \ 2575374Sbp -I${.CURDIR}/../../include 2675374SbpCFLAGS+=-I${.CURDIR}/arch/${MACHINE_ARCH}/include 2775374SbpCFLAGS+=-I${.CURDIR}/sys 2875374SbpCFLAGS+=-I${.CURDIR}/../../libexec/rtld-elf 2975374SbpCFLAGS+=-I${.CURDIR}/../../libexec/rtld-elf/${MACHINE_ARCH} 3075374SbpCFLAGS+=-fno-builtin 3175374Sbp 3275374Sbp# Uncomment this if you want libkse to contain debug information for 3375374Sbp# thread locking. 3475374SbpCFLAGS+=-D_LOCK_DEBUG 3575374SbpWARNS?=3 3675374Sbp 3775374Sbp# Uncomment this if you want to build a 1:1 threading mode library 3875374Sbp# however it is no longer strictly conformed to POSIX 3975374Sbp# CFLAGS+=-DSYSTEM_SCOPE_ONLY 4075374Sbp 4175374Sbp# Enable extra internal consistancy checks. 4275374SbpCFLAGS+=-D_PTHREADS_INVARIANTS -Wall 4375374Sbp 4475374SbpVERSION_DEF=${.CURDIR}/../libc/Versions.def 4575374SbpSYMBOL_MAPS=${.CURDIR}/kse.map 4675374Sbp 4775374SbpPRECIOUSLIB= 4875374Sbp 4975374Sbp.include "${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc" 5075374Sbp.include "${.CURDIR}/support/Makefile.inc" 5175374Sbp.include "${.CURDIR}/sys/Makefile.inc" 5275374Sbp.include "${.CURDIR}/thread/Makefile.inc" 5375374Sbp 5475374Sbp.if ${DEFAULT_THREAD_LIB} == "libkse" || ${MK_LIBTHR} == "no" 5575374Sbp.if ${MK_INSTALLLIB} != "no" 5675374SbpSYMLINKS+=lib${LIB}.a ${LIBDIR}/libpthread.a 5775374Sbp.endif 5875374Sbp.if !defined(NO_PIC) 5975374SbpSYMLINKS+=lib${LIB}.so ${LIBDIR}/libpthread.so 6075374Sbp.endif 6175374Sbp.if ${MK_PROFILE} != "no" 6275374SbpSYMLINKS+=lib${LIB}_p.a ${LIBDIR}/libpthread_p.a 6375374Sbp.endif 6475374Sbp.endif 6575374Sbp 6675374Sbp.include <bsd.lib.mk> 6775374Sbp