Makefile revision 172491
1141104Sharti# $FreeBSD: head/lib/libkse/Makefile 172491 2007-10-09 13:42:34Z obrien $ 294589Sobrien# 394589Sobrien# All library objects contain FreeBSD revision strings by default; they may be 45814Sjkh# excluded as a space-saving measure. To produce a library that does 51590Srgrimes# not contain these strings, add -DSTRIP_FBSDID (see <sys/cdefs.h>) to CFLAGS 61590Srgrimes# below. Note, there are no IDs for syscall stubs whose sources are generated. 71590Srgrimes# To included legacy CSRG sccsid strings, add -DLIBC_SCCS and -DSYSLIBC_SCCS 81590Srgrimes# (for system call stubs) to CFLAGS below. -DSYSLIBC_SCCS affects just the 91590Srgrimes# system call stubs. 101590Srgrimes 111590Srgrimes.include <bsd.own.mk> 121590Srgrimes 131590Srgrimes.if (${DEFAULT_THREAD_LIB} == "libkse" || ${MK_LIBTHR} == "no") && \ 141590Srgrimes ${SHLIBDIR} == "/usr/lib" 151590SrgrimesSHLIBDIR= /lib 161590Srgrimes.endif 171590Srgrimes 181590SrgrimesLIB=kse 191590SrgrimesSHLIB_MAJOR= 0 201590SrgrimesCFLAGS+=-DPTHREAD_KERNEL 211590SrgrimesCFLAGS+=-I${.CURDIR}/../libc/include -I${.CURDIR}/thread \ 221590Srgrimes -I${.CURDIR}/../../include 231590SrgrimesCFLAGS+=-I${.CURDIR}/arch/${MACHINE_ARCH}/include 241590SrgrimesCFLAGS+=-I${.CURDIR}/sys 251590SrgrimesCFLAGS+=-I${.CURDIR}/../../libexec/rtld-elf 261590SrgrimesCFLAGS+=-I${.CURDIR}/../../libexec/rtld-elf/${MACHINE_ARCH} 271590SrgrimesCFLAGS+=-fno-builtin 281590Srgrimes 291590Srgrimes# Uncomment this if you want libkse to contain debug information for 301590Srgrimes# thread locking. 311590SrgrimesCFLAGS+=-D_LOCK_DEBUG 321590SrgrimesWARNS?=2 331590Srgrimes 341590Srgrimes# Uncomment this if you want to build a 1:1 threading mode library 351590Srgrimes# however it is no longer strictly conformed to POSIX 361590Srgrimes# CFLAGS+=-DSYSTEM_SCOPE_ONLY 371590Srgrimes 3862833Swsanchez# Enable extra internal consistancy checks. 3962833SwsanchezCFLAGS+=-D_PTHREADS_INVARIANTS -Wall 401590Srgrimes 411590SrgrimesVERSION_MAP=${.CURDIR}/kse.map 4262833Swsanchez 4394587SobrienPRECIOUSLIB= 441590Srgrimes 451590Srgrimes.include "${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc" 461590Srgrimes.include "${.CURDIR}/support/Makefile.inc" 471590Srgrimes.include "${.CURDIR}/sys/Makefile.inc" 481590Srgrimes.include "${.CURDIR}/thread/Makefile.inc" 491590Srgrimes 50144467Sharti.if ${DEFAULT_THREAD_LIB} == "libkse" || ${MK_LIBTHR} == "no" 511590SrgrimesSYMLINKS+=lib${LIB}.a ${LIBDIR}/libpthread.a 52144467Sharti.if !defined(NO_PIC) 53144467ShartiSYMLINKS+=lib${LIB}.so ${LIBDIR}/libpthread.so 54144467Sharti.endif 55144467Sharti.if ${MK_PROFILE} != "no" 56144467ShartiSYMLINKS+=lib${LIB}_p.a ${LIBDIR}/libpthread_p.a 57144467Sharti.endif 58144467Sharti.endif 591590Srgrimes 60144467Sharti.include <bsd.lib.mk> 61144467Sharti