7d0fc2f49e
This includes removing all vestiges of the old not-really supported ability to build cross tools targeting non-FreeBSD systems, such as m68k Lynx and NetBSD. Move as much duplicated code from platform Makefiles into the shared Makefiles. Add a simple mechanism for specifying ELF 'ldscripts'. Also share as many .h files as possible (now a single bfd.h vs. one per platform).
25 lines
589 B
Makefile
25 lines
589 B
Makefile
# $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 \
|
|
elf64.c \
|
|
elf64-gen.c \
|
|
elf64-target.h
|
|
|
|
VECS= bfd_elf64_x86_64_vec \
|
|
${I386_VECS}
|
|
|
|
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}
|