Makefile revision 234412
1# $FreeBSD: head/lib/libkse/Makefile 234412 2012-04-18 07:02:53Z pluknet $
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
13SHLIB=kse
14SHLIB_MAJOR= 4
15CFLAGS+=-DPTHREAD_KERNEL
16CFLAGS+=-I${.CURDIR}/../libc/include -I${.CURDIR}/thread \
17	-I${.CURDIR}/../../include
18CFLAGS+=-I${.CURDIR}/arch/${MACHINE_CPUARCH}/include
19CFLAGS+=-I${.CURDIR}/sys
20CFLAGS+=-I${.CURDIR}/../../libexec/rtld-elf
21CFLAGS+=-I${.CURDIR}/../../libexec/rtld-elf/${MACHINE_CPUARCH}
22CFLAGS+=-fno-builtin
23
24# Uncomment this if you want libkse to contain debug information for
25# thread locking.
26CFLAGS+=-D_LOCK_DEBUG
27WARNS?=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.
34CFLAGS+=-D_PTHREADS_INVARIANTS -Wall
35
36VERSION_DEF=${.CURDIR}/../libc/Versions.def
37SYMBOL_MAPS=${.CURDIR}/kse.map
38
39PRECIOUSLIB=
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>
49