freebsd-skq/gnu/usr.bin/binutils/libbfd/Makefile.mips
Warner Losh e8dce5b9b3 Complete the integration of tbemd branch into head.
TARGET_BIG_ENDIAN is now completely dead, except where it was
originally supposed to be used (internally in the toolchain building).

TARGET_ARCH has changed in three cases:
(1) Little endian mips has changed to mipsel.
(2) Big endian mips has changed to mipseb.
(3) Big endian arm has changed to armeb.

Some additional changes are needed to make 'make universe' work on arm
and mips after this change, so those are commented out for now.

UPDATING information will be forthcoming.  Any remaining rough edges
will be hammered out in -current.
2010-11-10 06:39:49 +00:00

40 lines
825 B
Makefile

# $FreeBSD$
.if ${TARGET_ARCH} == "mipsel"
_EMULATION_ENDIAN=little
.else
_EMULATION_ENDIAN=big
.endif
.if defined(TARGET_ABI) && ${TARGET_ABI} != "o32"
.if ${TARGET_ABI} == "n32"
DEFAULT_VECTOR= bfd_elf32_ntrad${_EMULATION_ENDIAN}mips_vec
.elif ${TARGET_ABI} == "n64"
DEFAULT_VECTOR= bfd_elf64_trad${_EMULATION_ENDIAN}mips_vec
.endif
.endif
DEFAULT_VECTOR?=bfd_elf32_trad${_EMULATION_ENDIAN}mips_vec
SRCS+= coff-mips.c \
cpu-mips.c \
ecoff.c \
ecofflink.c \
elf32.c \
elf64.c \
elfn32-mips.c \
elf32-mips.c \
elf64-mips.c \
elfxx-mips.c \
elf32-target.h \
elf64-target.h \
elflink.c
VECS= bfd_elf32_tradbigmips_vec \
bfd_elf32_tradlittlemips_vec \
bfd_elf32_ntradbigmips_vec \
bfd_elf32_ntradlittlemips_vec \
bfd_elf64_tradbigmips_vec \
bfd_elf64_tradlittlemips_vec \
ecoff_little_vec \
ecoff_big_vec