diff options
| author | jonathan <jonathan@NetBSD.org> | 1999-03-03 12:00:18 +0000 |
|---|---|---|
| committer | jonathan <jonathan@NetBSD.org> | 1999-03-03 12:00:18 +0000 |
| commit | 3eeb52dee07aafcfabce219f5dfa7bd11cba830f (patch) | |
| tree | 50b687461cf70b05e50412451ade030c957d8468 /libexec | |
| parent | 5129c4fcd5f8f3092ab075f8ebbbd0dfb848fc21 (diff) | |
Makefile ${MACHINE_ARCH} changes for mips{eb,el}, as suggested by
Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
Diffstat (limited to 'libexec')
| -rw-r--r-- | libexec/ld.elf_so/Makefile | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/libexec/ld.elf_so/Makefile b/libexec/ld.elf_so/Makefile index 360d7dd2ff2..82e0e0b9c1e 100644 --- a/libexec/ld.elf_so/Makefile +++ b/libexec/ld.elf_so/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.22 1999/02/24 18:31:00 christos Exp $ +# $NetBSD: Makefile,v 1.23 1999/03/03 12:00:19 jonathan Exp $ .include <bsd.own.mk> # for OBJECT_FMT definition @@ -6,13 +6,16 @@ PROG= ld.elf_so .endif -.if (${MACHINE} == "alpha") || (${MACHINE_ARCH} == "mips") || \ +M= ${.CURDIR}/arch/${MACHINE_ARCH:S/mipse[bl]/mips/} + +.if (${MACHINE} == "alpha") || \ + (${MACHINE_ARCH} == "mipsel") || (${MACHINE_ARCH} == "mipseb") || \ (${MACHINE_ARCH} == "powerpc") || (${MACHINE} == "sparc64") || \ (${MACHINE} == "i386") || (${MACHINE} == "sparc") # Adds SRCS, CPPFLAGS, LDFLAGS, etc. Must go first so MD startup source # is first. -.if exists(${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc) -.include "${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc" +.if exists($M/Makefile.inc) +.include "$M/Makefile.inc" .endif CLIBOBJ!=cd ${.CURDIR}/../../lib/libc; \ @@ -37,7 +40,7 @@ INCSDIR=/usr/include STRIPFLAG= -.PATH: ${.CURDIR}/arch/${MACHINE_ARCH} +.PATH: $M ${PROG}: ${OBJS} ${DPADD} ${LD} ${LDFLAGS} -o ${PROG} ${OBJS} ${LDADD} |
