Makefile revision 199830
11841Swollman# $FreeBSD: head/lib/libthr/Makefile 199830 2009-11-26 14:01:14Z kib $ 21841Swollman# 31841Swollman# All library objects contain FreeBSD revision strings by default; they may be 41841Swollman# excluded as a space-saving measure. To produce a library that does 51841Swollman# not contain these strings, add -DSTRIP_FBSDID (see <sys/cdefs.h>) to CFLAGS 61841Swollman# below. Note, there are no IDs for syscall stubs whose sources are generated. 71841Swollman# To included legacy CSRG sccsid strings, add -DLIBC_SCCS and -DSYSLIBC_SCCS 81841Swollman# (for system call stubs) to CFLAGS below. -DSYSLIBC_SCCS affects just the 91841Swollman# system call stubs. 101841Swollman 111841SwollmanSHLIBDIR?= /lib 121841Swollman 131841Swollman.include <bsd.own.mk> 141841SwollmanMK_SSP= no 151841Swollman 16148834SstefanfLIB=thr 171841SwollmanSHLIB_MAJOR= 3 181841SwollmanWARNS?= 3 191841SwollmanCFLAGS+=-DPTHREAD_KERNEL 201841SwollmanCFLAGS+=-I${.CURDIR}/../libc/include -I${.CURDIR}/thread \ 211841Swollman -I${.CURDIR}/../../include 221841SwollmanCFLAGS+=-I${.CURDIR}/arch/${MACHINE_ARCH}/include 231841SwollmanCFLAGS+=-I${.CURDIR}/sys 241841SwollmanCFLAGS+=-I${.CURDIR}/../../libexec/rtld-elf 251841SwollmanCFLAGS+=-I${.CURDIR}/../../libexec/rtld-elf/${MACHINE_ARCH} 261841SwollmanCFLAGS+=-I${.CURDIR}/../libthread_db 271841SwollmanCFLAGS+=-Winline 281841SwollmanLDFLAGS+=-Wl,-znodelete -Wl,-znodlopen 291841Swollman 301841SwollmanVERSION_DEF=${.CURDIR}/../libc/Versions.def 311841SwollmanSYMBOL_MAPS=${.CURDIR}/pthread.map 321841Swollman 33268782SpfgMAN= libthr.3 3484326Sobrien 351841Swollman# enable extra internal consistancy checks 361841SwollmanCFLAGS+=-D_PTHREADS_INVARIANTS 371841Swollman#CFLAGS+=-g 381841Swollman 391841SwollmanPRECIOUSLIB= 4084326Sobrien 4184326Sobrien.include "${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc" 421841Swollman.include "${.CURDIR}/sys/Makefile.inc" 431841Swollman.include "${.CURDIR}/thread/Makefile.inc" 441841Swollman 451841Swollman.if ${MK_INSTALLLIB} != "no" 46117556SimpSYMLINKS+=lib${LIB}.a ${LIBDIR}/libpthread.a 47220370Sobrien.endif 48220370Sobrien.if !defined(NO_PIC) 49220370SobrienSYMLINKS+=lib${LIB}.so ${LIBDIR}/libpthread.so 50117556Simp.endif 511841Swollman.if ${MK_PROFILE} != "no" 521841SwollmanSYMLINKS+=lib${LIB}_p.a ${LIBDIR}/libpthread_p.a 531841Swollman.endif 54148834Sstefanf 551841Swollman.if !defined(WITHOUT_SYSCALL_COMPAT) 561841SwollmanCFLAGS+=-DSYSCALL_COMPAT 571841Swollman.endif 581841Swollman 591841Swollman.include <bsd.lib.mk> 601841Swollman