blob: 8778a9bde5a6d4fc99e3e63a1b9fdf182d3e9418 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# $OpenBSD: Makefile,v 1.12 2002/01/15 22:37:02 fgsch Exp $
# libc_r will be depreceated and replaced by libpthread
# when all supported architectures support weak symbols.
# See also comments in ../libc/Makefile.
.include <bsd.own.mk>
LIBCSRCDIR = ${.CURDIR}/../libc
LIBC_RSRCDIR = ${.CURDIR}
LIB= c_r
LINTFLAGS= -z
CFLAGS+= -DPTHREAD_KERNEL -D_POSIX_THREADS -D_THREAD_SAFE
CFLAGS+= -I${LIBC_RSRCDIR}/uthread -I${LIBC_RSRCDIR}/include
CFLAGS+= -I${LIBCSRCDIR}/include
# Uncomment this if you want libc_r to contain debug information for
# thread locking.
CFLAGS+= -D_LOCK_DEBUG
#DEBUG= -ggdb -Wall
# enable extra internal consistency checks
CFLAGS+= -D_PTHREADS_INVARIANTS
.include "${LIBCSRCDIR}/Makefile.inc"
# annul man pages that are built/installed by libc
MAN=
MLINKS=
# XXX bogus version number!
SHLIB_MAJOR != . ${LIBC_RSRCDIR}/shlib_version ; echo $$major
SHLIB_MINOR != . ${LIBC_RSRCDIR}/shlib_version ; echo $$minor
AINC+= -I${LIBC_RSRCDIR}/uthread
.include "${LIBC_RSRCDIR}/uthread/Makefile.inc"
.include "${LIBC_RSRCDIR}/sys/Makefile.inc"
.include "${LIBC_RSRCDIR}/thread/Makefile.inc"
.include "${LIBC_RSRCDIR}/man/Makefile.inc"
.include "${LIBC_RSRCDIR}/include/Makefile.inc"
.include <bsd.lib.mk>
|