]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - binutils/Makefile.am
* Makefile.am (PROGS): Add BUILD_INSTALL_MISC.
[thirdparty/binutils-gdb.git] / binutils / Makefile.am
1 ## Process this file with automake to generate Makefile.in
2
3 AUTOMAKE_OPTIONS = cygnus dejagnu
4
5 SUBDIRS = doc po
6
7 tooldir = $(exec_prefix)/$(target_alias)
8
9 ## These aren't set by automake, because they appear in
10 ## bfd/acinclude.m4, which is included by binutils/acinclude.m4, and
11 ## thus is not seen by automake.
12 CC_FOR_BUILD = @CC_FOR_BUILD@
13 EXEEXT_FOR_BUILD = @EXEEXT_FOR_BUILD@
14
15 YACC = `if [ -f ../bison/bison ]; then echo ../bison/bison -y -L$(srcdir)/../bison/; else echo @YACC@; fi`
16 YFLAGS = -d
17 LEX = `if [ -f ../flex/flex ]; then echo ../flex/flex; else echo @LEX@; fi`
18
19 WARN_CFLAGS = @WARN_CFLAGS@
20 NO_WERROR = @NO_WERROR@
21 AM_CFLAGS = $(WARN_CFLAGS)
22
23 # these two are almost the same program
24 AR_PROG=ar
25 RANLIB_PROG=ranlib
26
27 # objcopy and strip should be the same program
28 OBJCOPY_PROG=objcopy
29 STRIP_PROG=strip-new
30
31 STRINGS_PROG=strings
32
33 READELF_PROG=readelf
34
35 # These should all be the same program too.
36 SIZE_PROG=size
37 NM_PROG=nm-new
38 OBJDUMP_PROG=objdump
39
40 # This is the demangler, as a standalone program.
41 # Note: This one is used as the installed name too, unlike the above.
42 DEMANGLER_PROG=cxxfilt
43
44 ADDR2LINE_PROG=addr2line
45
46 NLMCONV_PROG=nlmconv
47 DLLTOOL_PROG=dlltool
48 WINDRES_PROG=windres
49 DLLWRAP_PROG=dllwrap
50
51 SRCONV_PROG=srconv$(EXEEXT) sysdump$(EXEEXT) coffdump$(EXEEXT)
52
53 PROGS = $(SIZE_PROG) $(OBJDUMP_PROG) $(NM_PROG) $(AR_PROG) $(STRINGS_PROG) $(STRIP_PROG) $(RANLIB_PROG) $(DEMANGLER_PROG) $(OBJCOPY_PROG) @BUILD_NLMCONV@ @BUILD_SRCONV@ @BUILD_DLLTOOL@ @BUILD_WINDRES@ $(ADDR2LINE_PROG) $(READELF_PROG) @BUILD_DLLWRAP@ @BUILD_MISC@ @BUILD_INSTALL_MISC@
54
55 bin_PROGRAMS = $(SIZE_PROG) $(OBJDUMP_PROG) $(AR_PROG) $(STRINGS_PROG) $(RANLIB_PROG) $(OBJCOPY_PROG) @BUILD_NLMCONV@ @BUILD_SRCONV@ @BUILD_DLLTOOL@ @BUILD_WINDRES@ $(ADDR2LINE_PROG) $(READELF_PROG) @BUILD_DLLWRAP@ @BUILD_INSTALL_MISC@
56
57 ## We need a special rule to install the programs which are built with
58 ## -new, and to rename cxxfilt to c++filt.
59 noinst_PROGRAMS = $(NM_PROG) $(STRIP_PROG) $(DEMANGLER_PROG)
60
61 EXTRA_PROGRAMS = $(NLMCONV_PROG) srconv sysdump coffdump $(DLLTOOL_PROG) $(WINDRES_PROG) $(DLLWRAP_PROG)
62
63 # Stuff that goes in tooldir/ if appropriate.
64 TOOL_PROGS = nm-new strip-new ar ranlib dlltool objdump
65
66 BASEDIR = $(srcdir)/..
67 BFDDIR = $(BASEDIR)/bfd
68 INCDIR = $(BASEDIR)/include
69
70 MKDEP = gcc -MM
71
72 REPORT_BUGS_TO = "\"@REPORT_BUGS_TO@\""
73
74 INCLUDES = -D_GNU_SOURCE \
75 -I. -I$(srcdir) -I../bfd -I$(BFDDIR) -I$(INCDIR) \
76 @HDEFINES@ \
77 @INCINTL@ \
78 -DLOCALEDIR="\"$(datadir)/locale\"" \
79 -DREPORT_BUGS_TO=$(REPORT_BUGS_TO) \
80 -Dbin_dummy_emulation=$(EMULATION_VECTOR)
81
82 HFILES = \
83 arsup.h binemul.h bucomm.h budbg.h budemang.h \
84 coffgrok.h debug.h dlltool.h nlmconv.h \
85 windres.h winduni.h
86
87 GENERATED_HFILES = arparse.h sysroff.h sysinfo.h defparse.h rcparse.h
88
89 CFILES = \
90 addr2line.c ar.c arsup.c bin2c.c binemul.c bucomm.c budemang.c \
91 coffdump.c coffgrok.c cxxfilt.c \
92 dwarf.c debug.c dlltool.c dllwrap.c \
93 emul_aix.c emul_vanilla.c filemode.c \
94 ieee.c is-ranlib.c is-strip.c maybe-ranlib.c maybe-strip.c \
95 nlmconv.c nm.c not-ranlib.c not-strip.c \
96 objcopy.c objdump.c prdbg.c \
97 rdcoff.c rddbg.c readelf.c rename.c \
98 resbin.c rescoff.c resrc.c resres.c \
99 size.c srconv.c stabs.c strings.c sysdump.c version.c \
100 windres.c winduni.c wrstabs.c
101
102 GENERATED_CFILES = \
103 arparse.c arlex.c sysroff.c sysinfo.c syslex.c \
104 defparse.c deflex.c nlmheader.c rcparse.c rclex.c
105
106 DEBUG_SRCS = rddbg.c debug.c stabs.c ieee.c rdcoff.c
107 WRITE_DEBUG_SRCS = $(DEBUG_SRCS) wrstabs.c
108
109 # Code shared by all the binutils.
110 BULIBS = bucomm.c version.c filemode.c
111
112 BFDLIB = ../bfd/libbfd.la
113
114 OPCODES = ../opcodes/libopcodes.la
115
116 LIBIBERTY = ../libiberty/libiberty.a
117
118 .PHONY: install-html install-html-am install-html-recursive
119
120 install-html: install-html-recursive
121
122 install-html-recursive:
123 @failcom='exit 1'; \
124 for f in x $$MAKEFLAGS; do \
125 case $$f in \
126 *=* | --[!k]*);; \
127 *k*) failcom='fail=yes';; \
128 esac; \
129 done; \
130 dot_seen=no; \
131 target=`echo $@ | sed s/-recursive//`; \
132 list='$(SUBDIRS)'; for subdir in $$list; do \
133 echo "Making $$target in $$subdir"; \
134 if test "$$subdir" = "."; then \
135 dot_seen=yes; \
136 local_target="$$target-am"; \
137 else \
138 local_target="$$target"; \
139 fi; \
140 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
141 || eval $$failcom; \
142 done; \
143 if test "$$dot_seen" = "no"; then \
144 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
145 fi; test -z "$$fail"
146
147 POTFILES = $(CFILES) $(DEBUG_SRCS) $(HFILES)
148 po/POTFILES.in: @MAINT@ Makefile
149 for f in $(POTFILES); do echo $$f; done | LC_COLLATE= sort > tmp \
150 && mv tmp $(srcdir)/po/POTFILES.in
151
152 EXPECT = expect
153 RUNTEST = runtest
154
155 CC_FOR_TARGET = ` \
156 if [ -f $$r/../gcc/xgcc ] ; then \
157 if [ -f $$r/../newlib/Makefile ] ; then \
158 echo $$r/../gcc/xgcc -B$$r/../gcc/ -idirafter $$r/../newlib/targ-include -idirafter $${srcroot}/../newlib/libc/include -nostdinc; \
159 else \
160 echo $$r/../gcc/xgcc -B$$r/../gcc/; \
161 fi; \
162 else \
163 if [ "@host@" = "@target@" ] ; then \
164 echo $(CC); \
165 else \
166 echo gcc | sed '$(transform)'; \
167 fi; \
168 fi`
169
170 check-DEJAGNU: site.exp
171 srcdir=`cd $(srcdir) && pwd`; export srcdir; \
172 r=`pwd`; export r; \
173 EXPECT=$(EXPECT); export EXPECT; \
174 runtest=$(RUNTEST); \
175 if $(SHELL) -c "$$runtest --version" > /dev/null 2>&1; then \
176 CC_FOR_TARGET="$(CC_FOR_TARGET)" CFLAGS_FOR_TARGET="$(CFLAGS)" \
177 $$runtest --tool $(DEJATOOL) --srcdir $${srcdir}/testsuite \
178 $(RUNTESTFLAGS); \
179 else echo "WARNING: could not find \`runtest'" 1>&2; :;\
180 fi
181
182 installcheck:
183 /bin/sh $(srcdir)/sanity.sh $(bindir)
184
185 # There's no global DEPENDENCIES. So, we must explicitly list everything
186 # which depends on libintl, since we don't know whether LIBINTL_DEP will be
187 # non-empty until configure time. Ugh!
188 size_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
189 objdump_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB) $(OPCODES)
190 nm_new_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
191 ar_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
192 strings_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
193 strip_new_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
194 ranlib_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
195 cxxfilt_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
196 objcopy_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
197 nlmconv_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
198 srconv_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
199 sysdump_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
200 coffdump_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
201 dlltool_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
202 windres_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
203 addr2line_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
204 readelf_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY)
205 dllwrap_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY)
206
207 LDADD = $(BFDLIB) $(LIBIBERTY) $(LIBINTL)
208
209 size_SOURCES = size.c $(BULIBS)
210
211 objcopy_SOURCES = objcopy.c not-strip.c rename.c $(WRITE_DEBUG_SRCS) $(BULIBS)
212
213 strings_SOURCES = strings.c $(BULIBS)
214
215 readelf_SOURCES = readelf.c version.c unwind-ia64.c dwarf.c
216 readelf_LDADD = $(LIBINTL) $(LIBIBERTY)
217
218 strip_new_SOURCES = objcopy.c is-strip.c rename.c $(WRITE_DEBUG_SRCS) $(BULIBS)
219
220 nm_new_SOURCES = nm.c budemang.c $(BULIBS)
221
222 objdump_SOURCES = objdump.c dwarf.c budemang.c prdbg.c $(DEBUG_SRCS) $(BULIBS)
223 objdump_LDADD = $(OPCODES) $(BFDLIB) $(LIBIBERTY) $(LIBINTL)
224
225 objdump.o:objdump.c
226 $(COMPILE) -c $(OBJDUMP_DEFS) $(srcdir)/objdump.c
227
228 cxxfilt_SOURCES = cxxfilt.c $(BULIBS)
229
230 ar_SOURCES = arparse.y arlex.l ar.c not-ranlib.c arsup.c rename.c binemul.c \
231 emul_$(EMULATION).c $(BULIBS)
232 ar_LDADD = $(BFDLIB) $(LIBIBERTY) @LEXLIB@ $(LIBINTL)
233
234 ranlib_SOURCES = ar.c is-ranlib.c arparse.y arlex.l arsup.c rename.c \
235 binemul.c emul_$(EMULATION).c $(BULIBS)
236 ranlib_LDADD = $(BFDLIB) $(LIBIBERTY) @LEXLIB@ $(LIBINTL)
237
238 addr2line_SOURCES = addr2line.c budemang.c $(BULIBS)
239
240 # The following is commented out for the conversion to automake.
241 # This rule creates a single binary that switches between ar and ranlib
242 # by looking at argv[0]. Use this kludge to save some disk space.
243 # However, you have to install things by hand.
244 # (That is after 'make install', replace the installed ranlib by a link to ar.)
245 # Alternatively, you can install ranlib.sh as ranlib.
246 # ar_with_ranlib: $(ADDL_DEPS) ar.o maybe-ranlib.o
247 # $(HLDENV) $(CC) $(HLDFLAGS) $(CFLAGS) $(LDFLAGS) -o $(AR_PROG) ar.o maybe-ranlib.o $(ADDL_LIBS) $(EXTRALIBS)
248 # -rm -f $(RANLIB_PROG)
249 # -ln $(AR_PROG) $(RANLIB_PROG)
250 #
251 # objcopy and strip in one binary that uses argv[0] to decide its action.
252 #
253 #objcopy_with_strip: $(ADDL_DEPS) objcopy.o maybe-strip.o
254 # $(HLDENV) $(CC) $(HLDFLAGS) $(CFLAGS) $(LDFLAGS) -o $(OBJCOPY_PROG) objcopy.o maybe-strip.o $(ADDL_LIBS) $(EXTRALIBS)
255 # -rm -f $(STRIP_PROG)
256 # -ln $(OBJCOPY_PROG) $(STRIP_PROG)
257
258 sysroff.c: sysinfo$(EXEEXT_FOR_BUILD) sysroff.info
259 ./sysinfo$(EXEEXT_FOR_BUILD) -c <$(srcdir)/sysroff.info >sysroff.c
260 ./sysinfo$(EXEEXT_FOR_BUILD) -i <$(srcdir)/sysroff.info >>sysroff.c
261 ./sysinfo$(EXEEXT_FOR_BUILD) -g <$(srcdir)/sysroff.info >>sysroff.c
262
263 sysroff.h: sysinfo$(EXEEXT_FOR_BUILD) sysroff.info
264 ./sysinfo$(EXEEXT_FOR_BUILD) -d <$(srcdir)/sysroff.info >sysroff.h
265
266 sysinfo$(EXEEXT_FOR_BUILD): sysinfo.o syslex.o
267 $(CC_FOR_BUILD) $(CFLAGS) $(LDFLAGS) -o $@ sysinfo.o syslex.o
268
269 syslex.o:
270 if [ -r syslex.c ]; then \
271 $(CC_FOR_BUILD) -c -I. $(AM_CFLAGS) $(CFLAGS) syslex.c -Wno-error ; \
272 else \
273 $(CC_FOR_BUILD) -c -I. -I$(srcdir) $(AM_CFLAGS) $(CFLAGS) $(srcdir)/syslex.c -Wno-error ;\
274 fi
275
276 sysinfo.o:
277 if [ -r sysinfo.c ]; then \
278 $(CC_FOR_BUILD) -c -I. $(AM_CFLAGS) $(CFLAGS) sysinfo.c -Wno-error ; \
279 else \
280 $(CC_FOR_BUILD) -c -I. $(AM_CFLAGS) $(CFLAGS) $(srcdir)/sysinfo.c -Wno-error ; \
281 fi
282
283 bin2c$(EXEEXT_FOR_BUILD):
284 $(CC_FOR_BUILD) -o $@ $(INCLUDES) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) $(srcdir)/bin2c.c $(srcdir)/version.c
285
286 embedspu: embedspu.sh
287 sed "s@^program_transform_name=@program_transform_name=$(program_transform_name)@" < $< > $@
288 chmod a+x $@
289
290 # We need these for parallel make.
291 arparse.h: arparse.c
292 defparse.h: defparse.c
293 nlmheader.h: nlmheader.c
294 rcparse.h: rcparse.c
295 sysinfo.h: sysinfo.c
296
297 # Disable -Werror, if it has been enabled, since old versions of bison/
298 # yacc will produce working code which contain compile time warnings.
299 arparse.o:
300 $(COMPILE) -c $< $(NO_WERROR)
301 arlex.o:
302 $(COMPILE) -c $< $(NO_WERROR)
303 sysroff.o:
304 $(COMPILE) -c $< $(NO_WERROR)
305 defparse.o:
306 $(COMPILE) -c $< $(NO_WERROR)
307 deflex.o:
308 $(COMPILE) -c $< $(NO_WERROR)
309 nlmheader.o:
310 $(COMPILE) -c $< $(NO_WERROR)
311 rcparse.o:
312 $(COMPILE) -c $< $(NO_WERROR)
313 rclex.o:
314 $(COMPILE) -c $< $(NO_WERROR)
315
316 srconv_SOURCES = srconv.c coffgrok.c $(BULIBS)
317
318 dlltool_SOURCES = dlltool.c defparse.y deflex.l $(BULIBS)
319 dlltool_LDADD = $(BFDLIB) $(LIBIBERTY) @LEXLIB@ $(LIBINTL)
320
321 dlltool.o:
322 $(COMPILE) -c $(DLLTOOL_DEFS) $(srcdir)/dlltool.c
323
324 rescoff.o:
325 $(COMPILE) -c $(DLLTOOL_DEFS) $(srcdir)/rescoff.c
326
327 coffdump_SOURCES = coffdump.c coffgrok.c $(BULIBS)
328
329 sysdump_SOURCES = sysdump.c $(BULIBS)
330
331 # coff/sym.h and coff/ecoff.h won't be found by the automatic dependency
332 # scripts, since they are only included conditionally.
333 nlmconv.o: nlmconv.c $(INCDIR)/coff/sym.h $(INCDIR)/coff/ecoff.h
334 ldname=`echo ld | sed '$(transform)'`; \
335 $(COMPILE) -c -DLD_NAME="\"$${ldname}\"" @NLMCONV_DEFS@ $(srcdir)/nlmconv.c
336
337 nlmconv_SOURCES = nlmconv.c nlmheader.y $(BULIBS)
338
339 windres_SOURCES = windres.c resrc.c rescoff.c resbin.c rcparse.y rclex.l \
340 winduni.c resres.c $(BULIBS)
341 windres_LDADD = $(BFDLIB) $(LIBIBERTY) @LEXLIB@ $(LIBINTL)
342
343 dllwrap_SOURCES = dllwrap.c version.c
344 dllwrap_LDADD = $(LIBIBERTY) $(LIBINTL)
345
346
347 EXTRA_DIST = arparse.c arparse.h arlex.c nlmheader.c sysinfo.c sysinfo.h \
348 syslex.c deflex.c defparse.h defparse.c rclex.c rcparse.h rcparse.c
349
350 diststuff: $(EXTRA_DIST) info
351 all: info
352
353 DISTCLEANFILES = sysroff.c sysroff.h site.exp site.bak
354
355 # Targets to rebuild dependencies in this Makefile.
356 # Have to get rid of DEP1 here so that "$?" later includes all of $(CFILES).
357 DEP: dep.sed $(CFILES) $(HFILES) $(GENERATED_CFILES) $(GENERATED_HFILES) config.h
358 rm -f DEP1
359 $(MAKE) MKDEP="$(MKDEP)" DEP1
360 sed -f dep.sed < DEP1 > DEPA
361 echo '# IF YOU PUT ANYTHING HERE IT WILL GO AWAY' >> DEPA
362 if grep ' /' DEPA > /dev/null 2> /dev/null; then \
363 echo 'make DEP failed!'; exit 1; \
364 else \
365 mv -f DEPA $@; \
366 fi
367
368 DEP1: $(CFILES) $(GENERATED_CFILES)
369 echo '# DO NOT DELETE THIS LINE -- mkdep uses it.' > DEP2
370 echo '# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.' >> DEP2
371 $(MKDEP) $(INCLUDES) $(CFLAGS) $? >> DEP2
372 mv -f DEP2 $@
373
374 dep.sed: dep-in.sed config.status
375 objdir=`pwd`; \
376 sed <$(srcdir)/dep-in.sed >dep.sed \
377 -e 's!@INCDIR@!$(INCDIR)!' \
378 -e 's!@BFDDIR@!$(BFDDIR)!' \
379 -e 's!@SRCDIR@!$(srcdir)!' \
380 -e "s!@OBJDIR@!$${objdir}!" \
381 -e 's!@TOPDIR@!'`echo $(srcdir) | sed -e s,/binutils$$,,`'!'
382
383 dep: DEP
384 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < Makefile > tmp-Makefile
385 cat DEP >> tmp-Makefile
386 $(SHELL) $(srcdir)/../move-if-change tmp-Makefile Makefile
387
388 dep-in: DEP
389 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.in > tmp-Makefile.in
390 cat DEP >> tmp-Makefile.in
391 $(SHELL) $(srcdir)/../move-if-change tmp-Makefile.in $(srcdir)/Makefile.in
392
393 dep-am: DEP
394 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.am > tmp-Makefile.am
395 cat DEP >> tmp-Makefile.am
396 $(SHELL) $(srcdir)/../move-if-change tmp-Makefile.am $(srcdir)/Makefile.am
397
398 .PHONY: dep dep-in dep-am
399
400 ###
401
402 MOSTLYCLEANFILES = sysinfo$(EXEEXT_FOR_BUILD) bin2c$(EXEEXT_FOR_BUILD) \
403 binutils.log binutils.sum abcdefgh*
404 mostlyclean-local:
405 -rm -rf tmpdir
406
407 CLEANFILES = dep.sed DEP DEPA DEP1 DEP2
408
409 .PHONY: install-exec-local
410
411 install-exec-local: install-binPROGRAMS $(bin_PROGRAMS) $(noinst_PROGRAMS)
412 @list='$(noinst_PROGRAMS)'; for p in $$list; do \
413 if test -f $$p; then \
414 echo " $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(bindir)/`echo $$p|sed -e 's/$(EXEEXT)$$//' -e 's/-new//' -e 's/cxxfilt/$(DEMANGLER_NAME)/'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \
415 $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed -e 's/$(EXEEXT)$$//' -e 's/-new//' -e 's/cxxfilt/$(DEMANGLER_NAME)/'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
416 else :; fi; \
417 done
418 $(mkinstalldirs) $(DESTDIR)$(tooldir)/bin
419 for i in $(TOOL_PROGS); do \
420 if [ -f $$i$(EXEEXT) ]; then \
421 j=`echo $$i | sed -e 's/-new//'`; \
422 k=`echo $$j | sed '$(transform)'`; \
423 if [ "$(bindir)/$$k" != "$(tooldir)/bin/$$j" ]; then \
424 rm -f $(DESTDIR)$(tooldir)/bin/$$j$(EXEEXT); \
425 ln $(DESTDIR)$(bindir)/$$k$(EXEEXT) $(DESTDIR)$(tooldir)/bin/$$j$(EXEEXT) >/dev/null 2>/dev/null \
426 || $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$i$(EXEEXT) $(DESTDIR)$(tooldir)/bin/$$j$(EXEEXT); \
427 fi; \
428 else true; \
429 fi; \
430 done
431
432 # What appears below is generated by a hacked mkdep using gcc -MM.
433
434 # DO NOT DELETE THIS LINE -- mkdep uses it.
435 # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
436 addr2line.o: addr2line.c config.h ../bfd/bfd.h $(INCDIR)/ansidecl.h \
437 $(INCDIR)/symcat.h $(INCDIR)/getopt.h $(INCDIR)/libiberty.h \
438 $(INCDIR)/ansidecl.h $(INCDIR)/demangle.h $(INCDIR)/libiberty.h \
439 bucomm.h $(INCDIR)/ansidecl.h $(INCDIR)/fopen-same.h \
440 budemang.h
441 ar.o: ar.c ../bfd/bfd.h $(INCDIR)/ansidecl.h $(INCDIR)/symcat.h \
442 $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h $(INCDIR)/progress.h \
443 bucomm.h $(INCDIR)/ansidecl.h config.h $(INCDIR)/fopen-same.h \
444 $(INCDIR)/aout/ar.h $(BFDDIR)/libbfd.h $(INCDIR)/hashtab.h \
445 arsup.h $(INCDIR)/filenames.h binemul.h
446 arsup.o: arsup.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
447 $(INCDIR)/symcat.h arsup.h $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \
448 bucomm.h $(INCDIR)/ansidecl.h config.h $(INCDIR)/fopen-same.h \
449 $(INCDIR)/filenames.h
450 bin2c.o: bin2c.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
451 $(INCDIR)/symcat.h bucomm.h $(INCDIR)/ansidecl.h config.h \
452 $(INCDIR)/fopen-same.h
453 binemul.o: binemul.c binemul.h ../bfd/bfd.h $(INCDIR)/ansidecl.h \
454 $(INCDIR)/symcat.h bucomm.h $(INCDIR)/ansidecl.h config.h \
455 $(INCDIR)/fopen-same.h
456 bucomm.o: bucomm.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
457 $(INCDIR)/symcat.h ../bfd/bfdver.h $(INCDIR)/libiberty.h \
458 $(INCDIR)/ansidecl.h bucomm.h $(INCDIR)/ansidecl.h \
459 config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \
460 $(BFDDIR)/libbfd.h $(INCDIR)/hashtab.h
461 budemang.o: budemang.c config.h ../bfd/bfd.h $(INCDIR)/ansidecl.h \
462 $(INCDIR)/symcat.h $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \
463 $(INCDIR)/demangle.h $(INCDIR)/libiberty.h budemang.h
464 coffdump.o: coffdump.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
465 $(INCDIR)/symcat.h $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \
466 coffgrok.h bucomm.h $(INCDIR)/ansidecl.h config.h $(INCDIR)/fopen-same.h
467 coffgrok.o: coffgrok.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
468 $(INCDIR)/symcat.h $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \
469 bucomm.h $(INCDIR)/ansidecl.h config.h $(INCDIR)/fopen-same.h \
470 $(INCDIR)/coff/internal.h $(BFDDIR)/libcoff.h $(INCDIR)/bfdlink.h \
471 coffgrok.h
472 cxxfilt.o: cxxfilt.c config.h ../bfd/bfd.h $(INCDIR)/ansidecl.h \
473 $(INCDIR)/symcat.h bucomm.h $(INCDIR)/ansidecl.h $(INCDIR)/fopen-same.h \
474 $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h $(INCDIR)/demangle.h \
475 $(INCDIR)/libiberty.h $(INCDIR)/safe-ctype.h
476 dwarf.o: dwarf.c dwarf.h ../bfd/bfd.h $(INCDIR)/ansidecl.h \
477 $(INCDIR)/symcat.h $(INCDIR)/elf/dwarf2.h bucomm.h \
478 $(INCDIR)/ansidecl.h config.h $(INCDIR)/fopen-same.h \
479 $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h
480 debug.o: debug.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
481 $(INCDIR)/symcat.h bucomm.h $(INCDIR)/ansidecl.h config.h \
482 $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \
483 debug.h
484 dlltool.o: dlltool.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
485 $(INCDIR)/symcat.h $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \
486 bucomm.h $(INCDIR)/ansidecl.h config.h $(INCDIR)/fopen-same.h \
487 $(INCDIR)/demangle.h $(INCDIR)/libiberty.h $(INCDIR)/dyn-string.h \
488 dlltool.h $(INCDIR)/safe-ctype.h
489 dllwrap.o: dllwrap.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
490 $(INCDIR)/symcat.h $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \
491 bucomm.h $(INCDIR)/ansidecl.h config.h $(INCDIR)/fopen-same.h \
492 $(INCDIR)/dyn-string.h
493 emul_aix.o: emul_aix.c binemul.h ../bfd/bfd.h $(INCDIR)/ansidecl.h \
494 $(INCDIR)/symcat.h bucomm.h $(INCDIR)/ansidecl.h config.h \
495 $(INCDIR)/fopen-same.h $(INCDIR)/bfdlink.h $(INCDIR)/coff/internal.h \
496 $(INCDIR)/coff/xcoff.h $(BFDDIR)/libcoff.h $(INCDIR)/bfdlink.h \
497 $(BFDDIR)/libxcoff.h
498 emul_vanilla.o: emul_vanilla.c binemul.h ../bfd/bfd.h \
499 $(INCDIR)/ansidecl.h $(INCDIR)/symcat.h bucomm.h $(INCDIR)/ansidecl.h \
500 config.h $(INCDIR)/fopen-same.h
501 filemode.o: filemode.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
502 $(INCDIR)/symcat.h bucomm.h $(INCDIR)/ansidecl.h config.h \
503 $(INCDIR)/fopen-same.h
504 ieee.o: ieee.c ../bfd/bfd.h $(INCDIR)/ansidecl.h $(INCDIR)/symcat.h \
505 $(INCDIR)/ieee.h bucomm.h $(INCDIR)/ansidecl.h config.h \
506 $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \
507 debug.h budbg.h $(INCDIR)/filenames.h
508 is-ranlib.o: is-ranlib.c
509 is-strip.o: is-strip.c
510 maybe-ranlib.o: maybe-ranlib.c
511 maybe-strip.o: maybe-strip.c
512 nlmconv.o: nlmconv.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
513 $(INCDIR)/symcat.h $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \
514 bucomm.h $(INCDIR)/ansidecl.h config.h $(INCDIR)/fopen-same.h \
515 $(INCDIR)/safe-ctype.h $(BFDDIR)/libnlm.h $(INCDIR)/nlm/common.h \
516 $(INCDIR)/nlm/internal.h $(INCDIR)/nlm/external.h nlmconv.h
517 nm.o: nm.c ../bfd/bfd.h $(INCDIR)/ansidecl.h $(INCDIR)/symcat.h \
518 $(INCDIR)/progress.h bucomm.h $(INCDIR)/ansidecl.h \
519 config.h $(INCDIR)/fopen-same.h budemang.h $(INCDIR)/aout/stab_gnu.h \
520 $(INCDIR)/aout/stab.def $(INCDIR)/aout/ranlib.h $(INCDIR)/demangle.h \
521 $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \
522 $(BFDDIR)/elf-bfd.h $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h \
523 $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h $(INCDIR)/elf/common.h
524 not-ranlib.o: not-ranlib.c
525 not-strip.o: not-strip.c
526 objcopy.o: objcopy.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
527 $(INCDIR)/symcat.h $(INCDIR)/progress.h bucomm.h $(INCDIR)/ansidecl.h \
528 config.h $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h \
529 $(INCDIR)/ansidecl.h budbg.h $(INCDIR)/filenames.h \
530 $(INCDIR)/fnmatch.h $(BFDDIR)/elf-bfd.h $(INCDIR)/elf/common.h \
531 $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h \
532 $(BFDDIR)/libbfd.h $(INCDIR)/hashtab.h
533 objdump.o: objdump.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
534 $(INCDIR)/symcat.h ../bfd/bfdver.h $(INCDIR)/progress.h \
535 bucomm.h $(INCDIR)/ansidecl.h config.h $(INCDIR)/fopen-same.h \
536 dwarf.h $(INCDIR)/elf/dwarf2.h budemang.h $(INCDIR)/safe-ctype.h \
537 $(INCDIR)/dis-asm.h ../bfd/bfd.h $(INCDIR)/libiberty.h \
538 $(INCDIR)/ansidecl.h $(INCDIR)/demangle.h $(INCDIR)/libiberty.h \
539 debug.h budbg.h $(INCDIR)/aout/aout64.h
540 prdbg.o: prdbg.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
541 $(INCDIR)/symcat.h bucomm.h $(INCDIR)/ansidecl.h config.h \
542 $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \
543 debug.h budbg.h
544 rdcoff.o: rdcoff.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
545 $(INCDIR)/symcat.h $(INCDIR)/coff/internal.h bucomm.h \
546 $(INCDIR)/ansidecl.h config.h $(INCDIR)/fopen-same.h \
547 $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h debug.h \
548 budbg.h $(BFDDIR)/libcoff.h $(INCDIR)/bfdlink.h
549 rddbg.o: rddbg.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
550 $(INCDIR)/symcat.h bucomm.h $(INCDIR)/ansidecl.h config.h \
551 $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \
552 debug.h budbg.h
553 readelf.o: readelf.c dwarf.h ../bfd/bfd.h $(INCDIR)/ansidecl.h \
554 $(INCDIR)/symcat.h $(INCDIR)/elf/dwarf2.h $(INCDIR)/elf/common.h \
555 $(INCDIR)/elf/external.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/h8.h \
556 $(INCDIR)/elf/reloc-macros.h $(INCDIR)/elf/alpha.h \
557 $(INCDIR)/elf/arc.h $(INCDIR)/elf/arm.h $(INCDIR)/elf/avr.h \
558 $(INCDIR)/elf/bfin.h $(INCDIR)/elf/cris.h $(INCDIR)/elf/crx.h \
559 $(INCDIR)/elf/d10v.h $(INCDIR)/elf/d30v.h $(INCDIR)/elf/dlx.h \
560 $(INCDIR)/elf/fr30.h $(INCDIR)/elf/frv.h $(INCDIR)/elf/hppa.h \
561 $(INCDIR)/elf/i386.h $(INCDIR)/elf/i370.h $(INCDIR)/elf/i860.h \
562 $(INCDIR)/elf/i960.h $(INCDIR)/elf/ia64.h $(INCDIR)/elf/ip2k.h \
563 $(INCDIR)/elf/iq2000.h $(INCDIR)/elf/m32c.h $(INCDIR)/elf/m32r.h \
564 $(INCDIR)/elf/m68k.h $(INCDIR)/elf/m68hc11.h $(INCDIR)/elf/mcore.h \
565 $(INCDIR)/elf/mep.h $(INCDIR)/elf/mips.h $(INCDIR)/elf/mmix.h \
566 $(INCDIR)/elf/mn10200.h $(INCDIR)/elf/mn10300.h $(INCDIR)/elf/mt.h \
567 $(INCDIR)/elf/msp430.h $(INCDIR)/elf/or32.h $(INCDIR)/elf/pj.h \
568 $(INCDIR)/elf/ppc.h $(INCDIR)/elf/ppc64.h $(INCDIR)/elf/s390.h \
569 $(INCDIR)/elf/score.h $(INCDIR)/elf/sh.h $(INCDIR)/elf/sparc.h \
570 $(INCDIR)/elf/spu.h $(INCDIR)/elf/v850.h $(INCDIR)/elf/vax.h \
571 $(INCDIR)/elf/x86-64.h $(INCDIR)/elf/xstormy16.h $(INCDIR)/elf/xtensa.h \
572 $(INCDIR)/aout/ar.h bucomm.h $(INCDIR)/ansidecl.h config.h \
573 $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \
574 unwind-ia64.h
575 rename.o: rename.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
576 $(INCDIR)/symcat.h bucomm.h $(INCDIR)/ansidecl.h config.h \
577 $(INCDIR)/fopen-same.h
578 resbin.o: resbin.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
579 $(INCDIR)/symcat.h bucomm.h $(INCDIR)/ansidecl.h config.h \
580 $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \
581 windres.h winduni.h
582 rescoff.o: rescoff.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
583 $(INCDIR)/symcat.h bucomm.h $(INCDIR)/ansidecl.h config.h \
584 $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \
585 windres.h winduni.h $(INCDIR)/coff/internal.h $(BFDDIR)/libcoff.h \
586 $(INCDIR)/bfdlink.h
587 resrc.o: resrc.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
588 $(INCDIR)/symcat.h bucomm.h $(INCDIR)/ansidecl.h config.h \
589 $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \
590 $(INCDIR)/safe-ctype.h windres.h winduni.h
591 resres.o: resres.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
592 $(INCDIR)/symcat.h bucomm.h $(INCDIR)/ansidecl.h config.h \
593 $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \
594 windres.h winduni.h
595 size.o: size.c ../bfd/bfd.h $(INCDIR)/ansidecl.h $(INCDIR)/symcat.h \
596 bucomm.h $(INCDIR)/ansidecl.h config.h $(INCDIR)/fopen-same.h \
597 $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h
598 srconv.o: srconv.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
599 $(INCDIR)/symcat.h bucomm.h $(INCDIR)/ansidecl.h config.h \
600 $(INCDIR)/fopen-same.h sysroff.h coffgrok.h $(INCDIR)/libiberty.h \
601 $(INCDIR)/ansidecl.h $(INCDIR)/coff/internal.h $(BFDDIR)/libcoff.h \
602 $(INCDIR)/bfdlink.h sysroff.c
603 stabs.o: stabs.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
604 $(INCDIR)/symcat.h bucomm.h $(INCDIR)/ansidecl.h config.h \
605 $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \
606 $(INCDIR)/safe-ctype.h $(INCDIR)/demangle.h $(INCDIR)/libiberty.h \
607 debug.h budbg.h $(INCDIR)/filenames.h $(INCDIR)/aout/aout64.h \
608 $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def
609 strings.o: strings.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
610 $(INCDIR)/symcat.h $(INCDIR)/getopt.h bucomm.h $(INCDIR)/ansidecl.h \
611 config.h $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h \
612 $(INCDIR)/ansidecl.h $(INCDIR)/safe-ctype.h
613 sysdump.o: sysdump.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
614 $(INCDIR)/symcat.h bucomm.h $(INCDIR)/ansidecl.h config.h \
615 $(INCDIR)/fopen-same.h $(INCDIR)/safe-ctype.h $(INCDIR)/libiberty.h \
616 $(INCDIR)/ansidecl.h sysroff.h sysroff.c $(INCDIR)/ansidecl.h
617 version.o: version.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
618 $(INCDIR)/symcat.h ../bfd/bfdver.h bucomm.h $(INCDIR)/ansidecl.h \
619 config.h $(INCDIR)/fopen-same.h
620 windres.o: windres.c config.h ../bfd/bfd.h $(INCDIR)/ansidecl.h \
621 $(INCDIR)/symcat.h bucomm.h $(INCDIR)/ansidecl.h $(INCDIR)/fopen-same.h \
622 $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h $(INCDIR)/safe-ctype.h \
623 $(INCDIR)/obstack.h windres.h winduni.h
624 winduni.o: winduni.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
625 $(INCDIR)/symcat.h bucomm.h $(INCDIR)/ansidecl.h config.h \
626 $(INCDIR)/fopen-same.h winduni.h $(INCDIR)/safe-ctype.h
627 wrstabs.o: wrstabs.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
628 $(INCDIR)/symcat.h bucomm.h $(INCDIR)/ansidecl.h config.h \
629 $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \
630 $(INCDIR)/safe-ctype.h debug.h budbg.h $(INCDIR)/aout/aout64.h \
631 $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def
632 arparse.o: arparse.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
633 $(INCDIR)/symcat.h bucomm.h $(INCDIR)/ansidecl.h config.h \
634 $(INCDIR)/fopen-same.h arsup.h
635 arlex.o: arlex.c $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \
636 $(INCDIR)/ansidecl.h arparse.h
637 sysroff.o: sysroff.c
638 sysinfo.o: sysinfo.c
639 syslex.o: syslex.c config.h sysinfo.h
640 defparse.o: defparse.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
641 $(INCDIR)/symcat.h bucomm.h $(INCDIR)/ansidecl.h config.h \
642 $(INCDIR)/fopen-same.h dlltool.h
643 deflex.o: deflex.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \
644 defparse.h dlltool.h $(INCDIR)/ansidecl.h
645 nlmheader.o: nlmheader.c $(INCDIR)/ansidecl.h $(INCDIR)/safe-ctype.h \
646 ../bfd/bfd.h $(INCDIR)/ansidecl.h $(INCDIR)/symcat.h \
647 bucomm.h $(INCDIR)/ansidecl.h config.h $(INCDIR)/fopen-same.h \
648 $(INCDIR)/nlm/common.h $(INCDIR)/nlm/internal.h nlmconv.h
649 rcparse.o: rcparse.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
650 $(INCDIR)/symcat.h bucomm.h $(INCDIR)/ansidecl.h config.h \
651 $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \
652 windres.h winduni.h $(INCDIR)/safe-ctype.h
653 rclex.o: rclex.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
654 $(INCDIR)/symcat.h bucomm.h $(INCDIR)/ansidecl.h config.h \
655 $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \
656 $(INCDIR)/safe-ctype.h windres.h winduni.h rcparse.h
657 # IF YOU PUT ANYTHING HERE IT WILL GO AWAY