1 ## Process this file with automake to generate Makefile.in
3 ## Copyright (C) 2012-2025 Free Software Foundation, Inc.
5 ## This file is free software; you can redistribute it and/or modify
6 ## it under the terms of the GNU General Public License as published by
7 ## the Free Software Foundation; either version 3 of the License, or
8 ## (at your option) any later version.
10 ## This program is distributed in the hope that it will be useful,
11 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
12 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 ## GNU General Public License for more details.
15 ## You should have received a copy of the GNU General Public License
16 ## along with this program; see the file COPYING3. If not see
17 ## <http://www.gnu.org/licenses/>.
43 # SRCDOC, SRCPROT, SRCIPROT only used to sidestep Sun Make bug in interaction
44 # between VPATH and suffix rules. If you use GNU Make, perhaps other Makes,
45 # you don't need these three:
47 $(srcdir)/aoutx.h
$(srcdir)/archive.c \
48 $(srcdir)/archures.c
$(srcdir)/bfd.c \
49 $(srcdir)/cache.c
$(srcdir)/coffcode.h \
50 $(srcdir)/corefile.c
$(srcdir)/elf.c \
51 $(srcdir)/elfcode.h
$(srcdir)/format.c \
52 $(srcdir)/libbfd.c
$(srcdir)/opncls.c \
53 $(srcdir)/reloc.c
$(srcdir)/section.c \
54 $(srcdir)/syms.c
$(srcdir)/targets.c \
55 $(srcdir)/hash.c
$(srcdir)/linker.c \
58 SRCPROT
= $(srcdir)/archive.c
$(srcdir)/archures.c \
59 $(srcdir)/bfd.c
$(srcdir)/coffcode.h
$(srcdir)/corefile.c \
60 $(srcdir)/format.c
$(srcdir)/libbfd.c \
61 $(srcdir)/opncls.c
$(srcdir)/reloc.c \
62 $(srcdir)/section.c
$(srcdir)/syms.c \
65 SRCIPROT
= $(srcdir)/cache.c
$(srcdir)/libbfd.c \
67 $(srcdir)/reloc.c
$(srcdir)/cpu-h8300.c \
70 TEXIDIR
= $(srcdir)/..
/texinfo
/fsf
72 info_TEXINFOS
= %D
%/bfd.texi
73 %C
%_bfd_TEXINFOS
= $(DOCFILES
) %D
%/bfdsumm.texi
75 AM_MAKEINFOFLAGS
= --no-split
-I
"$(srcdir)/%D%" -P
%D
%
76 TEXI2DVI
= texi2dvi -I
"$(srcdir)/%D%" -I
%D
%
78 MKDOC
= %D
%/chew
$(EXEEXT_FOR_BUILD
)
80 $(MKDOC
): %D
%/chew.stamp
; @true
81 %D
%/chew.stamp
: $(srcdir)/%D
%/chew.c
%D
%/$(am__dirstamp
)
82 $(AM_V_CCLD
)$(CC_FOR_BUILD
) -o
%D
%/chw
$$$$$(EXEEXT_FOR_BUILD
) $(CFLAGS_FOR_BUILD
) \
83 $(WARN_CFLAGS_FOR_BUILD
) $(CPPFLAGS_FOR_BUILD
) $(LDFLAGS_FOR_BUILD
) \
84 -I.
-I
$(srcdir) -I
%D
% -I
$(srcdir)/..
/include -I
$(srcdir)/..
/intl
-I..
/intl \
85 $(srcdir)/%D
%/chew.c
&& \
86 $(SHELL
) $(srcdir)/..
/move-if-change \
87 %D
%/chw
$$$$$(EXEEXT_FOR_BUILD
) $(MKDOC
) && \
90 # We can't replace these rules with an implicit rule, because
91 # makes without VPATH support couldn't find the .h files in `..'.
93 # We do not depend on chew directly so that we can distribute the info
94 # files, and permit people to rebuild them, without requiring the makeinfo
95 # program. If somebody tries to rebuild info, but none of the .texi files
96 # have changed, then nothing will be rebuilt.
101 $(MKDOC
) -f
$(srcdir)/%D
%/doc.str
< $< > $@.tmp
; \
103 texi
=$${texi
%.stamp
}.texi
; \
104 test -e
$$texi ||
test ! -f
$(srcdir)/$$texi ||
$(LN_S
) $(abs_srcdir
)/$$texi $$texi; \
105 $(SHELL
) $(srcdir)/..
/move-if-change
$@.tmp
$$texi; \
109 .PRECIOUS
: %D
%/%.stamp
110 %D
%/%.texi
: %D
%/%.stamp
; @true
111 %D
%/%.stamp
: $(srcdir)/%.c
$(srcdir)/%D
%/doc.str
$(MKDOC
) %D
%/$(am__dirstamp
)
112 $(AM_V_GEN
)$(REGEN_TEXI
)
113 %D
%/%.stamp
: $(srcdir)/%.h
$(srcdir)/%D
%/doc.str
$(MKDOC
) %D
%/$(am__dirstamp
)
114 $(AM_V_GEN
)$(REGEN_TEXI
)
116 # Avoid the %.stamp generating a builddir/bfd.texi that overrides the
117 # srcdir/ as well as regenerating doc/bfd.info for each make run.
118 %D
%/bfd.stamp
: $(srcdir)/%D
%/bfd.texi
; $(AM_V_at
)touch
$@
120 # We use bfdt.texi, rather than bfd.texi, to avoid conflicting with
121 # bfd.texi on an 8.3 filesystem.
122 %D
%/bfdt.stamp
: $(srcdir)/bfd.c
$(srcdir)/%D
%/doc.str
$(MKDOC
) %D
%/$(am__dirstamp
)
123 $(AM_V_GEN
)$(REGEN_TEXI
)
125 %D
%/bfdver.texi
: $(srcdir)/Makefile.in
128 echo
"@set VERSION $(VERSION)" > $@
; \
129 if
test -n
"$(PKGVERSION)"; then \
130 echo
"@set VERSION_PACKAGE $(PKGVERSION)" >> $@
; \
132 echo
"@set UPDATED `date '+%B %Y'`" >> $@
; \
133 if
test -n
"$(REPORT_BUGS_TEXI)"; then \
134 echo
"@set BUGURL $(REPORT_BUGS_TEXI)" >> $@
; \
137 noinst_TEXINFOS
= %D
%/bfdint.texi
139 MOSTLYCLEANFILES
+= $(MKDOC
) %D
%/*.o
%D
%/*.stamp
141 DISTCLEANFILES
+= %D
%/bfd.??
%D
%/bfd.??? texput.log
143 MAINTAINERCLEANFILES
+= $(DOCFILES
)
145 html-local
: %D
%/bfd
/index.html
146 %D
%/bfd
/index.html
: %D
%/bfd.texi
$(bfd_TEXINFOS
) %D
%/$(am__dirstamp
)
147 $(AM_V_at
)$(MAKEINFOHTML
) $(AM_MAKEINFOHTMLFLAGS
) $(MAKEINFOFLAGS
) \
148 --split
=node
-o
%D
%/bfd
$(srcdir)/%D
%/bfd.texi
150 MAINTAINERCLEANFILES
+= %D
%/bfd.
info