diff options
author | 2010-02-03 20:48:58 +0000 | |
---|---|---|
committer | 2010-02-03 20:48:58 +0000 | |
commit | b3ed33d2d70f99f07d350f98602c83b814dbcf10 (patch) | |
tree | ff5e1d03e19ab46fcc7523609a613ffa56a13119 /lib/libc/stdlib | |
parent | If MACHINE_CPU != MACHINE_ARCH, pass -D__${MACHINE_CPU}__ to the preprocessor. (diff) | |
download | wireguard-openbsd-b3ed33d2d70f99f07d350f98602c83b814dbcf10.tar.xz wireguard-openbsd-b3ed33d2d70f99f07d350f98602c83b814dbcf10.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 'lib/libc/stdlib')
-rw-r--r-- | lib/libc/stdlib/Makefile.inc | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/libc/stdlib/Makefile.inc b/lib/libc/stdlib/Makefile.inc index 3b9b36a1ed8..b003560291f 100644 --- a/lib/libc/stdlib/Makefile.inc +++ b/lib/libc/stdlib/Makefile.inc @@ -1,7 +1,7 @@ -# $OpenBSD: Makefile.inc,v 1.42 2009/06/03 15:52:16 millert Exp $ +# $OpenBSD: Makefile.inc,v 1.43 2010/02/03 20:49:00 miod Exp $ # stdlib sources -.PATH: ${LIBCSRCDIR}/arch/${MACHINE_ARCH}/stdlib ${LIBCSRCDIR}/stdlib +.PATH: ${LIBCSRCDIR}/arch/${MACHINE_CPU}/stdlib ${LIBCSRCDIR}/stdlib SRCS+= a64l.c abort.c atexit.c atoi.c atof.c atol.c atoll.c bsearch.c \ 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 \ tfind.c tsearch.c _rand48.c drand48.c erand48.c jrand48.c lcong48.c \ lrand48.c mrand48.c nrand48.c seed48.c srand48.c qabs.c qdiv.c _Exit.c -.if (${MACHINE_ARCH} == "m68k") +.if (${MACHINE_CPU} == "m68k") SRCS+= abs.S div.c labs.c ldiv.c LSRCS+= abs.c -.elif (${MACHINE_ARCH} == "i386") +.elif (${MACHINE_CPU} == "i386") SRCS+= abs.S div.S labs.S ldiv.S LSRCS+= abs.c div.c labs.c ldiv.c -.elif (${MACHINE_ARCH} == "ns32k") +.elif (${MACHINE_CPU} == "ns32k") SRCS+= abs.S div.c labs.c ldiv.c LSRCS+= abs.c -.elif (${MACHINE_ARCH} == "tahoe") +.elif (${MACHINE_CPU} == "tahoe") SRCS+= abs.S div.c labs.c ldiv.c LSRCS+= abs.c -.elif (${MACHINE_ARCH} == "vax") +.elif (${MACHINE_CPU} == "vax") SRCS+= abs.c div.c labs.c ldiv.c -.elif (${MACHINE_ARCH} == "alpha") +.elif (${MACHINE_CPU} == "alpha") # XXX should be .S's SRCS+= abs.c div.c labs.c ldiv.c .else SRCS+= abs.c div.c labs.c ldiv.c .endif -.if (${MACHINE_ARCH} == "vax") || (${MACHINE_ARCH} == "m68k") +.if (${MACHINE_CPU} == "vax") || (${MACHINE_CPU} == "m68k") SRCS+= insque.S remque.S .else SRCS+= insque.c remque.c |