summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/binutils/libbfd/Makefile.arm
blob: de852e93cb77078c005616e36800f0b022588027 (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
# $FreeBSD$

DEFAULT_VECTOR=	bfd_elf32_littlearm_vec

SRCS+=	\
	cpu-arm.c	\
	elf32.c		\
	elf32-gen.c	\
	elflink.c	\
	elfarm-nabi.c	\
	elfarm-oabi.c	\
	elf32-arm-fbsd.c \
	elf32-target.h
VECS+=	${DEFAULT_VECTOR}  \
	bfd_elf32_bigarm_vec

.if ${TARGET_ARCH} == "arm"
CFLAGS+= -DDEFAULT_VECTOR=${DEFAULT_VECTOR}
.endif

CLEANFILES+=	elf32-arm-fbsd.c

elf32-arm-fbsd.c: elfarm-nabi.c
	cat ${.ALLSRC} | sed s/ELFOSABI_ARM/ELFOSABI_FREEBSD/g >${.TARGET}
OpenPOWER on IntegriCloud