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