From aaa0cabd6a83ca6edba4b6122b65033db1337306 Mon Sep 17 00:00:00 2001 From: miod <> Date: Wed, 3 Feb 2010 20:49:00 +0000 Subject: 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@ --- src/lib/libc/string/Makefile.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/lib/libc/string') diff --git a/src/lib/libc/string/Makefile.inc b/src/lib/libc/string/Makefile.inc index 124469cd3a..8aa072a289 100644 --- a/src/lib/libc/string/Makefile.inc +++ b/src/lib/libc/string/Makefile.inc @@ -1,7 +1,7 @@ -# $OpenBSD: Makefile.inc,v 1.20 2007/10/25 22:41:02 miod Exp $ +# $OpenBSD: Makefile.inc,v 1.21 2010/02/03 20:49:00 miod Exp $ # string sources -.PATH: ${LIBCSRCDIR}/arch/${MACHINE_ARCH}/string ${LIBCSRCDIR}/string +.PATH: ${LIBCSRCDIR}/arch/${MACHINE_CPU}/string ${LIBCSRCDIR}/string SRCS+= bm.c memccpy.c memrchr.c strcasecmp.c strcasestr.c strcoll.c strdup.c \ strerror.c strerror_r.c strlcat.c strmode.c strsignal.c strtok.c \ @@ -20,7 +20,7 @@ SRCS+= bm.c memccpy.c memrchr.c strcasecmp.c strcasestr.c strcoll.c strdup.c \ # m-d Makefile.inc may include sources for: # memcpy() memmove() strchr() strrchr() -.include "${LIBCSRCDIR}/arch/${MACHINE_ARCH}/string/Makefile.inc" +.include "${LIBCSRCDIR}/arch/${MACHINE_CPU}/string/Makefile.inc" # if no machine specific memmove(3), build one out of bcopy(3). .if empty(SRCS:Mmemmove.S) -- cgit v1.2.3-55-g6feb