Makefile revision 133801
1# $FreeBSD: head/lib/libkse/Makefile 133801 2004-08-16 03:27:29Z davidxu $ 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.if ${MACHINE_ARCH} == "alpha" || ${MACHINE_ARCH} == "sparc64" 11LIB=kse 12.else 13LIB=pthread 14.endif 15SHLIB_MAJOR= 1 16CFLAGS+=-DPTHREAD_KERNEL 17CFLAGS+=-I${.CURDIR}/../libc/include -I${.CURDIR}/thread \ 18 -I${.CURDIR}/../../include 19CFLAGS+=-I${.CURDIR}/arch/${MACHINE_ARCH}/include 20CFLAGS+=-I${.CURDIR}/sys 21CFLAGS+=-I${.CURDIR}/../../libexec/rtld-elf 22CFLAGS+=-I${.CURDIR}/../../libexec/rtld-elf/${MACHINE_ARCH} 23CFLAGS+=-fno-builtin 24 25# Uncomment this if you want libpthread to contain debug information for 26# thread locking. 27CFLAGS+=-D_LOCK_DEBUG 28#CFLAGS+= -g 29 30# Uncomment this if you want to build a 1:1 threading mode library 31# however it is no longer strictly conformed to POSIX 32# CFLAGS+=-DSYSTEM_SCOPE_ONLY 33 34LDFLAGS= -Wl,--version-script=${.CURDIR}/pthread.map 35 36# enable extra internal consistancy checks 37CFLAGS+=-D_PTHREADS_INVARIANTS -Wall 38 39PRECIOUSLIB= yes 40 41.include "${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc" 42.include "${.CURDIR}/support/Makefile.inc" 43.include "${.CURDIR}/sys/Makefile.inc" 44.include "${.CURDIR}/thread/Makefile.inc" 45 46.include <bsd.lib.mk> 47