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