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:
parent
ffcbbfc220
commit
5b728dfd69
@ -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>
|
||||
|
@ -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}
|
||||
|
@ -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
|
||||
|
@ -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}
|
||||
|
@ -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}
|
||||
|
||||
|
@ -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}
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user