mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-27 03:51:15 +08:00
Repairs for srcdir/objdir separation.
Individual targets for proto-header files.
This commit is contained in:
parent
b08344573e
commit
fafbc31929
@ -7,17 +7,6 @@ SHELL = /bin/sh
|
||||
|
||||
MAKEINFO = makeinfo
|
||||
|
||||
.SUFFIXES: .texi .o .c .h .p .ip
|
||||
|
||||
.c.p:
|
||||
$(srcdir)/scanph $< $@
|
||||
|
||||
.h.p:
|
||||
$(srcdir)/scanph $< $@
|
||||
|
||||
.c.ip:
|
||||
$(srcdir)/scanph -i $< $@
|
||||
|
||||
# main GDB source directory
|
||||
|
||||
DOCFILES = aoutx.texi archive.texi archures.texi \
|
||||
@ -30,7 +19,7 @@ PROTOS = archive.p archures.p bfd.p \
|
||||
coffcode.p core.p format.p \
|
||||
libbfd.p opncls.p reloc.p \
|
||||
section.p syms.p targets.p \
|
||||
format.p coffcode.p core.p machines.p init.p
|
||||
format.p coffcode.p core.p init.p
|
||||
|
||||
IPROTOS = cache.ip libbfd.ip reloc.ip init.ip archures.ip ctor.ip
|
||||
|
||||
@ -75,9 +64,9 @@ install-info: all-info
|
||||
docs: protos bfd.info bfd.dvi bfd.ps
|
||||
|
||||
protos: $(PROTOS) $(IPROTOS)
|
||||
sed -f intobfd bfd-in.h > bfd.h
|
||||
sed -f tolibbfd libbfd-in.h > libbfd.h
|
||||
sed -f tolibcoff libcoff-in.h > libcoff.h
|
||||
sed -f intobfd $(srcdir)/../bfd-in.h > bfd.h
|
||||
sed -f tolibbfd $(srcdir)/../libbfd-in.h > libbfd.h
|
||||
sed -f tolibcoff $(srcdir)/../libcoff-in.h > libcoff.h
|
||||
|
||||
aoutx.texi: $(srcdir)/scanit $(srcdir)/../aoutx.h
|
||||
$(srcdir)/scanit $(srcdir)/../aoutx.h aoutx.texi $(srcdir)
|
||||
@ -127,6 +116,64 @@ init.texi: $(srcdir)/scanit $(srcdir)/../init.c
|
||||
ctor.texi: $(srcdir)/scanit $(srcdir)/../ctor.c
|
||||
$(srcdir)/scanit $(srcdir)/../ctor.c ctor.texi $(srcdir)
|
||||
|
||||
archive.p: $(srcdir)/scanph $(srcdir)/../archive.c
|
||||
$(srcdir)/scanph $(srcdir)/../archive.c archive $(srcdir)
|
||||
|
||||
archures.p: $(srcdir)/scanph $(srcdir)/../archures.c
|
||||
$(srcdir)/scanph $(srcdir)/../archures.c archures $(srcdir)
|
||||
|
||||
bfd.p: $(srcdir)/scanph $(srcdir)/../bfd.c
|
||||
$(srcdir)/scanph $(srcdir)/../bfd.c bfd $(srcdir)
|
||||
|
||||
coffcode.p: $(srcdir)/scanph $(srcdir)/../coffcode.h
|
||||
$(srcdir)/scanph $(srcdir)/../coffcode.h coffcode $(srcdir)
|
||||
|
||||
core.p: $(srcdir)/scanph $(srcdir)/../core.c
|
||||
$(srcdir)/scanph $(srcdir)/../core.c core $(srcdir)
|
||||
|
||||
format.p: $(srcdir)/scanph $(srcdir)/../format.c
|
||||
$(srcdir)/scanph $(srcdir)/../format.c format $(srcdir)
|
||||
|
||||
libbfd.p: $(srcdir)/scanph $(srcdir)/../libbfd.c
|
||||
$(srcdir)/scanph $(srcdir)/../libbfd.c libbfd $(srcdir)
|
||||
|
||||
opncls.p: $(srcdir)/scanph $(srcdir)/../opncls.c
|
||||
$(srcdir)/scanph $(srcdir)/../opncls.c opncls $(srcdir)
|
||||
|
||||
reloc.p: $(srcdir)/scanph $(srcdir)/../reloc.c
|
||||
$(srcdir)/scanph $(srcdir)/../reloc.c reloc $(srcdir)
|
||||
|
||||
section.p: $(srcdir)/scanph $(srcdir)/../section.c
|
||||
$(srcdir)/scanph $(srcdir)/../section.c section $(srcdir)
|
||||
|
||||
syms.p: $(srcdir)/scanph $(srcdir)/../syms.c
|
||||
$(srcdir)/scanph $(srcdir)/../syms.c syms $(srcdir)
|
||||
|
||||
targets.p: $(srcdir)/scanph $(srcdir)/../targets.c
|
||||
$(srcdir)/scanph $(srcdir)/../targets.c targets $(srcdir)
|
||||
|
||||
init.p: $(srcdir)/scanph $(srcdir)/../init.c
|
||||
$(srcdir)/scanph $(srcdir)/../init.c init $(srcdir)
|
||||
|
||||
cache.ip: $(srcdir)/scanph $(srcdir)/../cache.c
|
||||
$(srcdir)/scanph -i $(srcdir)/../cache.c cache $(srcdir)
|
||||
|
||||
libbfd.ip: $(srcdir)/scanph $(srcdir)/../libbfd.c
|
||||
$(srcdir)/scanph -i $(srcdir)/../libbfd.c libbfd $(srcdir)
|
||||
|
||||
reloc.ip: $(srcdir)/scanph $(srcdir)/../reloc.c
|
||||
$(srcdir)/scanph -i $(srcdir)/../reloc.c reloc $(srcdir)
|
||||
|
||||
init.ip: $(srcdir)/scanph $(srcdir)/../init.c
|
||||
$(srcdir)/scanph -i $(srcdir)/../init.c init $(srcdir)
|
||||
|
||||
archures.ip: $(srcdir)/scanph $(srcdir)/../archures.c
|
||||
$(srcdir)/scanph -i $(srcdir)/../archures.c archures $(srcdir)
|
||||
|
||||
ctor.ip: $(srcdir)/scanph $(srcdir)/../ctor.c
|
||||
$(srcdir)/scanph -i $(srcdir)/../ctor.c ctor $(srcdir)
|
||||
|
||||
|
||||
clean:
|
||||
rm -f $(STAGESTUFF) bfd.dvi bfd.ps *~* *# bfd.???
|
||||
|
||||
|
@ -9,7 +9,6 @@ if [ $1 = "-i" ]; then
|
||||
shift
|
||||
fi
|
||||
|
||||
base=`echo $1 | cut -d '.' -f 1`
|
||||
out=`echo $2 | cut -d '.' -f 1`
|
||||
|
||||
# passes:
|
||||
@ -18,9 +17,9 @@ out=`echo $2 | cut -d '.' -f 1`
|
||||
# 2) first sed pass interprets Chamberlain markup;
|
||||
# 3) further sed passes clean up---merging adjacent comments etc.
|
||||
|
||||
awk -f awkscan-$SFX $1 |\
|
||||
sed -f sedscript-p |\
|
||||
sed -f mergecom-p |\
|
||||
sed -f startcom-p |\
|
||||
sed -f blins-p |\
|
||||
sed -f movecom-p >$out.$SFX
|
||||
awk -f $3/awkscan-$SFX $1 |\
|
||||
sed -f $3/sedscript-p |\
|
||||
sed -f $3/mergecom-p |\
|
||||
sed -f $3/startcom-p |\
|
||||
sed -f $3/blins-p |\
|
||||
sed -f $3/movecom-p >$out.$SFX
|
||||
|
Loading…
Reference in New Issue
Block a user