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

.include "${.CURDIR}/Makefile.i386"

#	Get the i386 DEFAULT_VECTOR and VECS.
I386_VECS:=	${DEFAULT_VECTOR} # ${VECS}

DEFAULT_VECTOR=	bfd_elf64_x86_64_vec

SRCS+=	elf64-amd64-fbsd.c \
	efi-app-x86_64.c \
	efi-app-ia32.c \
	elf64.c \
	elf64-gen.c \
	elf64-target.h \
	pepigen.c # peigen.c

VECS=	${DEFAULT_VECTOR} \
	bfd_efi_app_x86_64_vec \
	bfd_efi_app_ia32_vec \
	${I386_VECS}

CLEANFILES+=	elf64-amd64-fbsd.c pepigen.c peigen.c

elf64-amd64-fbsd.c: ${.CURDIR}/elf-fbsd-brand.c ${SRCDIR}/bfd/elf64-x86-64.c
	cat ${.ALLSRC:M*elf-fbsd-brand.c} > ${.TARGET}
	echo "#define elf_backend_post_process_headers elf_fbsd_post_process_headers" \
	    >> ${.TARGET}
	cat ${.ALLSRC:M*elf64-x86-64.c} >> ${.TARGET}

pepigen.c: peXXigen.c
	sed -e s/XX/pep/g ${.ALLSRC} > ${.TARGET}

OpenPOWER on IntegriCloud