diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2010-02-03 20:49:02 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2010-02-03 20:49:02 +0000 |
commit | a0067f51183d8b472112a095c7c0d32145ff98b3 (patch) | |
tree | 96321fd1bd5ffaea0d4f16723ebb5a9cc4a139e9 /lib/libpthread/sys | |
parent | 7dfb23e53684ac495a4cf9a6a5188a1f91d5885a (diff) |
Use MACHINE_CPU instead of MACHINE_ARCH to pick the correct machine dependent
files or directories when applicable.
The inspiration and name of MACHINE_CPU come from NetBSD, although the way to
provide it to Makefiles is completely different.
ok kettenis@
Diffstat (limited to 'lib/libpthread/sys')
-rw-r--r-- | lib/libpthread/sys/Makefile.inc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libpthread/sys/Makefile.inc b/lib/libpthread/sys/Makefile.inc index 7056e455e67..10fcfe22961 100644 --- a/lib/libpthread/sys/Makefile.inc +++ b/lib/libpthread/sys/Makefile.inc @@ -1,15 +1,15 @@ -# $OpenBSD: Makefile.inc,v 1.17 2009/06/01 23:18:24 miod Exp $ +# $OpenBSD: Makefile.inc,v 1.18 2010/02/03 20:49:00 miod Exp $ -.PATH: ${SRCDIR}/sys ${SRCDIR}/arch/${MACHINE_ARCH} +.PATH: ${SRCDIR}/sys ${SRCDIR}/arch/${MACHINE_CPU} SRCS+= uthread_error.c -.if exists(${SRCDIR}/arch/${MACHINE_ARCH}/_atomic_lock.c) +.if exists(${SRCDIR}/arch/${MACHINE_CPU}/_atomic_lock.c) SRCS+= _atomic_lock.c .endif -.if exists(${SRCDIR}/arch/${MACHINE_ARCH}/uthread_machdep_asm.S) +.if exists(${SRCDIR}/arch/${MACHINE_CPU}/uthread_machdep_asm.S) SRCS+= uthread_machdep_asm.S .endif -.if exists(${SRCDIR}/arch/${MACHINE_ARCH}/uthread_machdep.c) +.if exists(${SRCDIR}/arch/${MACHINE_CPU}/uthread_machdep.c) SRCS+= uthread_machdep.c .endif |