summaryrefslogtreecommitdiff
path: root/regress/lib/libpthread/Makefile.inc
blob: cc9a763e4d8d54ee1a6b88032e4eab728105f7f8 (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
# $OpenBSD: Makefile.inc,v 1.6 2002/09/02 20:01:43 avsm Exp $
# Copyright (c) 1993 Chris Provenzano, proven@athena.mit.edu

LIBC_R?=	/usr/lib/libc_r.a
LIBPTHREAD?=	/usr/lib/libpthread.a
USELIBPTHREAD?=	no

.if ${USELIBPTHREAD:L} == yes
# this tests using libpthread/libc
LDADD+=		-lpthread
DPADD+=		${LIBPTHREAD}
.else
# This tests using libc_r
LDADD+=		-pthread
DPADD+=		${LIBC_R}
.endif

CFLAGS+=	-Wall # -Werror
#DEBUG=		-ggdb
CFLAGS+=	-DSRCDIR='"${.CURDIR}"'
CFLAGS+=	-I${.CURDIR}/../include

NOMAN=

REGRESS_MAXTIME?=30