Makefile (161526) | Makefile (169524) |
---|---|
1# $FreeBSD: head/lib/libkse/Makefile 161526 2006-08-22 08:03:01Z ru $ | 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. | 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} == "sparc64" 11LIB=kse 12.else 13LIB=pthread | 10 11.if defined(DEFAULT_THREAD_LIB) && (${DEFAULT_THREAD_LIB} == "libpthread") |
14SHLIBDIR?= /lib 15.endif | 12SHLIBDIR?= /lib 13.endif |
14 15.include <bsd.own.mk> 16 17LIB=kse |
|
16SHLIB_MAJOR= 2 17CFLAGS+=-DPTHREAD_KERNEL 18CFLAGS+=-I${.CURDIR}/../libc/include -I${.CURDIR}/thread \ 19 -I${.CURDIR}/../../include 20CFLAGS+=-I${.CURDIR}/arch/${MACHINE_ARCH}/include 21CFLAGS+=-I${.CURDIR}/sys 22CFLAGS+=-I${.CURDIR}/../../libexec/rtld-elf 23CFLAGS+=-I${.CURDIR}/../../libexec/rtld-elf/${MACHINE_ARCH} --- 8 unchanged lines hidden (view full) --- 32# however it is no longer strictly conformed to POSIX 33# CFLAGS+=-DSYSTEM_SCOPE_ONLY 34 35# Enable extra internal consistancy checks. 36CFLAGS+=-D_PTHREADS_INVARIANTS -Wall 37 38VERSION_MAP=${.CURDIR}/pthread.map 39 | 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} --- 8 unchanged lines hidden (view full) --- 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 |
40.if defined(SYMVER_ENABLED) 41# Remove this if library version is bumped and LIBPTHREAD_1_0 42# compatability hacks are removed (see thread/thr_private.h). 43LDFLAGS+=-Wl,-zmuldefs 44CFLAGS+=-DSYMBOL_VERSIONING 45.endif 46 | |
47PRECIOUSLIB= 48 49.include "${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc" 50.include "${.CURDIR}/support/Makefile.inc" 51.include "${.CURDIR}/sys/Makefile.inc" 52.include "${.CURDIR}/thread/Makefile.inc" 53 | 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 |
|
54.include <bsd.lib.mk> | 59.include <bsd.lib.mk> |