Makefile revision 157243
185909Simp# $FreeBSD: head/lib/libkse/Makefile 157243 2006-03-29 05:38:19Z des $ 285909Simp# 3122116Sbde# All library objects contain FreeBSD revision strings by default; they may be 4122116Sbde# excluded as a space-saving measure. To produce a library that does 5122116Sbde# not contain these strings, add -DSTRIP_FBSDID (see <sys/cdefs.h>) to CFLAGS 6180012Sru# below. Note, there are no IDs for syscall stubs whose sources are generated. 7240468Sbrooks# To included legacy CSRG sccsid strings, add -DLIBC_SCCS and -DSYSLIBC_SCCS 8160440Sobrien# (for system call stubs) to CFLAGS below. -DSYSLIBC_SCCS affects just the 9210151Simp# system call stubs. 10239272Sgonzo.if ${MACHINE_ARCH} == "alpha" || ${MACHINE_ARCH} == "sparc64" 11210151SimpLIB=kse 1285909Simp.else 1385909SimpLIB=pthread 1485909Simp.endif 1585909SimpSHLIB_MAJOR= 2 16175888SimpCFLAGS+=-DPTHREAD_KERNEL 17175888SimpCFLAGS+=-I${.CURDIR}/../libc/include -I${.CURDIR}/thread \ 1885909Simp -I${.CURDIR}/../../include 19218538SimpCFLAGS+=-I${.CURDIR}/arch/${MACHINE_ARCH}/include 2085909SimpCFLAGS+=-I${.CURDIR}/sys 2191512SobrienCFLAGS+=-I${.CURDIR}/../../libexec/rtld-elf 22240451SnpCFLAGS+=-I${.CURDIR}/../../libexec/rtld-elf/${MACHINE_ARCH} 23116341SmarkmCFLAGS+=-fno-builtin 2485909Simp 2585909Simp# Uncomment this if you want libpthread to contain debug information for 2685909Simp# thread locking. 2785909SimpCFLAGS+=-D_LOCK_DEBUG 28220863SdimWARNS?=2 29140606Sobrien 30187103Sgnn# Uncomment this if you want to build a 1:1 threading mode library 31220863Sdim# however it is no longer strictly conformed to POSIX 32224882Snwhitehorn# CFLAGS+=-DSYSTEM_SCOPE_ONLY 33224882Snwhitehorn 34224882Snwhitehorn# Enable extra internal consistancy checks. 35140606SobrienCFLAGS+=-D_PTHREADS_INVARIANTS -Wall 36220863Sdim 37224882SnwhitehornVERSION_MAP=${.CURDIR}/pthread.map 38220863Sdim 39240468Sbrooks.if defined(SYMVER_ENABLED) 40127204Sobrien# Remove this if library version is bumped and LIBPTHREAD_1_0 41220863Sdim# compatability hacks are removed (see thread/thr_private.h). 42228868SdimLDFLAGS+=-Wl,-zmuldefs 43228868SdimCFLAGS+=-DSYMBOL_VERSIONING 44228868Sdim.endif 45140606Sobrien 46220863SdimPRECIOUSLIB= 47220863Sdim 48124834Sru.include "${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc" 49124834Sru.include "${.CURDIR}/support/Makefile.inc" 5085909Simp.include "${.CURDIR}/sys/Makefile.inc" 5185909Simp.include "${.CURDIR}/thread/Makefile.inc" 5285909Simp 53160043Sobrien.include <bsd.lib.mk> 54126890Strhodes