diff options
| author | miod <> | 2010-02-03 20:49:00 +0000 | 
|---|---|---|
| committer | miod <> | 2010-02-03 20:49:00 +0000 | 
| commit | aaa0cabd6a83ca6edba4b6122b65033db1337306 (patch) | |
| tree | 34505bc357a186d3e726fcef9a7c5076687821b1 /src/lib/libc/string | |
| parent | 6007738228ce1f7b878db03c3e504020350a7e30 (diff) | |
| download | openbsd-aaa0cabd6a83ca6edba4b6122b65033db1337306.tar.gz openbsd-aaa0cabd6a83ca6edba4b6122b65033db1337306.tar.bz2 openbsd-aaa0cabd6a83ca6edba4b6122b65033db1337306.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.inc | 6 | 
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 | ||
| 6 | SRCS+= bm.c memccpy.c memrchr.c strcasecmp.c strcasestr.c strcoll.c strdup.c \ | 6 | SRCS+= 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) | 
