Cleaner support of a DEFAULT_VECTOR.

This commit is contained in:
obrien 2002-12-02 09:59:05 +00:00
parent b3183ee084
commit b782c9f5b6
5 changed files with 21 additions and 17 deletions

View File

@ -1,13 +1,14 @@
# $FreeBSD$
DEFAULT_VECTOR= bfd_elf64_alpha_freebsd_vec
SRCS+= coff-alpha.c cpu-alpha.c ecoff.c ecofflink.c elf64-alpha-fbsd.c \
elf64-target.h elf64.c elflink.c
VECS+= bfd_elf64_alpha_freebsd_vec ecoffalpha_little_vec
VECS= ${DEFAULT_VECTOR} ecoffalpha_little_vec
.if ${TARGET_ARCH} == "alpha"
CFLAGS+= -DDEFAULT_VECTOR=bfd_elf64_alpha_freebsd_vec
CFLAGS+= -DDEFAULT_VECTOR=${DEFAULT_VECTOR}
.endif
CLEANFILES+= elf64-target.h
elf64-target.h: elfxx-target.h
sed -e s/NN/64/g ${.ALLSRC} > ${.TARGET}

View File

@ -1,10 +1,11 @@
# $FreeBSD$
DEFAULT_VECTOR= bfd_elf32_i386_freebsd_vec
SRCS+= cpu-i386.c elf32-i386-fbsd.c elf32-target.h elf32.c elflink.c
VECS+= bfd_elf32_i386_freebsd_vec
VECS= ${DEFAULT_VECTOR}
.if ${TARGET_ARCH} == "i386"
CFLAGS+= -DDEFAULT_VECTOR=bfd_elf32_i386_freebsd_vec
.endif
CFLAGS+= -DDEFAULT_VECTOR=${DEFAULT_VECTOR}
.if defined(BINUTILSDISTDIR) && exists(${BINUTILSDISTDIR})
SRCS+= pe-i386.c pei-i386.c
@ -12,6 +13,5 @@ VECS+= i386pe_vec i386pei_vec
.endif
CLEANFILES+= elf32-target.h
elf32-target.h: elfxx-target.h
sed -e s/NN/32/g ${.ALLSRC} > ${.TARGET}

View File

@ -1,16 +1,18 @@
# $FreeBSD$
DEFAULT_VECTOR= bfd_elf64_ia64_little_vec
SRCS+= cofflink.c cpu-ia64.c efi-app-ia64.c elf32.c elf32-gen.c elf64.c \
elf64-gen.c elf64-ia64.c elflink.c
#SRCS+= coff-ia64.c elf32-ia64.c
VECS+= bfd_efi_app_ia64_vec \
bfd_elf64_ia64_little_vec bfd_elf64_ia64_big_vec \
VECS+= ${DEFAULT_VECTOR} \
bfd_elf64_ia64_big_vec \
bfd_elf64_little_generic_vec bfd_elf64_big_generic_vec \
bfd_elf32_little_generic_vec bfd_elf32_big_generic_vec
.if ${TARGET_ARCH} == "ia64"
CFLAGS+= -DDEFAULT_VECTOR=bfd_elf64_ia64_little_vec
CFLAGS+= -DDEFAULT_VECTOR=${DEFAULT_VECTOR}
.endif
GENSRCS= elf32-target.h elf64-target.h elf64-ia64.c pepigen.c # peigen.c
@ -23,7 +25,6 @@ elf32-target.h: elfxx-target.h
elf64-target.h: elfxx-target.h
sed -e s/NN/64/g ${.ALLSRC} > ${.TARGET}
elf64-ia64.c: elfxx-ia64.c
sed -e s/NN/64/g -e 's/^.*#.*define.*ELF_DYNAMIC_INTERPRETER.*$$//g' \
${.ALLSRC} > ${.TARGET}

View File

@ -1,5 +1,7 @@
# $FreeBSD$
DEFAULT_VECTOR= bfd_elf32_powerpc_vec
SRCS+= \
cpu-powerpc.c \
cpu-rs6000.c \
@ -10,15 +12,14 @@ SRCS+= \
elflink.c \
ppcboot.c \
#xcofflink.c
VECS+= bfd_elf32_powerpc_vec \
VECS+= ${DEFAULT_VECTOR} \
bfd_elf32_powerpcle_vec \
ppcboot_vec
.if ${TARGET_ARCH} == "powerpc"
CFLAGS+= -DDEFAULT_VECTOR=bfd_elf32_powerpc_vec
CFLAGS+= -DDEFAULT_VECTOR=${DEFAULT_VECTOR}
.endif
CLEANFILES+= elf32-target.h
elf32-target.h: elfxx-target.h
sed -e s/NN/32/g ${.ALLSRC} > ${.TARGET}

View File

@ -1,5 +1,7 @@
# $FreeBSD$
DEFAULT_VECTOR= bfd_elf64_sparc_vec
SRCS+= aout32.c \
cpu-sparc.c \
elf32-sparc.c \
@ -11,14 +13,13 @@ SRCS+= aout32.c \
elflink.c \
sparcnetbsd.c \
sunos.c
VECS+= bfd_elf32_sparc_vec bfd_elf64_sparc_vec sparcnetbsd_vec sunos_big_vec
VECS= ${DEFAULT_VECTOR} bfd_elf32_sparc_vec sparcnetbsd_vec sunos_big_vec
.if ${TARGET_ARCH} == "sparc64"
CFLAGS+= -DDEFAULT_VECTOR=bfd_elf64_sparc_vec
CFLAGS+= -DDEFAULT_VECTOR=${DEFAULT_VECTOR}
.endif
CLEANFILES+= elf32-target.h elf64-target.h
elf32-target.h: elfxx-target.h
sed -e s/NN/32/g ${.ALLSRC} > ${.TARGET}