]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - lib/libkse/Makefile
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / lib / libkse / Makefile
1 # $FreeBSD$
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 .include <bsd.own.mk>
12
13 SHLIB=kse
14 SHLIB_MAJOR= 4
15 CFLAGS+=-DPTHREAD_KERNEL
16 CFLAGS+=-I${.CURDIR}/../libc/include -I${.CURDIR}/thread \
17         -I${.CURDIR}/../../include
18 CFLAGS+=-I${.CURDIR}/arch/${MACHINE_CPUARCH}/include
19 CFLAGS+=-I${.CURDIR}/sys
20 CFLAGS+=-I${.CURDIR}/../../libexec/rtld-elf
21 CFLAGS+=-I${.CURDIR}/../../libexec/rtld-elf/${MACHINE_CPUARCH}
22 CFLAGS+=-fno-builtin
23
24 # Uncomment this if you want libkse to contain debug information for
25 # thread locking.
26 CFLAGS+=-D_LOCK_DEBUG
27 WARNS?=3
28
29 # Uncomment this if you want to build a 1:1 threading mode library
30 # however it is no longer strictly conformed to POSIX
31 # CFLAGS+=-DSYSTEM_SCOPE_ONLY
32
33 # Enable extra internal consistancy checks.
34 CFLAGS+=-D_PTHREADS_INVARIANTS -Wall
35
36 VERSION_DEF=${.CURDIR}/../libc/Versions.def
37 SYMBOL_MAPS=${.CURDIR}/kse.map
38
39 PRECIOUSLIB=
40
41 .PATH: ${.CURDIR}/arch/${MACHINE_CPUARCH}/${MACHINE_CPUARCH}
42
43 .include "${.CURDIR}/arch/${MACHINE_CPUARCH}/Makefile.inc"
44 .include "${.CURDIR}/support/Makefile.inc"
45 .include "${.CURDIR}/sys/Makefile.inc"
46 .include "${.CURDIR}/thread/Makefile.inc"
47
48 .include <bsd.lib.mk>