Move the elf32-target.h and elf64-target.h targets from the MD

makefiles to the centralized makefile. This not only reduces
duplication, it also makes the MD quirks stand out better and
thus improves maintenance.
This commit is contained in:
marcel 2004-06-19 20:37:38 +00:00
parent 4a80a06c52
commit 0d4738230c
7 changed files with 6 additions and 20 deletions

View File

@ -63,4 +63,10 @@ config.h: config.h.fbsd
sed -e 's,!!TRAD_HEADER!!,,g' ${.ALLSRC} > ${.TARGET}
.endif
elf32-target.h: elfxx-target.h
sed -e s/NN/32/g ${.ALLSRC} > ${.TARGET}
elf64-target.h: elfxx-target.h
sed -e s/NN/64/g ${.ALLSRC} > ${.TARGET}
.include <bsd.lib.mk>

View File

@ -10,5 +10,3 @@ 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

@ -13,9 +13,6 @@ 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

View File

@ -14,5 +14,3 @@ 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

@ -20,12 +20,6 @@ GENSRCS= elf32-target.h elf64-target.h elf64-ia64.c pepigen.c # peigen.c
SRCS+= ${GENSRCS}
CLEANFILES+= ${GENSRCS}
elf32-target.h: elfxx-target.h
sed -e s/NN/32/g ${.ALLSRC} > ${.TARGET}
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 ${.ALLSRC} > ${.TARGET}

View File

@ -21,5 +21,3 @@ 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

@ -20,11 +20,6 @@ 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}
elf64-target.h: elfxx-target.h
sed -e s/NN/64/g ${.ALLSRC} > ${.TARGET}
CLEANFILES+= elf64-sparc%FIXED.c
elf64-sparc%FIXED.c: elf64-sparc.c elf64-sparc.c-bad-rtld.diff