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