2002-06-25 H.J. Lu <hjl@gnu.org>
[external/binutils.git] / binutils / Makefile.am
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
8 SUBDIRS = doc po
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
18 YACC = `if [ -f ../bison/bison ]; then echo ../bison/bison -y -L$(srcdir)/../bison/; else echo @YACC@; fi`
19 YFLAGS = -d
20 LEX = `if [ -f ../flex/flex ]; then echo ../flex/flex; else echo @LEX@; fi`
21
22 WARN_CFLAGS = @WARN_CFLAGS@
23 AM_CFLAGS = $(WARN_CFLAGS)
24
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.
44 DEMANGLER_PROG=cxxfilt
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
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
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@
58
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)
62
63 EXTRA_PROGRAMS = $(NLMCONV_PROG) srconv sysdump coffdump $(DLLTOOL_PROG) $(WINDRES_PROG) $(DLLWRAP_PROG)
64
65 # Stuff that goes in tooldir/ if appropriate.
66 TOOL_PROGS = nm-new strip-new ar ranlib dlltool
67
68 BASEDIR = $(srcdir)/..
69 BFDDIR = $(BASEDIR)/bfd
70 INCDIR  = $(BASEDIR)/include
71
72 MKDEP = gcc -MM
73
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)
80
81 HFILES = arsup.h bucomm.h budbg.h coffgrok.h debug.h nlmconv.h dlltool.h \
82         windres.h winduni.h binemul.h
83
84 GENERATED_HFILES = arparse.h sysroff.h sysinfo.h defparse.h rcparse.h
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 \
92         resres.c dllwrap.c rename.c binemul.c emul_$(EMULATION).c 
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         LC_ALL=C; export LC_ALL; \
146         runtest=$(RUNTEST); \
147         if $(SHELL) -c "$$runtest --version" > /dev/null 2>&1; then \
148           CC_FOR_TARGET="$(CC_FOR_TARGET)" CFLAGS_FOR_TARGET="$(CFLAGS)" \
149                 $$runtest --tool $(DEJATOOL) --srcdir $${srcdir}/testsuite \
150                         $(RUNTESTFLAGS); \
151         else echo "WARNING: could not find \`runtest'" 1>&2; :;\
152         fi
153
154 installcheck:
155         /bin/sh $(srcdir)/sanity.sh $(bindir)
156
157 LDADD = $(BFDLIB) $(LIBIBERTY) $(INTLLIBS)
158
159 size_SOURCES = size.c $(BULIBS)
160
161 objcopy_SOURCES = objcopy.c not-strip.c rename.c $(WRITE_DEBUG_SRCS) $(BULIBS)
162
163 strings_SOURCES = strings.c $(BULIBS)
164
165 readelf_SOURCES = readelf.c version.c unwind-ia64.c
166 readelf_LDADD   = $(INTLLIBS) $(LIBIBERTY)
167
168 strip_new_SOURCES = objcopy.c is-strip.c rename.c $(WRITE_DEBUG_SRCS) $(BULIBS)
169
170 nm_new_SOURCES = nm.c $(BULIBS)
171
172 objdump_SOURCES = objdump.c prdbg.c $(DEBUG_SRCS) $(BULIBS)
173 objdump_LDADD = $(OPCODES) $(BFDLIB) $(LIBIBERTY) $(INTLLIBS)
174
175 objdump.o:objdump.c
176         $(COMPILE) -c $(OBJDUMP_DEFS) $(srcdir)/objdump.c
177
178 underscore.c: stamp-under ; @true
179
180 stamp-under: Makefile
181         echo '/*WARNING: This file is automatically generated!*/' >underscore.t
182         echo "int prepends_underscore = @UNDERSCORE@;" >>underscore.t
183         $(SHELL) $(srcdir)/../move-if-change underscore.t underscore.c
184         touch stamp-under
185
186 cplus-dem.o: $(BASEDIR)/libiberty/cplus-dem.c $(INCDIR)/getopt.h Makefile
187         $(COMPILE) -c -DMAIN -DVERSION='"$(VERSION)"' $(BASEDIR)/libiberty/cplus-dem.c
188
189 cxxfilt_SOURCES =
190 cxxfilt_LDADD = cplus-dem.o underscore.o $(LIBIBERTY) $(INTLLIBS)
191
192 ar_SOURCES = arparse.y arlex.l ar.c not-ranlib.c arsup.c rename.c binemul.c \
193         emul_$(EMULATION).c $(BULIBS)
194 ar_LDADD = $(BFDLIB) $(LIBIBERTY) @LEXLIB@ $(INTLLIBS)
195
196 ranlib_SOURCES = ar.c is-ranlib.c arparse.y arlex.l arsup.c rename.c \
197         binemul.c emul_$(EMULATION).c $(BULIBS)
198 ranlib_LDADD = $(BFDLIB) $(LIBIBERTY) @LEXLIB@ $(INTLLIBS)
199
200 addr2line_SOURCES = addr2line.c $(BULIBS)
201
202 # The following is commented out for the conversion to automake.
203 # This rule creates a single binary that switches between ar and ranlib
204 # by looking at argv[0].  Use this kludge to save some disk space.
205 # However, you have to install things by hand.
206 # (That is after 'make install', replace the installed ranlib by a link to ar.)
207 # Alternatively, you can install ranlib.sh as ranlib.
208 # ar_with_ranlib: $(ADDL_DEPS) ar.o maybe-ranlib.o
209 #       $(HLDENV) $(CC) $(HLDFLAGS) $(CFLAGS) $(LDFLAGS) -o $(AR_PROG) ar.o maybe-ranlib.o $(ADDL_LIBS) $(EXTRALIBS)
210 #       -rm -f $(RANLIB_PROG)
211 #       -ln $(AR_PROG) $(RANLIB_PROG)
212 #
213 # objcopy and strip in one binary that uses argv[0] to decide its action.
214 #
215 #objcopy_with_strip: $(ADDL_DEPS) objcopy.o maybe-strip.o
216 #       $(HLDENV) $(CC) $(HLDFLAGS) $(CFLAGS) $(LDFLAGS) -o $(OBJCOPY_PROG) objcopy.o maybe-strip.o $(ADDL_LIBS) $(EXTRALIBS)
217 #       -rm -f $(STRIP_PROG)
218 #       -ln $(OBJCOPY_PROG) $(STRIP_PROG)
219
220 sysroff.c: sysinfo$(EXEEXT_FOR_BUILD) sysroff.info 
221         ./sysinfo$(EXEEXT_FOR_BUILD) -c <$(srcdir)/sysroff.info >sysroff.c
222         ./sysinfo$(EXEEXT_FOR_BUILD) -i <$(srcdir)/sysroff.info >>sysroff.c
223         ./sysinfo$(EXEEXT_FOR_BUILD) -g <$(srcdir)/sysroff.info >>sysroff.c
224
225 sysroff.h: sysinfo$(EXEEXT_FOR_BUILD) sysroff.info
226         ./sysinfo$(EXEEXT_FOR_BUILD) -d <$(srcdir)/sysroff.info >sysroff.h
227
228 sysinfo$(EXEEXT_FOR_BUILD): sysinfo.o syslex.o
229         $(CC_FOR_BUILD) $(CFLAGS) $(LDFLAGS) -o $@ sysinfo.o syslex.o 
230
231 syslex.o: syslex.c sysinfo.h
232         if [ -r syslex.c ]; then \
233           $(CC_FOR_BUILD) -c -I. $(CFLAGS)  syslex.c  ; \
234         else \
235           $(CC_FOR_BUILD) -c -I. -I$(srcdir) $(CFLAGS) $(srcdir)/syslex.c ;\
236         fi
237
238 sysinfo.o: sysinfo.c
239         if [ -r sysinfo.c ]; then \
240           $(CC_FOR_BUILD) -c -I. $(CFLAGS)  sysinfo.c  ; \
241         else \
242           $(CC_FOR_BUILD) -c -I. $(CFLAGS) $(srcdir)/sysinfo.c ; \
243         fi
244
245 # We need these for parallel make.
246 arparse.h: arparse.c
247 defparse.h: defparse.c
248 nlmheader.h: nlmheader.c
249 rcparse.h: rcparse.c
250 sysinfo.h: sysinfo.c
251
252 srconv_SOURCES = srconv.c coffgrok.c $(BULIBS)
253
254 dlltool_SOURCES = dlltool.c defparse.y deflex.l $(BULIBS)
255 dlltool_LDADD = $(BFDLIB) $(LIBIBERTY) @LEXLIB@ $(INTLLIBS)
256
257 dlltool.o:dlltool.c
258         $(COMPILE) -c $(DLLTOOL_DEFS) $(srcdir)/dlltool.c
259
260 rescoff.o:rescoff.c
261         $(COMPILE) -c $(DLLTOOL_DEFS) $(srcdir)/rescoff.c
262
263 coffdump_SOURCES = coffdump.c coffgrok.c $(BULIBS)
264
265 sysdump_SOURCES = sysdump.c $(BULIBS)
266
267 # coff/sym.h and coff/ecoff.h won't be found by the automatic dependency
268 # scripts, since they are only included conditionally.
269 nlmconv.o: nlmconv.c $(INCDIR)/coff/sym.h $(INCDIR)/coff/ecoff.h
270         ldname=`echo ld | sed '$(transform)'`; \
271         $(COMPILE) -c -DLD_NAME="\"$${ldname}\"" @NLMCONV_DEFS@ $(srcdir)/nlmconv.c
272
273 nlmconv_SOURCES = nlmconv.c nlmheader.y $(BULIBS)
274
275 windres_SOURCES = windres.c resrc.c rescoff.c resbin.c rcparse.y rclex.l \
276         winduni.c resres.c $(BULIBS)
277 windres_LDADD = $(BFDLIB) $(LIBIBERTY) @LEXLIB@ $(INTLLIBS)
278
279 dllwrap_SOURCES = dllwrap.c version.c
280 dllwrap_LDADD = $(LIBIBERTY) $(INTLLIBS)
281
282
283 EXTRA_DIST = arparse.c arparse.h arlex.c nlmheader.c sysinfo.c sysinfo.h \
284         syslex.c deflex.c defparse.h defparse.c rclex.c rcparse.h rcparse.c
285
286 diststuff: $(EXTRA_DIST) info
287
288 DISTCLEANFILES = stamp-under sysinfo underscore.c sysroff.c sysroff.h \
289         site.exp site.bak
290
291 Makefile: $(BFDDIR)/configure.in
292
293 # Targets to rebuild dependencies in this Makefile.
294 # Have to get rid of DEP1 here so that "$?" later includes all of $(CFILES).
295 DEP: dep.sed $(CFILES) $(HFILES) $(GENERATED_CFILES) $(GENERATED_HFILES) config.h
296         rm -f DEP1
297         $(MAKE) MKDEP="$(MKDEP)" DEP1
298         sed -f dep.sed < DEP1 > DEPA
299         echo '# IF YOU PUT ANYTHING HERE IT WILL GO AWAY' >> DEPA
300         if grep ' /' DEPA > /dev/null 2> /dev/null; then \
301           echo 'make DEP failed!'; exit 1; \
302         else \
303           mv -f DEPA $@; \
304         fi
305
306 DEP1: $(CFILES) $(GENERATED_CFILES)
307         echo '# DO NOT DELETE THIS LINE -- mkdep uses it.' > DEP2
308         echo '# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.' >> DEP2
309         $(MKDEP) $(INCLUDES) $(CFLAGS) $? >> DEP2
310         mv -f DEP2 $@
311
312 dep.sed: dep-in.sed config.status
313         objdir=`pwd`; \
314         sed <$(srcdir)/dep-in.sed >dep.sed      \
315                 -e 's!@INCDIR@!$(INCDIR)!'      \
316                 -e 's!@BFDDIR@!$(BFDDIR)!'      \
317                 -e 's!@SRCDIR@!$(srcdir)!'      \
318                 -e "s!@OBJDIR@!$${objdir}!"     \
319                 -e 's!@TOPDIR@!'`echo $(srcdir) | sed -e s,/binutils$$,,`'!'
320
321 dep: DEP
322         sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < Makefile > tmp-Makefile
323         cat DEP >> tmp-Makefile
324         $(SHELL) $(srcdir)/../move-if-change tmp-Makefile Makefile
325
326 dep-in: DEP
327         sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.in > tmp-Makefile.in
328         cat DEP >> tmp-Makefile.in
329         $(SHELL) $(srcdir)/../move-if-change tmp-Makefile.in $(srcdir)/Makefile.in
330
331 dep-am: DEP
332         sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.am > tmp-Makefile.am
333         cat DEP >> tmp-Makefile.am
334         $(SHELL) $(srcdir)/../move-if-change tmp-Makefile.am $(srcdir)/Makefile.am
335
336 .PHONY: dep dep-in dep-am
337
338 ###
339
340 MOSTLYCLEANFILES = sysinfo binutils.log binutils.sum abcdefgh*
341 mostlyclean-local:
342         -rm -rf tmpdir
343
344 CLEANFILES = dep.sed DEP DEPA DEP1 DEP2
345
346 .PHONY: install-exec-local
347
348 install-exec-local: install-binPROGRAMS $(bin_PROGRAMS) $(noinst_PROGRAMS)
349         @list='$(noinst_PROGRAMS)'; for p in $$list; do \
350           if test -f $$p; then \
351             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)/'`"; \
352             $(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)/'`; \
353           else :; fi; \
354         done
355         $(mkinstalldirs) $(DESTDIR)$(tooldir)/bin
356         for i in $(TOOL_PROGS); do \
357           if [ -f $$i$(EXEEXT) ]; then \
358             j=`echo $$i | sed -e 's/-new//'`; \
359             k=`echo $$j | sed '$(transform)'`; \
360             if [ "$(DESTDIR)$(bindir)/$$k$(EXEEXT)" != "$(DESTDIR)$(tooldir)/bin/$$j$(EXEEXT)" ]; then \
361               rm -f $(DESTDIR)$(tooldir)/bin/$$j$(EXEEXT); \
362               ln $(DESTDIR)$(bindir)/$$k$(EXEEXT) $(DESTDIR)$(tooldir)/bin/$$j$(EXEEXT) >/dev/null 2>/dev/null \
363                 || $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$i$(EXEEXT) $(DESTDIR)$(tooldir)/bin/$$j$(EXEEXT); \
364             fi; \
365           else true; \
366           fi; \
367         done
368
369 # What appears below is generated by a hacked mkdep using gcc -MM.
370
371 # DO NOT DELETE THIS LINE -- mkdep uses it.
372 # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
373 addr2line.o: addr2line.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
374   $(INCDIR)/symcat.h $(INCDIR)/getopt.h $(INCDIR)/libiberty.h \
375   $(INCDIR)/demangle.h bucomm.h config.h $(INCDIR)/bin-bugs.h \
376   $(INCDIR)/fopen-same.h
377 ar.o: ar.c ../bfd/bfd.h $(INCDIR)/ansidecl.h $(INCDIR)/symcat.h \
378   $(INCDIR)/libiberty.h $(INCDIR)/progress.h bucomm.h \
379   config.h $(INCDIR)/bin-bugs.h $(INCDIR)/fopen-same.h \
380   $(INCDIR)/aout/ar.h $(BFDDIR)/libbfd.h arsup.h $(INCDIR)/filenames.h \
381   binemul.h
382 arsup.o: arsup.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
383   $(INCDIR)/symcat.h arsup.h $(INCDIR)/libiberty.h bucomm.h \
384   config.h $(INCDIR)/bin-bugs.h $(INCDIR)/fopen-same.h \
385   $(INCDIR)/filenames.h
386 bucomm.o: bucomm.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
387   $(INCDIR)/symcat.h $(INCDIR)/libiberty.h bucomm.h config.h \
388   $(INCDIR)/bin-bugs.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h
389 coffdump.o: coffdump.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
390   $(INCDIR)/symcat.h $(INCDIR)/libiberty.h coffgrok.h \
391   bucomm.h config.h $(INCDIR)/bin-bugs.h $(INCDIR)/fopen-same.h
392 coffgrok.o: coffgrok.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
393   $(INCDIR)/symcat.h $(INCDIR)/libiberty.h bucomm.h config.h \
394   $(INCDIR)/bin-bugs.h $(INCDIR)/fopen-same.h $(INCDIR)/coff/internal.h \
395   $(BFDDIR)/libcoff.h $(INCDIR)/bfdlink.h coffgrok.h
396 debug.o: debug.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
397   $(INCDIR)/symcat.h bucomm.h config.h $(INCDIR)/bin-bugs.h \
398   $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h debug.h
399 dlltool.o: dlltool.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
400   $(INCDIR)/symcat.h $(INCDIR)/libiberty.h bucomm.h config.h \
401   $(INCDIR)/bin-bugs.h $(INCDIR)/fopen-same.h $(INCDIR)/demangle.h \
402   $(INCDIR)/dyn-string.h dlltool.h $(INCDIR)/safe-ctype.h
403 filemode.o: filemode.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
404   $(INCDIR)/symcat.h bucomm.h config.h $(INCDIR)/bin-bugs.h \
405   $(INCDIR)/fopen-same.h
406 ieee.o: ieee.c ../bfd/bfd.h $(INCDIR)/ansidecl.h $(INCDIR)/symcat.h \
407   $(INCDIR)/ieee.h bucomm.h config.h $(INCDIR)/bin-bugs.h \
408   $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h debug.h \
409   budbg.h $(INCDIR)/filenames.h
410 is-ranlib.o: is-ranlib.c
411 is-strip.o: is-strip.c
412 maybe-ranlib.o: maybe-ranlib.c
413 maybe-strip.o: maybe-strip.c
414 nlmconv.o: nlmconv.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
415   $(INCDIR)/symcat.h $(INCDIR)/libiberty.h bucomm.h config.h \
416   $(INCDIR)/bin-bugs.h $(INCDIR)/fopen-same.h $(INCDIR)/safe-ctype.h \
417   $(BFDDIR)/libnlm.h $(INCDIR)/nlm/common.h $(INCDIR)/nlm/internal.h \
418   $(INCDIR)/nlm/external.h nlmconv.h
419 nm.o: nm.c ../bfd/bfd.h $(INCDIR)/ansidecl.h $(INCDIR)/symcat.h \
420   $(INCDIR)/progress.h bucomm.h config.h $(INCDIR)/bin-bugs.h \
421   $(INCDIR)/fopen-same.h $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def \
422   $(INCDIR)/aout/ranlib.h $(INCDIR)/demangle.h $(INCDIR)/libiberty.h \
423   $(BFDDIR)/elf-bfd.h $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h \
424   $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h
425 not-ranlib.o: not-ranlib.c
426 not-strip.o: not-strip.c
427 objcopy.o: objcopy.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
428   $(INCDIR)/symcat.h $(INCDIR)/progress.h bucomm.h config.h \
429   $(INCDIR)/bin-bugs.h $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h \
430   budbg.h $(INCDIR)/filenames.h
431 objdump.o: objdump.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
432   $(INCDIR)/symcat.h $(INCDIR)/progress.h bucomm.h config.h \
433   $(INCDIR)/bin-bugs.h $(INCDIR)/fopen-same.h $(INCDIR)/safe-ctype.h \
434   $(INCDIR)/dis-asm.h $(INCDIR)/libiberty.h $(INCDIR)/demangle.h \
435   debug.h budbg.h $(INCDIR)/aout/aout64.h
436 prdbg.o: prdbg.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
437   $(INCDIR)/symcat.h bucomm.h config.h $(INCDIR)/bin-bugs.h \
438   $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h debug.h \
439   budbg.h
440 rdcoff.o: rdcoff.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
441   $(INCDIR)/symcat.h $(INCDIR)/coff/internal.h bucomm.h \
442   config.h $(INCDIR)/bin-bugs.h $(INCDIR)/fopen-same.h \
443   $(INCDIR)/libiberty.h $(INCDIR)/demangle.h debug.h \
444   budbg.h $(BFDDIR)/libcoff.h $(INCDIR)/bfdlink.h
445 rddbg.o: rddbg.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
446   $(INCDIR)/symcat.h bucomm.h config.h $(INCDIR)/bin-bugs.h \
447   $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h debug.h \
448   budbg.h
449 size.o: size.c ../bfd/bfd.h $(INCDIR)/ansidecl.h $(INCDIR)/symcat.h \
450   bucomm.h config.h $(INCDIR)/bin-bugs.h $(INCDIR)/fopen-same.h \
451   $(INCDIR)/libiberty.h
452 srconv.o: srconv.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
453   $(INCDIR)/symcat.h bucomm.h config.h $(INCDIR)/bin-bugs.h \
454   $(INCDIR)/fopen-same.h sysroff.h coffgrok.h $(INCDIR)/libiberty.h \
455   $(INCDIR)/coff/internal.h $(BFDDIR)/libcoff.h $(INCDIR)/bfdlink.h \
456   sysroff.c
457 stabs.o: stabs.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
458   $(INCDIR)/symcat.h bucomm.h config.h $(INCDIR)/bin-bugs.h \
459   $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h $(INCDIR)/safe-ctype.h \
460   $(INCDIR)/demangle.h debug.h budbg.h $(INCDIR)/filenames.h \
461   $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def
462 strings.o: strings.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
463   $(INCDIR)/symcat.h $(INCDIR)/getopt.h bucomm.h config.h \
464   $(INCDIR)/bin-bugs.h $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h \
465   $(INCDIR)/safe-ctype.h
466 sysdump.o: sysdump.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
467   $(INCDIR)/symcat.h bucomm.h config.h $(INCDIR)/bin-bugs.h \
468   $(INCDIR)/fopen-same.h $(INCDIR)/safe-ctype.h $(INCDIR)/libiberty.h \
469   sysroff.h sysroff.c
470 version.o: version.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
471   $(INCDIR)/symcat.h bucomm.h config.h $(INCDIR)/bin-bugs.h \
472   $(INCDIR)/fopen-same.h
473 wrstabs.o: wrstabs.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
474   $(INCDIR)/symcat.h bucomm.h config.h $(INCDIR)/bin-bugs.h \
475   $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h $(INCDIR)/safe-ctype.h \
476   debug.h budbg.h $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h \
477   $(INCDIR)/aout/stab.def
478 windres.o: windres.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
479   $(INCDIR)/symcat.h $(INCDIR)/getopt.h bucomm.h config.h \
480   $(INCDIR)/bin-bugs.h $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h \
481   $(INCDIR)/safe-ctype.h $(INCDIR)/obstack.h windres.h \
482   winduni.h
483 resrc.o: resrc.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
484   $(INCDIR)/symcat.h bucomm.h config.h $(INCDIR)/bin-bugs.h \
485   $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h $(INCDIR)/safe-ctype.h \
486   windres.h winduni.h
487 rescoff.o: rescoff.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
488   $(INCDIR)/symcat.h bucomm.h config.h $(INCDIR)/bin-bugs.h \
489   $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h windres.h \
490   winduni.h $(INCDIR)/coff/internal.h $(BFDDIR)/libcoff.h \
491   $(INCDIR)/bfdlink.h
492 resbin.o: resbin.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
493   $(INCDIR)/symcat.h bucomm.h config.h $(INCDIR)/bin-bugs.h \
494   $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h windres.h \
495   winduni.h
496 winduni.o: winduni.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
497   $(INCDIR)/symcat.h bucomm.h config.h $(INCDIR)/bin-bugs.h \
498   $(INCDIR)/fopen-same.h winduni.h $(INCDIR)/safe-ctype.h
499 readelf.o: readelf.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
500   $(INCDIR)/symcat.h $(INCDIR)/elf/common.h $(INCDIR)/elf/external.h \
501   $(INCDIR)/elf/internal.h $(INCDIR)/elf/dwarf2.h $(INCDIR)/elf/alpha.h \
502   $(INCDIR)/elf/reloc-macros.h $(INCDIR)/elf/arc.h $(INCDIR)/elf/arm.h \
503   $(INCDIR)/elf/avr.h $(INCDIR)/elf/cris.h $(INCDIR)/elf/d10v.h \
504   $(INCDIR)/elf/d30v.h $(INCDIR)/elf/dlx.h $(INCDIR)/elf/fr30.h \
505   $(INCDIR)/elf/frv.h \
506   $(INCDIR)/elf/h8.h $(INCDIR)/elf/hppa.h $(INCDIR)/elf/i386.h \
507   $(INCDIR)/elf/i860.h $(INCDIR)/elf/i960.h $(INCDIR)/elf/ia64.h \
508   $(INCDIR)/elf/m32r.h $(INCDIR)/elf/m68k.h $(INCDIR)/elf/mcore.h \
509   $(INCDIR)/elf/mips.h $(INCDIR)/elf/mmix.h $(INCDIR)/elf/mn10200.h \
510   $(INCDIR)/elf/mn10300.h $(INCDIR)/elf/or32.h $(INCDIR)/elf/pj.h \
511   $(INCDIR)/elf/ppc.h $(INCDIR)/elf/s390.h $(INCDIR)/elf/sh.h \
512   $(INCDIR)/elf/sparc.h $(INCDIR)/elf/v850.h $(INCDIR)/elf/x86-64.h \
513   $(INCDIR)/elf/xstormy16.h bucomm.h config.h $(INCDIR)/bin-bugs.h \
514   $(INCDIR)/fopen-same.h unwind-ia64.h
515 resres.o: resres.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
516   $(INCDIR)/symcat.h bucomm.h config.h $(INCDIR)/bin-bugs.h \
517   $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h windres.h \
518   winduni.h
519 dllwrap.o: dllwrap.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
520   $(INCDIR)/symcat.h $(INCDIR)/libiberty.h bucomm.h config.h \
521   $(INCDIR)/bin-bugs.h $(INCDIR)/fopen-same.h $(INCDIR)/dyn-string.h
522 rename.o: rename.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
523   $(INCDIR)/symcat.h bucomm.h config.h $(INCDIR)/bin-bugs.h \
524   $(INCDIR)/fopen-same.h
525 binemul.o: binemul.c binemul.h ../bfd/bfd.h $(INCDIR)/ansidecl.h \
526   $(INCDIR)/symcat.h bucomm.h config.h $(INCDIR)/bin-bugs.h \
527   $(INCDIR)/fopen-same.h
528 emul_vanilla.o: emul_vanilla.c binemul.h ../bfd/bfd.h \
529   $(INCDIR)/ansidecl.h $(INCDIR)/symcat.h bucomm.h config.h \
530   $(INCDIR)/bin-bugs.h $(INCDIR)/fopen-same.h
531 underscore.o: underscore.c
532 arparse.o: arparse.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
533   $(INCDIR)/symcat.h bucomm.h config.h $(INCDIR)/bin-bugs.h \
534   $(INCDIR)/fopen-same.h arsup.h
535 arlex.o: arlex.c $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \
536   arparse.h
537 sysroff.o: sysroff.c
538 sysinfo.o: sysinfo.c
539 syslex.o: syslex.c sysinfo.h
540 defparse.o: defparse.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
541   $(INCDIR)/symcat.h bucomm.h config.h $(INCDIR)/bin-bugs.h \
542   $(INCDIR)/fopen-same.h dlltool.h
543 deflex.o: deflex.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \
544   defparse.h dlltool.h
545 nlmheader.o: nlmheader.c $(INCDIR)/ansidecl.h $(INCDIR)/safe-ctype.h \
546   ../bfd/bfd.h $(INCDIR)/symcat.h bucomm.h config.h $(INCDIR)/bin-bugs.h \
547   $(INCDIR)/fopen-same.h $(INCDIR)/nlm/common.h $(INCDIR)/nlm/internal.h \
548   nlmconv.h
549 rcparse.o: rcparse.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
550   $(INCDIR)/symcat.h bucomm.h config.h $(INCDIR)/bin-bugs.h \
551   $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h windres.h \
552   winduni.h $(INCDIR)/safe-ctype.h
553 rclex.o: rclex.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
554   $(INCDIR)/symcat.h bucomm.h config.h $(INCDIR)/bin-bugs.h \
555   $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h $(INCDIR)/safe-ctype.h \
556   windres.h winduni.h rcparse.h
557 # IF YOU PUT ANYTHING HERE IT WILL GO AWAY