summaryrefslogtreecommitdiff
path: root/src/lib/libc/string
diff options
context:
space:
mode:
authormiod <>2010-02-03 20:49:00 +0000
committermiod <>2010-02-03 20:49:00 +0000
commit44a740d46dbdb3792d875e44b2e570f98dbd5d75 (patch)
tree34505bc357a186d3e726fcef9a7c5076687821b1 /src/lib/libc/string
parent4657a66d1fec85b57a7f7f8b9f650123db7d66a4 (diff)
downloadopenbsd-44a740d46dbdb3792d875e44b2e570f98dbd5d75.tar.gz
openbsd-44a740d46dbdb3792d875e44b2e570f98dbd5d75.tar.bz2
openbsd-44a740d46dbdb3792d875e44b2e570f98dbd5d75.zip
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 'src/lib/libc/string')
-rw-r--r--src/lib/libc/string/Makefile.inc6
1 files changed, 3 insertions, 3 deletions
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 @@
1# $OpenBSD: Makefile.inc,v 1.20 2007/10/25 22:41:02 miod Exp $ 1# $OpenBSD: Makefile.inc,v 1.21 2010/02/03 20:49:00 miod Exp $
2 2
3# string sources 3# string sources
4.PATH: ${LIBCSRCDIR}/arch/${MACHINE_ARCH}/string ${LIBCSRCDIR}/string 4.PATH: ${LIBCSRCDIR}/arch/${MACHINE_CPU}/string ${LIBCSRCDIR}/string
5 5
6SRCS+= bm.c memccpy.c memrchr.c strcasecmp.c strcasestr.c strcoll.c strdup.c \ 6SRCS+= bm.c memccpy.c memrchr.c strcasecmp.c strcasestr.c strcoll.c strdup.c \
7 strerror.c strerror_r.c strlcat.c strmode.c strsignal.c strtok.c \ 7 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 \
20# m-d Makefile.inc may include sources for: 20# m-d Makefile.inc may include sources for:
21# memcpy() memmove() strchr() strrchr() 21# memcpy() memmove() strchr() strrchr()
22 22
23.include "${LIBCSRCDIR}/arch/${MACHINE_ARCH}/string/Makefile.inc" 23.include "${LIBCSRCDIR}/arch/${MACHINE_CPU}/string/Makefile.inc"
24 24
25# if no machine specific memmove(3), build one out of bcopy(3). 25# if no machine specific memmove(3), build one out of bcopy(3).
26.if empty(SRCS:Mmemmove.S) 26.if empty(SRCS:Mmemmove.S)