Makefile ${MACHINE_ARCH} changes for mips{eb,el}, as suggested by

Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
This commit is contained in:
jonathan 1999-03-03 12:00:18 +00:00
parent 5129c4fcd5
commit 3eeb52dee0
7 changed files with 24 additions and 20 deletions

View File

@ -1,7 +1,7 @@
# $NetBSD: Makefile,v 1.9 1999/02/09 22:32:33 is Exp $
# $NetBSD: Makefile,v 1.10 1999/03/03 12:00:18 jonathan Exp $
.if exists(${MACHINE_ARCH})
SUBDIR+= ${MACHINE_ARCH}
.if exists(${MACHINE_ARCH:S/mipse[bl]/mips/})
SUBDIR+= ${MACHINE_ARCH:S/mipse[bl]/mips/}
.endif
.include <bsd.subdir.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.2 1999/02/09 22:32:33 is Exp $
# $NetBSD: Makefile.inc,v 1.3 1999/03/03 12:00:18 jonathan Exp $
#
# This Makefile includes boiler-plate stuff included by each subdir's Makefile.
@ -6,4 +6,4 @@ OBJS+= ${ASM}
POBJS+= ${ASM:.o=.po}
CLEANFILES+= ${ASM} ${POBJS}
LIB= ${MACHINE_ARCH}
LIB= ${MACHINE_ARCH:S/mipse[bl]/mips/}

View File

@ -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}

View File

@ -1,10 +1,11 @@
# $NetBSD: Makefile,v 1.31 1998/10/02 20:20:29 drochner Exp $
# $NetBSD: Makefile,v 1.32 1999/03/03 12:00:20 jonathan Exp $
SUBDIR= adosfs arch compat dev filecorefs isofs miscfs msdosfs net \
netatalk netccitt netinet netiso netnatm netns nfs sys ufs uvm vm
.if (${MACHINE_ARCH} != "alpha" && ${MACHINE_ARCH} != "mips" && \
${MACHINE_ARCH} != "powerpc")
.if (${MACHINE_ARCH} != "alpha" && ${MACHINE_ARCH} != "powerpc" && \
${MACHINE_ARCH} != "mipseb" &&${MACHINE_ARCH} != "mipsel")
SUBDIR+= lkm
.endif

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.3 1998/08/25 11:52:26 matthias Exp $
# $NetBSD: Makefile,v 1.4 1999/03/03 12:00:19 jonathan Exp $
# For now, we install the machine and arch includes, and symlink 'machine'
# to the location of the machine includes.
@ -6,8 +6,8 @@
# Eventually, we should install everything.
SUBDIR= ${MACHINE}
.if ${MACHINE} != ${MACHINE_ARCH} && exists(${MACHINE_ARCH})
SUBDIR+= ${MACHINE_ARCH}
.if ${MACHINE} != ${MACHINE_ARCH} && exists(${MACHINE_ARCH:S/mipse[bl]/mips/})
SUBDIR+= ${MACHINE_ARCH:S/mipse[bl]/mips/}
.endif
#SUBDIR= alpha amiga arm32 atari bebox hp300 i386 m68k mac68k macppc mips \

View File

@ -1,9 +1,9 @@
# $NetBSD: Makefile,v 1.48 1999/02/24 16:22:42 chs Exp $
# $NetBSD: Makefile,v 1.49 1999/03/03 12:00:20 jonathan Exp $
LIB= kern
MKPIC= no
M= ${.CURDIR}/arch/${MACHINE_ARCH}
M= ${.CURDIR}/arch/${MACHINE_ARCH:S/mipse[bl]/mips/}
CPPFLAGS= -I$M ${KERNCPPFLAGS} ${KERNMISCCPPFLAGS}

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.99 1999/03/02 14:07:24 christos Exp $
# $NetBSD: Makefile,v 1.100 1999/03/03 12:00:19 jonathan Exp $
# from: @(#)Makefile 8.3 (Berkeley) 1/7/94
.include <bsd.own.mk> # for EXPORTABLE_SYSTEM definition
@ -32,7 +32,7 @@ SUBDIR+=elf2aout elf2ecoff telnet
.else
# Build ELF to {ecoff, aout} tools on mips, for old bootblocks/PROMs.
.if (${MACHINE_ARCH} == "mips")
.if (${MACHINE_ARCH} == "mipsel" || ${MACHINE_ARCH} == "mipseb")
SUBDIR+= elf2aout elf2ecoff
.endif