e323c6d906d0b984b2ead41ef7ec36b3fe602e22
[binutils-gdb.git] / bfd / Makefile.in
1 # Makefile template for Configure for the BFD library.
2 # Copyright (C) 1990, 91, 92, 93, 94, 95, 96, 1997
3 # Free Software Foundation, Inc.
4 # Written by Cygnus Support.
5 #
6 # This file is part of BFD, the Binary File Descriptor library.
7 #
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2 of the License, or
11 # (at your option) any later version.
12 #
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
17 #
18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write to the Free Software
20 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21
22 VPATH = @srcdir@
23 srcdir = @srcdir@
24
25 prefix = @prefix@
26
27 program_transform_name = @program_transform_name@
28 exec_prefix = @exec_prefix@
29 bindir = @bindir@
30 libdir = @libdir@
31
32 datadir = @datadir@
33 mandir = @mandir@
34 man1dir = $(mandir)/man1
35 man2dir = $(mandir)/man2
36 man3dir = $(mandir)/man3
37 man4dir = $(mandir)/man4
38 man5dir = $(mandir)/man5
39 man6dir = $(mandir)/man6
40 man7dir = $(mandir)/man7
41 man8dir = $(mandir)/man8
42 man9dir = $(mandir)/man9
43 infodir = @infodir@
44 includedir = @includedir@
45 oldincludedir =
46 docdir = doc
47
48 SHELL = /bin/sh
49
50 INSTALL = @INSTALL@
51 INSTALL_PROGRAM = @INSTALL_PROGRAM@
52 INSTALL_DATA = @INSTALL_DATA@
53
54 AR = @AR@
55 AR_FLAGS = rc
56 CC = @CC@
57 CFLAGS = @CFLAGS@
58 MAKEINFO = makeinfo
59 RANLIB = @RANLIB@
60
61 ALLLIBS = @ALLLIBS@
62
63 PICFLAG = @PICFLAG@
64 SHLIB = @SHLIB@
65 SHLIB_CC = @SHLIB_CC@
66 SHLIB_CFLAGS = @SHLIB_CFLAGS@
67 SHLIB_LIBS = @SHLIB_LIBS@
68 COMMON_SHLIB = @COMMON_SHLIB@
69 SHLINK = @SHLINK@
70
71 SONAME = lib`echo $(SHLIB) | sed -e 's/^lib//' | sed '$(program_transform_name)'`
72
73 CC_FOR_BUILD = @CC_FOR_BUILD@
74
75 INCDIR = $(srcdir)/../include
76 CSEARCH = -I. -I$(srcdir) -I$(INCDIR)
77 DEP = mkdep
78
79 SUBDIRS = doc
80
81 TARGETLIB = libbfd.a
82
83 # bfd.h goes here, for now
84 BFD_H = bfd.h
85
86 # Some of these files should be in BFD*_BACKENDS below, but some programs
87 # won't link without them. So, in order for some of the minimal-bfd
88 # hacks to work, they're also included here for now.
89 # gdb: elf.o
90 # objdump: elf.o
91 #
92 # Also, Jim Kingdon notes:
93 # Writing S-records should be included in all (or at least most)
94 # *-*-coff, *-*-aout, etc., configurations, because people will want to
95 # be able to use objcopy to create S-records. (S-records are not useful
96 # for the debugger, so if you are downloading things as S-records you
97 # need two copies of the executable, one to download and one for the
98 # debugger).
99 BFD_LIBS = \
100 archive.o archures.o bfd.o cache.o coffgen.o corefile.o \
101 format.o init.o libbfd.o opncls.o reloc.o \
102 section.o syms.o targets.o hash.o linker.o \
103 elf.o srec.o binary.o tekhex.o ihex.o stabs.o stab-syms.o
104
105 BFD_LIBS_CFILES = \
106 archive.c archures.c bfd.c cache.c coffgen.c corefile.c \
107 format.c init.c libbfd.c opncls.c reloc.c \
108 section.c syms.c targets.c hash.c linker.c \
109 elf.c srec.c binary.c tekhex.c ihex.c stabs.c stab-syms.c
110
111 # This list is alphabetized to make it easier to keep in sync
112 # with the decls and initializer in archures.c.
113 ALL_MACHINES = \
114 cpu-a29k.o \
115 cpu-alpha.o \
116 $(start-sanitize-arc) \
117 cpu-arc.o \
118 $(end-sanitize-arc) \
119 cpu-arm.o \
120 cpu-d10v.o \
121 $(start-sanitize-d30v) \
122 cpu-d30v.o \
123 $(end-sanitize-d30v) \
124 cpu-h8300.o \
125 cpu-h8500.o \
126 cpu-hppa.o \
127 cpu-i386.o \
128 cpu-i860.o \
129 cpu-i960.o \
130 cpu-m32r.o \
131 cpu-m68k.o \
132 cpu-m88k.o \
133 cpu-mips.o \
134 cpu-m10200.o \
135 cpu-m10300.o \
136 cpu-ns32k.o \
137 cpu-powerpc.o \
138 cpu-rs6000.o \
139 cpu-sh.o \
140 cpu-sparc.o \
141 $(start-sanitize-tic80) \
142 cpu-tic80.o \
143 $(end-sanitize-tic80) \
144 $(start-sanitize-v850) \
145 cpu-v850.o \
146 $(end-sanitize-v850) \
147 cpu-vax.o \
148 cpu-we32k.o \
149 cpu-w65.o \
150 cpu-z8k.o
151
152 ALL_MACHINES_CFILES = \
153 cpu-a29k.c \
154 cpu-alpha.c \
155 cpu-arm.c \
156 cpu-h8300.c \
157 cpu-h8500.c \
158 cpu-hppa.c \
159 cpu-i386.c \
160 cpu-i860.c \
161 cpu-i960.c \
162 cpu-m32r.c \
163 cpu-m68k.c \
164 cpu-m88k.c \
165 cpu-mips.c \
166 cpu-m10200.c \
167 cpu-m10300.c \
168 cpu-ns32k.c \
169 cpu-powerpc.c \
170 cpu-rs6000.c \
171 cpu-sh.c \
172 cpu-sparc.c \
173 cpu-vax.c \
174 cpu-we32k.c \
175 cpu-w65.c \
176 cpu-z8k.c
177
178 # The .o files needed by all of the 32 bit vectors that are configured into
179 # target_vector in targets.c if configured with --enable-targets=all.
180 BFD32_BACKENDS = \
181 aout-adobe.o \
182 aout-arm.o \
183 aout-ns32k.o \
184 aout-sparcle.o \
185 aout0.o \
186 aout32.o \
187 bout.o \
188 cf-i386lynx.o \
189 cf-m68klynx.o \
190 cf-sparclynx.o \
191 coff-a29k.o \
192 coff-apollo.o \
193 coff-arm.o \
194 coff-aux.o \
195 coff-h8300.o \
196 coff-h8500.o \
197 coff-i386.o \
198 coff-go32.o \
199 coff-i860.o \
200 coff-i960.o \
201 coff-m68k.o \
202 coff-m88k.o \
203 coff-mips.o \
204 coff-pmac.o \
205 coff-rs6000.o \
206 coff-sh.o \
207 coff-sparc.o \
208 coff-stubgo32.o \
209 coff-svm68k.o \
210 $(start-sanitize-tic80) \
211 coff-tic80.o \
212 $(end-sanitize-tic80) \
213 coff-u68k.o \
214 coff-we32k.o \
215 coff-w65.o \
216 coff-z8k.o \
217 cofflink.o \
218 ecoff.o \
219 ecofflink.o \
220 $(start-sanitize-arc) \
221 elf32-arc.o \
222 $(end-sanitize-arc) \
223 elf32-d10v.o \
224 $(start-sanitize-d30v) \
225 elf32-d30v.o \
226 $(end-sanitize-d30v) \
227 elf32-gen.o \
228 elf32-hppa.o \
229 elf32-i386.o \
230 elf32-i860.o \
231 elf32-m32r.o \
232 elf32-m68k.o \
233 elf32-m88k.o \
234 elf32-mips.o \
235 elf-m10200.o \
236 elf-m10300.o \
237 elf32-ppc.o \
238 elf32-sh.o \
239 elf32-sparc.o \
240 $(start-sanitize-v850) \
241 elf32-v850.o \
242 $(end-sanitize-v850) \
243 elf32.o \
244 elflink.o \
245 hp300bsd.o \
246 hp300hpux.o \
247 som.o \
248 i386aout.o \
249 i386bsd.o \
250 i386dynix.o \
251 i386freebsd.o \
252 i386linux.o \
253 i386lynx.o \
254 i386msdos.o \
255 i386netbsd.o \
256 i386mach3.o \
257 i386os9k.o \
258 ieee.o \
259 m68k4knetbsd.o \
260 m68klinux.o \
261 m68klynx.o \
262 m68knetbsd.o \
263 m88kmach3.o \
264 mipsbsd.o \
265 newsos3.o \
266 nlm.o \
267 nlm32-i386.o \
268 nlm32-sparc.o \
269 nlm32-ppc.o \
270 nlm32.o \
271 ns32knetbsd.o \
272 oasys.o \
273 pc532-mach.o \
274 pe-arm.o \
275 pei-arm.o \
276 pe-i386.o \
277 pei-i386.o \
278 pe-ppc.o \
279 pei-ppc.o \
280 ppcboot.o \
281 reloc16.o \
282 riscix.o \
283 sparclinux.o \
284 sparclynx.o \
285 sparcnetbsd.o \
286 sunos.o \
287 tekhex.o \
288 versados.o \
289 xcofflink.o
290
291 BFD32_BACKENDS_CFILES = \
292 aout-adobe.c \
293 aout-arm.c \
294 aout-ns32k.c \
295 aout-sparcle.c \
296 aout0.c \
297 aout32.c \
298 bout.c \
299 cf-i386lynx.c \
300 cf-m68klynx.c \
301 cf-sparclynx.c \
302 coff-a29k.c \
303 coff-apollo.c \
304 coff-arm.c \
305 coff-aux.c \
306 coff-h8300.c \
307 coff-h8500.c \
308 coff-i386.c \
309 coff-i860.c \
310 coff-go32.c \
311 coff-i960.c \
312 coff-m68k.c \
313 coff-m88k.c \
314 coff-mips.c \
315 coff-pmac.c \
316 coff-rs6000.c \
317 coff-sh.c \
318 coff-sparc.c \
319 coff-stubgo32.c \
320 coff-svm68k.c \
321 coff-u68k.c \
322 coff-we32k.c \
323 coff-w65.c \
324 coff-z8k.c \
325 cofflink.c \
326 ecoff.c \
327 ecofflink.c \
328 elf32-gen.c \
329 elf32-hppa.c \
330 elf32-i386.c \
331 elf32-i860.c \
332 elf32-m32r.c \
333 elf32-m68k.c \
334 elf32-m88k.c \
335 elf32-mips.c \
336 elf-m10200.c \
337 elf-m10300.c \
338 elf32-ppc.c \
339 elf32-sh.c \
340 elf32-sparc.c \
341 elf32.c \
342 elflink.c \
343 hp300bsd.c \
344 hp300hpux.c \
345 som.c \
346 i386aout.c \
347 i386bsd.c \
348 i386dynix.c \
349 i386freebsd.c \
350 i386linux.c \
351 i386lynx.c \
352 i386msdos.c \
353 i386netbsd.c \
354 i386mach3.c \
355 i386os9k.c \
356 ieee.c \
357 m68k4knetbsd.c \
358 m68klinux.c \
359 m68klynx.c \
360 m68knetbsd.c \
361 m88kmach3.c \
362 mipsbsd.c \
363 newsos3.c \
364 nlm.c \
365 nlm32-i386.c \
366 nlm32-sparc.c \
367 nlm32-ppc.c \
368 nlm32.c \
369 ns32knetbsd.c \
370 oasys.c \
371 pc532-mach.c \
372 pe-arm.c \
373 pei-arm.c \
374 pe-i386.c \
375 pei-i386.c \
376 pe-ppc.c \
377 pei-ppc.c \
378 ppcboot.c \
379 reloc16.c \
380 riscix.c \
381 sparclinux.c \
382 sparclynx.c \
383 sparcnetbsd.c \
384 sunos.c \
385 tekhex.c \
386 versados.c \
387 xcofflink.c
388
389 # The .o files needed by all of the 64 bit vectors that are configured into
390 # target_vector in targets.c if configured with --enable-targets=all
391 # and --enable-64-bit-bfd.
392 BFD64_BACKENDS = \
393 aout64.o \
394 coff-alpha.o \
395 demo64.o \
396 elf64-alpha.o \
397 elf64-gen.o \
398 elf64-mips.o \
399 elf64-sparc.o \
400 elf64.o \
401 evax-alpha.o \
402 evax-egsd.o \
403 evax-etir.o \
404 evax-emh.o \
405 evax-misc.o \
406 nlm32-alpha.o \
407 nlm64.o
408
409 BFD64_BACKENDS_CFILES = \
410 aout64.c \
411 coff-alpha.c \
412 demo64.c \
413 elf64-alpha.c \
414 elf64-gen.c \
415 elf64-mips.c \
416 elf64-sparc.c \
417 elf64.c \
418 evax-alpha.c \
419 evax-egsd.c \
420 evax-etir.c \
421 evax-emh.c \
422 evax-misc.c \
423 nlm32-alpha.c \
424 nlm64.c
425
426 OPTIONAL_BACKENDS = \
427 aix386-core.o \
428 hpux-core.o \
429 irix-core.o \
430 lynx-core.o \
431 osf-core.o \
432 trad-core.o \
433 cisco-core.o
434
435 OPTIONAL_BACKENDS_CFILES = \
436 aix386-core.c \
437 hpux-core.c \
438 irix-core.c \
439 lynx-core.c \
440 osf-core.c \
441 trad-core.c \
442 cisco-core.c
443
444 # These are defined by configure.in:
445 WORDSIZE = @wordsize@
446 ALL_BACKENDS = @all_backends@
447 BFD_BACKENDS = @bfd_backends@
448 BFD_MACHINES = @bfd_machines@
449 TDEFAULTS = @tdefaults@
450
451 all:
452
453 FLAGS_TO_PASS = \
454 "prefix=$(prefix)" \
455 "exec_prefix=$(exec_prefix)" \
456 "against=$(against)" \
457 "AR=$(AR)" \
458 "AR_FLAGS=$(AR_FLAGS)" \
459 "CC=$(CC)" \
460 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
461 "CFLAGS=$(CFLAGS)" \
462 "RANLIB=$(RANLIB)" \
463 "MAKEINFO=$(MAKEINFO)" \
464 "INSTALL=$(INSTALL)" \
465 "INSTALL_DATA=$(INSTALL_DATA)" \
466 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)"
467
468 ALL_CFLAGS=-D_GNU_SOURCE @HDEFINES@ @COREFLAG@ @TDEFINES@ $(CSEARCH) $(CSWITCHES) $(CFLAGS)
469 .c.o:
470 if [ -n "$(PICFLAG)" ]; then \
471 $(CC) -c $(PICFLAG) $(ALL_CFLAGS) $< -o pic/$@; \
472 else true; fi
473 $(CC) -c $(ALL_CFLAGS) $<
474
475 bfd_libs_here =
476 all_machines_here =
477 bfd32_backends_here =
478 core_files_here =
479 configs_not_included_in_all_targets_option_here =
480
481 # C source files that correspond to .o's.
482 CFILES = \
483 $(BFD_LIBS_CFILES) \
484 $(ALL_MACHINES_CFILES) \
485 $(BFD32_BACKENDS_CFILES) \
486 $(BFD64_BACKENDS_CFILES) \
487 $(OPTIONAL_BACKENDS_CFILES)
488
489 HFILES = \
490 aout-target.h aoutf1.h aoutx.h coffcode.h coffswap.h \
491 ecoffswap.h elf32-hppa.h elf32-target.h elf64-target.h \
492 elfcode.h evax.h genlink.h go32stub.h hppa_stubs.h libaout.h \
493 libbfd.h libcoff.h libecoff.h elf-bfd.h libhppa.h libieee.h \
494 libnlm.h liboasys.h netbsd.h nlm-target.h nlmcode.h ns32k.h som.h \
495 targmatch.h
496
497 all: Makefile $(ALLLIBS) @PICLIST@
498 @$(MAKE) subdir_do DO=all "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS)
499
500 .NOEXPORT:
501 MAKEOVERRIDES=
502
503 .PHONY: check installcheck
504 check:
505 @echo No testsuites exist for the BFD library. Nothing to check.
506
507 installcheck:
508 @echo No testsuites exist for the BFD library. Nothing to check.
509
510 info dvi : force
511 @$(MAKE) subdir_do DO=$@ "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS)
512
513 clean-info:
514 @$(MAKE) subdir_do DO=clean-info "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS)
515
516 install-info: force
517 @$(MAKE) subdir_do DO=install-info "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS)
518
519 diststuff: info
520
521 # Various kinds of .o files to put in libbfd.a:
522 # BFD_LIBS Generic routines, always needed.
523 # BFD_BACKENDS Routines the configured targets need.
524 # BFD_MACHINES Architecture-specific routines the configured targets need.
525 # COREFILE Core file routines for a native configuration
526 OFILES = $(BFD_LIBS) $(BFD_BACKENDS) $(BFD_MACHINES) @COREFILE@
527
528 stamp-ofiles: Makefile
529 rm -f tofiles
530 f=""; \
531 for i in $(OFILES) ; do \
532 case " $$f " in \
533 *" $$i "*) ;; \
534 *) f="$$f $$i" ;; \
535 esac ; \
536 done ; \
537 echo $$f > tofiles
538 $(SHELL) $(srcdir)/../move-if-change tofiles ofiles
539 touch stamp-ofiles
540
541 ofiles: stamp-ofiles ; @true
542
543 $(TARGETLIB): $(OFILES) ofiles
544 rm -f $(TARGETLIB)
545 @echo ofiles = `cat ofiles`
546 $(AR) $(AR_FLAGS) $(TARGETLIB) `cat ofiles`
547 $(RANLIB) $(TARGETLIB)
548
549 stamp-piclist: ofiles
550 rm -f tpiclist
551 if [ -n "$(PICFLAG)" ]; then \
552 sed -e 's,\([^ ][^ ]*\),pic/\1,g' ofiles > tpiclist; \
553 else \
554 cp ofiles tpiclist; \
555 fi
556 $(SHELL) $(srcdir)/../move-if-change tpiclist piclist
557 touch stamp-piclist
558
559 piclist: stamp-piclist ; @true
560
561 $(SHLIB): stamp-picdir $(OFILES) piclist
562 rm -f $(SHLIB)
563 $(SHLIB_CC) $(SHLIB_CFLAGS) -o $(SHLIB) `cat piclist` $(SHLIB_LIBS)
564
565 # We make a link from libbfd.so to libbfd.so.VERSION for linking, and
566 # also a link from libTARGET-bfd.so.VERSION for running.
567 $(SHLINK): $(SHLIB)
568 ts=lib`echo $(SHLIB) | sed -e 's/^lib//' | sed -e '$(program_transform_name)'`; \
569 if [ "$$ts" != "$(SHLIB)" ]; then \
570 rm -f $$ts; \
571 ln -s $(SHLIB) $$ts; \
572 else true; fi
573 rm -f $(SHLINK)
574 ln -s $(SHLIB) $(SHLINK)
575
576 # This target creates libTARGET-bfd.so.VERSION as a symlink to
577 # libbfd.so.VERSION. It is used on SunOS, which does not have SONAME.
578 stamp-tshlink: $(SHLIB)
579 tf=lib`echo $(SHLIB) | sed -e 's/^lib//' | sed '$(program_transform_name)'`; \
580 if [ "$$tf" != "$(SHLIB)" ]; then \
581 rm -f $$tf; \
582 ln -s $(SHLIB) $$tf; \
583 else true; fi
584 touch stamp-tshlink
585
586 # This file holds an array associating configuration triplets and
587 # vector names. It is built from config.bfd. It is not compiled by
588 # itself, but is included by targets.c.
589 targmatch.h: config.bfd targmatch.sed
590 rm -f targmatch.h
591 sed -f $(srcdir)/targmatch.sed < $(srcdir)/config.bfd > targmatch.new
592 mv -f targmatch.new targmatch.h
593
594 # When compiling archures.c and targets.c, supply the default target
595 # info from configure.
596
597 targets.o: targets.c Makefile
598 if [ -n "$(PICFLAG)" ]; then \
599 $(CC) -c $(PICFLAG) $(TDEFAULTS) $(ALL_CFLAGS) $(srcdir)/targets.c -o pic/targets.o; \
600 else true; fi
601 $(CC) -c $(TDEFAULTS) $(ALL_CFLAGS) $(srcdir)/targets.c
602
603 archures.o: archures.c Makefile
604 if [ -n "$(PICFLAG)" ]; then \
605 $(CC) -c $(PICFLAG) $(TDEFAULTS) $(ALL_CFLAGS) $(srcdir)/archures.c -o pic/archures.o; \
606 else true; fi
607 $(CC) -c $(TDEFAULTS) $(ALL_CFLAGS) $(srcdir)/archures.c
608
609 elf32-target.h : elfxx-target.h
610 rm -f elf32-target.h
611 sed -e s/NN/32/g < $(srcdir)/elfxx-target.h > elf32-target.new
612 mv -f elf32-target.new elf32-target.h
613
614 elf64-target.h : elfxx-target.h
615 rm -f elf64-target.h
616 sed -e s/NN/64/g < $(srcdir)/elfxx-target.h > elf64-target.new
617 mv -f elf64-target.new elf64-target.h
618
619 subdir_do: force
620 @for i in $(DODIRS); do \
621 if [ -d ./$$i ] ; then \
622 if (cd ./$$i; \
623 $(MAKE) $(FLAGS_TO_PASS) $(DO)) ; then true ; \
624 else exit 1 ; fi ; \
625 else true ; fi ; \
626 done
627
628 tags etags: TAGS
629
630 TAGS: force
631 etags $(INCDIR)/*.h $(srcdir)/*.h $(srcdir)/*.c
632
633 do_mostlyclean:
634 rm -f *.o *~ core *.E *.p *.ip aout-params.h gen-aout pic/*.o
635 do_clean: do_mostlyclean
636 rm -f libbfd.a TAGS bfd.h stmp-bfd.h bfd-tmp.h ofiles stamp-ofiles \
637 elf32-target.h elf64-target.h $(SHLIB) $(SHLINK) \
638 piclist stamp-piclist targmatch.h
639 do_distclean: do_clean
640 rm -f Makefile config.status config.cache config.h config.log \
641 stamp-h bfd-in3.h
642 rm -rf pic stamp-picdir
643
644 # do_maintainer_clean really should remove bfd-in2.h, since it is a
645 # generated file. However, the GNU standards say that
646 # maintainer-clean should not delete anything which needs to exist in
647 # order to run configure, and bfd-in2.h is used by configure.
648 do_maintainer_clean: do_distclean
649 rm -f $(srcdir)/libbfd.h $(srcdir)/libcoff.h
650
651 mostlyclean: do_mostlyclean
652 $(MAKE) subdir_do DO=mostlyclean "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS)
653 clean: do_clean
654 $(MAKE) subdir_do DO=clean "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS)
655 distclean:
656 $(MAKE) subdir_do DO=distclean "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS)
657 $(MAKE) do_distclean
658 clobber maintainer-clean realclean:
659 @echo "This command is intended for maintainers to use;"
660 @echo "it deletes files that may require special tools to rebuild."
661 $(MAKE) subdir_do DO=maintainer-clean "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS)
662 $(MAKE) do_maintainer_clean
663
664 BFD_H_DEPS= $(INCDIR)/ansidecl.h
665 LOCAL_H_DEPS= libbfd.h sysdep.h config.h
666 $(BFD_LIBS): $(BFD_H) $(BFD_H_DEPS) $(LOCAL_H_DEPS)
667 $(BFD_MACHINES): $(BFD_H) $(BFD_H_DEPS) $(LOCAL_H_DEPS)
668 $(BFD_BACKENDS): $(BFD_H) $(BFD_H_DEPS) $(LOCAL_H_DEPS)
669 $(OPTIONAL_BACKENDS): $(BFD_H) $(BFD_H_DEPS) $(LOCAL_H_DEPS)
670
671 # Get around a Sun Make bug in SunOS 4.1.1 with VPATH
672 cpu-i386.o:cpu-i386.c
673 cpu-z8k.o: cpu-z8k.c
674 cpu-h8500.o: cpu-h8500.c
675 cpu-we32k.o: cpu-we32k.c
676
677 saber:
678 #suppress 65 on bfd_map_over_sections
679 #suppress 66 on bfd_map_over_sections
680 #suppress 67 on bfd_map_over_sections
681 #suppress 68 on bfd_map_over_sections
682 #suppress 69 on bfd_map_over_sections
683 #suppress 70 on bfd_map_over_sections
684 #suppress 110 in bfd_map_over_sections
685 #suppress 112 in bfd_map_over_sections
686 #suppress 530
687 #suppress 590 in swap_exec_header
688 #suppress 590 in _bfd_dummy_core_file_matches_executable_p
689 #suppress 590 in bfd_dont_truncate_arname
690 #suppress 590 on ignore
691 #suppress 590 on abfd
692 #setopt load_flags $(CFLAGS)
693 #load $(CFILES)
694
695
696 #-----------------------------------------------------------------------------
697 # 'STANDARD' GNU/960 TARGETS BELOW THIS POINT
698 #
699 # 'VERSION' file must be present and contain a string of the form "x.y"
700 #-----------------------------------------------------------------------------
701
702 ver960.c: FORCE
703 rm -f ver960.c
704 echo "char ${TARG}_ver[]= \"${TARG} `cat VERSION`, `date`\";" > ver960.c
705
706
707 # This target should be invoked before building a new release.
708 # 'VERSION' file must be present and contain a string of the form "x.y"
709 #
710 roll:
711 @V=`cat VERSION` ; \
712 MAJ=`sed 's/\..*//' VERSION` ; \
713 MIN=`sed 's/.*\.//' VERSION` ; \
714 V=$$MAJ.`expr $$MIN + 1` ; \
715 rm -f VERSION ; \
716 echo $$V >VERSION ; \
717 echo Version $$V
718
719 # Dummy target to force execution of dependent targets.
720 #
721 force:
722
723 .PHONY: install installdirs
724 install: $(ALLLIBS) installdirs
725 for f in $(ALLLIBS); do \
726 if [ "$$f" = "stamp-tshlink" ]; then \
727 continue; \
728 fi; \
729 tf=lib`echo $$f | sed -e 's/^lib//' | sed '$(program_transform_name)'`; \
730 rm -f $(libdir)/$$tf; \
731 if [ "$$f" = "$(SHLINK)" ]; then \
732 ts=lib`echo $(SHLIB) | sed -e 's/^lib//' | sed '$(program_transform_name)'`; \
733 ln -s $$ts $(libdir)/$$tf; \
734 elif [ "$$f" = "$(SHLIB)" ]; then \
735 @INSTALL_SHLIB@ \
736 else \
737 $(INSTALL_DATA) $$f $(libdir)/$$tf; \
738 $(RANLIB) $(libdir)/$$tf; \
739 chmod a-x $(libdir)/$$tf; \
740 fi; \
741 done
742 # Install BFD include file, and others that it needs. Install them
743 # both in GCC's include directory, and in the system include dir
744 # if configured as $(oldincludedir) -- which it usually isnt.
745 $(INSTALL_DATA) $(BFD_H) $(includedir)/bfd.h
746 $(INSTALL_DATA) $(INCDIR)/ansidecl.h $(includedir)/ansidecl.h
747 $(INSTALL_DATA) $(INCDIR)/bfdlink.h $(includedir)/bfdlink.h
748 -if test -z "$(oldincludedir)"; then true; else \
749 $(SHELL) $(srcdir)/../mkinstalldirs $(oldincludedir); \
750 $(INSTALL_DATA) $(BFD_H) $(oldincludedir)/bfd.h; \
751 $(INSTALL_DATA) $(INCDIR)/ansidecl.h $(oldincludedir)/ansidecl.h; \
752 $(INSTALL_DATA) $(INCDIR)/bfdlink.h $(oldincludedir)/bfdlink.h; \
753 fi
754 $(MAKE) subdir_do DO=install "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS)
755
756 installdirs: $(srcdir)/../mkinstalldirs
757 $(SHELL) $(srcdir)/../mkinstalldirs $(libdir) $(includedir)
758
759 Makefile: Makefile.in config.status
760 CONFIG_FILES=Makefile CONFIG_HEADERS= $(SHELL) ./config.status
761
762 config.h: stamp-h ; @true
763 stamp-h: config.in config.status
764 CONFIG_FILES= CONFIG_HEADERS=config.h:config.in $(SHELL) ./config.status
765
766 config.status: configure configure.host config.bfd VERSION
767 $(SHELL) config.status --recheck
768
769 # Have to get rid of .dep1 here so that "$?" later includes all of $(CFILES).
770 .dep: dep.sed $(CFILES) $(HFILES) bfd.h
771 rm -f .dep1
772 $(MAKE) DEP=$(DEP) .dep1
773 sed -f dep.sed <.dep1 >.dep
774
775 # This rule really wants a mkdep that runs "gcc -MM".
776 # The NetBSD mkdep overwrites any existing file contents, and doesn't insert
777 # the "DO NOT DELETE" line.
778 # Other mkdep versions require a file that already exists, and do insert it.
779 # Hence the weirdness....
780 .dep1: $(CFILES)
781 rm -f .dep2 .dep2a
782 echo '# DO NOT DELETE THIS LINE -- mkdep uses it.' > .dep2
783 echo > .dep2a
784 $(DEP) -f .dep2a $(ALL_CFLAGS) $?
785 sed -e '/DO NOT DELETE/d' -e '/^$$/d' < .dep2a >> .dep2
786 rm -f .dep2a
787 $(SHELL) $(srcdir)/../move-if-change .dep2 .dep1
788
789 dep.sed: dep-in.sed config.status
790 sed <$(srcdir)/dep-in.sed >dep.sed \
791 -e 's!@BFD_H@!$(BFD_H)!' \
792 -e 's!@INCDIR@!$(INCDIR)!' \
793 -e 's!@SRCDIR@!$(srcdir)!'
794
795 dep: .dep
796 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < Makefile > tmp-Makefile
797 cat .dep >> tmp-Makefile
798 $(SHELL) $(srcdir)/../move-if-change tmp-Makefile Makefile
799
800 dep-in: .dep
801 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.in > tmp-Makefile.in
802 cat .dep >> tmp-Makefile.in
803 $(SHELL) $(srcdir)/../move-if-change tmp-Makefile.in $(srcdir)/Makefile.in
804
805 host-aout.o: Makefile
806
807 # The following program can be used to generate a simple config file
808 # which can be folded into an h-XXX file for a new host, with some editing.
809 aout-params.h: gen-aout
810 ./gen-aout host > aout-params.h
811 gen-aout: $(srcdir)/gen-aout.c Makefile
812 $(CC) -o gen-aout $(CFLAGS) $(LFLAGS) $(srcdir)/gen-aout.c
813
814 BFDIN_H= $(srcdir)/bfd-in2.h
815
816 $(BFD_H): stmp-bfd.h ; @true
817
818 stmp-bfd.h: bfd-in3.h
819 rm -f bfd-tmp.h
820 cp bfd-in3.h bfd-tmp.h
821 $(SHELL) $(srcdir)/../move-if-change bfd-tmp.h $(BFD_H)
822 rm -f bfd-tmp.h
823 touch stmp-bfd.h
824
825 bfd-in3.h: bfd-in2.h config.status
826 CONFIG_FILES=bfd-in3.h:bfd-in2.h CONFIG_HEADERS= $(SHELL) ./config.status
827
828 # Could really use a "copy-if-change"...
829 headers:
830 (cd $(docdir); $(MAKE) protos $(FLAGS_TO_PASS))
831 cp $(docdir)/bfd.h bfd-in2.h-new
832 $(SHELL) $(srcdir)/../move-if-change bfd-in2.h-new $(srcdir)/bfd-in2.h
833 cp $(docdir)/libbfd.h libbfd.h-new
834 $(SHELL) $(srcdir)/../move-if-change libbfd.h-new $(srcdir)/libbfd.h
835 cp $(docdir)/libcoff.h libcoff.h-new
836 $(SHELL) $(srcdir)/../move-if-change libcoff.h-new $(srcdir)/libcoff.h
837
838 # The rules for the generated header files are here so that people can
839 # type `make bfd-in2.h' if they remove it. They are not run by default.
840 $(srcdir)/bfd-in2.h:
841 (cd $(docdir); $(MAKE) bfd.h $(FLAGS_TO_PASS))
842 cp $(docdir)/bfd.h bfd-in2.h-new
843 $(SHELL) $(srcdir)/../move-if-change bfd-in2.h-new $(srcdir)/bfd-in2.h
844 $(srcdir)/libbfd.h:
845 (cd $(docdir); $(MAKE) libbfd.h $(FLAGS_TO_PASS))
846 cp $(docdir)/libbfd.h libbfd.h-new
847 $(SHELL) $(srcdir)/../move-if-change libbfd.h-new $(srcdir)/libbfd.h
848 $(srcdir)/libcoff.h:
849 (cd $(docdir); $(MAKE) libcoff.h $(FLAGS_TO_PASS))
850 cp $(docdir)/libcoff.h libcoff.h-new
851 $(SHELL) $(srcdir)/../move-if-change libcoff.h-new $(srcdir)/libcoff.h
852
853 bfd.info:
854 (cd $(docdir); $(MAKE) bfd.info $(FLAGS_TO_PASS))
855
856 bfd.dvi:
857 (cd $(docdir); $(MAKE) bfd.dvi $(FLAGS_TO_PASS))
858
859 bfd.ps:
860 (cd $(docdir); $(MAKE) bfd.ps $(FLAGS_TO_PASS))
861
862 start-sanitize-arc:
863 elf32-arc.o: elf32-arc.c elf-bfd.h $(INCDIR)/elf/common.h \
864 $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h \
865 $(INCDIR)/elf/arc.h elf32-target.h
866 end-sanitize-arc:
867
868 elf32-d10v.o: elf32-d10v.c elf-bfd.h $(INCDIR)/elf/common.h \
869 $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h \
870 elf32-target.h
871
872 start-sanitize-d30v:
873 elf32-d30v.o: elf32-d30v.c elf-bfd.h $(INCDIR)/elf/common.h \
874 $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h \
875 elf32-target.h
876 end-sanitize-d30v:
877
878 start-sanitize-v850:
879 cpu-v850.o: cpu-v850.c
880 elf32-v850.o: elf32-v850.c $(INCDIR)/bfdlink.h elf-bfd.h \
881 $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
882 elf32-target.h
883 end-sanitize-v850:
884
885 start-sanitize-tic80:
886 cpu-tic80.o: cpu-tic80.c
887 coff-tic80.o: coff-tic80.c $(INCDIR)/bfdlink.h elf-bfd.h \
888 $(INCDIR)/coff/tic80.h $(INCDIR)/coff/internal.h coffcode.h
889 end-sanitize-tic80:
890
891 $(OFILES): stamp-picdir
892
893 stamp-picdir:
894 if [ -n "$(PICFLAG)" ] && [ ! -d pic ]; then \
895 mkdir pic; \
896 else true; fi
897 touch stamp-picdir
898
899 # What appears below is generated by a hacked mkdep using gcc -MM.
900
901 # DO NOT DELETE THIS LINE -- mkdep uses it.
902 # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
903 archive.o: archive.c $(INCDIR)/aout/ar.h $(INCDIR)/aout/ranlib.h
904 archures.o: archures.c
905 bfd.o: bfd.c $(INCDIR)/libiberty.h $(INCDIR)/bfdlink.h \
906 $(INCDIR)/coff/internal.h $(INCDIR)/coff/sym.h libcoff.h \
907 libecoff.h $(INCDIR)/coff/ecoff.h elf-bfd.h $(INCDIR)/elf/common.h \
908 $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h
909 cache.o: cache.c
910 coffgen.o: coffgen.c $(INCDIR)/coff/internal.h libcoff.h \
911 $(INCDIR)/bfdlink.h
912 corefile.o: corefile.c
913 format.o: format.c
914 init.o: init.c
915 libbfd.o: libbfd.c
916 opncls.o: opncls.c $(INCDIR)/objalloc.h
917 reloc.o: reloc.c $(INCDIR)/bfdlink.h
918 section.o: section.c
919 syms.o: syms.c $(INCDIR)/bfdlink.h $(INCDIR)/aout/stab_gnu.h \
920 $(INCDIR)/aout/stab.def
921 targets.o: targets.c $(INCDIR)/fnmatch.h targmatch.h
922 hash.o: hash.c $(INCDIR)/objalloc.h
923 linker.o: linker.c $(INCDIR)/bfdlink.h genlink.h
924 elf.o: elf.c $(INCDIR)/bfdlink.h elf-bfd.h $(INCDIR)/elf/common.h \
925 $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h
926 srec.o: srec.c $(INCDIR)/libiberty.h
927 binary.o: binary.c
928 tekhex.o: tekhex.c $(INCDIR)/libiberty.h
929 ihex.o: ihex.c $(INCDIR)/libiberty.h
930 stabs.o: stabs.c $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def
931 stab-syms.o: stab-syms.c libaout.h $(INCDIR)/bfdlink.h \
932 $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab.def
933 cpu-a29k.o: cpu-a29k.c
934 cpu-alpha.o: cpu-alpha.c
935 cpu-arm.o: cpu-arm.c
936 cpu-h8300.o: cpu-h8300.c
937 cpu-h8500.o: cpu-h8500.c
938 cpu-hppa.o: cpu-hppa.c
939 cpu-i386.o: cpu-i386.c
940 cpu-i860.o: cpu-i860.c
941 cpu-i960.o: cpu-i960.c
942 cpu-m32r.o: cpu-m32r.c
943 cpu-m68k.o: cpu-m68k.c
944 cpu-m88k.o: cpu-m88k.c
945 cpu-mips.o: cpu-mips.c
946 cpu-m10200.o: cpu-m10200.c
947 cpu-m10300.o: cpu-m10300.c
948 cpu-ns32k.o: cpu-ns32k.c ns32k.h
949 cpu-powerpc.o: cpu-powerpc.c
950 cpu-rs6000.o: cpu-rs6000.c
951 cpu-sh.o: cpu-sh.c
952 cpu-sparc.o: cpu-sparc.c
953 cpu-vax.o: cpu-vax.c
954 cpu-we32k.o: cpu-we32k.c
955 cpu-w65.o: cpu-w65.c
956 cpu-z8k.o: cpu-z8k.c
957 aout-adobe.o: aout-adobe.c $(INCDIR)/aout/adobe.h $(INCDIR)/aout/stab_gnu.h \
958 $(INCDIR)/aout/stab.def libaout.h $(INCDIR)/bfdlink.h
959 aout-arm.o: aout-arm.c libaout.h $(INCDIR)/bfdlink.h \
960 $(INCDIR)/aout/aout64.h aoutx.h $(INCDIR)/aout/stab_gnu.h \
961 $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h aout-target.h
962 aout-ns32k.o: aout-ns32k.c $(INCDIR)/aout/aout64.h \
963 ns32k.h libaout.h $(INCDIR)/bfdlink.h
964 aout-sparcle.o: aout-sparcle.c $(INCDIR)/bfdlink.h \
965 libaout.h aoutf1.h $(INCDIR)/aout/sun4.h $(INCDIR)/aout/aout64.h \
966 $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h \
967 aout-target.h
968 aout0.o: aout0.c aoutf1.h $(INCDIR)/aout/sun4.h libaout.h \
969 $(INCDIR)/bfdlink.h $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h \
970 $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h aout-target.h
971 aout32.o: aout32.c aoutx.h $(INCDIR)/bfdlink.h libaout.h \
972 $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def \
973 $(INCDIR)/aout/ar.h
974 bout.o: bout.c $(INCDIR)/bfdlink.h genlink.h $(INCDIR)/bout.h \
975 $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def libaout.h
976 cf-i386lynx.o: cf-i386lynx.c coff-i386.c $(INCDIR)/coff/i386.h \
977 $(INCDIR)/coff/internal.h libcoff.h $(INCDIR)/bfdlink.h \
978 coffcode.h coffswap.h
979 cf-m68klynx.o: cf-m68klynx.c coff-m68k.c $(INCDIR)/coff/m68k.h \
980 $(INCDIR)/coff/internal.h libcoff.h $(INCDIR)/bfdlink.h \
981 coffcode.h coffswap.h
982 cf-sparclynx.o: cf-sparclynx.c coff-sparc.c $(INCDIR)/coff/sparc.h \
983 $(INCDIR)/coff/internal.h libcoff.h $(INCDIR)/bfdlink.h \
984 coffcode.h coffswap.h
985 coff-a29k.o: coff-a29k.c $(INCDIR)/coff/a29k.h $(INCDIR)/coff/internal.h \
986 libcoff.h $(INCDIR)/bfdlink.h coffcode.h coffswap.h
987 coff-apollo.o: coff-apollo.c $(INCDIR)/coff/apollo.h \
988 $(INCDIR)/coff/internal.h libcoff.h $(INCDIR)/bfdlink.h \
989 coffcode.h coffswap.h
990 coff-arm.o: coff-arm.c $(INCDIR)/coff/arm.h $(INCDIR)/coff/internal.h \
991 libcoff.h $(INCDIR)/bfdlink.h coffcode.h coffswap.h
992 coff-aux.o: coff-aux.c $(INCDIR)/coff/aux-coff.h $(INCDIR)/coff/internal.h \
993 $(INCDIR)/coff/m68k.h coff-m68k.c libcoff.h $(INCDIR)/bfdlink.h \
994 coffcode.h coffswap.h
995 coff-h8300.o: coff-h8300.c $(INCDIR)/bfdlink.h genlink.h \
996 $(INCDIR)/coff/h8300.h $(INCDIR)/coff/internal.h libcoff.h \
997 coffcode.h coffswap.h
998 coff-h8500.o: coff-h8500.c $(INCDIR)/bfdlink.h $(INCDIR)/coff/h8500.h \
999 $(INCDIR)/coff/internal.h libcoff.h coffcode.h coffswap.h
1000 coff-i386.o: coff-i386.c $(INCDIR)/coff/i386.h $(INCDIR)/coff/internal.h \
1001 libcoff.h $(INCDIR)/bfdlink.h coffcode.h coffswap.h
1002 coff-i860.o: coff-i860.c $(INCDIR)/coff/i860.h $(INCDIR)/coff/internal.h \
1003 libcoff.h $(INCDIR)/bfdlink.h coffcode.h coffswap.h
1004 coff-go32.o: coff-go32.c coff-i386.c $(INCDIR)/coff/i386.h \
1005 $(INCDIR)/coff/internal.h libcoff.h $(INCDIR)/bfdlink.h \
1006 coffcode.h coffswap.h
1007 coff-i960.o: coff-i960.c $(INCDIR)/coff/i960.h $(INCDIR)/coff/internal.h \
1008 libcoff.h $(INCDIR)/bfdlink.h coffcode.h coffswap.h
1009 coff-m68k.o: coff-m68k.c $(INCDIR)/coff/m68k.h $(INCDIR)/coff/internal.h \
1010 libcoff.h $(INCDIR)/bfdlink.h coffcode.h coffswap.h
1011 coff-m88k.o: coff-m88k.c $(INCDIR)/coff/m88k.h $(INCDIR)/coff/internal.h \
1012 libcoff.h $(INCDIR)/bfdlink.h coffcode.h coffswap.h
1013 coff-mips.o: coff-mips.c $(INCDIR)/bfdlink.h $(INCDIR)/coff/internal.h \
1014 $(INCDIR)/coff/sym.h $(INCDIR)/coff/symconst.h $(INCDIR)/coff/ecoff.h \
1015 $(INCDIR)/coff/mips.h libcoff.h libecoff.h coffswap.h \
1016 ecoffswap.h
1017 coff-pmac.o: coff-pmac.c coff-rs6000.c $(INCDIR)/coff/internal.h \
1018 $(INCDIR)/coff/rs6000.h libcoff.h $(INCDIR)/bfdlink.h \
1019 coffcode.h coffswap.h
1020 coff-rs6000.o: coff-rs6000.c $(INCDIR)/coff/internal.h \
1021 $(INCDIR)/coff/rs6000.h libcoff.h $(INCDIR)/bfdlink.h \
1022 coffcode.h coffswap.h
1023 coff-sh.o: coff-sh.c $(INCDIR)/bfdlink.h $(INCDIR)/coff/sh.h \
1024 $(INCDIR)/coff/internal.h libcoff.h coffcode.h coffswap.h
1025 coff-sparc.o: coff-sparc.c $(INCDIR)/coff/sparc.h $(INCDIR)/coff/internal.h \
1026 libcoff.h $(INCDIR)/bfdlink.h coffcode.h coffswap.h
1027 coff-stubgo32.o: coff-stubgo32.c coff-i386.c $(INCDIR)/coff/i386.h \
1028 $(INCDIR)/coff/internal.h $(INCDIR)/coff/go32exe.h \
1029 libcoff.h $(INCDIR)/bfdlink.h coffcode.h coffswap.h \
1030 go32stub.h
1031 coff-svm68k.o: coff-svm68k.c coff-m68k.c $(INCDIR)/coff/m68k.h \
1032 $(INCDIR)/coff/internal.h libcoff.h $(INCDIR)/bfdlink.h \
1033 coffcode.h coffswap.h
1034 coff-u68k.o: coff-u68k.c coff-m68k.c $(INCDIR)/coff/m68k.h \
1035 $(INCDIR)/coff/internal.h libcoff.h $(INCDIR)/bfdlink.h \
1036 coffcode.h coffswap.h
1037 coff-we32k.o: coff-we32k.c $(INCDIR)/coff/we32k.h $(INCDIR)/coff/internal.h \
1038 libcoff.h $(INCDIR)/bfdlink.h coffcode.h coffswap.h
1039 coff-w65.o: coff-w65.c $(INCDIR)/bfdlink.h $(INCDIR)/coff/w65.h \
1040 $(INCDIR)/coff/internal.h libcoff.h coffcode.h coffswap.h
1041 coff-z8k.o: coff-z8k.c $(INCDIR)/bfdlink.h $(INCDIR)/coff/z8k.h \
1042 $(INCDIR)/coff/internal.h libcoff.h coffcode.h coffswap.h
1043 cofflink.o: cofflink.c $(INCDIR)/bfdlink.h $(INCDIR)/coff/internal.h \
1044 libcoff.h
1045 ecoff.o: ecoff.c $(INCDIR)/bfdlink.h $(INCDIR)/aout/ar.h \
1046 $(INCDIR)/aout/ranlib.h $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def \
1047 libaout.h $(INCDIR)/aout/aout64.h $(INCDIR)/coff/internal.h \
1048 $(INCDIR)/coff/sym.h $(INCDIR)/coff/symconst.h $(INCDIR)/coff/ecoff.h \
1049 libcoff.h libecoff.h
1050 ecofflink.o: ecofflink.c $(INCDIR)/bfdlink.h $(INCDIR)/objalloc.h \
1051 $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def $(INCDIR)/coff/internal.h \
1052 $(INCDIR)/coff/sym.h $(INCDIR)/coff/symconst.h $(INCDIR)/coff/ecoff.h \
1053 libcoff.h libecoff.h
1054 elf32-gen.o: elf32-gen.c elf-bfd.h $(INCDIR)/elf/common.h \
1055 $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h \
1056 elf32-target.h
1057 elf32-hppa.o: elf32-hppa.c $(INCDIR)/bfdlink.h elf-bfd.h \
1058 $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
1059 elf32-hppa.h libhppa.h $(INCDIR)/elf/hppa.h hppa_stubs.h \
1060 elf32-target.h
1061 elf32-i386.o: elf32-i386.c $(INCDIR)/bfdlink.h elf-bfd.h \
1062 $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
1063 elf32-target.h
1064 elf32-i860.o: elf32-i860.c elf-bfd.h $(INCDIR)/elf/common.h \
1065 $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h \
1066 elf32-target.h
1067 elf32-m32r.o: elf32-m32r.c elf-bfd.h $(INCDIR)/elf/common.h \
1068 $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h \
1069 $(INCDIR)/elf/m32r.h elf32-target.h
1070 elf32-m68k.o: elf32-m68k.c $(INCDIR)/bfdlink.h elf-bfd.h \
1071 $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
1072 elf32-target.h
1073 elf32-m88k.o: elf32-m88k.c elf-bfd.h $(INCDIR)/elf/common.h \
1074 $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h \
1075 elf32-target.h
1076 elf32-mips.o: elf32-mips.c $(INCDIR)/bfdlink.h genlink.h \
1077 elf-bfd.h $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h \
1078 $(INCDIR)/elf/external.h $(INCDIR)/elf/mips.h $(INCDIR)/coff/sym.h \
1079 $(INCDIR)/coff/symconst.h $(INCDIR)/coff/internal.h \
1080 $(INCDIR)/coff/ecoff.h $(INCDIR)/coff/mips.h ecoffswap.h \
1081 elf32-target.h
1082 elf-m10200.o: elf-m10200.c elf-bfd.h $(INCDIR)/elf/common.h \
1083 $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h \
1084 elf32-target.h
1085 elf-m10300.o: elf-m10300.c elf-bfd.h $(INCDIR)/elf/common.h \
1086 $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h \
1087 elf32-target.h
1088 elf32-ppc.o: elf32-ppc.c $(INCDIR)/bfdlink.h elf-bfd.h \
1089 $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
1090 $(INCDIR)/elf/ppc.h elf32-target.h
1091 elf32-sh.o: elf32-sh.c $(INCDIR)/bfdlink.h elf-bfd.h \
1092 $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
1093 elf32-target.h
1094 elf32-sparc.o: elf32-sparc.c $(INCDIR)/bfdlink.h elf-bfd.h \
1095 $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
1096 $(INCDIR)/elf/sparc.h elf32-target.h
1097 elf32.o: elf32.c elfcode.h $(INCDIR)/bfdlink.h elf-bfd.h \
1098 $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
1099 $(INCDIR)/fnmatch.h elfcore.h elflink.h
1100 elflink.o: elflink.c $(INCDIR)/bfdlink.h elf-bfd.h \
1101 $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h
1102 hp300bsd.o: hp300bsd.c libaout.h $(INCDIR)/bfdlink.h \
1103 aout-target.h $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h \
1104 $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h
1105 hp300hpux.o: hp300hpux.c $(INCDIR)/aout/hp300hpux.h \
1106 aoutx.h $(INCDIR)/bfdlink.h libaout.h $(INCDIR)/aout/aout64.h \
1107 $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h \
1108 aout-target.h
1109 som.o: som.c
1110 i386aout.o: i386aout.c $(INCDIR)/aout/aout64.h libaout.h \
1111 $(INCDIR)/bfdlink.h aout-target.h $(INCDIR)/aout/stab_gnu.h \
1112 $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h
1113 i386bsd.o: i386bsd.c libaout.h $(INCDIR)/bfdlink.h \
1114 aout-target.h $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h \
1115 $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h
1116 i386dynix.o: i386dynix.c $(INCDIR)/aout/dynix3.h aoutx.h \
1117 $(INCDIR)/bfdlink.h libaout.h $(INCDIR)/aout/aout64.h \
1118 $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h \
1119 aout-target.h
1120 i386freebsd.o: i386freebsd.c freebsd.h libaout.h $(INCDIR)/bfdlink.h \
1121 aout-target.h $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h \
1122 $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h
1123 i386linux.o: i386linux.c $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h \
1124 $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h libaout.h \
1125 $(INCDIR)/bfdlink.h aout-target.h
1126 i386lynx.o: i386lynx.c libaout.h $(INCDIR)/bfdlink.h \
1127 $(INCDIR)/aout/aout64.h aout-target.h $(INCDIR)/aout/stab_gnu.h \
1128 $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h
1129 i386msdos.o: i386msdos.c libaout.h $(INCDIR)/bfdlink.h
1130 i386netbsd.o: i386netbsd.c netbsd.h libaout.h $(INCDIR)/bfdlink.h \
1131 aout-target.h $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h \
1132 $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h
1133 i386mach3.o: i386mach3.c $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h \
1134 $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h libaout.h \
1135 $(INCDIR)/bfdlink.h aout-target.h
1136 i386os9k.o: i386os9k.c $(INCDIR)/bfdlink.h libaout.h \
1137 $(INCDIR)/os9k.h
1138 ieee.o: ieee.c $(INCDIR)/ieee.h libieee.h
1139 m68k4knetbsd.o: m68k4knetbsd.c netbsd.h libaout.h $(INCDIR)/bfdlink.h \
1140 aout-target.h $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h \
1141 $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h
1142 m68klinux.o: m68klinux.c $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h \
1143 $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h libaout.h \
1144 $(INCDIR)/bfdlink.h aout-target.h
1145 m68klynx.o: m68klynx.c libaout.h $(INCDIR)/bfdlink.h \
1146 $(INCDIR)/aout/aout64.h aout-target.h $(INCDIR)/aout/stab_gnu.h \
1147 $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h
1148 m68knetbsd.o: m68knetbsd.c netbsd.h libaout.h $(INCDIR)/bfdlink.h \
1149 aout-target.h $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h \
1150 $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h
1151 m88kmach3.o: m88kmach3.c libaout.h $(INCDIR)/bfdlink.h \
1152 aout-target.h $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h \
1153 $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h
1154 mipsbsd.o: mipsbsd.c libaout.h $(INCDIR)/bfdlink.h \
1155 aout-target.h $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h \
1156 $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h
1157 newsos3.o: newsos3.c $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h \
1158 $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h libaout.h \
1159 $(INCDIR)/bfdlink.h aout-target.h
1160 nlm.o: nlm.c libnlm.h $(INCDIR)/nlm/common.h $(INCDIR)/nlm/internal.h \
1161 $(INCDIR)/nlm/external.h
1162 nlm32-i386.o: nlm32-i386.c $(INCDIR)/nlm/i386-ext.h \
1163 libnlm.h $(INCDIR)/nlm/common.h $(INCDIR)/nlm/internal.h \
1164 $(INCDIR)/nlm/external.h nlmswap.h nlm-target.h
1165 nlm32-sparc.o: nlm32-sparc.c $(INCDIR)/nlm/sparc32-ext.h \
1166 libnlm.h $(INCDIR)/nlm/common.h $(INCDIR)/nlm/internal.h \
1167 $(INCDIR)/nlm/external.h nlmswap.h nlm-target.h
1168 nlm32-ppc.o: nlm32-ppc.c $(INCDIR)/nlm/ppc-ext.h libnlm.h \
1169 $(INCDIR)/nlm/common.h $(INCDIR)/nlm/internal.h $(INCDIR)/nlm/external.h \
1170 nlmswap.h nlm-target.h
1171 nlm32.o: nlm32.c nlmcode.h libnlm.h $(INCDIR)/nlm/common.h \
1172 $(INCDIR)/nlm/internal.h $(INCDIR)/nlm/external.h
1173 ns32knetbsd.o: ns32knetbsd.c netbsd.h libaout.h $(INCDIR)/bfdlink.h \
1174 aout-target.h $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h \
1175 $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h
1176 oasys.o: oasys.c $(INCDIR)/oasys.h liboasys.h
1177 pc532-mach.o: pc532-mach.c libaout.h $(INCDIR)/bfdlink.h \
1178 $(INCDIR)/aout/aout64.h aout-target.h $(INCDIR)/aout/stab_gnu.h \
1179 $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h
1180 pe-arm.o: pe-arm.c coff-arm.c $(INCDIR)/coff/arm.h \
1181 $(INCDIR)/coff/internal.h $(INCDIR)/coff/pe.h libcoff.h \
1182 $(INCDIR)/bfdlink.h coffcode.h peicode.h
1183 pei-arm.o: pei-arm.c coff-arm.c $(INCDIR)/coff/arm.h \
1184 $(INCDIR)/coff/internal.h $(INCDIR)/coff/pe.h libcoff.h \
1185 $(INCDIR)/bfdlink.h coffcode.h peicode.h
1186 pe-i386.o: pe-i386.c coff-i386.c $(INCDIR)/coff/i386.h \
1187 $(INCDIR)/coff/internal.h $(INCDIR)/coff/pe.h libcoff.h \
1188 $(INCDIR)/bfdlink.h coffcode.h peicode.h
1189 pei-i386.o: pei-i386.c coff-i386.c $(INCDIR)/coff/i386.h \
1190 $(INCDIR)/coff/internal.h $(INCDIR)/coff/pe.h libcoff.h \
1191 $(INCDIR)/bfdlink.h coffcode.h peicode.h
1192 pe-ppc.o: pe-ppc.c coff-ppc.c $(INCDIR)/coff/powerpc.h \
1193 $(INCDIR)/coff/internal.h $(INCDIR)/coff/pe.h libcoff.h \
1194 $(INCDIR)/bfdlink.h coffcode.h peicode.h
1195 pei-ppc.o: pei-ppc.c coff-ppc.c $(INCDIR)/coff/powerpc.h \
1196 $(INCDIR)/coff/internal.h $(INCDIR)/coff/pe.h libcoff.h \
1197 $(INCDIR)/bfdlink.h coffcode.h peicode.h
1198 ppcboot.o: ppcboot.c
1199 reloc16.o: reloc16.c $(INCDIR)/bfdlink.h genlink.h \
1200 $(INCDIR)/coff/internal.h libcoff.h
1201 riscix.o: riscix.c libaout.h $(INCDIR)/bfdlink.h $(INCDIR)/aout/aout64.h \
1202 aout-target.h $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def \
1203 $(INCDIR)/aout/ar.h
1204 sparclinux.o: sparclinux.c $(INCDIR)/aout/aout64.h \
1205 $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h \
1206 libaout.h $(INCDIR)/bfdlink.h aout-target.h
1207 sparclynx.o: sparclynx.c $(INCDIR)/aout/sun4.h libaout.h \
1208 $(INCDIR)/bfdlink.h $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h \
1209 $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h aout-target.h
1210 sparcnetbsd.o: sparcnetbsd.c netbsd.h libaout.h $(INCDIR)/bfdlink.h \
1211 aout-target.h $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h \
1212 $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h
1213 sunos.o: sunos.c $(INCDIR)/bfdlink.h libaout.h aoutf1.h \
1214 $(INCDIR)/aout/sun4.h $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h \
1215 $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h aout-target.h
1216 versados.o: versados.c $(INCDIR)/libiberty.h
1217 xcofflink.o: xcofflink.c $(INCDIR)/bfdlink.h $(INCDIR)/coff/internal.h \
1218 libcoff.h
1219 aout64.o: aout64.c aoutx.h $(INCDIR)/bfdlink.h libaout.h \
1220 $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def \
1221 $(INCDIR)/aout/ar.h
1222 coff-alpha.o: coff-alpha.c $(INCDIR)/bfdlink.h $(INCDIR)/coff/internal.h \
1223 $(INCDIR)/coff/sym.h $(INCDIR)/coff/symconst.h $(INCDIR)/coff/ecoff.h \
1224 $(INCDIR)/coff/alpha.h $(INCDIR)/aout/ar.h libcoff.h \
1225 libecoff.h coffswap.h ecoffswap.h
1226 demo64.o: demo64.c aoutf1.h $(INCDIR)/aout/sun4.h libaout.h \
1227 $(INCDIR)/bfdlink.h $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h \
1228 $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h aout-target.h
1229 elf64-alpha.o: elf64-alpha.c elf-bfd.h $(INCDIR)/elf/common.h \
1230 $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h \
1231 $(INCDIR)/elf/alpha.h $(INCDIR)/coff/internal.h $(INCDIR)/coff/sym.h \
1232 $(INCDIR)/coff/symconst.h $(INCDIR)/coff/ecoff.h $(INCDIR)/coff/alpha.h \
1233 $(INCDIR)/aout/ar.h libcoff.h libecoff.h ecoffswap.h \
1234 elf64-target.h
1235 elf64-gen.o: elf64-gen.c elf-bfd.h $(INCDIR)/elf/common.h \
1236 $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h \
1237 elf64-target.h
1238 elf64-mips.o: elf64-mips.c $(INCDIR)/aout/ar.h $(INCDIR)/bfdlink.h \
1239 genlink.h elf-bfd.h $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h \
1240 $(INCDIR)/elf/external.h $(INCDIR)/elf/mips.h $(INCDIR)/coff/sym.h \
1241 $(INCDIR)/coff/symconst.h $(INCDIR)/coff/internal.h \
1242 $(INCDIR)/coff/ecoff.h $(INCDIR)/coff/alpha.h ecoffswap.h \
1243 elf64-target.h
1244 elf64-sparc.o: elf64-sparc.c elf-bfd.h $(INCDIR)/elf/common.h \
1245 $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h \
1246 $(INCDIR)/elf/sparc.h elf64-target.h
1247 elf64.o: elf64.c elfcode.h $(INCDIR)/bfdlink.h elf-bfd.h \
1248 $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
1249 $(INCDIR)/fnmatch.h elfcore.h elflink.h
1250 evax-alpha.o: evax-alpha.c $(INCDIR)/bfdlink.h evax.h
1251 evax-egsd.o: evax-egsd.c $(INCDIR)/bfdlink.h evax.h
1252 evax-etir.o: evax-etir.c $(INCDIR)/bfdlink.h evax.h
1253 evax-emh.o: evax-emh.c $(INCDIR)/bfdlink.h evax.h
1254 evax-misc.o: evax-misc.c $(INCDIR)/bfdlink.h evax.h
1255 nlm32-alpha.o: nlm32-alpha.c $(INCDIR)/nlm/alpha-ext.h \
1256 libnlm.h $(INCDIR)/nlm/common.h $(INCDIR)/nlm/internal.h \
1257 $(INCDIR)/nlm/external.h nlmswap.h nlm-target.h
1258 nlm64.o: nlm64.c nlmcode.h libnlm.h $(INCDIR)/nlm/common.h \
1259 $(INCDIR)/nlm/internal.h $(INCDIR)/nlm/external.h
1260 aix386-core.o: aix386-core.c $(INCDIR)/coff/i386.h \
1261 $(INCDIR)/coff/internal.h libcoff.h $(INCDIR)/bfdlink.h
1262 hpux-core.o: hpux-core.c
1263 irix-core.o: irix-core.c
1264 lynx-core.o: lynx-core.c
1265 osf-core.o: osf-core.c
1266 trad-core.o: trad-core.c libaout.h $(INCDIR)/bfdlink.h
1267 cisco-core.o: cisco-core.c
1268 # IF YOU PUT ANYTHING HERE IT WILL GO AWAY