Makefile revision 189549
1# $FreeBSD: head/lib/libthr/Makefile 189549 2009-03-09 02:34:02Z 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
11SHLIBDIR?= /lib
12
13.include <bsd.own.mk>
14MK_SSP=	no
15
16LIB=thr
17SHLIB_MAJOR= 3
18WARNS?=	3
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+=-I${.CURDIR}/../libthread_db
27CFLAGS+=-Winline
28
29VERSION_DEF=${.CURDIR}/../libc/Versions.def
30SYMBOL_MAPS=${.CURDIR}/pthread.map
31
32MAN=	libthr.3
33
34# enable extra internal consistancy checks
35CFLAGS+=-D_PTHREADS_INVARIANTS
36#CFLAGS+=-g
37
38PRECIOUSLIB=
39
40.include "${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc"
41.include "${.CURDIR}/sys/Makefile.inc"
42.include "${.CURDIR}/thread/Makefile.inc"
43
44.if ${MK_INSTALLLIB} != "no"
45SYMLINKS+=lib${LIB}.a ${LIBDIR}/libpthread.a
46.endif
47.if !defined(NO_PIC)
48SYMLINKS+=lib${LIB}.so ${LIBDIR}/libpthread.so
49.endif
50.if ${MK_PROFILE} != "no"
51SYMLINKS+=lib${LIB}_p.a ${LIBDIR}/libpthread_p.a
52.endif
53
54.if !defined(WITHOUT_SYSCALL_COMPAT)
55CFLAGS+=-DSYSCALL_COMPAT
56.endif
57
58.include <bsd.lib.mk>
59