10 .SUFFIXES
: .texi .o .c .h .p .ip
27 # main GDB source directory
29 DOCFILES
= aoutx.texi archive.texi archures.texi \
30 bfd.texi cache.texi coffcode.texi \
31 core.texi format.texi libbfd.texi \
32 opncls.texi reloc.texi section.texi \
33 syms.texi targets.texi init.texi ctor.texi
36 PROTOS
= archive.p archures.p bfd.p \
37 coffcode.p core.p format.p \
38 libbfd.p opncls.p reloc.p \
39 section.p syms.p targets.p \
40 format.p coffcode.p core.p machines.p init.p
42 IPROTOS
= cache.ip libbfd.ip reloc.ip init.ip archures.ip ctor.ip
44 # SRCDOC, SRCPROT, SRCIPROT only used to sidestep Sun Make bug in interaction
45 # between VPATH and suffix rules. If you use GNU Make, perhaps other Makes,
46 # you don't need these three:
47 SRCDOC
= aoutx.h archive.c archures.c \
48 bfd.c cache.c coffcode.h \
49 core.c format.c libbfd.c \
50 opncls.c reloc.c section.c \
51 syms.c targets.c init.c
53 SRCPROT
= archive.c archures.c bfd.c \
54 coffcode.h core.c format.c \
55 libbfd.c opncls.c reloc.c \
56 section.c syms.c targets.c init.c
58 SRCIPROT
= cache.c libbfd.c reloc.c cpu-h8300.c cpu-i960.c archures.c init.c ctor.c
60 STAGESTUFF
= $(PROTOS
) *.p
*.ip
*.h bfd.??
$(DOCFILES
)
65 for i in
*.
info* ; do \
66 echo Installing
$$i...
; \
67 (cp
$$i $(idestdir
)/info/$$i.new \
68 && mv
-f
$(idestdir
)/info/$$i.new
$(idestdir
)/info/$$i) \
72 docs
: protos bfd.
info bfd.
dvi bfd.ps
74 protos
: $(PROTOS
) $(IPROTOS
)
75 sed
-f intobfd bfd-in.h
> bfd.h
76 sed
-f tolibbfd libbfd-in.h
> libbfd.h
77 sed
-f tolibcoff libcoff-in.h
> libcoff.h
79 # Following three rules only for the benefit of Sun Make; see comment above
80 $(DOCFILES
) : $(SRCDOC
)
81 $(PROTOS
) : $(SRCPROT
)
82 $(IPROTOS
) : $(SRCIPROT
)
85 rm -f
$(STAGESTUFF
) bfd.
dvi bfd.ps
*~
* *# bfd.???
87 bfd.
info: $(DOCFILES
) bfd.texinfo
88 $(MAKEINFO
) -o bfd.
info $(srcdir)/bfd.texinfo
90 bfd.
dvi: $(DOCFILES
) bfd.texinfo
91 TEXINPUTS
=${TEXIDIR}:.
:$$TEXINPUTS tex bfd.texinfo
93 TEXINPUTS
=${TEXIDIR}:.
:$$TEXINPUTS tex bfd.texinfo
98 quickdoc
: $(DOCFILES
) bfd.texinfo
99 TEXINPUTS
=${TEXIDIR}:.
:$$TEXINPUTS tex bfd.texinfo
103 - mv
-f
$(STAGESTUFF
) stage1
107 - mv
-f
$(STAGESTUFF
) stage2
111 - mv
-f
$(STAGESTUFF
) stage3
116 for i in
*.o
; do cmp
$$i $(against
)/$$i || exit
1 ; done
119 - (cd stage1
; mv
-f
$(STAGESTUFF
) ..
)
123 - (cd stage2
; mv
-f
$(STAGESTUFF
) ..
)
127 - (cd stage3
; mv
-f
$(STAGESTUFF
) ..
)
132 Makefile
: $(srcdir)/Makefile.in
$(host_makefile_frag
) $(target_makefile_frag
)
133 $(SHELL
) .
/config.status