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 10VECS= bfd_elf64_x86_64_vec ${I386_VECS} 11 12SRCS+= elf64-amd64-fbsd.c elf64-target.h elf64-gen.c elf64.c 13 14CLEANFILES+= elf64-target.h 15 16CLEANFILES+= elf64-amd64-fbsd.c 17 18elf64-amd64-fbsd.c: ${.CURDIR}/elf-fbsd-brand.c ${SRCDIR}/bfd/elf64-x86-64.c 19 cat ${.ALLSRC:M*elf-fbsd-brand.c} > ${.TARGET} 20 echo "#define elf_backend_post_process_headers elf_fbsd_post_process_headers" \ 21 >> ${.TARGET} 22 cat ${.ALLSRC:M*elf64-x86-64.c} >> ${.TARGET} 23