diff options
| author | itojun <itojun@NetBSD.org> | 2001-01-08 08:29:59 +0000 |
|---|---|---|
| committer | itojun <itojun@NetBSD.org> | 2001-01-08 08:29:59 +0000 |
| commit | 99b0df5333d1cce33a02e36d66e82b9680108aec (patch) | |
| tree | 37c3c7bfb06ffceda34712a70721224ef895a835 /gnu/lib/libobjc | |
| parent | 5a95f8151c7d2c2f1e79935951a7c676a34663d1 (diff) | |
use MACIHNE_CPU to determine architecture-dependent source code directory.
is use of exists(foo) safe enough?
TODO: many other places to fix
Diffstat (limited to 'gnu/lib/libobjc')
| -rw-r--r-- | gnu/lib/libobjc/Makefile | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/gnu/lib/libobjc/Makefile b/gnu/lib/libobjc/Makefile index ac315d5114e..6931026076f 100644 --- a/gnu/lib/libobjc/Makefile +++ b/gnu/lib/libobjc/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.9 2001/01/04 09:22:06 itojun Exp $ +# $NetBSD: Makefile,v 1.10 2001/01/08 08:29:59 itojun Exp $ HAVE_GCC28!= ${CXX} --version | egrep "^(2\.8|egcs)" ; echo @@ -15,12 +15,14 @@ INCS= hash.h objc-list.h sarray.h objc.h objc-api.h NXConstStr.h \ Object.h Protocol.h encoding.h typedstream.h thr.h INCSDIR= /usr/include/objc -.if (${MACHINE_ARCH} == "mipsel") || (${MACHINE_ARCH} == "mipseb") -ARCHSUBDIR= mips -.elif (${MACHINE_ARCH} == "sh3el") || (${MACHINE_ARCH} == "sh3eb") -ARCHSUBDIR= sh3 -.else +.if exists(${ARCH}/${MACHINE_ARCH}) ARCHSUBDIR= ${MACHINE_ARCH} +.elif exists(${ARCH}/${MACHINE_CPU}) +ARCHSUBDIR= ${MACHINE_CPU} +.else +.BEGIN: + @echo no egcs/arch/${MACHINE_ARCH} nor egcs/arch/${MACHINE_CPU} exists + @false .endif CPPFLAGS+= -I. -I${ARCH}/${ARCHSUBDIR} -I${ARCH} \ |
