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/stdlib | |
| 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 '')
| -rw-r--r-- | src/lib/libc/stdlib/Makefile.inc | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/lib/libc/stdlib/Makefile.inc b/src/lib/libc/stdlib/Makefile.inc index 3b9b36a1ed..b003560291 100644 --- a/src/lib/libc/stdlib/Makefile.inc +++ b/src/lib/libc/stdlib/Makefile.inc | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | # $OpenBSD: Makefile.inc,v 1.42 2009/06/03 15:52:16 millert Exp $ | 1 | # $OpenBSD: Makefile.inc,v 1.43 2010/02/03 20:49:00 miod Exp $ |
| 2 | 2 | ||
| 3 | # stdlib sources | 3 | # stdlib sources |
| 4 | .PATH: ${LIBCSRCDIR}/arch/${MACHINE_ARCH}/stdlib ${LIBCSRCDIR}/stdlib | 4 | .PATH: ${LIBCSRCDIR}/arch/${MACHINE_CPU}/stdlib ${LIBCSRCDIR}/stdlib |
| 5 | 5 | ||
| 6 | SRCS+= a64l.c abort.c atexit.c atoi.c atof.c atol.c atoll.c bsearch.c \ | 6 | SRCS+= a64l.c abort.c atexit.c atoi.c atof.c atol.c atoll.c bsearch.c \ |
| 7 | cfree.c exit.c ecvt.c gcvt.c getenv.c getopt_long.c \ | 7 | cfree.c exit.c ecvt.c gcvt.c getenv.c getopt_long.c \ |
| @@ -12,28 +12,28 @@ SRCS+= a64l.c abort.c atexit.c atoi.c atof.c atol.c atoll.c bsearch.c \ | |||
| 12 | tfind.c tsearch.c _rand48.c drand48.c erand48.c jrand48.c lcong48.c \ | 12 | tfind.c tsearch.c _rand48.c drand48.c erand48.c jrand48.c lcong48.c \ |
| 13 | lrand48.c mrand48.c nrand48.c seed48.c srand48.c qabs.c qdiv.c _Exit.c | 13 | lrand48.c mrand48.c nrand48.c seed48.c srand48.c qabs.c qdiv.c _Exit.c |
| 14 | 14 | ||
| 15 | .if (${MACHINE_ARCH} == "m68k") | 15 | .if (${MACHINE_CPU} == "m68k") |
| 16 | SRCS+= abs.S div.c labs.c ldiv.c | 16 | SRCS+= abs.S div.c labs.c ldiv.c |
| 17 | LSRCS+= abs.c | 17 | LSRCS+= abs.c |
| 18 | .elif (${MACHINE_ARCH} == "i386") | 18 | .elif (${MACHINE_CPU} == "i386") |
| 19 | SRCS+= abs.S div.S labs.S ldiv.S | 19 | SRCS+= abs.S div.S labs.S ldiv.S |
| 20 | LSRCS+= abs.c div.c labs.c ldiv.c | 20 | LSRCS+= abs.c div.c labs.c ldiv.c |
| 21 | .elif (${MACHINE_ARCH} == "ns32k") | 21 | .elif (${MACHINE_CPU} == "ns32k") |
| 22 | SRCS+= abs.S div.c labs.c ldiv.c | 22 | SRCS+= abs.S div.c labs.c ldiv.c |
| 23 | LSRCS+= abs.c | 23 | LSRCS+= abs.c |
| 24 | .elif (${MACHINE_ARCH} == "tahoe") | 24 | .elif (${MACHINE_CPU} == "tahoe") |
| 25 | SRCS+= abs.S div.c labs.c ldiv.c | 25 | SRCS+= abs.S div.c labs.c ldiv.c |
| 26 | LSRCS+= abs.c | 26 | LSRCS+= abs.c |
| 27 | .elif (${MACHINE_ARCH} == "vax") | 27 | .elif (${MACHINE_CPU} == "vax") |
| 28 | SRCS+= abs.c div.c labs.c ldiv.c | 28 | SRCS+= abs.c div.c labs.c ldiv.c |
| 29 | .elif (${MACHINE_ARCH} == "alpha") | 29 | .elif (${MACHINE_CPU} == "alpha") |
| 30 | # XXX should be .S's | 30 | # XXX should be .S's |
| 31 | SRCS+= abs.c div.c labs.c ldiv.c | 31 | SRCS+= abs.c div.c labs.c ldiv.c |
| 32 | .else | 32 | .else |
| 33 | SRCS+= abs.c div.c labs.c ldiv.c | 33 | SRCS+= abs.c div.c labs.c ldiv.c |
| 34 | .endif | 34 | .endif |
| 35 | 35 | ||
| 36 | .if (${MACHINE_ARCH} == "vax") || (${MACHINE_ARCH} == "m68k") | 36 | .if (${MACHINE_CPU} == "vax") || (${MACHINE_CPU} == "m68k") |
| 37 | SRCS+= insque.S remque.S | 37 | SRCS+= insque.S remque.S |
| 38 | .else | 38 | .else |
| 39 | SRCS+= insque.c remque.c | 39 | SRCS+= insque.c remque.c |
