Added new files elflink.c, elflink.h, elfcore.h.
[external/binutils.git] / bfd / Makefile.in
1 #    Makefile template for Configure for the BFD library.
2 #    Copyright (C) 1990, 91, 92, 93, 94, 1995 Free Software Foundation, Inc.
3 #    Written by Cygnus Support.
4
5 # This file is part of BFD, the Binary File Descriptor library.
6
7 # This program is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 2 of the License, or
10 # (at your option) any later version.
11
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 # GNU General Public License for more details.
16
17 # You should have received a copy of the GNU General Public License
18 # along with this program; if not, write to the Free Software
19 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20
21 VPATH = @srcdir@
22 srcdir = @srcdir@
23
24 prefix = @prefix@
25
26 exec_prefix = @exec_prefix@
27 bindir = $(exec_prefix)/bin
28 libdir = $(exec_prefix)/lib
29
30 datadir = $(prefix)/lib
31 mandir = $(prefix)/man
32 man1dir = $(mandir)/man1
33 man2dir = $(mandir)/man2
34 man3dir = $(mandir)/man3
35 man4dir = $(mandir)/man4
36 man5dir = $(mandir)/man5
37 man6dir = $(mandir)/man6
38 man7dir = $(mandir)/man7
39 man8dir = $(mandir)/man8
40 man9dir = $(mandir)/man9
41 infodir = $(prefix)/info
42 includedir = $(prefix)/include
43 oldincludedir =
44 docdir = doc
45
46 SHELL = /bin/sh
47
48 INSTALL = `cd $(srcdir)/..;pwd`/install.sh -c
49 INSTALL_PROGRAM = $(INSTALL)
50 INSTALL_DATA = $(INSTALL)
51
52 AR = ar
53 AR_FLAGS = rc
54 CFLAGS = -g
55 MAKEINFO = makeinfo
56 RANLIB = @RANLIB@
57
58 CC_FOR_BUILD = $(CC)
59
60 INCDIR = $(srcdir)/../include
61 CSEARCH = -I. -I$(srcdir) -I$(INCDIR)
62 DEP = mkdep
63
64 SUBDIRS = doc
65
66 TARGETLIB = libbfd.a
67
68 # bfd.h goes here, for now
69 BFD_H = bfd.h
70
71 # Some of these files should be in BFD*_BACKENDS below, but some programs
72 # won't link without them.  So, in order for some of the minimal-bfd
73 # hacks to work, they're also included here for now.
74 #       gdb: elf.o
75 #       objdump: elf.o
76 #
77 # Also, Jim Kingdon notes:
78 # Writing S-records should be included in all (or at least most)
79 # *-*-coff, *-*-aout, etc., configurations, because people will want to
80 # be able to use objcopy to create S-records.  (S-records are not useful
81 # for the debugger, so if you are downloading things as S-records you
82 # need two copies of the executable, one to download and one for the
83 # debugger).
84 BFD_LIBS = \
85         archive.o archures.o bfd.o cache.o coffgen.o core.o \
86         format.o init.o libbfd.o opncls.o reloc.o \
87         section.o syms.o targets.o hash.o linker.o \
88         elf.o elflink.o srec.o binary.o tekhex.o 
89
90 # This list is alphabetized to make it easier to keep in sync
91 # with the decls and initializer in archures.c.
92 ALL_MACHINES = \
93         cpu-a29k.o \
94         cpu-alpha.o \
95         $(start-sanitize-arc) \
96         cpu-arc.o \
97         $(end-sanitize-arc) \
98         cpu-arm.o \
99         cpu-h8300.o \
100         cpu-h8500.o \
101         cpu-hppa.o \
102         cpu-i386.o \
103         cpu-i960.o \
104         cpu-m68k.o \
105         cpu-m88k.o \
106         cpu-mips.o \
107         cpu-ns32k.o \
108         cpu-powerpc.o \
109         $(start-sanitize-rce) \
110         cpu-rce.o \
111         $(end-sanitize-rce) \
112         cpu-rs6000.o \
113         cpu-sh.o \
114         cpu-sparc.o \
115         cpu-vax.o \
116         cpu-we32k.o \
117         cpu-w65.o \
118         cpu-z8k.o
119
120 # The .o files needed by all of the 32 bit vectors that are configured into
121 # target_vector in targets.c if configured with --enable-targets=all.
122 BFD32_BACKENDS = \
123         aout-adobe.o \
124         aout-ns32k.o \
125         $(start-sanitize-rce) \
126         aout-rce.o \
127         $(end-sanitize-rce) \
128         aout0.o \
129         aout32.o \
130         bout.o \
131         cf-i386lynx.o \
132         cf-m68klynx.o \
133         cf-sparclynx.o \
134         coff-a29k.o \
135         coff-apollo.o \
136         coff-h8300.o \
137         coff-h8500.o \
138         coff-i386.o \
139         coff-go32.o \
140         coff-i960.o \
141         coff-m68k.o \
142         coff-m88k.o \
143         coff-mips.o \
144         coff-rs6000.o \
145         coff-sh.o \
146         coff-sparc.o \
147         coff-u68k.o \
148         coff-we32k.o \
149         coff-w65.o \
150         coff-z8k.o \
151         cofflink.o \
152         ecoff.o \
153         ecofflink.o \
154         $(start-sanitize-arc) \
155         elf32-arc.o \
156         $(end-sanitize-arc) \
157         elf32-gen.o \
158         elf32-hppa.o \
159         elf32-i386.o \
160         elf32-i860.o \
161         elf32-m68k.o \
162         elf32-m88k.o \
163         elf32-mips.o \
164         elf32-ppc.o \
165         elf32-sparc.o \
166         elf32.o \
167         hp300hpux.o \
168         som.o \
169         i386aout.o \
170         i386bsd.o \
171         i386linux.o \
172         i386lynx.o \
173         i386msdos.o \
174         i386netbsd.o \
175         i386mach3.o \
176         i386os9k.o \
177         ieee.o \
178         m68klynx.o \
179         m68knetbsd.o \
180         m88kmach3.o \
181         mipsbsd.o \
182         newsos3.o \
183         nlm.o \
184         nlm32-i386.o \
185         nlm32-sparc.o \
186         nlm32-ppc.o \
187         nlm32.o \
188         ns32knetbsd.o \
189         oasys.o \
190         pc532-mach.o \
191         pe-arm.o \
192         pei-arm.o \
193         pe-i386.o \
194         pei-i386.o \
195         reloc16.o \
196         sparclynx.o \
197         sparcnetbsd.o \
198         stab-syms.o \
199         sunos.o \
200         tekhex.o \
201         versados.o
202
203 # The .o files needed by all of the 64 bit vectors that are configured into
204 # target_vector in targets.c if configured with --enable-targets=all
205 # and --enable-64-bit-bfd.
206 BFD64_BACKENDS = \
207         aout64.o \
208         coff-alpha.o \
209         demo64.o \
210         elf64-gen.o \
211         elf64-sparc.o \
212         elf64.o \
213         nlm32-alpha.o \
214         nlm64.o
215
216 OPTIONAL_BACKENDS = \
217         aix386-core.o \
218         hpux-core.o \
219         irix-core.o \
220         lynx-core.o \
221         osf-core.o \
222         trad-core.o \
223         cisco-core.o
224
225 # These are defined by configure.in:
226 WORDSIZE = @wordsize@
227 ALL_BACKENDS = @all_backends@
228 BFD_BACKENDS = @bfd_backends@
229 BFD_MACHINES = @bfd_machines@
230 TDEFAULTS = @tdefaults@
231
232 all:
233
234 #### host and target dependent Makefile fragments come in here.
235 # @target_makefile_frag@
236 # @host_makefile_frag@
237 ###
238
239 FLAGS_TO_PASS = \
240         "prefix=$(prefix)" \
241         "exec_prefix=$(exec_prefix)" \
242         "against=$(against)" \
243         "AR=$(AR)" \
244         "AR_FLAGS=$(AR_FLAGS)" \
245         "CC=$(CC)" \
246         "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
247         "CFLAGS=$(CFLAGS)" \
248         "RANLIB=$(RANLIB)" \
249         "MAKEINFO=$(MAKEINFO)" \
250         "INSTALL=$(INSTALL)" \
251         "INSTALL_DATA=$(INSTALL_DATA)" \
252         "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
253         "BISON=$(BISON)"
254
255 ALL_CFLAGS=$(CFLAGS) $(HDEFINES) $(TDEFINES) $(CSEARCH) $(CSWITCHES)
256 .c.o:
257         $(CC) -c $(ALL_CFLAGS) $<
258
259 # C source files that correspond to .o's.
260 CFILES = libbfd.c opncls.c bfd.c archive.c targets.c cache.c \
261          archures.c coff-i386.c coff-go32.c aout64.c aout32.c sunos.c demo64.c \
262          coff-i960.c srec.c binary.c tekhex.c oasys.c ieee.c aout0.c \
263          ecoff.c ecofflink.c coff-m68k.c coff-u68k.c coff-apollo.c \
264          coff-a29k.c coff-rs6000.c coff-sparc.c coffgen.c format.c \
265          section.c core.c syms.c stab-syms.c reloc.c init.c \
266          coff-m88k.c coff-mips.c coff-sh.c trad-core.c cisco-core.c newsos3.c \
267          i386aout.c i386linux.c i386mach3.c i386netbsd.c i386os9k.c \
268          bout.c aout-adobe.c coff-we32k.c coff-w65.c \
269          i386bsd.c i386dynix.c cpu-h8300.c cpu-i960.c cpu-sparc.c cpu-m68k.c \
270          cpu-m88k.c cpu-vax.c cpu-mips.c cpu-a29k.c cpu-i386.c cpu-powerpc.c cpu-w65.c \
271          cpu-rs6000.c coff-h8300.c som.c cpu-hppa.c cpu-we32k.c reloc16.c \
272          mipsbsd.c cpu-sh.c \
273          elf.c elf32.c elf32-sparc.c elf32-i386.c elf32-i860.c elf32-m68k.c \
274          elf32-hppa.c elf32-m88k.c elf32-mips.c elf32-gen.c elf32-ppc.c \
275          elf64.c elf64-gen.c elf64-sparc.c \
276          nlm.c nlm32.c nlm32-i386.c nlm32-sparc.c nlm32-alpha.c \
277          nlm64.c coff-alpha.c cpu-alpha.c nlm32-ppc.c \
278          hp300bsd.c hp300hpux.c \
279          i386lynx.c cf-i386lynx.c m68klynx.c cf-m68klynx.c \
280          sparclynx.c cf-sparclynx.c aix386-core.c hpux-core.c \
281          irix-core.c lynx-core.c osf-core.c hash.c linker.c cofflink.c \
282          m68knetbsd.c ns32knetbsd.c sparcnetbsd.c pe-i386.c pei-i386.c \
283          versados.c
284
285 HFILES = aout-target.h aoutf1.h aoutx.h coffcode.h \
286          coffswap.h ecoffswap.h elf32-hppa.h elf32-target.h elf64-target.h \
287          elfcode.h hppa_stubs.h libaout.h libbfd.h \
288          libcoff.h libecoff.h libelf.h libhppa.h libieee.h libnlm.h \
289          liboasys.h nlm-target.h nlmcode.h som.h genlink.h netbsd.h
290
291 STAGESTUFF = $(TARGETLIB) $(OFILES)
292
293 all: Makefile $(TARGETLIB) 
294         @$(MAKE) subdir_do DO=all "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS)
295
296 .NOEXPORT:
297 MAKEOVERRIDES=
298
299 .PHONY: check installcheck
300 check:
301         @echo No testsuites exist for the BFD library. Nothing to check.
302
303 installcheck:
304         @echo No testsuites exist for the BFD library. Nothing to check.
305
306 info dvi : force
307         @$(MAKE) subdir_do DO=$@ "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS)
308
309 clean-info:
310         @$(MAKE) subdir_do DO=clean-info "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS)
311         
312 install-info: force
313         @$(MAKE) subdir_do DO=install-info "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS)
314
315 diststuff: info headers
316
317 # Various kinds of .o files to put in libbfd.a:
318 # BFD_LIBS      Generic routines, always needed.
319 # BFD_BACKENDS  Routines the configured targets need.
320 # BFD_MACHINES  Architecture-specific routines the configured targets need.
321 # HDEPFILES     Routines the host needs, regardless of target.
322 # TDEPFILES     Routines the target needs, regardless of host.
323 OFILES = $(BFD_LIBS) $(BFD_BACKENDS) $(BFD_MACHINES) $(HDEPFILES) $(TDEPFILES)
324
325 ofiles : Makefile
326         rm -f ofiles
327         f=""; \
328         for i in $(OFILES) ; do \
329           case " $$f " in \
330             *" $$i "*) ;; \
331             *) f="$$f $$i" ;; \
332           esac ; \
333         done ; \
334         echo $$f > ofiles
335
336 $(TARGETLIB): $(OFILES) ofiles
337         rm -f $(TARGETLIB)
338         @echo ofiles = `cat ofiles`
339         $(AR) $(AR_FLAGS) $(TARGETLIB) `cat ofiles`
340         $(RANLIB) $(TARGETLIB)
341
342 # When compiling archures.c and targets.c, supply the default target
343 # info from configure.
344
345
346 targets.o: targets.c Makefile
347         $(CC) -c $(ALL_CFLAGS) $(TDEFAULTS) $<
348
349 archures.o: archures.c Makefile
350         $(CC) -c $(ALL_CFLAGS) $(TDEFAULTS) $<
351
352 elf32-target.h : elfxx-target.h
353         rm -f elf32-target.h
354         sed -e s/NN/32/g < $(srcdir)/elfxx-target.h > elf32-target.new
355         mv -f elf32-target.new elf32-target.h
356
357 elf64-target.h : elfxx-target.h
358         rm -f elf64-target.h
359         sed -e s/NN/64/g < $(srcdir)/elfxx-target.h > elf64-target.new
360         mv -f elf64-target.new elf64-target.h
361
362 subdir_do: force
363         @for i in $(DODIRS); do \
364                 if [ -d ./$$i ] ; then \
365                         if (cd ./$$i; \
366                                 $(MAKE) $(FLAGS_TO_PASS) $(DO)) ; then true ; \
367                         else exit 1 ; fi ; \
368                 else true ; fi ; \
369         done
370
371 tags etags: TAGS
372
373 TAGS: force
374         etags $(INCDIR)/*.h $(srcdir)/*.h $(srcdir)/*.c
375
376 do_mostlyclean:
377         rm -f *.o *~ core *.E *.p *.ip aout-params.h gen-aout
378 do_clean: do_mostlyclean
379         rm -f libbfd.a TAGS bfd.h stmp-bfd.h ofiles \
380                 elf32-target.h elf64-target.h
381 do_distclean: do_clean
382         rm -f Makefile config.status sysdep.h
383
384 # Should we remove $(srcdir)/libcoff.h $(srcdir)/libbfd.h $(srcdir)/bfd-in2.h?
385 # make-stds.texi says it depends on whether they can be regenerated using
386 # this makefile.  Well, they can, but only via an explicit "make headers";
387 # the makefile does not regenerate them as needed.  So I guess we should not
388 # remove them in realclean.
389 do_realclean: do_distclean
390
391 mostlyclean: do_mostlyclean
392         $(MAKE) subdir_do DO=mostlyclean "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS)
393 clean: do_clean
394         $(MAKE) subdir_do DO=clean "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS)
395 distclean:
396         $(MAKE) subdir_do DO=distclean "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS)
397         $(MAKE) do_distclean
398 clobber realclean:
399         $(MAKE) subdir_do DO=realclean "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS)
400         $(MAKE) do_realclean
401
402 # Mark everything as depending on config.status, since the timestamp on
403 # sysdep.h might actually move backwards if we reconfig and relink it
404 # to a different hosts/h-xxx.h file.  This will force a recompile anyway.
405 BFD_H_DEPS= $(INCDIR)/ansidecl.h $(INCDIR)/obstack.h
406 RECONFIG = config.status
407 $(BFD_LIBS):  libbfd.h $(BFD_H) $(RECONFIG) $(BFD_H_DEPS)
408 $(BFD_MACHINES):  libbfd.h $(BFD_H) $(RECONFIG) $(BFD_H_DEPS)
409 $(BFD_BACKENDS):  libbfd.h $(BFD_H) $(RECONFIG) $(BFD_H_DEPS)
410 $(OPTIONAL_BACKENDS):  libbfd.h $(BFD_H) $(RECONFIG) $(BFD_H_DEPS)
411
412 # Get around a Sun Make bug in SunOS 4.1.1 with VPATH
413 cpu-i386.o:cpu-i386.c
414 cpu-z8k.o: cpu-z8k.c
415 cpu-h8500.o: cpu-h8500.c
416 cpu-we32k.o: cpu-we32k.c
417
418 saber:
419         #suppress 65 on bfd_map_over_sections 
420         #suppress 66 on bfd_map_over_sections 
421         #suppress 67 on bfd_map_over_sections 
422         #suppress 68 on bfd_map_over_sections 
423         #suppress 69 on bfd_map_over_sections 
424         #suppress 70 on bfd_map_over_sections 
425         #suppress 110 in bfd_map_over_sections 
426         #suppress 112 in bfd_map_over_sections 
427         #suppress 530 
428         #suppress 590 in swap_exec_header 
429         #suppress 590 in _bfd_dummy_core_file_matches_executable_p 
430         #suppress 590 in bfd_dont_truncate_arname
431         #suppress 590 on ignore 
432         #suppress 590 on abfd 
433         #setopt load_flags $(CFLAGS)
434         #load $(CFILES)
435
436
437 #-----------------------------------------------------------------------------
438 #               'STANDARD' GNU/960 TARGETS BELOW THIS POINT
439 #
440 # 'VERSION' file must be present and contain a string of the form "x.y"
441 #-----------------------------------------------------------------------------
442
443 ver960.c: FORCE
444         rm -f ver960.c
445         echo "char ${TARG}_ver[]= \"${TARG} `cat VERSION`, `date`\";" > ver960.c
446
447
448 # This target should be invoked before building a new release.
449 # 'VERSION' file must be present and contain a string of the form "x.y"
450 #
451 roll:
452         @V=`cat VERSION`                ; \
453         MAJ=`sed 's/\..*//' VERSION`    ; \
454         MIN=`sed 's/.*\.//' VERSION`    ; \
455         V=$$MAJ.`expr $$MIN + 1`        ; \
456         rm -f VERSION                   ; \
457         echo $$V >VERSION               ; \
458         echo Version $$V
459
460 # Dummy target to force execution of dependent targets.
461 #
462 force:
463
464 install:
465         $(INSTALL_DATA) libbfd.a $(libdir)/libbfd.a
466         $(RANLIB) $(libdir)/libbfd.a
467 # Install BFD include file, and others that it needs.  Install them
468 # both in GCC's include directory, and in the system include dir
469 # if configured as $(oldincludedir) -- which it usually isnt.
470         $(INSTALL_DATA) $(BFD_H) $(includedir)/bfd.h
471         $(INSTALL_DATA) $(INCDIR)/ansidecl.h $(includedir)/ansidecl.h
472         $(INSTALL_DATA) $(INCDIR)/bfdlink.h $(includedir)/bfdlink.h
473         $(INSTALL_DATA) $(INCDIR)/obstack.h $(includedir)/obstack.h
474         -if test -z "$(oldincludedir)"; then true; else \
475         test -d $(oldincludedir) || mkdir $(oldincludedir); \
476         $(INSTALL_DATA) $(BFD_H) $(oldincludedir)/bfd.h; \
477         $(INSTALL_DATA) $(INCDIR)/ansidecl.h $(oldincludedir)/ansidecl.h; \
478         $(INSTALL_DATA) $(INCDIR)/bfdlink.h $(oldincludedir)/bfdlink.h; \
479         $(INSTALL_DATA) $(INCDIR)/obstack.h $(oldincludedir)/obstack.h; \
480         $(MAKE) subdir_do DO=install "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS); \
481         fi
482
483 Makefile: Makefile.in configure.in @frags@
484         $(SHELL) config.status
485
486 # Have to get rid of .dep1 here so that "$?" later includes all of $(CFILES).
487 .dep: dep.sed $(CFILES) $(HFILES) bfd.h
488         rm -f .dep1
489         $(MAKE) DEP=$(DEP) .dep1
490         sed -f dep.sed <.dep1 >.dep
491
492 # This rule really wants a mkdep that runs "gcc -MM".
493 .dep1: $(CFILES)
494         rm -f .dep2
495         echo '# DO NOT DELETE THIS LINE -- mkdep uses it.' > .dep2
496         $(DEP) -f .dep2 $(ALL_CFLAGS) $?
497         $(srcdir)/../move-if-change .dep2 .dep1
498
499 dep.sed: dep-in.sed config.status
500         sed <$(srcdir)/dep-in.sed >dep.sed      \
501                 -e 's!@BFD_H@!$(BFD_H)!'        \
502                 -e 's!@INCDIR@!$(INCDIR)!'      \
503                 -e 's!@SRCDIR@!$(srcdir)!'
504
505 dep: .dep
506         sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < Makefile > tmp-Makefile
507         cat .dep >> tmp-Makefile
508         $(srcdir)/../move-if-change tmp-Makefile Makefile
509
510 dep-in: .dep
511         sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.in > tmp-Makefile.in
512         cat .dep >> tmp-Makefile.in
513         $(srcdir)/../move-if-change tmp-Makefile.in $(srcdir)/Makefile.in
514
515 host-aout.o: Makefile
516
517 # The following program can be used to generate a simple config file
518 # which can be folded into an h-XXX file for a new host, with some editing.
519 aout-params.h: gen-aout
520         ./gen-aout host > aout-params.h
521 gen-aout: $(srcdir)/gen-aout.c Makefile
522         $(CC) -o gen-aout $(CFLAGS) $(LFLAGS) $(srcdir)/gen-aout.c
523
524 BFDIN_H= $(srcdir)/bfd-in2.h
525
526 $(BFD_H): stmp-bfd.h ; @true
527
528 # The file ../include/bfd.h is from earlier attempts to get this right.
529 # If the file is still there, kill it.
530 # The weird sh*t with grep is to avoid printing "exit 1 (ignored)" type
531 # messages from make, and avoid various ways in which different versions
532 # of make will screw up exit status checks.
533 #       -grep...                -> make prints "exit 1" message
534 #       grep ... ; exit 0       -> sun(?) make notices grep failure
535 #       grep ... || exit 0      -> bsd4.4 make still notices
536 #       if grep ...             -> seems okay so far
537 stmp-bfd.h : $(srcdir)/bfd-in2.h Makefile
538         rm -f bfd.h-new 64 ../include/bfd.h
539         if grep BFD_HOST_64_BIT sysdep.h > 64 2>/dev/null; then true; \
540         else true; fi
541         sed -e 's/@WORDSIZE@/$(WORDSIZE)/' \
542             -e "s/@VERSION@/`cat $(srcdir)/VERSION`/" \
543             -e '/64-bit.*sysdep.h/ r 64' \
544                 < $(srcdir)/bfd-in2.h \
545                 > bfd.h-new
546         $(srcdir)/../move-if-change bfd.h-new $(BFD_H)
547         rm -f 64
548         touch stmp-bfd.h
549
550 # Could really use a "copy-if-change"...
551 headers:
552         (cd $(docdir); $(MAKE) protos $(FLAGS_TO_PASS))
553         cp $(docdir)/bfd.h bfd-in2.h-new
554         $(srcdir)/../move-if-change bfd-in2.h-new $(srcdir)/bfd-in2.h
555         cp $(docdir)/libbfd.h libbfd.h-new
556         $(srcdir)/../move-if-change libbfd.h-new $(srcdir)/libbfd.h
557         cp $(docdir)/libcoff.h libcoff.h-new
558         $(srcdir)/../move-if-change libcoff.h-new $(srcdir)/libcoff.h
559
560 bfd.info:
561         (cd $(docdir); $(MAKE) bfd.info $(FLAGS_TO_PASS))
562
563 bfd.dvi:
564         (cd $(docdir); $(MAKE) bfd.dvi $(FLAGS_TO_PASS))
565
566 bfd.ps: 
567         (cd $(docdir); $(MAKE) bfd.ps $(FLAGS_TO_PASS))
568
569 start-sanitize-arc:
570 elf32-arc.o: elf32-arc.c libelf.h $(INCDIR)/elf/common.h \
571   $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h \
572   $(INCDIR)/elf/arc.h elf32-target.h
573 end-sanitize-arc:
574
575 # What appears below is generated by a hacked mkdep using gcc -MM.
576
577 # DO NOT DELETE THIS LINE -- mkdep uses it.
578 # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
579
580 libbfd.o: libbfd.c
581 opncls.o: opncls.c
582 bfd.o: bfd.c $(INCDIR)/bfdlink.h $(INCDIR)/coff/internal.h \
583   $(INCDIR)/coff/sym.h libcoff.h libecoff.h $(INCDIR)/coff/ecoff.h \
584   libelf.h $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h \
585   $(INCDIR)/elf/external.h
586 archive.o: archive.c $(INCDIR)/aout/ar.h $(INCDIR)/aout/ranlib.h
587 targets.o: targets.c
588 cache.o: cache.c
589 archures.o: archures.c
590 coff-i386.o: coff-i386.c $(INCDIR)/coff/i386.h $(INCDIR)/coff/internal.h \
591   libcoff.h $(INCDIR)/bfdlink.h coffcode.h coffswap.h
592 coff-go32.o: coff-go32.c coff-i386.c $(INCDIR)/coff/i386.h \
593   $(INCDIR)/coff/internal.h libcoff.h $(INCDIR)/bfdlink.h \
594   coffcode.h coffswap.h
595 aout64.o: aout64.c aoutx.h $(INCDIR)/bfdlink.h libaout.h \
596   $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def \
597   $(INCDIR)/aout/ar.h
598 aout32.o: aout32.c aoutx.h $(INCDIR)/bfdlink.h libaout.h \
599   $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def \
600   $(INCDIR)/aout/ar.h
601 sunos.o: sunos.c $(INCDIR)/bfdlink.h libaout.h aoutf1.h \
602   $(INCDIR)/aout/sun4.h $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h \
603   $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h aout-target.h
604 demo64.o: demo64.c aoutf1.h $(INCDIR)/aout/sun4.h libaout.h \
605   $(INCDIR)/bfdlink.h $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h \
606   $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h aout-target.h
607 coff-i960.o: coff-i960.c $(INCDIR)/coff/i960.h $(INCDIR)/coff/internal.h \
608   libcoff.h $(INCDIR)/bfdlink.h coffcode.h coffswap.h
609 srec.o: srec.c $(INCDIR)/libiberty.h
610 binary.o: binary.c
611 tekhex.o: tekhex.c $(INCDIR)/libiberty.h
612 oasys.o: oasys.c $(INCDIR)/oasys.h liboasys.h
613 ieee.o: ieee.c $(INCDIR)/ieee.h libieee.h
614 aout0.o: aout0.c aoutf1.h $(INCDIR)/aout/sun4.h libaout.h \
615   $(INCDIR)/bfdlink.h $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h \
616   $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h aout-target.h
617 ecoff.o: ecoff.c $(INCDIR)/bfdlink.h $(INCDIR)/aout/ar.h \
618   $(INCDIR)/aout/ranlib.h $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def \
619   libaout.h $(INCDIR)/aout/aout64.h $(INCDIR)/coff/internal.h \
620   $(INCDIR)/coff/sym.h $(INCDIR)/coff/symconst.h $(INCDIR)/coff/ecoff.h \
621   libcoff.h libecoff.h
622 ecofflink.o: ecofflink.c $(INCDIR)/bfdlink.h $(INCDIR)/aout/stab_gnu.h \
623   $(INCDIR)/aout/stab.def $(INCDIR)/coff/internal.h $(INCDIR)/coff/sym.h \
624   $(INCDIR)/coff/symconst.h $(INCDIR)/coff/ecoff.h
625 coff-m68k.o: coff-m68k.c $(INCDIR)/coff/m68k.h $(INCDIR)/coff/internal.h \
626   libcoff.h $(INCDIR)/bfdlink.h coffcode.h coffswap.h
627 coff-u68k.o: coff-u68k.c coff-m68k.c $(INCDIR)/coff/m68k.h \
628   $(INCDIR)/coff/internal.h libcoff.h $(INCDIR)/bfdlink.h \
629   coffcode.h coffswap.h
630 coff-apollo.o: coff-apollo.c $(INCDIR)/coff/apollo.h \
631   $(INCDIR)/coff/internal.h libcoff.h $(INCDIR)/bfdlink.h \
632   coffcode.h coffswap.h
633 coff-a29k.o: coff-a29k.c $(INCDIR)/coff/a29k.h $(INCDIR)/coff/internal.h \
634   libcoff.h $(INCDIR)/bfdlink.h coffcode.h coffswap.h
635 coff-rs6000.o: coff-rs6000.c $(INCDIR)/coff/internal.h \
636   $(INCDIR)/coff/rs6000.h libcoff.h $(INCDIR)/bfdlink.h \
637   coffcode.h coffswap.h
638 coff-sparc.o: coff-sparc.c $(INCDIR)/coff/sparc.h $(INCDIR)/coff/internal.h \
639   libcoff.h $(INCDIR)/bfdlink.h coffcode.h coffswap.h
640 coffgen.o: coffgen.c $(INCDIR)/coff/internal.h libcoff.h \
641   $(INCDIR)/bfdlink.h
642 format.o: format.c
643 section.o: section.c
644 core.o: core.c
645 syms.o: syms.c $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def
646 stab-syms.o: stab-syms.c libaout.h $(INCDIR)/bfdlink.h \
647   $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab.def
648 reloc.o: reloc.c $(INCDIR)/bfdlink.h
649 init.o: init.c
650 coff-m88k.o: coff-m88k.c $(INCDIR)/coff/m88k.h $(INCDIR)/coff/internal.h \
651   libcoff.h $(INCDIR)/bfdlink.h coffcode.h coffswap.h
652 coff-mips.o: coff-mips.c $(INCDIR)/bfdlink.h $(INCDIR)/coff/internal.h \
653   $(INCDIR)/coff/sym.h $(INCDIR)/coff/symconst.h $(INCDIR)/coff/ecoff.h \
654   $(INCDIR)/coff/mips.h libcoff.h libecoff.h coffswap.h \
655   ecoffswap.h
656 coff-sh.o: coff-sh.c $(INCDIR)/bfdlink.h $(INCDIR)/coff/sh.h \
657   $(INCDIR)/coff/internal.h libcoff.h coffcode.h coffswap.h
658 trad-core.o: trad-core.c libaout.h $(INCDIR)/bfdlink.h
659 cisco-core.o: cisco-core.c
660 newsos3.o: newsos3.c $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h \
661   $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h libaout.h \
662   $(INCDIR)/bfdlink.h aout-target.h
663 i386aout.o: i386aout.c libaout.h $(INCDIR)/bfdlink.h \
664   aout-target.h $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h \
665   $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h
666 i386linux.o: i386linux.c $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h \
667   $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h libaout.h \
668   $(INCDIR)/bfdlink.h aout-target.h
669 i386mach3.o: i386mach3.c $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h \
670   $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h libaout.h \
671   $(INCDIR)/bfdlink.h aout-target.h
672 i386netbsd.o: i386netbsd.c netbsd.h libaout.h $(INCDIR)/bfdlink.h \
673   aout-target.h $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h \
674   $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h
675 i386os9k.o: i386os9k.c $(INCDIR)/bfdlink.h libaout.h \
676   $(INCDIR)/os9k.h
677 bout.o: bout.c $(INCDIR)/bfdlink.h genlink.h $(INCDIR)/bout.h \
678   $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def libaout.h
679 aout-adobe.o: aout-adobe.c $(INCDIR)/aout/adobe.h $(INCDIR)/aout/stab_gnu.h \
680   $(INCDIR)/aout/stab.def libaout.h $(INCDIR)/bfdlink.h
681 coff-we32k.o: coff-we32k.c $(INCDIR)/coff/we32k.h $(INCDIR)/coff/internal.h \
682   libcoff.h $(INCDIR)/bfdlink.h coffcode.h coffswap.h
683 coff-w65.o: coff-w65.c $(INCDIR)/bfdlink.h $(INCDIR)/coff/w65.h \
684   $(INCDIR)/coff/internal.h libcoff.h coffcode.h coffswap.h
685 i386bsd.o: i386bsd.c libaout.h $(INCDIR)/bfdlink.h \
686   aout-target.h $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h \
687   $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h
688 i386dynix.o: i386dynix.c $(INCDIR)/aout/dynix3.h aoutx.h \
689   $(INCDIR)/bfdlink.h libaout.h $(INCDIR)/aout/aout64.h \
690   $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h \
691   aout-target.h
692 cpu-h8300.o: cpu-h8300.c
693 cpu-i960.o: cpu-i960.c
694 cpu-sparc.o: cpu-sparc.c
695 cpu-m68k.o: cpu-m68k.c
696 cpu-m88k.o: cpu-m88k.c
697 cpu-vax.o: cpu-vax.c
698 cpu-mips.o: cpu-mips.c
699 cpu-a29k.o: cpu-a29k.c
700 cpu-i386.o: cpu-i386.c
701 cpu-powerpc.o: cpu-powerpc.c
702 cpu-w65.o: cpu-w65.c
703 cpu-rs6000.o: cpu-rs6000.c
704 coff-h8300.o: coff-h8300.c $(INCDIR)/bfdlink.h $(INCDIR)/coff/h8300.h \
705   $(INCDIR)/coff/internal.h libcoff.h coffcode.h coffswap.h
706 som.o: som.c
707 cpu-hppa.o: cpu-hppa.c
708 cpu-we32k.o: cpu-we32k.c
709 reloc16.o: reloc16.c $(INCDIR)/bfdlink.h genlink.h \
710   $(INCDIR)/coff/internal.h libcoff.h
711 mipsbsd.o: mipsbsd.c libaout.h $(INCDIR)/bfdlink.h \
712   aout-target.h $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h \
713   $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h
714 cpu-sh.o: cpu-sh.c
715 elf.o: elf.c $(INCDIR)/bfdlink.h libelf.h $(INCDIR)/elf/common.h \
716   $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h
717 elflink.o : elflink.c $(INCDIR)/bfdlink.h libelf.h $(INCDIR)/elf/common.h \
718   $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h
719 elf32.o: elf32.c elfcode.h $(INCDIR)/bfdlink.h libelf.h elfcore.h elflink.h \
720   $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h
721 elf32-sparc.o: elf32-sparc.c $(INCDIR)/bfdlink.h libelf.h \
722   $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
723   elf32-target.h
724 elf32-i386.o: elf32-i386.c $(INCDIR)/bfdlink.h libelf.h \
725   $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
726   elf32-target.h
727 elf32-i860.o: elf32-i860.c libelf.h $(INCDIR)/elf/common.h \
728   $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h \
729   elf32-target.h
730 elf32-m68k.o: elf32-m68k.c $(INCDIR)/bfdlink.h libelf.h \
731   $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
732   elf32-target.h
733 elf32-hppa.o: elf32-hppa.c $(INCDIR)/bfdlink.h libelf.h \
734   $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
735   elf32-hppa.h libhppa.h $(INCDIR)/elf/hppa.h hppa_stubs.h \
736   elf32-target.h
737 elf32-m88k.o: elf32-m88k.c libelf.h $(INCDIR)/elf/common.h \
738   $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h \
739   elf32-target.h
740 elf32-mips.o: elf32-mips.c $(INCDIR)/bfdlink.h genlink.h \
741   libelf.h $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h \
742   $(INCDIR)/elf/external.h $(INCDIR)/elf/mips.h $(INCDIR)/coff/sym.h \
743   $(INCDIR)/coff/symconst.h $(INCDIR)/coff/internal.h \
744   $(INCDIR)/coff/ecoff.h $(INCDIR)/coff/mips.h ecoffswap.h \
745   elf32-target.h
746 elf32-gen.o: elf32-gen.c libelf.h $(INCDIR)/elf/common.h \
747   $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h \
748   elf32-target.h
749 elf32-ppc.o: elf32-ppc.c $(INCDIR)/bfdlink.h libelf.h \
750   $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
751   $(INCDIR)/elf/ppc.h elf32-target.h
752 elf64.o: elf64.c elfcode.h $(INCDIR)/bfdlink.h libelf.h elfcore.h elflink.h \
753   $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h
754 elf64-gen.o: elf64-gen.c libelf.h $(INCDIR)/elf/common.h \
755   $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h \
756   elf64-target.h
757 elf64-sparc.o: elf64-sparc.c libelf.h $(INCDIR)/elf/common.h \
758   $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h \
759   elf64-target.h
760 nlm.o: nlm.c libnlm.h $(INCDIR)/nlm/common.h $(INCDIR)/nlm/internal.h \
761   $(INCDIR)/nlm/external.h
762 nlm32.o: nlm32.c nlmcode.h libnlm.h $(INCDIR)/nlm/common.h \
763   $(INCDIR)/nlm/internal.h $(INCDIR)/nlm/external.h
764 nlm32-i386.o: nlm32-i386.c $(INCDIR)/nlm/i386-ext.h \
765   libnlm.h $(INCDIR)/nlm/common.h $(INCDIR)/nlm/internal.h \
766   $(INCDIR)/nlm/external.h nlmswap.h nlm-target.h
767 nlm32-sparc.o: nlm32-sparc.c $(INCDIR)/nlm/sparc32-ext.h \
768   libnlm.h $(INCDIR)/nlm/common.h $(INCDIR)/nlm/internal.h \
769   $(INCDIR)/nlm/external.h nlmswap.h nlm-target.h
770 nlm32-alpha.o: nlm32-alpha.c $(INCDIR)/nlm/alpha-ext.h \
771   libnlm.h $(INCDIR)/nlm/common.h $(INCDIR)/nlm/internal.h \
772   $(INCDIR)/nlm/external.h nlmswap.h nlm-target.h
773 nlm64.o: nlm64.c nlmcode.h libnlm.h $(INCDIR)/nlm/common.h \
774   $(INCDIR)/nlm/internal.h $(INCDIR)/nlm/external.h
775 coff-alpha.o: coff-alpha.c $(INCDIR)/bfdlink.h $(INCDIR)/coff/internal.h \
776   $(INCDIR)/coff/sym.h $(INCDIR)/coff/symconst.h $(INCDIR)/coff/ecoff.h \
777   $(INCDIR)/coff/alpha.h libcoff.h libecoff.h coffswap.h \
778   ecoffswap.h
779 cpu-alpha.o: cpu-alpha.c
780 nlm32-ppc.o: nlm32-ppc.c $(INCDIR)/nlm/ppc-ext.h libnlm.h \
781   $(INCDIR)/nlm/common.h $(INCDIR)/nlm/internal.h $(INCDIR)/nlm/external.h \
782   nlmswap.h nlm-target.h
783 hp300bsd.o: hp300bsd.c libaout.h $(INCDIR)/bfdlink.h \
784   aout-target.h $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h \
785   $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h
786 hp300hpux.o: hp300hpux.c $(INCDIR)/aout/hp300hpux.h \
787   aoutx.h $(INCDIR)/bfdlink.h libaout.h $(INCDIR)/aout/aout64.h \
788   $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h \
789   aout-target.h
790 i386lynx.o: i386lynx.c libaout.h $(INCDIR)/bfdlink.h \
791   $(INCDIR)/aout/aout64.h aout-target.h $(INCDIR)/aout/stab_gnu.h \
792   $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h
793 cf-i386lynx.o: cf-i386lynx.c coff-i386.c $(INCDIR)/coff/i386.h \
794   $(INCDIR)/coff/internal.h libcoff.h $(INCDIR)/bfdlink.h \
795   coffcode.h coffswap.h
796 m68klynx.o: m68klynx.c libaout.h $(INCDIR)/bfdlink.h \
797   $(INCDIR)/aout/aout64.h aout-target.h $(INCDIR)/aout/stab_gnu.h \
798   $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h
799 cf-m68klynx.o: cf-m68klynx.c coff-m68k.c $(INCDIR)/coff/m68k.h \
800   $(INCDIR)/coff/internal.h libcoff.h $(INCDIR)/bfdlink.h \
801   coffcode.h coffswap.h
802 sparclynx.o: sparclynx.c $(INCDIR)/aout/sun4.h libaout.h \
803   $(INCDIR)/bfdlink.h $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h \
804   $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h aout-target.h
805 cf-sparclynx.o: cf-sparclynx.c coff-sparc.c $(INCDIR)/coff/sparc.h \
806   $(INCDIR)/coff/internal.h libcoff.h $(INCDIR)/bfdlink.h \
807   coffcode.h coffswap.h
808 aix386-core.o: aix386-core.c $(INCDIR)/coff/i386.h \
809   $(INCDIR)/coff/internal.h libcoff.h $(INCDIR)/bfdlink.h
810 hpux-core.o: hpux-core.c
811 irix-core.o: irix-core.c
812 lynx-core.o: lynx-core.c
813 osf-core.o: osf-core.c
814 hash.o: hash.c
815 linker.o: linker.c $(INCDIR)/bfdlink.h genlink.h
816 cofflink.o: cofflink.c $(INCDIR)/bfdlink.h $(INCDIR)/coff/internal.h \
817   libcoff.h
818 m68knetbsd.o: m68knetbsd.c netbsd.h libaout.h $(INCDIR)/bfdlink.h \
819   aout-target.h $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h \
820   $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h
821 ns32knetbsd.o: ns32knetbsd.c netbsd.h libaout.h $(INCDIR)/bfdlink.h \
822   aout-target.h $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h \
823   $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h
824 sparcnetbsd.o: sparcnetbsd.c netbsd.h libaout.h $(INCDIR)/bfdlink.h \
825   aout-target.h $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h \
826   $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h
827 pe-i386.o: pe-i386.c coff-i386.c $(INCDIR)/coff/i386.h \
828   $(INCDIR)/coff/internal.h $(INCDIR)/coff/pe.h libcoff.h \
829   $(INCDIR)/bfdlink.h coffcode.h coffswap.h
830 pei-i386.o: pei-i386.c coff-i386.c $(INCDIR)/coff/i386.h \
831   $(INCDIR)/coff/internal.h $(INCDIR)/coff/pe.h libcoff.h \
832   $(INCDIR)/bfdlink.h coffcode.h coffswap.h
833 versados.o: versados.c $(INCDIR)/libiberty.h
834
835 # IF YOU PUT ANYTHING HERE IT WILL GO AWAY