Makefile revision 169524
1# $FreeBSD: head/lib/libkse/Makefile 169524 2007-05-13 14:12:40Z deischen $ 2# 3# All library objects contain FreeBSD revision strings by default; they may be 4# excluded as a space-saving measure. To produce a library that does 5# not contain these strings, add -DSTRIP_FBSDID (see <sys/cdefs.h>) to CFLAGS 6# below. Note, there are no IDs for syscall stubs whose sources are generated. 7# To included legacy CSRG sccsid strings, add -DLIBC_SCCS and -DSYSLIBC_SCCS 8# (for system call stubs) to CFLAGS below. -DSYSLIBC_SCCS affects just the 9# system call stubs. 10 11.if defined(DEFAULT_THREAD_LIB) && (${DEFAULT_THREAD_LIB} == "libpthread") 12SHLIBDIR?= /lib 13.endif 14 15.include <bsd.own.mk> 16 17LIB=kse 18SHLIB_MAJOR= 2 19CFLAGS+=-DPTHREAD_KERNEL 20CFLAGS+=-I${.CURDIR}/../libc/include -I${.CURDIR}/thread \ 21 -I${.CURDIR}/../../include 22CFLAGS+=-I${.CURDIR}/arch/${MACHINE_ARCH}/include 23CFLAGS+=-I${.CURDIR}/sys 24CFLAGS+=-I${.CURDIR}/../../libexec/rtld-elf 25CFLAGS+=-I${.CURDIR}/../../libexec/rtld-elf/${MACHINE_ARCH} 26CFLAGS+=-fno-builtin 27 28# Uncomment this if you want libpthread to contain debug information for 29# thread locking. 30CFLAGS+=-D_LOCK_DEBUG 31WARNS?=2 32 33# Uncomment this if you want to build a 1:1 threading mode library 34# however it is no longer strictly conformed to POSIX 35# CFLAGS+=-DSYSTEM_SCOPE_ONLY 36 37# Enable extra internal consistancy checks. 38CFLAGS+=-D_PTHREADS_INVARIANTS -Wall 39 40VERSION_MAP=${.CURDIR}/pthread.map 41 42PRECIOUSLIB= 43 44.include "${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc" 45.include "${.CURDIR}/support/Makefile.inc" 46.include "${.CURDIR}/sys/Makefile.inc" 47.include "${.CURDIR}/thread/Makefile.inc" 48 49.if ${DEFAULT_THREAD_LIB} == "libpthread" 50SYMLINKS+=lib${LIB}.a ${LIBDIR}/libpthread.a 51.if !defined(NO_PIC) 52SYMLINKS+=lib${LIB}.so ${LIBDIR}/libpthread.so 53.endif 54.if ${MK_PROFILE} != "no" 55SYMLINKS+=lib${LIB}_p.a ${LIBDIR}/libpthread_p.a 56.endif 57.endif 58 59.include <bsd.lib.mk> 60