Commit | Line | Data |
---|---|---|
252b5132 RH |
1 | ## Process this file with automake to generate Makefile.in |
2 | ||
3 | ## FIXME: Work around apparent bug in automake. | |
4 | INTLLIBS = @INTLLIBS@ | |
5 | ||
6 | AUTOMAKE_OPTIONS = cygnus dejagnu | |
7 | ||
c45021f2 | 8 | SUBDIRS = doc po |
252b5132 RH |
9 | |
10 | tooldir = $(exec_prefix)/$(target_alias) | |
11 | ||
12 | ## These aren't set by automake, because they appear in | |
13 | ## bfd/acinclude.m4, which is included by binutils/acinclude.m4, and | |
14 | ## thus is not seen by automake. | |
15 | CC_FOR_BUILD = @CC_FOR_BUILD@ | |
16 | EXEEXT_FOR_BUILD = @EXEEXT_FOR_BUILD@ | |
17 | ||
7a7b06ef | 18 | YACC = `if [ -f ../bison/bison ]; then echo ../bison/bison -y -L$(srcdir)/../bison/; else echo @YACC@; fi` |
252b5132 | 19 | YFLAGS = -d |
7a7b06ef | 20 | LEX = `if [ -f ../flex/flex ]; then echo ../flex/flex; else echo @LEX@; fi` |
252b5132 | 21 | |
a2d91340 AC |
22 | WARN_CFLAGS = @WARN_CFLAGS@ |
23 | AM_CFLAGS = $(WARN_CFLAGS) | |
24 | ||
252b5132 RH |
25 | # these two are almost the same program |
26 | AR_PROG=ar | |
27 | RANLIB_PROG=ranlib | |
28 | ||
29 | # objcopy and strip should be the same program | |
30 | OBJCOPY_PROG=objcopy | |
31 | STRIP_PROG=strip-new | |
32 | ||
33 | STRINGS_PROG=strings | |
34 | ||
35 | READELF_PROG=readelf | |
36 | ||
37 | # These should all be the same program too. | |
38 | SIZE_PROG=size | |
39 | NM_PROG=nm-new | |
40 | OBJDUMP_PROG=objdump | |
41 | ||
42 | # This is the demangler, as a standalone program. | |
43 | # Note: This one is used as the installed name too, unlike the above. | |
8a965946 | 44 | DEMANGLER_PROG=cxxfilt |
252b5132 RH |
45 | |
46 | ADDR2LINE_PROG=addr2line | |
47 | ||
48 | NLMCONV_PROG=nlmconv | |
49 | DLLTOOL_PROG=dlltool | |
50 | WINDRES_PROG=windres | |
51 | DLLWRAP_PROG=dllwrap | |
52 | ||
53 | SRCONV_PROG=srconv$(EXEEXT) sysdump$(EXEEXT) coffdump$(EXEEXT) | |
54 | ||
252b5132 RH |
55 | 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@ |
56 | ||
8a965946 | 57 | 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_MISC@ |
252b5132 | 58 | |
8a965946 ILT |
59 | ## We need a special rule to install the programs which are built with |
60 | ## -new, and to rename cxxfilt to c++filt. | |
61 | noinst_PROGRAMS = $(NM_PROG) $(STRIP_PROG) $(DEMANGLER_PROG) | |
252b5132 RH |
62 | |
63 | EXTRA_PROGRAMS = $(NLMCONV_PROG) srconv sysdump coffdump $(DLLTOOL_PROG) $(WINDRES_PROG) $(DLLWRAP_PROG) | |
64 | ||
eb1e0e80 | 65 | # Stuff that goes in tooldir/ if appropriate. |
252b5132 RH |
66 | TOOL_PROGS = nm-new strip-new ar ranlib dlltool |
67 | ||
68 | BASEDIR = $(srcdir)/.. | |
69 | BFDDIR = $(BASEDIR)/bfd | |
70 | INCDIR = $(BASEDIR)/include | |
71 | ||
41b49281 | 72 | MKDEP = gcc -MM |
252b5132 | 73 | |
eb1e0e80 NC |
74 | INCLUDES = -D_GNU_SOURCE \ |
75 | -I. -I$(srcdir) -I../bfd -I$(BFDDIR) -I$(INCDIR) \ | |
76 | @HDEFINES@ \ | |
77 | -I$(srcdir)/../intl -I../intl \ | |
78 | -DLOCALEDIR="\"$(prefix)/share/locale\"" \ | |
79 | -Dbin_dummy_emulation=$(EMULATION_VECTOR) | |
252b5132 RH |
80 | |
81 | HFILES = arsup.h bucomm.h budbg.h coffgrok.h debug.h nlmconv.h dlltool.h \ | |
eb1e0e80 | 82 | windres.h winduni.h binemul.h |
252b5132 | 83 | |
41b49281 | 84 | GENERATED_HFILES = arparse.h sysroff.h sysinfo.h defparse.h rcparse.h |
252b5132 RH |
85 | |
86 | CFILES = addr2line.c ar.c arsup.c bucomm.c coffdump.c coffgrok.c debug.c \ | |
87 | dlltool.c filemode.c ieee.c is-ranlib.c is-strip.c maybe-ranlib.c \ | |
88 | maybe-strip.c nlmconv.c nm.c not-ranlib.c not-strip.c \ | |
89 | objcopy.c objdump.c prdbg.c rdcoff.c rddbg.c size.c srconv.c \ | |
90 | stabs.c strings.c sysdump.c version.c wrstabs.c \ | |
91 | windres.c resrc.c rescoff.c resbin.c winduni.c readelf.c \ | |
eb1e0e80 | 92 | resres.c dllwrap.c rename.c binemul.c emul_$(EMULATION).c |
252b5132 RH |
93 | |
94 | GENERATED_CFILES = \ | |
95 | underscore.c arparse.c arlex.c sysroff.c sysinfo.c syslex.c \ | |
96 | defparse.c deflex.c nlmheader.c rcparse.c rclex.c | |
97 | ||
98 | DEBUG_SRCS = rddbg.c debug.c stabs.c ieee.c rdcoff.c | |
99 | WRITE_DEBUG_SRCS = $(DEBUG_SRCS) wrstabs.c | |
100 | ||
101 | # Code shared by all the binutils. | |
102 | BULIBS = bucomm.c version.c filemode.c | |
103 | ||
104 | BFDLIB = ../bfd/libbfd.la | |
105 | ||
106 | OPCODES = ../opcodes/libopcodes.la | |
107 | ||
108 | LIBIBERTY = ../libiberty/libiberty.a | |
109 | ||
110 | POTFILES = $(CFILES) $(DEBUG_SRCS) $(HFILES) | |
111 | po/POTFILES.in: @MAINT@ Makefile | |
112 | for file in $(POTFILES); do echo $$file; done | sort > tmp \ | |
113 | && mv tmp $(srcdir)/po/POTFILES.in | |
114 | ||
115 | EXPECT = `if [ -f $$r/../expect/expect ] ; then \ | |
116 | echo $$r/../expect/expect ; \ | |
117 | else echo expect ; fi` | |
118 | RUNTEST = `if [ -f ${srcdir}/../dejagnu/runtest ] ; then \ | |
119 | echo ${srcdir}/../dejagnu/runtest ; \ | |
120 | else echo runtest ; fi` | |
121 | ||
122 | CC_FOR_TARGET = ` \ | |
123 | if [ -f $$r/../gcc/xgcc ] ; then \ | |
124 | if [ -f $$r/../newlib/Makefile ] ; then \ | |
125 | echo $$r/../gcc/xgcc -B$$r/../gcc/ -idirafter $$r/../newlib/targ-include -idirafter $${srcroot}/../newlib/libc/include -nostdinc; \ | |
126 | else \ | |
127 | echo $$r/../gcc/xgcc -B$$r/../gcc/; \ | |
128 | fi; \ | |
129 | else \ | |
130 | if [ "@host@" = "@target@" ] ; then \ | |
131 | echo $(CC); \ | |
132 | else \ | |
133 | echo gcc | sed '$(transform)'; \ | |
134 | fi; \ | |
135 | fi` | |
136 | ||
137 | check-DEJAGNU: site.exp | |
138 | srcdir=`cd $(srcdir) && pwd`; export srcdir; \ | |
139 | r=`pwd`; export r; \ | |
140 | EXPECT=$(EXPECT); export EXPECT; \ | |
141 | if [ -f $(top_builddir)/../expect/expect ]; then \ | |
142 | TCL_LIBRARY=`cd $(top_srcdir)/../tcl/library && pwd`; \ | |
143 | export TCL_LIBRARY; \ | |
144 | fi; \ | |
145 | runtest=$(RUNTEST); \ | |
146 | if $(SHELL) -c "$$runtest --version" > /dev/null 2>&1; then \ | |
16474668 NC |
147 | CC_FOR_TARGET="$(CC_FOR_TARGET)" CFLAGS_FOR_TARGET="$(CFLAGS)" \ |
148 | $$runtest --tool $(DEJATOOL) --srcdir $${srcdir}/testsuite \ | |
149 | $(RUNTESTFLAGS); \ | |
252b5132 RH |
150 | else echo "WARNING: could not find \`runtest'" 1>&2; :;\ |
151 | fi | |
152 | ||
153 | installcheck: | |
154 | /bin/sh $(srcdir)/sanity.sh $(bindir) | |
155 | ||
252b5132 RH |
156 | LDADD = $(BFDLIB) $(LIBIBERTY) $(INTLLIBS) |
157 | ||
158 | size_SOURCES = size.c $(BULIBS) | |
159 | ||
160 | objcopy_SOURCES = objcopy.c not-strip.c rename.c $(WRITE_DEBUG_SRCS) $(BULIBS) | |
161 | ||
162 | strings_SOURCES = strings.c $(BULIBS) | |
163 | ||
4d6ed7c8 | 164 | readelf_SOURCES = readelf.c version.c unwind-ia64.c |
252b5132 RH |
165 | readelf_LDADD = $(INTLLIBS) $(LIBIBERTY) |
166 | ||
167 | strip_new_SOURCES = objcopy.c is-strip.c rename.c $(WRITE_DEBUG_SRCS) $(BULIBS) | |
168 | ||
169 | nm_new_SOURCES = nm.c $(BULIBS) | |
170 | ||
171 | objdump_SOURCES = objdump.c prdbg.c $(DEBUG_SRCS) $(BULIBS) | |
172 | objdump_LDADD = $(OPCODES) $(BFDLIB) $(LIBIBERTY) $(INTLLIBS) | |
173 | ||
8b1e6df3 NC |
174 | objdump.o:objdump.c |
175 | $(COMPILE) -c $(OBJDUMP_DEFS) $(srcdir)/objdump.c | |
176 | ||
252b5132 RH |
177 | underscore.c: stamp-under ; @true |
178 | ||
179 | stamp-under: Makefile | |
180 | echo '/*WARNING: This file is automatically generated!*/' >underscore.t | |
181 | echo "int prepends_underscore = @UNDERSCORE@;" >>underscore.t | |
182 | $(SHELL) $(srcdir)/../move-if-change underscore.t underscore.c | |
183 | touch stamp-under | |
184 | ||
6a8c2b0d | 185 | cplus-dem.o: $(BASEDIR)/libiberty/cplus-dem.c $(INCDIR)/getopt.h Makefile |
252b5132 RH |
186 | $(COMPILE) -c -DMAIN -DVERSION='"$(VERSION)"' $(BASEDIR)/libiberty/cplus-dem.c |
187 | ||
8a965946 ILT |
188 | cxxfilt_SOURCES = |
189 | cxxfilt_LDADD = cplus-dem.o underscore.o $(LIBIBERTY) $(INTLLIBS) | |
252b5132 | 190 | |
eb1e0e80 NC |
191 | ar_SOURCES = arparse.y arlex.l ar.c not-ranlib.c arsup.c rename.c binemul.c \ |
192 | emul_$(EMULATION).c $(BULIBS) | |
252b5132 RH |
193 | ar_LDADD = $(BFDLIB) $(LIBIBERTY) @LEXLIB@ $(INTLLIBS) |
194 | ||
eb1e0e80 NC |
195 | ranlib_SOURCES = ar.c is-ranlib.c arparse.y arlex.l arsup.c rename.c \ |
196 | binemul.c emul_$(EMULATION).c $(BULIBS) | |
252b5132 RH |
197 | ranlib_LDADD = $(BFDLIB) $(LIBIBERTY) @LEXLIB@ $(INTLLIBS) |
198 | ||
199 | addr2line_SOURCES = addr2line.c $(BULIBS) | |
200 | ||
41b49281 | 201 | # The following is commented out for the conversion to automake. |
252b5132 RH |
202 | # This rule creates a single binary that switches between ar and ranlib |
203 | # by looking at argv[0]. Use this kludge to save some disk space. | |
204 | # However, you have to install things by hand. | |
205 | # (That is after 'make install', replace the installed ranlib by a link to ar.) | |
206 | # Alternatively, you can install ranlib.sh as ranlib. | |
207 | # ar_with_ranlib: $(ADDL_DEPS) ar.o maybe-ranlib.o | |
208 | # $(HLDENV) $(CC) $(HLDFLAGS) $(CFLAGS) $(LDFLAGS) -o $(AR_PROG) ar.o maybe-ranlib.o $(ADDL_LIBS) $(EXTRALIBS) | |
209 | # -rm -f $(RANLIB_PROG) | |
210 | # -ln $(AR_PROG) $(RANLIB_PROG) | |
211 | # | |
212 | # objcopy and strip in one binary that uses argv[0] to decide its action. | |
213 | # | |
214 | #objcopy_with_strip: $(ADDL_DEPS) objcopy.o maybe-strip.o | |
215 | # $(HLDENV) $(CC) $(HLDFLAGS) $(CFLAGS) $(LDFLAGS) -o $(OBJCOPY_PROG) objcopy.o maybe-strip.o $(ADDL_LIBS) $(EXTRALIBS) | |
216 | # -rm -f $(STRIP_PROG) | |
217 | # -ln $(OBJCOPY_PROG) $(STRIP_PROG) | |
218 | ||
219 | sysroff.c: sysinfo$(EXEEXT_FOR_BUILD) sysroff.info | |
220 | ./sysinfo$(EXEEXT_FOR_BUILD) -c <$(srcdir)/sysroff.info >sysroff.c | |
221 | ./sysinfo$(EXEEXT_FOR_BUILD) -i <$(srcdir)/sysroff.info >>sysroff.c | |
222 | ./sysinfo$(EXEEXT_FOR_BUILD) -g <$(srcdir)/sysroff.info >>sysroff.c | |
223 | ||
224 | sysroff.h: sysinfo$(EXEEXT_FOR_BUILD) sysroff.info | |
225 | ./sysinfo$(EXEEXT_FOR_BUILD) -d <$(srcdir)/sysroff.info >sysroff.h | |
226 | ||
227 | sysinfo$(EXEEXT_FOR_BUILD): sysinfo.o syslex.o | |
228 | $(CC_FOR_BUILD) $(CFLAGS) $(LDFLAGS) -o $@ sysinfo.o syslex.o | |
229 | ||
230 | syslex.o: syslex.c sysinfo.h | |
231 | if [ -r syslex.c ]; then \ | |
232 | $(CC_FOR_BUILD) -c -I. $(CFLAGS) syslex.c ; \ | |
233 | else \ | |
234 | $(CC_FOR_BUILD) -c -I. -I$(srcdir) $(CFLAGS) $(srcdir)/syslex.c ;\ | |
235 | fi | |
236 | ||
237 | sysinfo.o: sysinfo.c | |
238 | if [ -r sysinfo.c ]; then \ | |
239 | $(CC_FOR_BUILD) -c -I. $(CFLAGS) sysinfo.c ; \ | |
240 | else \ | |
241 | $(CC_FOR_BUILD) -c -I. $(CFLAGS) $(srcdir)/sysinfo.c ; \ | |
242 | fi | |
243 | ||
41b49281 AM |
244 | # We need these for parallel make. |
245 | arparse.h: arparse.c | |
246 | defparse.h: defparse.c | |
247 | nlmheader.h: nlmheader.c | |
248 | rcparse.h: rcparse.c | |
249 | sysinfo.h: sysinfo.c | |
250 | ||
252b5132 RH |
251 | srconv_SOURCES = srconv.c coffgrok.c $(BULIBS) |
252 | ||
0724d64b | 253 | dlltool_SOURCES = dlltool.c defparse.y deflex.l $(BULIBS) |
252b5132 RH |
254 | dlltool_LDADD = $(BFDLIB) $(LIBIBERTY) @LEXLIB@ $(INTLLIBS) |
255 | ||
256 | dlltool.o:dlltool.c | |
257 | $(COMPILE) -c $(DLLTOOL_DEFS) $(srcdir)/dlltool.c | |
258 | ||
09cda596 DD |
259 | rescoff.o:rescoff.c |
260 | $(COMPILE) -c $(DLLTOOL_DEFS) $(srcdir)/rescoff.c | |
261 | ||
252b5132 RH |
262 | coffdump_SOURCES = coffdump.c coffgrok.c $(BULIBS) |
263 | ||
264 | sysdump_SOURCES = sysdump.c $(BULIBS) | |
265 | ||
266 | # coff/sym.h and coff/ecoff.h won't be found by the automatic dependency | |
267 | # scripts, since they are only included conditionally. | |
268 | nlmconv.o: nlmconv.c $(INCDIR)/coff/sym.h $(INCDIR)/coff/ecoff.h | |
269 | ldname=`echo ld | sed '$(transform)'`; \ | |
270 | $(COMPILE) -c -DLD_NAME="\"$${ldname}\"" @NLMCONV_DEFS@ $(srcdir)/nlmconv.c | |
271 | ||
272 | nlmconv_SOURCES = nlmconv.c nlmheader.y $(BULIBS) | |
273 | ||
274 | windres_SOURCES = windres.c resrc.c rescoff.c resbin.c rcparse.y rclex.l \ | |
275 | winduni.c resres.c $(BULIBS) | |
276 | windres_LDADD = $(BFDLIB) $(LIBIBERTY) @LEXLIB@ $(INTLLIBS) | |
277 | ||
0724d64b | 278 | dllwrap_SOURCES = dllwrap.c version.c |
bb0cb4db | 279 | dllwrap_LDADD = $(LIBIBERTY) $(INTLLIBS) |
252b5132 RH |
280 | |
281 | ||
c45021f2 | 282 | EXTRA_DIST = arparse.c arparse.h arlex.c nlmheader.c sysinfo.c sysinfo.h \ |
252b5132 RH |
283 | syslex.c deflex.c defparse.h defparse.c rclex.c rcparse.h rcparse.c |
284 | ||
c45021f2 | 285 | diststuff: $(EXTRA_DIST) info |
252b5132 RH |
286 | |
287 | DISTCLEANFILES = stamp-under sysinfo underscore.c sysroff.c sysroff.h \ | |
288 | site.exp site.bak | |
289 | ||
6a8c2b0d AM |
290 | Makefile: $(BFDDIR)/configure.in |
291 | ||
252b5132 | 292 | # Targets to rebuild dependencies in this Makefile. |
c278c150 ILT |
293 | # Have to get rid of DEP1 here so that "$?" later includes all of $(CFILES). |
294 | DEP: dep.sed $(CFILES) $(HFILES) $(GENERATED_CFILES) $(GENERATED_HFILES) config.h | |
295 | rm -f DEP1 | |
41b49281 | 296 | $(MAKE) MKDEP="$(MKDEP)" DEP1 |
0bdaf48b AM |
297 | sed -f dep.sed < DEP1 > DEPA |
298 | echo '# IF YOU PUT ANYTHING HERE IT WILL GO AWAY' >> DEPA | |
299 | if grep ' /' DEPA > /dev/null 2> /dev/null; then \ | |
6d5be915 AM |
300 | echo 'make DEP failed!'; exit 1; \ |
301 | else \ | |
0bdaf48b | 302 | mv -f DEPA $@; \ |
6d5be915 | 303 | fi |
252b5132 | 304 | |
c278c150 | 305 | DEP1: $(CFILES) $(GENERATED_CFILES) |
c278c150 | 306 | echo '# DO NOT DELETE THIS LINE -- mkdep uses it.' > DEP2 |
41b49281 AM |
307 | echo '# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.' >> DEP2 |
308 | $(MKDEP) $(INCLUDES) $(CFLAGS) $? >> DEP2 | |
309 | mv -f DEP2 $@ | |
252b5132 RH |
310 | |
311 | dep.sed: dep-in.sed config.status | |
312 | objdir=`pwd`; \ | |
313 | sed <$(srcdir)/dep-in.sed >dep.sed \ | |
314 | -e 's!@INCDIR@!$(INCDIR)!' \ | |
315 | -e 's!@BFDDIR@!$(BFDDIR)!' \ | |
316 | -e 's!@SRCDIR@!$(srcdir)!' \ | |
317 | -e "s!@OBJDIR@!$${objdir}!" | |
318 | ||
c278c150 | 319 | dep: DEP |
252b5132 | 320 | sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < Makefile > tmp-Makefile |
c278c150 | 321 | cat DEP >> tmp-Makefile |
252b5132 RH |
322 | $(SHELL) $(srcdir)/../move-if-change tmp-Makefile Makefile |
323 | ||
c278c150 | 324 | dep-in: DEP |
252b5132 | 325 | sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.in > tmp-Makefile.in |
c278c150 | 326 | cat DEP >> tmp-Makefile.in |
252b5132 RH |
327 | $(SHELL) $(srcdir)/../move-if-change tmp-Makefile.in $(srcdir)/Makefile.in |
328 | ||
c278c150 | 329 | dep-am: DEP |
252b5132 | 330 | sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.am > tmp-Makefile.am |
c278c150 | 331 | cat DEP >> tmp-Makefile.am |
252b5132 RH |
332 | $(SHELL) $(srcdir)/../move-if-change tmp-Makefile.am $(srcdir)/Makefile.am |
333 | ||
334 | .PHONY: dep dep-in dep-am | |
335 | ||
336 | ### | |
c45021f2 NC |
337 | |
338 | MOSTLYCLEANFILES = sysinfo binutils.log binutils.sum abcdefgh* | |
252b5132 RH |
339 | mostlyclean-local: |
340 | -rm -rf tmpdir | |
341 | ||
0bdaf48b | 342 | CLEANFILES = dep.sed DEP DEPA DEP1 DEP2 |
252b5132 RH |
343 | |
344 | .PHONY: install-exec-local | |
345 | ||
9c28aef3 | 346 | install-exec-local: install-binPROGRAMS $(bin_PROGRAMS) $(noinst_PROGRAMS) |
252b5132 RH |
347 | @list='$(noinst_PROGRAMS)'; for p in $$list; do \ |
348 | if test -f $$p; then \ | |
8a965946 ILT |
349 | 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)/'`"; \ |
350 | $(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)/'`; \ | |
252b5132 RH |
351 | else :; fi; \ |
352 | done | |
353 | $(mkinstalldirs) $(tooldir)/bin | |
354 | for i in $(TOOL_PROGS); do \ | |
355 | if [ -f $$i$(EXEEXT) ]; then \ | |
356 | j=`echo $$i | sed -e 's/-new//'`; \ | |
357 | k=`echo $$j | sed '$(transform)'`; \ | |
358 | if [ "$(bindir)/$$k$(EXEEXT)" != "$(tooldir)/bin/$$j$(EXEEXT)" ]; then \ | |
359 | rm -f $(tooldir)/bin/$$j$(EXEEXT); \ | |
360 | ln $(bindir)/$$k$(EXEEXT) $(tooldir)/bin/$$j$(EXEEXT) >/dev/null 2>/dev/null \ | |
361 | || $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$i$(EXEEXT) $(tooldir)/bin/$$j$(EXEEXT); \ | |
362 | fi; \ | |
363 | else true; \ | |
364 | fi; \ | |
365 | done | |
366 | ||
367 | # What appears below is generated by a hacked mkdep using gcc -MM. | |
368 | ||
369 | # DO NOT DELETE THIS LINE -- mkdep uses it. | |
370 | # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. | |
252b5132 | 371 | addr2line.o: addr2line.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ |
6a8c2b0d AM |
372 | $(INCDIR)/symcat.h $(INCDIR)/getopt.h $(INCDIR)/libiberty.h \ |
373 | $(INCDIR)/demangle.h bucomm.h config.h $(INCDIR)/bin-bugs.h \ | |
374 | $(INCDIR)/fopen-same.h | |
375 | ar.o: ar.c ../bfd/bfd.h $(INCDIR)/ansidecl.h $(INCDIR)/symcat.h \ | |
376 | $(INCDIR)/libiberty.h $(INCDIR)/progress.h bucomm.h \ | |
377 | config.h $(INCDIR)/bin-bugs.h $(INCDIR)/fopen-same.h \ | |
1ea788ee AM |
378 | $(INCDIR)/aout/ar.h $(BFDDIR)/libbfd.h arsup.h $(INCDIR)/filenames.h \ |
379 | binemul.h | |
252b5132 | 380 | arsup.o: arsup.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ |
6a8c2b0d AM |
381 | $(INCDIR)/symcat.h arsup.h $(INCDIR)/libiberty.h bucomm.h \ |
382 | config.h $(INCDIR)/bin-bugs.h $(INCDIR)/fopen-same.h \ | |
383 | $(INCDIR)/filenames.h | |
252b5132 | 384 | bucomm.o: bucomm.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ |
6a8c2b0d AM |
385 | $(INCDIR)/symcat.h $(INCDIR)/libiberty.h bucomm.h config.h \ |
386 | $(INCDIR)/bin-bugs.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h | |
41b49281 AM |
387 | coffdump.o: coffdump.c coffgrok.h bucomm.h config.h \ |
388 | $(INCDIR)/bin-bugs.h $(INCDIR)/fopen-same.h | |
389 | coffgrok.o: coffgrok.c bucomm.h config.h $(INCDIR)/bin-bugs.h \ | |
390 | $(INCDIR)/fopen-same.h $(INCDIR)/coff/internal.h $(BFDDIR)/libcoff.h \ | |
391 | $(INCDIR)/bfdlink.h coffgrok.h | |
252b5132 | 392 | debug.o: debug.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ |
6a8c2b0d AM |
393 | $(INCDIR)/symcat.h bucomm.h config.h $(INCDIR)/bin-bugs.h \ |
394 | $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h debug.h | |
252b5132 | 395 | dlltool.o: dlltool.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ |
6a8c2b0d AM |
396 | $(INCDIR)/symcat.h $(INCDIR)/libiberty.h bucomm.h config.h \ |
397 | $(INCDIR)/bin-bugs.h $(INCDIR)/fopen-same.h $(INCDIR)/demangle.h \ | |
398 | $(INCDIR)/dyn-string.h dlltool.h $(INCDIR)/safe-ctype.h | |
252b5132 | 399 | filemode.o: filemode.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ |
6a8c2b0d AM |
400 | $(INCDIR)/symcat.h bucomm.h config.h $(INCDIR)/bin-bugs.h \ |
401 | $(INCDIR)/fopen-same.h | |
402 | ieee.o: ieee.c ../bfd/bfd.h $(INCDIR)/ansidecl.h $(INCDIR)/symcat.h \ | |
403 | $(INCDIR)/ieee.h bucomm.h config.h $(INCDIR)/bin-bugs.h \ | |
404 | $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h debug.h \ | |
405 | budbg.h $(INCDIR)/filenames.h | |
252b5132 RH |
406 | is-ranlib.o: is-ranlib.c |
407 | is-strip.o: is-strip.c | |
408 | maybe-ranlib.o: maybe-ranlib.c | |
409 | maybe-strip.o: maybe-strip.c | |
410 | nlmconv.o: nlmconv.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ | |
6a8c2b0d AM |
411 | $(INCDIR)/symcat.h $(INCDIR)/libiberty.h bucomm.h config.h \ |
412 | $(INCDIR)/bin-bugs.h $(INCDIR)/fopen-same.h $(INCDIR)/safe-ctype.h \ | |
413 | $(BFDDIR)/libnlm.h $(INCDIR)/nlm/common.h $(INCDIR)/nlm/internal.h \ | |
414 | $(INCDIR)/nlm/external.h nlmconv.h | |
415 | nm.o: nm.c ../bfd/bfd.h $(INCDIR)/ansidecl.h $(INCDIR)/symcat.h \ | |
416 | $(INCDIR)/progress.h bucomm.h config.h $(INCDIR)/bin-bugs.h \ | |
417 | $(INCDIR)/fopen-same.h $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def \ | |
418 | $(INCDIR)/aout/ranlib.h $(INCDIR)/demangle.h $(INCDIR)/libiberty.h | |
252b5132 RH |
419 | not-ranlib.o: not-ranlib.c |
420 | not-strip.o: not-strip.c | |
421 | objcopy.o: objcopy.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ | |
6a8c2b0d AM |
422 | $(INCDIR)/symcat.h $(INCDIR)/progress.h bucomm.h config.h \ |
423 | $(INCDIR)/bin-bugs.h $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h \ | |
424 | budbg.h $(INCDIR)/filenames.h | |
252b5132 | 425 | objdump.o: objdump.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ |
ba323545 AM |
426 | $(INCDIR)/symcat.h $(INCDIR)/progress.h bucomm.h config.h \ |
427 | $(INCDIR)/bin-bugs.h $(INCDIR)/fopen-same.h $(INCDIR)/safe-ctype.h \ | |
428 | $(INCDIR)/dis-asm.h $(INCDIR)/libiberty.h $(INCDIR)/demangle.h \ | |
429 | debug.h budbg.h $(INCDIR)/aout/aout64.h | |
6a8c2b0d AM |
430 | prdbg.o: prdbg.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ |
431 | $(INCDIR)/symcat.h bucomm.h config.h $(INCDIR)/bin-bugs.h \ | |
432 | $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h debug.h \ | |
433 | budbg.h | |
252b5132 | 434 | rdcoff.o: rdcoff.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ |
6a8c2b0d AM |
435 | $(INCDIR)/symcat.h $(INCDIR)/coff/internal.h bucomm.h \ |
436 | config.h $(INCDIR)/bin-bugs.h $(INCDIR)/fopen-same.h \ | |
437 | $(INCDIR)/libiberty.h $(INCDIR)/demangle.h debug.h \ | |
438 | budbg.h $(BFDDIR)/libcoff.h $(INCDIR)/bfdlink.h | |
252b5132 | 439 | rddbg.o: rddbg.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ |
6a8c2b0d AM |
440 | $(INCDIR)/symcat.h bucomm.h config.h $(INCDIR)/bin-bugs.h \ |
441 | $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h debug.h \ | |
442 | budbg.h | |
443 | size.o: size.c ../bfd/bfd.h $(INCDIR)/ansidecl.h $(INCDIR)/symcat.h \ | |
ba323545 AM |
444 | bucomm.h config.h $(INCDIR)/bin-bugs.h $(INCDIR)/fopen-same.h \ |
445 | $(INCDIR)/libiberty.h | |
41b49281 AM |
446 | srconv.o: srconv.c bucomm.h config.h $(INCDIR)/bin-bugs.h \ |
447 | $(INCDIR)/fopen-same.h sysroff.h coffgrok.h $(INCDIR)/coff/internal.h \ | |
448 | $(BFDDIR)/libcoff.h $(INCDIR)/bfdlink.h sysroff.c | |
252b5132 | 449 | stabs.o: stabs.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ |
6a8c2b0d AM |
450 | $(INCDIR)/symcat.h bucomm.h config.h $(INCDIR)/bin-bugs.h \ |
451 | $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h $(INCDIR)/safe-ctype.h \ | |
452 | $(INCDIR)/demangle.h debug.h budbg.h $(INCDIR)/filenames.h \ | |
453 | $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def | |
252b5132 | 454 | strings.o: strings.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ |
6a8c2b0d AM |
455 | $(INCDIR)/symcat.h bucomm.h config.h $(INCDIR)/bin-bugs.h \ |
456 | $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h $(INCDIR)/safe-ctype.h | |
252b5132 | 457 | sysdump.o: sysdump.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ |
6a8c2b0d AM |
458 | $(INCDIR)/symcat.h bucomm.h config.h $(INCDIR)/bin-bugs.h \ |
459 | $(INCDIR)/fopen-same.h $(INCDIR)/safe-ctype.h sysroff.h \ | |
460 | sysroff.c | |
252b5132 | 461 | version.o: version.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ |
6a8c2b0d AM |
462 | $(INCDIR)/symcat.h bucomm.h config.h $(INCDIR)/bin-bugs.h \ |
463 | $(INCDIR)/fopen-same.h | |
252b5132 | 464 | wrstabs.o: wrstabs.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ |
6a8c2b0d AM |
465 | $(INCDIR)/symcat.h bucomm.h config.h $(INCDIR)/bin-bugs.h \ |
466 | $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h $(INCDIR)/safe-ctype.h \ | |
467 | debug.h budbg.h $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h \ | |
efc3ee7f | 468 | $(INCDIR)/aout/stab.def |
252b5132 | 469 | windres.o: windres.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ |
6a8c2b0d AM |
470 | $(INCDIR)/symcat.h $(INCDIR)/getopt.h bucomm.h config.h \ |
471 | $(INCDIR)/bin-bugs.h $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h \ | |
472 | $(INCDIR)/safe-ctype.h $(INCDIR)/obstack.h windres.h \ | |
efc3ee7f | 473 | winduni.h |
6a8c2b0d AM |
474 | resrc.o: resrc.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ |
475 | $(INCDIR)/symcat.h bucomm.h config.h $(INCDIR)/bin-bugs.h \ | |
476 | $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h $(INCDIR)/safe-ctype.h \ | |
477 | windres.h winduni.h | |
252b5132 | 478 | rescoff.o: rescoff.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ |
6a8c2b0d AM |
479 | $(INCDIR)/symcat.h bucomm.h config.h $(INCDIR)/bin-bugs.h \ |
480 | $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h windres.h \ | |
481 | winduni.h $(INCDIR)/coff/internal.h $(BFDDIR)/libcoff.h \ | |
482 | $(INCDIR)/bfdlink.h | |
252b5132 | 483 | resbin.o: resbin.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ |
6a8c2b0d AM |
484 | $(INCDIR)/symcat.h bucomm.h config.h $(INCDIR)/bin-bugs.h \ |
485 | $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h windres.h \ | |
486 | winduni.h | |
252b5132 | 487 | winduni.o: winduni.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ |
6a8c2b0d AM |
488 | $(INCDIR)/symcat.h bucomm.h config.h $(INCDIR)/bin-bugs.h \ |
489 | $(INCDIR)/fopen-same.h winduni.h $(INCDIR)/safe-ctype.h | |
252b5132 | 490 | readelf.o: readelf.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ |
6a8c2b0d | 491 | $(INCDIR)/symcat.h $(INCDIR)/elf/common.h $(INCDIR)/elf/external.h \ |
ba323545 AM |
492 | $(INCDIR)/elf/internal.h $(INCDIR)/elf/dwarf2.h $(INCDIR)/elf/alpha.h \ |
493 | $(INCDIR)/elf/reloc-macros.h $(INCDIR)/elf/arc.h $(INCDIR)/elf/arm.h \ | |
494 | $(INCDIR)/elf/avr.h $(INCDIR)/elf/cris.h $(INCDIR)/elf/d10v.h \ | |
495 | $(INCDIR)/elf/d30v.h $(INCDIR)/elf/fr30.h $(INCDIR)/elf/h8.h \ | |
496 | $(INCDIR)/elf/hppa.h $(INCDIR)/elf/i386.h $(INCDIR)/elf/i860.h \ | |
497 | $(INCDIR)/elf/i960.h $(INCDIR)/elf/ia64.h $(INCDIR)/elf/m32r.h \ | |
498 | $(INCDIR)/elf/m68k.h $(INCDIR)/elf/mcore.h $(INCDIR)/elf/mips.h \ | |
499 | $(INCDIR)/elf/mmix.h $(INCDIR)/elf/mn10200.h $(INCDIR)/elf/mn10300.h \ | |
500 | $(INCDIR)/elf/or32.h $(INCDIR)/elf/pj.h $(INCDIR)/elf/ppc.h \ | |
501 | $(INCDIR)/elf/s390.h $(INCDIR)/elf/sh.h $(INCDIR)/elf/sparc.h \ | |
502 | $(INCDIR)/elf/v850.h $(INCDIR)/elf/x86-64.h $(INCDIR)/elf/xstormy16.h \ | |
503 | bucomm.h config.h $(INCDIR)/bin-bugs.h $(INCDIR)/fopen-same.h \ | |
efc3ee7f | 504 | unwind-ia64.h |
252b5132 | 505 | resres.o: resres.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ |
6a8c2b0d AM |
506 | $(INCDIR)/symcat.h bucomm.h config.h $(INCDIR)/bin-bugs.h \ |
507 | $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h windres.h \ | |
508 | winduni.h | |
252b5132 | 509 | dllwrap.o: dllwrap.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ |
6a8c2b0d AM |
510 | $(INCDIR)/symcat.h $(INCDIR)/libiberty.h bucomm.h config.h \ |
511 | $(INCDIR)/bin-bugs.h $(INCDIR)/fopen-same.h $(INCDIR)/dyn-string.h | |
252b5132 | 512 | rename.o: rename.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ |
6a8c2b0d AM |
513 | $(INCDIR)/symcat.h bucomm.h config.h $(INCDIR)/bin-bugs.h \ |
514 | $(INCDIR)/fopen-same.h | |
1ea788ee AM |
515 | binemul.o: binemul.c binemul.h ../bfd/bfd.h $(INCDIR)/ansidecl.h \ |
516 | $(INCDIR)/symcat.h bucomm.h config.h $(INCDIR)/bin-bugs.h \ | |
517 | $(INCDIR)/fopen-same.h | |
518 | emul_vanilla.o: emul_vanilla.c binemul.h ../bfd/bfd.h \ | |
519 | $(INCDIR)/ansidecl.h $(INCDIR)/symcat.h bucomm.h config.h \ | |
520 | $(INCDIR)/bin-bugs.h $(INCDIR)/fopen-same.h | |
252b5132 RH |
521 | underscore.o: underscore.c |
522 | arparse.o: arparse.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ | |
6a8c2b0d AM |
523 | $(INCDIR)/symcat.h bucomm.h config.h $(INCDIR)/bin-bugs.h \ |
524 | $(INCDIR)/fopen-same.h arsup.h | |
252b5132 RH |
525 | arlex.o: arlex.c $(INCDIR)/libiberty.h arparse.h |
526 | sysroff.o: sysroff.c | |
527 | sysinfo.o: sysinfo.c | |
528 | syslex.o: syslex.c sysinfo.h | |
529 | defparse.o: defparse.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ | |
6a8c2b0d AM |
530 | $(INCDIR)/symcat.h bucomm.h config.h $(INCDIR)/bin-bugs.h \ |
531 | $(INCDIR)/fopen-same.h dlltool.h | |
252b5132 RH |
532 | deflex.o: deflex.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \ |
533 | defparse.h dlltool.h | |
efc3ee7f | 534 | nlmheader.o: nlmheader.c $(INCDIR)/safe-ctype.h ../bfd/bfd.h \ |
6a8c2b0d AM |
535 | $(INCDIR)/symcat.h bucomm.h config.h $(INCDIR)/bin-bugs.h \ |
536 | $(INCDIR)/fopen-same.h $(INCDIR)/nlm/common.h $(INCDIR)/nlm/internal.h \ | |
537 | nlmconv.h | |
252b5132 | 538 | rcparse.o: rcparse.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ |
6a8c2b0d AM |
539 | $(INCDIR)/symcat.h bucomm.h config.h $(INCDIR)/bin-bugs.h \ |
540 | $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h windres.h \ | |
541 | winduni.h $(INCDIR)/safe-ctype.h | |
252b5132 | 542 | rclex.o: rclex.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ |
6a8c2b0d AM |
543 | $(INCDIR)/symcat.h bucomm.h config.h $(INCDIR)/bin-bugs.h \ |
544 | $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h $(INCDIR)/safe-ctype.h \ | |
545 | windres.h winduni.h rcparse.h | |
252b5132 | 546 | # IF YOU PUT ANYTHING HERE IT WILL GO AWAY |