7408d8ff34
Unlike the unisex architecutres we've had so far, mips is bisexual. These tools can produce either byte sex, and the compiler/make determines the proper gender to use. Otherwise, we'd have to have had mipsel and mipseb in all the places that we have just mips. And there are other complications with doing that (binutils doesn't like to build mips tools without both byte genders, it seems). Introduced BINUTIL_ARCH so that other bisexual architectures can a generic mechanism. We cannot just define MACHINE_ARCH as mips because we need to differentiate big and little endian types of binaries. Discussions on freebsd-arch have hashed out this issue (and the parallel libc issues). NetBSD is moving towards mipsel and mipseb for their two flavors of mips ports (in time for 1.4, if this change hasn't already been accomplished). I've been building i386 worlds with this tree for a three months with these files in place with no ill effects.
21 lines
697 B
Makefile
21 lines
697 B
Makefile
#
|
|
# $Id: Makefile.i386,v 1.5 1998/06/04 06:50:58 bde Exp $
|
|
#
|
|
SRCS+= cpu-mips.c elf32-mips.c elf32-target.h elf32.c elflink.c
|
|
SRCS+= coff-mips.c ecoff.c ecofflink.c mips-opc.c mips16-opc.c
|
|
VECS+= bfd_elf32_littlemips_vec bfd_elf32_bigmips_vec ecoff_little_vec ecoff_big_vec
|
|
.if ${MACHINE_ARCH} == "mipsel"
|
|
CFLAGS+= -DDEFAULT_VECTOR=bfd_elf32_littlemips_vec
|
|
.endif
|
|
.if ${MACHINE_ARCH} == "mipseb"
|
|
CFLAGS+= -DDEFAULT_VECTOR=bfd_elf32_bigmips_vec
|
|
.endif
|
|
CFLAGS+= -DHAVE_bfd_elf32_littlemips_vec
|
|
CFLAGS+= -DHAVE_bfd_elf32_bigmips_vec
|
|
CFLAGS+= -DHAVE_ecoff_little_vec
|
|
CFLAGS+= -DHAVE_ecoff_big_vec
|
|
CLEANFILES+= elf32-target.h
|
|
|
|
elf32-target.h: elfxx-target.h
|
|
sed -e s/NN/32/g ${.ALLSRC} > ${.TARGET}
|