From 3eeb52dee07aafcfabce219f5dfa7bd11cba830f Mon Sep 17 00:00:00 2001 From: jonathan Date: Wed, 3 Mar 1999 12:00:18 +0000 Subject: Makefile ${MACHINE_ARCH} changes for mips{eb,el}, as suggested by Izumi Tsutsui --- libexec/ld.elf_so/Makefile | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'libexec') 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 # 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} -- cgit