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

SRCS+=		cofflink.c	\
		cpu-powerpc.c	\
		elf32-ppc.c	\
		elf32-target.h	\
		elf32.c		\
		elflink.c	\
		pe-ppc.c	\
		pei-ppc.c	\
		ppcboot.c	\
		xcofflink.c
VECS+=		bfd_elf32_powerpc_vec	\
		bfd_elf32_powerpcle_vec	\
		bfd_powerpc_pe_vec	\
		bfd_powerpc_pei_vec	\
		bfd_powerpcle_pe_vec	\
		bfd_powerpcle_pei_vec	\
		ppcboot_vec
.if ${TARGET_ARCH} == "powerpc"
CFLAGS+=	-DDEFAULT_VECTOR=bfd_elf32_powerpc_vec
.endif
CFLAGS+=	-DHAVE_bfd_elf32_powerpc_vec	\
		-DHAVE_bfd_elf32_powerpcle_vec	\
		-DHAVE_bfd_powerpc_pe_vec	\
		-DHAVE_bfd_powerpc_pei_vec	\
		-DHAVE_bfd_powerpcle_pe_vec	\
		-DHAVE_bfd_powerpcle_pei_vec	\
		-DHAVE_ppcboot_vec
CLEANFILES+=	elf32-target.h

elf32-target.h: elfxx-target.h
	sed -e s/NN/32/g ${.ALLSRC} > ${.TARGET}
OpenPOWER on IntegriCloud