summaryrefslogtreecommitdiff
path: root/lib/libpthread/sys/Makefile.inc
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2004-02-06 01:52:02 +0000
committerBrad Smith <brad@cvs.openbsd.org>2004-02-06 01:52:02 +0000
commitf4f652f27b6bc683e59d246956a77749e21a8a0c (patch)
tree9dbb6efe9dc08e79a5431f29a5c03184f4ac84a7 /lib/libpthread/sys/Makefile.inc
parent356883ae78caeb632c915d62a72f6c35dcd915d3 (diff)
remove silly stub file for alpha and only try to compile _atomic_lock.c
if it actually exists. ok marc@
Diffstat (limited to 'lib/libpthread/sys/Makefile.inc')
-rw-r--r--lib/libpthread/sys/Makefile.inc7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/libpthread/sys/Makefile.inc b/lib/libpthread/sys/Makefile.inc
index 633c31d8b61..f39fe7e43a0 100644
--- a/lib/libpthread/sys/Makefile.inc
+++ b/lib/libpthread/sys/Makefile.inc
@@ -1,10 +1,13 @@
-# $OpenBSD: Makefile.inc,v 1.12 2003/10/22 00:25:42 brad Exp $
+# $OpenBSD: Makefile.inc,v 1.13 2004/02/06 01:52:01 brad Exp $
.PATH: ${SRCDIR}/sys ${SRCDIR}/arch/${MACHINE_ARCH}
SRCS+= uthread_error.c
-SRCS+= _atomic_lock.c slow_atomic_lock.c
+SRCS+= slow_atomic_lock.c
+.if exists(${SRCDIR}/arch/${MACHINE_ARCH}/_atomic_lock.c)
+SRCS+= _atomic_lock.c
+.endif
.if exists(${SRCDIR}/arch/${MACHINE_ARCH}/uthread_machdep_asm.S)
SRCS+= uthread_machdep_asm.S
.endif