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