diff options
author | obrien <obrien@FreeBSD.org> | 2002-12-02 09:59:05 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2002-12-02 09:59:05 +0000 |
commit | b782c9f5b6c05a4c5856e0e194772e61ef42eaf6 (patch) | |
tree | 672f5511895fb5553ad7e28618df4f1e7377a800 /gnu | |
parent | b3183ee084376b0d4a500bc686ff1978d3b8b729 (diff) | |
download | FreeBSD-src-b782c9f5b6c05a4c5856e0e194772e61ef42eaf6.zip FreeBSD-src-b782c9f5b6c05a4c5856e0e194772e61ef42eaf6.tar.gz |
Cleaner support of a DEFAULT_VECTOR.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/usr.bin/binutils/libbfd/Makefile.alpha | 7 | ||||
-rw-r--r-- | gnu/usr.bin/binutils/libbfd/Makefile.i386 | 8 | ||||
-rw-r--r-- | gnu/usr.bin/binutils/libbfd/Makefile.ia64 | 9 | ||||
-rw-r--r-- | gnu/usr.bin/binutils/libbfd/Makefile.powerpc | 7 | ||||
-rw-r--r-- | gnu/usr.bin/binutils/libbfd/Makefile.sparc64 | 7 |
5 files changed, 21 insertions, 17 deletions
diff --git a/gnu/usr.bin/binutils/libbfd/Makefile.alpha b/gnu/usr.bin/binutils/libbfd/Makefile.alpha index 08b1808..5754cbc 100644 --- a/gnu/usr.bin/binutils/libbfd/Makefile.alpha +++ b/gnu/usr.bin/binutils/libbfd/Makefile.alpha @@ -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} diff --git a/gnu/usr.bin/binutils/libbfd/Makefile.i386 b/gnu/usr.bin/binutils/libbfd/Makefile.i386 index 8eb7405..14700ec 100644 --- a/gnu/usr.bin/binutils/libbfd/Makefile.i386 +++ b/gnu/usr.bin/binutils/libbfd/Makefile.i386 @@ -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} diff --git a/gnu/usr.bin/binutils/libbfd/Makefile.ia64 b/gnu/usr.bin/binutils/libbfd/Makefile.ia64 index 7ca5d3c..69d6b19 100644 --- a/gnu/usr.bin/binutils/libbfd/Makefile.ia64 +++ b/gnu/usr.bin/binutils/libbfd/Makefile.ia64 @@ -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} diff --git a/gnu/usr.bin/binutils/libbfd/Makefile.powerpc b/gnu/usr.bin/binutils/libbfd/Makefile.powerpc index f766a0f..df0c57f 100644 --- a/gnu/usr.bin/binutils/libbfd/Makefile.powerpc +++ b/gnu/usr.bin/binutils/libbfd/Makefile.powerpc @@ -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} diff --git a/gnu/usr.bin/binutils/libbfd/Makefile.sparc64 b/gnu/usr.bin/binutils/libbfd/Makefile.sparc64 index 84918ba..a10a081 100644 --- a/gnu/usr.bin/binutils/libbfd/Makefile.sparc64 +++ b/gnu/usr.bin/binutils/libbfd/Makefile.sparc64 @@ -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} |