Makefile revision 169524
123934Sgibbs# $FreeBSD: head/lib/libkse/Makefile 169524 2007-05-13 14:12:40Z deischen $ 223934Sgibbs# 323934Sgibbs# All library objects contain FreeBSD revision strings by default; they may be 423934Sgibbs# excluded as a space-saving measure. To produce a library that does 523934Sgibbs# not contain these strings, add -DSTRIP_FBSDID (see <sys/cdefs.h>) to CFLAGS 623934Sgibbs# below. Note, there are no IDs for syscall stubs whose sources are generated. 723934Sgibbs# To included legacy CSRG sccsid strings, add -DLIBC_SCCS and -DSYSLIBC_SCCS 823934Sgibbs# (for system call stubs) to CFLAGS below. -DSYSLIBC_SCCS affects just the 923934Sgibbs# system call stubs. 1023934Sgibbs 1123934Sgibbs.if defined(DEFAULT_THREAD_LIB) && (${DEFAULT_THREAD_LIB} == "libpthread") 1223934SgibbsSHLIBDIR?= /lib 1323934Sgibbs.endif 1423934Sgibbs 1523934Sgibbs.include <bsd.own.mk> 1623934Sgibbs 1723934SgibbsLIB=kse 1823934SgibbsSHLIB_MAJOR= 2 1923934SgibbsCFLAGS+=-DPTHREAD_KERNEL 2023934SgibbsCFLAGS+=-I${.CURDIR}/../libc/include -I${.CURDIR}/thread \ 2123934Sgibbs -I${.CURDIR}/../../include 2223934SgibbsCFLAGS+=-I${.CURDIR}/arch/${MACHINE_ARCH}/include 2323934SgibbsCFLAGS+=-I${.CURDIR}/sys 2423934SgibbsCFLAGS+=-I${.CURDIR}/../../libexec/rtld-elf 2523934SgibbsCFLAGS+=-I${.CURDIR}/../../libexec/rtld-elf/${MACHINE_ARCH} 2623934SgibbsCFLAGS+=-fno-builtin 2723934Sgibbs 2823934Sgibbs# Uncomment this if you want libpthread to contain debug information for 2923934Sgibbs# thread locking. 3023934SgibbsCFLAGS+=-D_LOCK_DEBUG 3123934SgibbsWARNS?=2 3223934Sgibbs 3323934Sgibbs# Uncomment this if you want to build a 1:1 threading mode library 3423934Sgibbs# however it is no longer strictly conformed to POSIX 3523934Sgibbs# CFLAGS+=-DSYSTEM_SCOPE_ONLY 3623934Sgibbs 3723934Sgibbs# Enable extra internal consistancy checks. 3823934SgibbsCFLAGS+=-D_PTHREADS_INVARIANTS -Wall 3923934Sgibbs 4023934SgibbsVERSION_MAP=${.CURDIR}/pthread.map 4123934Sgibbs 4223934SgibbsPRECIOUSLIB= 4323934Sgibbs 4423934Sgibbs.include "${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc" 4523934Sgibbs.include "${.CURDIR}/support/Makefile.inc" 4623934Sgibbs.include "${.CURDIR}/sys/Makefile.inc" 4723934Sgibbs.include "${.CURDIR}/thread/Makefile.inc" 4823934Sgibbs 4923934Sgibbs.if ${DEFAULT_THREAD_LIB} == "libpthread" 5023934SgibbsSYMLINKS+=lib${LIB}.a ${LIBDIR}/libpthread.a 5123934Sgibbs.if !defined(NO_PIC) 5223934SgibbsSYMLINKS+=lib${LIB}.so ${LIBDIR}/libpthread.so 5323934Sgibbs.endif 5423934Sgibbs.if ${MK_PROFILE} != "no" 5523934SgibbsSYMLINKS+=lib${LIB}_p.a ${LIBDIR}/libpthread_p.a 5623934Sgibbs.endif 5723934Sgibbs.endif 5823934Sgibbs 5923934Sgibbs.include <bsd.lib.mk> 6023934Sgibbs