1# $FreeBSD$
2
3.include "${.CURDIR}/Makefile.i386"
4
5#	Get the i386 DEFAULT_VECTOR and VECS.
6I386_VECS:=	${DEFAULT_VECTOR} # ${VECS}
7
8DEFAULT_VECTOR=	bfd_elf64_x86_64_vec
9
10SRCS+=	elf64-amd64-fbsd.c \
11	elf64.c \
12	elf64-gen.c \
13	elf64-target.h
14
15VECS=	bfd_elf64_x86_64_vec \
16	${I386_VECS}
17
18CLEANFILES+=	elf64-amd64-fbsd.c
19
20elf64-amd64-fbsd.c: ${.CURDIR}/elf-fbsd-brand.c ${SRCDIR}/bfd/elf64-x86-64.c
21	cat ${.ALLSRC:M*elf-fbsd-brand.c} > ${.TARGET}
22	echo "#define elf_backend_post_process_headers elf_fbsd_post_process_headers" \
23	    >> ${.TARGET}
24	cat ${.ALLSRC:M*elf64-x86-64.c} >> ${.TARGET}
25