2003-04-26 03:28:21 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
.include "${.CURDIR}/Makefile.i386"
|
|
|
|
|
|
|
|
# Get the i386 DEFAULT_VECTOR and VECS.
|
2003-07-01 17:29:48 +00:00
|
|
|
I386_VECS:= ${DEFAULT_VECTOR} # ${VECS}
|
2003-04-26 03:28:21 +00:00
|
|
|
|
|
|
|
DEFAULT_VECTOR= bfd_elf64_x86_64_vec
|
|
|
|
|
|
|
|
VECS= bfd_elf64_x86_64_vec ${I386_VECS}
|
|
|
|
|
|
|
|
SRCS+= elf64-amd64-fbsd.c elf64-target.h elf64-gen.c elf64.c
|
|
|
|
|
|
|
|
CLEANFILES+= elf64-target.h
|
|
|
|
|
|
|
|
elf64-target.h: elfxx-target.h
|
|
|
|
sed -e s/NN/64/g ${.ALLSRC} > ${.TARGET}
|
|
|
|
|
|
|
|
CLEANFILES+= elf64-amd64-fbsd.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}
|