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