summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/binutils/libbfd/Makefile.mips
blob: cb1e370e34d2fee31bf2b1de9776d2e7bf5a3007 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# $FreeBSD$

#xxxIMPxxx: TARGET_BIG_ENDIAN is lame.  We should use the netbsd convention
# of mipsel and mips.
.if !defined(TARGET_BIG_ENDIAN)
_EMULATION_ENDIAN=little
.else
_EMULATION_ENDIAN=big
.endif

DEFAULT_VECTOR=	bfd_elf32_tradbigmips_vec

.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
OpenPOWER on IntegriCloud