summaryrefslogtreecommitdiff
path: root/regress/lib/libpthread
diff options
context:
space:
mode:
authorMarco S Hyman <marc@cvs.openbsd.org>2002-06-17 04:48:25 +0000
committerMarco S Hyman <marc@cvs.openbsd.org>2002-06-17 04:48:25 +0000
commit345d1db2d48c493092e9e3646ca80dd172721244 (patch)
tree6e03ee1debf0fb9253496ef5382bdadc574c8e85 /regress/lib/libpthread
parent06f88b85361a193390cca0f04779538ade984e49 (diff)
Remove bogus make expression that only confused readers of the file.
'make' will do the regression tests using libc_r 'make USELIBPTHREAD=yes' will do the regression tests using libpthread
Diffstat (limited to 'regress/lib/libpthread')
-rw-r--r--regress/lib/libpthread/Makefile.inc9
1 files changed, 6 insertions, 3 deletions
diff --git a/regress/lib/libpthread/Makefile.inc b/regress/lib/libpthread/Makefile.inc
index 318c7040af9..c3c8a0887f3 100644
--- a/regress/lib/libpthread/Makefile.inc
+++ b/regress/lib/libpthread/Makefile.inc
@@ -1,19 +1,22 @@
-# $OpenBSD: Makefile.inc,v 1.4 2002/04/20 00:15:36 art Exp $
+# $OpenBSD: Makefile.inc,v 1.5 2002/06/17 04:48:24 marc 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 1 # ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "sparc"
+.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
+#DEBUG= -ggdb
CFLAGS+= -DSRCDIR='"${.CURDIR}"'
CFLAGS+= -I${.CURDIR}/../include