2000-06-05 H.J. Lu <hjl@gnu.org>
[binutils.git] / binutils / Makefile.am
blob1caa94c02edbd2d57d25535aae335556fad7e47e
1 ## Process this file with automake to generate Makefile.in
3 ## FIXME: Work around apparent bug in automake.
4 INTLLIBS = @INTLLIBS@
6 AUTOMAKE_OPTIONS = cygnus dejagnu
8 SUBDIRS = po
10 tooldir = $(exec_prefix)/$(target_alias)
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@
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`
22 WARN_CFLAGS = @WARN_CFLAGS@
23 AM_CFLAGS = $(WARN_CFLAGS)
25 # these two are almost the same program
26 AR_PROG=ar
27 RANLIB_PROG=ranlib
29 # objcopy and strip should be the same program
30 OBJCOPY_PROG=objcopy
31 STRIP_PROG=strip-new
33 STRINGS_PROG=strings
35 READELF_PROG=readelf
37 # These should all be the same program too.
38 SIZE_PROG=size
39 NM_PROG=nm-new
40 OBJDUMP_PROG=objdump
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
46 ADDR2LINE_PROG=addr2line
48 NLMCONV_PROG=nlmconv
49 DLLTOOL_PROG=dlltool
50 WINDRES_PROG=windres
51 DLLWRAP_PROG=dllwrap
53 SRCONV_PROG=srconv$(EXEEXT) sysdump$(EXEEXT) coffdump$(EXEEXT) 
55 man_MANS = ar.1 nm.1 objdump.1 ranlib.1 size.1 strings.1 strip.1 objcopy.1 \
56         addr2line.1 nlmconv.1 $(DEMANGLER_NAME).1
58 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@
60 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@
62 ## We need a special rule to install the programs which are built with
63 ## -new, and to rename cxxfilt to c++filt.
64 noinst_PROGRAMS = $(NM_PROG) $(STRIP_PROG) $(DEMANGLER_PROG)
66 EXTRA_PROGRAMS = $(NLMCONV_PROG) srconv sysdump coffdump $(DLLTOOL_PROG) $(WINDRES_PROG) $(DLLWRAP_PROG)
68 # Stuff that goes in tooldir/ if appropriate
69 TOOL_PROGS = nm-new strip-new ar ranlib dlltool
71 BASEDIR = $(srcdir)/..
72 BFDDIR = $(BASEDIR)/bfd
73 INCDIR  = $(BASEDIR)/include
75 MKDEP = gcc -MM
77 INCLUDES = -D_GNU_SOURCE -I. -I$(srcdir) -I../bfd -I$(BFDDIR) -I$(INCDIR) @HDEFINES@ -I$(srcdir)/../intl -I../intl -DLOCALEDIR="\"$(prefix)/share/locale\""
79 HFILES = arsup.h bucomm.h budbg.h coffgrok.h debug.h nlmconv.h dlltool.h \
80         windres.h winduni.h dyn-string.h
82 GENERATED_HFILES = arparse.h sysroff.h sysinfo.h defparse.h rcparse.h
84 CFILES = addr2line.c ar.c arsup.c bucomm.c coffdump.c coffgrok.c debug.c \
85         dlltool.c filemode.c ieee.c is-ranlib.c is-strip.c maybe-ranlib.c \
86         maybe-strip.c nlmconv.c nm.c not-ranlib.c not-strip.c \
87         objcopy.c objdump.c prdbg.c rdcoff.c rddbg.c size.c srconv.c \
88         stabs.c strings.c sysdump.c version.c wrstabs.c \
89         windres.c resrc.c rescoff.c resbin.c winduni.c readelf.c \
90         resres.c dyn-string.c dllwrap.c rename.c
92 GENERATED_CFILES = \
93         underscore.c arparse.c arlex.c sysroff.c sysinfo.c syslex.c \
94         defparse.c deflex.c nlmheader.c rcparse.c rclex.c
96 DEBUG_SRCS = rddbg.c debug.c stabs.c ieee.c rdcoff.c
97 WRITE_DEBUG_SRCS = $(DEBUG_SRCS) wrstabs.c
99 # Code shared by all the binutils.
100 BULIBS = bucomm.c version.c filemode.c
102 BFDLIB = ../bfd/libbfd.la
104 OPCODES = ../opcodes/libopcodes.la
106 LIBIBERTY = ../libiberty/libiberty.a
108 POTFILES = $(CFILES) $(DEBUG_SRCS) $(HFILES)
109 po/POTFILES.in: @MAINT@ Makefile
110         for file in $(POTFILES); do echo $$file; done | sort > tmp \
111           && mv tmp $(srcdir)/po/POTFILES.in
113 EXPECT = `if [ -f $$r/../expect/expect ] ; then \
114           echo $$r/../expect/expect ; \
115           else echo expect ; fi`
116 RUNTEST = `if [ -f ${srcdir}/../dejagnu/runtest ] ; then \
117            echo ${srcdir}/../dejagnu/runtest ; \
118            else echo runtest ;  fi`
120 CC_FOR_TARGET = ` \
121   if [ -f $$r/../gcc/xgcc ] ; then \
122     if [ -f $$r/../newlib/Makefile ] ; then \
123       echo $$r/../gcc/xgcc -B$$r/../gcc/ -idirafter $$r/../newlib/targ-include -idirafter $${srcroot}/../newlib/libc/include -nostdinc; \
124     else \
125       echo $$r/../gcc/xgcc -B$$r/../gcc/; \
126     fi; \
127   else \
128     if [ "@host@" = "@target@" ] ; then \
129       echo $(CC); \
130     else \
131       echo gcc | sed '$(transform)'; \
132     fi; \
133   fi`
135 check-DEJAGNU: site.exp
136         srcdir=`cd $(srcdir) && pwd`; export srcdir; \
137         r=`pwd`; export r; \
138         EXPECT=$(EXPECT); export EXPECT; \
139         if [ -f $(top_builddir)/../expect/expect ]; then \
140           TCL_LIBRARY=`cd $(top_srcdir)/../tcl/library && pwd`; \
141           export TCL_LIBRARY; \
142         fi; \
143         runtest=$(RUNTEST); \
144         if $(SHELL) -c "$$runtest --version" > /dev/null 2>&1; then \
145           $$runtest --tool $(DEJATOOL) --srcdir $${srcdir}/testsuite \
146                 CC_FOR_TARGET="$(CC_FOR_TARGET)" \
147                 CFLAGS_FOR_TARGET="$(CFLAGS)" $(RUNTESTFLAGS); \
148         else echo "WARNING: could not find \`runtest'" 1>&2; :;\
149         fi
151 installcheck:
152         /bin/sh $(srcdir)/sanity.sh $(bindir)
154 info_TEXINFOS = binutils.texi
156 LDADD = $(BFDLIB) $(LIBIBERTY) $(INTLLIBS)
158 size_SOURCES = size.c $(BULIBS)
160 objcopy_SOURCES = objcopy.c not-strip.c rename.c $(WRITE_DEBUG_SRCS) $(BULIBS)
162 strings_SOURCES = strings.c $(BULIBS)
164 readelf_SOURCES = readelf.c version.c
165 readelf_LDADD   = $(INTLLIBS) $(LIBIBERTY)
167 strip_new_SOURCES = objcopy.c is-strip.c rename.c $(WRITE_DEBUG_SRCS) $(BULIBS)
169 nm_new_SOURCES = nm.c $(BULIBS)
171 objdump_SOURCES = objdump.c prdbg.c $(DEBUG_SRCS) $(BULIBS)
172 objdump_LDADD = $(OPCODES) $(BFDLIB) $(LIBIBERTY) $(INTLLIBS)
174 underscore.c: stamp-under ; @true
176 stamp-under: Makefile
177         echo '/*WARNING: This file is automatically generated!*/' >underscore.t
178         echo "int prepends_underscore = @UNDERSCORE@;" >>underscore.t
179         $(SHELL) $(srcdir)/../move-if-change underscore.t underscore.c
180         touch stamp-under
182 cplus-dem.o: $(BASEDIR)/libiberty/cplus-dem.c $(INCDIR)/getopt.h
183         $(COMPILE) -c -DMAIN -DVERSION='"$(VERSION)"' $(BASEDIR)/libiberty/cplus-dem.c
185 cxxfilt_SOURCES =
186 cxxfilt_LDADD = cplus-dem.o underscore.o $(LIBIBERTY) $(INTLLIBS)
188 ar_SOURCES = arparse.y arlex.l ar.c not-ranlib.c arsup.c rename.c $(BULIBS)
189 ar_LDADD = $(BFDLIB) $(LIBIBERTY) @LEXLIB@ $(INTLLIBS)
191 ranlib_SOURCES = ar.c is-ranlib.c arparse.y arlex.l arsup.c rename.c $(BULIBS)
192 ranlib_LDADD = $(BFDLIB) $(LIBIBERTY) @LEXLIB@ $(INTLLIBS)
194 addr2line_SOURCES = addr2line.c $(BULIBS)
196 # The following is commented out for the conversion to automake.
197 # This rule creates a single binary that switches between ar and ranlib
198 # by looking at argv[0].  Use this kludge to save some disk space.
199 # However, you have to install things by hand.
200 # (That is after 'make install', replace the installed ranlib by a link to ar.)
201 # Alternatively, you can install ranlib.sh as ranlib.
202 # ar_with_ranlib: $(ADDL_DEPS) ar.o maybe-ranlib.o
203 #       $(HLDENV) $(CC) $(HLDFLAGS) $(CFLAGS) $(LDFLAGS) -o $(AR_PROG) ar.o maybe-ranlib.o $(ADDL_LIBS) $(EXTRALIBS)
204 #       -rm -f $(RANLIB_PROG)
205 #       -ln $(AR_PROG) $(RANLIB_PROG)
207 # objcopy and strip in one binary that uses argv[0] to decide its action.
209 #objcopy_with_strip: $(ADDL_DEPS) objcopy.o maybe-strip.o
210 #       $(HLDENV) $(CC) $(HLDFLAGS) $(CFLAGS) $(LDFLAGS) -o $(OBJCOPY_PROG) objcopy.o maybe-strip.o $(ADDL_LIBS) $(EXTRALIBS)
211 #       -rm -f $(STRIP_PROG)
212 #       -ln $(OBJCOPY_PROG) $(STRIP_PROG)
214 sysroff.c: sysinfo$(EXEEXT_FOR_BUILD) sysroff.info 
215         ./sysinfo$(EXEEXT_FOR_BUILD) -c <$(srcdir)/sysroff.info >sysroff.c
216         ./sysinfo$(EXEEXT_FOR_BUILD) -i <$(srcdir)/sysroff.info >>sysroff.c
217         ./sysinfo$(EXEEXT_FOR_BUILD) -g <$(srcdir)/sysroff.info >>sysroff.c
219 sysroff.h: sysinfo$(EXEEXT_FOR_BUILD) sysroff.info
220         ./sysinfo$(EXEEXT_FOR_BUILD) -d <$(srcdir)/sysroff.info >sysroff.h
222 sysinfo$(EXEEXT_FOR_BUILD): sysinfo.o syslex.o
223         $(CC_FOR_BUILD) $(CFLAGS) $(LDFLAGS) -o $@ sysinfo.o syslex.o 
225 syslex.o: syslex.c sysinfo.h
226         if [ -r syslex.c ]; then \
227           $(CC_FOR_BUILD) -c -I. $(CFLAGS)  syslex.c  ; \
228         else \
229           $(CC_FOR_BUILD) -c -I. -I$(srcdir) $(CFLAGS) $(srcdir)/syslex.c ;\
230         fi
232 sysinfo.o: sysinfo.c
233         if [ -r sysinfo.c ]; then \
234           $(CC_FOR_BUILD) -c -I. $(CFLAGS)  sysinfo.c  ; \
235         else \
236           $(CC_FOR_BUILD) -c -I. $(CFLAGS) $(srcdir)/sysinfo.c ; \
237         fi
239 # We need these for parallel make.
240 arparse.h: arparse.c
241 defparse.h: defparse.c
242 nlmheader.h: nlmheader.c
243 rcparse.h: rcparse.c
244 sysinfo.h: sysinfo.c
246 srconv_SOURCES = srconv.c coffgrok.c $(BULIBS)
248 dlltool_SOURCES = dlltool.c defparse.y deflex.l dyn-string.c $(BULIBS)
249 dlltool_LDADD = $(BFDLIB) $(LIBIBERTY) @LEXLIB@ $(INTLLIBS)
251 dlltool.o:dlltool.c
252         $(COMPILE) -c $(DLLTOOL_DEFS) $(srcdir)/dlltool.c
254 rescoff.o:rescoff.c
255         $(COMPILE) -c $(DLLTOOL_DEFS) $(srcdir)/rescoff.c
257 coffdump_SOURCES = coffdump.c coffgrok.c $(BULIBS)
259 sysdump_SOURCES = sysdump.c $(BULIBS)
261 # coff/sym.h and coff/ecoff.h won't be found by the automatic dependency
262 # scripts, since they are only included conditionally.
263 nlmconv.o: nlmconv.c $(INCDIR)/coff/sym.h $(INCDIR)/coff/ecoff.h
264         ldname=`echo ld | sed '$(transform)'`; \
265         $(COMPILE) -c -DLD_NAME="\"$${ldname}\"" @NLMCONV_DEFS@ $(srcdir)/nlmconv.c
267 nlmconv_SOURCES = nlmconv.c nlmheader.y $(BULIBS)
269 windres_SOURCES = windres.c resrc.c rescoff.c resbin.c rcparse.y rclex.l \
270         winduni.c resres.c $(BULIBS)
271 windres_LDADD = $(BFDLIB) $(LIBIBERTY) @LEXLIB@ $(INTLLIBS)
273 dllwrap_SOURCES = dllwrap.c dyn-string.c version.c
274 dllwrap_LDADD = $(LIBIBERTY) $(INTLLIBS)
277 DISTSTUFF = arparse.c arparse.h arlex.c nlmheader.c sysinfo.c sysinfo.h \
278         syslex.c deflex.c defparse.h defparse.c rclex.c rcparse.h rcparse.c
280 diststuff: $(DISTSTUFF) info
282 DISTCLEANFILES = stamp-under sysinfo underscore.c sysroff.c sysroff.h \
283         site.exp site.bak
285 # Targets to rebuild dependencies in this Makefile.
286 # Have to get rid of DEP1 here so that "$?" later includes all of $(CFILES).
287 DEP: dep.sed $(CFILES) $(HFILES) $(GENERATED_CFILES) $(GENERATED_HFILES) config.h
288         rm -f DEP1
289         $(MAKE) MKDEP="$(MKDEP)" DEP1
290         sed -f dep.sed < DEP1 > $@
291         echo '# IF YOU PUT ANYTHING HERE IT WILL GO AWAY' >> $@
293 DEP1: $(CFILES) $(GENERATED_CFILES)
294         echo '# DO NOT DELETE THIS LINE -- mkdep uses it.' > DEP2
295         echo '# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.' >> DEP2
296         $(MKDEP) $(INCLUDES) $(CFLAGS) $? >> DEP2
297         mv -f DEP2 $@
299 dep.sed: dep-in.sed config.status
300         objdir=`pwd`; \
301         sed <$(srcdir)/dep-in.sed >dep.sed      \
302                 -e 's!@INCDIR@!$(INCDIR)!'      \
303                 -e 's!@BFDDIR@!$(BFDDIR)!'      \
304                 -e 's!@SRCDIR@!$(srcdir)!'      \
305                 -e "s!@OBJDIR@!$${objdir}!"
307 dep: DEP
308         sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < Makefile > tmp-Makefile
309         cat DEP >> tmp-Makefile
310         $(SHELL) $(srcdir)/../move-if-change tmp-Makefile Makefile
312 dep-in: DEP
313         sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.in > tmp-Makefile.in
314         cat DEP >> tmp-Makefile.in
315         $(SHELL) $(srcdir)/../move-if-change tmp-Makefile.in $(srcdir)/Makefile.in
317 dep-am: DEP
318         sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.am > tmp-Makefile.am
319         cat DEP >> tmp-Makefile.am
320         $(SHELL) $(srcdir)/../move-if-change tmp-Makefile.am $(srcdir)/Makefile.am
322 .PHONY: dep dep-in dep-am
325 # DOCUMENTATION TARGETS
326 config.texi: Makefile
327         rm -f config.texi
328         echo '@set VERSION $(VERSION)' > config.texi
330 binutils.dvi: $(srcdir)/binutils.texi config.texi
332 binutils.info: $(srcdir)/binutils.texi config.texi
334 MAINTAINERCLEANFILES = config.texi
336 $(DEMANGLER_NAME).1: cxxfilt.man Makefile
337         sed -e 's/@PROGRAM@/$(DEMANGLER_NAME)/' < $(srcdir)/cxxfilt.man \
338                 > $(DEMANGLER_NAME).1
340 MOSTLYCLEANFILES = sysinfo $(DEMANGLER_NAME).1 binutils.log binutils.sum \
341         abcdefgh*
342 mostlyclean-local:
343         -rm -rf tmpdir
345 CLEANFILES = dep.sed DEP DEP1 DEP2
347 .PHONY: install-exec-local
349 install-exec-local: install-binPROGRAMS $(bin_PROGRAMS) $(noinst_PROGRAMS)
350         @list='$(noinst_PROGRAMS)'; for p in $$list; do \
351           if test -f $$p; then \
352             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)/'`"; \
353             $(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)/'`; \
354           else :; fi; \
355         done
356         $(mkinstalldirs) $(tooldir)/bin
357         for i in $(TOOL_PROGS); do \
358           if [ -f $$i$(EXEEXT) ]; then \
359             j=`echo $$i | sed -e 's/-new//'`; \
360             k=`echo $$j | sed '$(transform)'`; \
361             if [ "$(bindir)/$$k$(EXEEXT)" != "$(tooldir)/bin/$$j$(EXEEXT)" ]; then \
362               rm -f $(tooldir)/bin/$$j$(EXEEXT); \
363               ln $(bindir)/$$k$(EXEEXT) $(tooldir)/bin/$$j$(EXEEXT) >/dev/null 2>/dev/null \
364                 || $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$i$(EXEEXT) $(tooldir)/bin/$$j$(EXEEXT); \
365             fi; \
366           else true; \
367           fi; \
368         done
370 # What appears below is generated by a hacked mkdep using gcc -MM.
372 # DO NOT DELETE THIS LINE -- mkdep uses it.
373 # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
374 addr2line.o: addr2line.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
375   $(INCDIR)/getopt.h $(INCDIR)/libiberty.h $(INCDIR)/demangle.h \
376   bucomm.h config.h $(INCDIR)/bin-bugs.h $(INCDIR)/fopen-same.h
377 ar.o: ar.c ../bfd/bfd.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \
378   $(INCDIR)/progress.h bucomm.h config.h $(INCDIR)/bin-bugs.h \
379   $(INCDIR)/fopen-same.h $(INCDIR)/aout/ar.h $(BFDDIR)/libbfd.h \
380   arsup.h $(INCDIR)/filenames.h
381 arsup.o: arsup.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
382   arsup.h $(INCDIR)/libiberty.h bucomm.h config.h $(INCDIR)/bin-bugs.h \
383   $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h
384 bucomm.o: bucomm.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
385   $(INCDIR)/libiberty.h bucomm.h config.h $(INCDIR)/bin-bugs.h \
386   $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h
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
392 debug.o: debug.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
393   bucomm.h config.h $(INCDIR)/bin-bugs.h $(INCDIR)/fopen-same.h \
394   $(INCDIR)/libiberty.h debug.h
395 dlltool.o: dlltool.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
396   $(INCDIR)/libiberty.h bucomm.h config.h $(INCDIR)/bin-bugs.h \
397   $(INCDIR)/fopen-same.h $(INCDIR)/demangle.h dyn-string.h \
398   dlltool.h
399 filemode.o: filemode.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
400   bucomm.h config.h $(INCDIR)/bin-bugs.h $(INCDIR)/fopen-same.h
401 ieee.o: ieee.c ../bfd/bfd.h $(INCDIR)/ansidecl.h $(INCDIR)/ieee.h \
402   bucomm.h config.h $(INCDIR)/bin-bugs.h $(INCDIR)/fopen-same.h \
403   $(INCDIR)/libiberty.h debug.h budbg.h $(INCDIR)/filenames.h
404 is-ranlib.o: is-ranlib.c
405 is-strip.o: is-strip.c
406 maybe-ranlib.o: maybe-ranlib.c
407 maybe-strip.o: maybe-strip.c
408 nlmconv.o: nlmconv.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
409   $(INCDIR)/libiberty.h bucomm.h config.h $(INCDIR)/bin-bugs.h \
410   $(INCDIR)/fopen-same.h $(BFDDIR)/libnlm.h $(INCDIR)/nlm/common.h \
411   $(INCDIR)/nlm/internal.h $(INCDIR)/nlm/external.h nlmconv.h
412 nm.o: nm.c ../bfd/bfd.h $(INCDIR)/ansidecl.h $(INCDIR)/progress.h \
413   bucomm.h config.h $(INCDIR)/bin-bugs.h $(INCDIR)/fopen-same.h \
414   $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def $(INCDIR)/aout/ranlib.h \
415   $(INCDIR)/demangle.h $(INCDIR)/libiberty.h
416 not-ranlib.o: not-ranlib.c
417 not-strip.o: not-strip.c
418 objcopy.o: objcopy.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
419   $(INCDIR)/progress.h bucomm.h config.h $(INCDIR)/bin-bugs.h \
420   $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h budbg.h \
421   $(INCDIR)/filenames.h
422 objdump.o: objdump.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
423   $(INCDIR)/getopt.h $(INCDIR)/progress.h bucomm.h config.h \
424   $(INCDIR)/bin-bugs.h $(INCDIR)/fopen-same.h $(INCDIR)/dis-asm.h \
425   $(INCDIR)/libiberty.h $(INCDIR)/demangle.h debug.h \
426   budbg.h $(INCDIR)/aout/aout64.h
427 prdbg.o: prdbg.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
428   bucomm.h config.h $(INCDIR)/bin-bugs.h $(INCDIR)/fopen-same.h \
429   $(INCDIR)/libiberty.h debug.h budbg.h
430 rdcoff.o: rdcoff.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
431   $(INCDIR)/coff/internal.h bucomm.h config.h $(INCDIR)/bin-bugs.h \
432   $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h $(INCDIR)/demangle.h \
433   debug.h budbg.h $(BFDDIR)/libcoff.h $(INCDIR)/bfdlink.h
434 rddbg.o: rddbg.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
435   bucomm.h config.h $(INCDIR)/bin-bugs.h $(INCDIR)/fopen-same.h \
436   $(INCDIR)/libiberty.h debug.h budbg.h
437 size.o: size.c ../bfd/bfd.h $(INCDIR)/ansidecl.h $(INCDIR)/getopt.h \
438   bucomm.h config.h $(INCDIR)/bin-bugs.h $(INCDIR)/fopen-same.h \
439   $(INCDIR)/libiberty.h
440 srconv.o: srconv.c bucomm.h config.h $(INCDIR)/bin-bugs.h \
441   $(INCDIR)/fopen-same.h sysroff.h coffgrok.h $(INCDIR)/coff/internal.h \
442   $(BFDDIR)/libcoff.h $(INCDIR)/bfdlink.h sysroff.c
443 stabs.o: stabs.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
444   bucomm.h config.h $(INCDIR)/bin-bugs.h $(INCDIR)/fopen-same.h \
445   $(INCDIR)/libiberty.h $(INCDIR)/demangle.h debug.h \
446   budbg.h $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h \
447   $(INCDIR)/aout/stab.def
448 strings.o: strings.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
449   bucomm.h config.h $(INCDIR)/bin-bugs.h $(INCDIR)/fopen-same.h \
450   $(INCDIR)/libiberty.h
451 sysdump.o: sysdump.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
452   bucomm.h config.h $(INCDIR)/bin-bugs.h $(INCDIR)/fopen-same.h \
453   sysroff.h sysroff.c
454 version.o: version.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
455   bucomm.h config.h $(INCDIR)/bin-bugs.h $(INCDIR)/fopen-same.h
456 wrstabs.o: wrstabs.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
457   bucomm.h config.h $(INCDIR)/bin-bugs.h $(INCDIR)/fopen-same.h \
458   $(INCDIR)/libiberty.h debug.h budbg.h $(INCDIR)/aout/aout64.h \
459   $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def
460 windres.o: windres.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
461   $(INCDIR)/getopt.h bucomm.h config.h $(INCDIR)/bin-bugs.h \
462   $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h $(INCDIR)/obstack.h \
463   windres.h winduni.h
464 resrc.o: resrc.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
465   bucomm.h config.h $(INCDIR)/bin-bugs.h $(INCDIR)/fopen-same.h \
466   $(INCDIR)/libiberty.h windres.h winduni.h
467 rescoff.o: rescoff.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
468   bucomm.h config.h $(INCDIR)/bin-bugs.h $(INCDIR)/fopen-same.h \
469   $(INCDIR)/libiberty.h windres.h winduni.h $(INCDIR)/coff/internal.h \
470   $(BFDDIR)/libcoff.h $(INCDIR)/bfdlink.h
471 resbin.o: resbin.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
472   bucomm.h config.h $(INCDIR)/bin-bugs.h $(INCDIR)/fopen-same.h \
473   $(INCDIR)/libiberty.h windres.h winduni.h
474 winduni.o: winduni.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
475   bucomm.h config.h $(INCDIR)/bin-bugs.h $(INCDIR)/fopen-same.h \
476   winduni.h
477 readelf.o: readelf.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
478   $(INCDIR)/elf/common.h $(INCDIR)/elf/external.h $(INCDIR)/elf/internal.h \
479   $(INCDIR)/elf/dwarf2.h $(INCDIR)/elf/i386.h $(INCDIR)/elf/reloc-macros.h \
480   $(INCDIR)/elf/v850.h $(INCDIR)/elf/ppc.h $(INCDIR)/elf/mips.h \
481   $(INCDIR)/elf/alpha.h $(INCDIR)/elf/arm.h $(INCDIR)/elf/m68k.h \
482   $(INCDIR)/elf/sparc.h $(INCDIR)/elf/m32r.h $(INCDIR)/elf/d10v.h \
483   $(INCDIR)/elf/d30v.h $(INCDIR)/elf/sh.h $(INCDIR)/elf/mn10200.h \
484   $(INCDIR)/elf/mn10300.h $(INCDIR)/elf/hppa.h $(INCDIR)/elf/arc.h \
485   $(INCDIR)/elf/fr30.h $(INCDIR)/elf/mcore.h $(INCDIR)/elf/i960.h \
486   $(INCDIR)/elf/pj.h $(INCDIR)/elf/avr.h $(INCDIR)/elf/ia64.h \
487   bucomm.h config.h $(INCDIR)/bin-bugs.h $(INCDIR)/fopen-same.h
488 resres.o: resres.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
489   bucomm.h config.h $(INCDIR)/bin-bugs.h $(INCDIR)/fopen-same.h \
490   $(INCDIR)/libiberty.h windres.h winduni.h
491 dyn-string.o: dyn-string.c config.h $(INCDIR)/ansidecl.h \
492   dyn-string.h
493 dllwrap.o: dllwrap.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
494   $(INCDIR)/libiberty.h bucomm.h config.h $(INCDIR)/bin-bugs.h \
495   $(INCDIR)/fopen-same.h dyn-string.h
496 rename.o: rename.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
497   bucomm.h config.h $(INCDIR)/bin-bugs.h $(INCDIR)/fopen-same.h
498 underscore.o: underscore.c
499 arparse.o: arparse.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
500   bucomm.h config.h $(INCDIR)/bin-bugs.h $(INCDIR)/fopen-same.h \
501   arsup.h
502 arlex.o: arlex.c $(INCDIR)/libiberty.h arparse.h
503 sysroff.o: sysroff.c
504 sysinfo.o: sysinfo.c
505 syslex.o: syslex.c sysinfo.h
506 defparse.o: defparse.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
507   bucomm.h config.h $(INCDIR)/bin-bugs.h $(INCDIR)/fopen-same.h \
508   dlltool.h
509 deflex.o: deflex.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \
510   defparse.h dlltool.h
511 nlmheader.o: nlmheader.c ../bfd/bfd.h bucomm.h config.h \
512   $(INCDIR)/bin-bugs.h $(INCDIR)/fopen-same.h $(INCDIR)/nlm/common.h \
513   $(INCDIR)/nlm/internal.h nlmconv.h
514 rcparse.o: rcparse.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
515   bucomm.h config.h $(INCDIR)/bin-bugs.h $(INCDIR)/fopen-same.h \
516   $(INCDIR)/libiberty.h windres.h winduni.h
517 rclex.o: rclex.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
518   bucomm.h config.h $(INCDIR)/bin-bugs.h $(INCDIR)/fopen-same.h \
519   $(INCDIR)/libiberty.h windres.h winduni.h rcparse.h
520 # IF YOU PUT ANYTHING HERE IT WILL GO AWAY