blob: 788bce00b40e7e66af84c3b940c76384ee8dccc5 (
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
|
# $OpenBSD: Makefile,v 1.11 2001/02/21 00:03:46 brad 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+= -D_PTHREADS_INVARIANTS
CFLAGS+= -DNOPOLL -I${LIBC_RSRCDIR}/uthread
CFLAGS+= -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
.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>
|