Commit | Line | Data |
---|---|---|
204ae00c ILT |
1 | # Makefile template for Configure for the BFD library. |
2 | # Copyright (C) 1990, 1991, 1992, 1993 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 JG |
18 | # along with this program; if not, write to the Free Software |
19 | # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | |
99a42820 | 20 | |
99a42820 | 21 | srcdir = . |
fde8212e RP |
22 | |
23 | prefix = /usr/local | |
24 | ||
5868184b FF |
25 | exec_prefix = $(prefix) |
26 | bindir = $(exec_prefix)/bin | |
27 | libdir = $(exec_prefix)/lib | |
28 | ||
fde8212e | 29 | datadir = $(prefix)/lib |
5868184b | 30 | mandir = $(prefix)/man |
fde8212e RP |
31 | man1dir = $(mandir)/man1 |
32 | man2dir = $(mandir)/man2 | |
33 | man3dir = $(mandir)/man3 | |
34 | man4dir = $(mandir)/man4 | |
35 | man5dir = $(mandir)/man5 | |
36 | man6dir = $(mandir)/man6 | |
37 | man7dir = $(mandir)/man7 | |
38 | man8dir = $(mandir)/man8 | |
39 | man9dir = $(mandir)/man9 | |
5868184b | 40 | infodir = $(prefix)/info |
fde8212e | 41 | includedir = $(prefix)/include |
5868184b | 42 | oldincludedir = |
fbee3571 | 43 | docdir = doc |
fde8212e RP |
44 | |
45 | SHELL = /bin/sh | |
46 | ||
c768bd3f | 47 | INSTALL = `cd $(srcdir)/..; pwd`/install.sh -c |
fde8212e RP |
48 | INSTALL_PROGRAM = $(INSTALL) |
49 | INSTALL_DATA = $(INSTALL) | |
50 | ||
1b494bfa | 51 | AR = ar |
287c221d | 52 | AR_FLAGS = rc |
6e491a87 | 53 | CFLAGS = -g |
fde8212e RP |
54 | BISON = bison |
55 | MAKEINFO = makeinfo | |
56 | RANLIB = ranlib | |
57 | ||
51300bdb KR |
58 | CC_FOR_BUILD = $(CC) |
59 | ||
d6a554ae | 60 | INCDIR = $(srcdir)/../include |
bb552c64 | 61 | CSEARCH = -I. -I$(srcdir) -I$(INCDIR) |
a5c6b4b3 | 62 | DEP = mkdep |
12e7087f | 63 | |
f259290f | 64 | SUBDIRS = doc |
12e7087f | 65 | |
99a42820 | 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 \ |
c768bd3f | 89 | elf.o srec.o binary.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 \ | |
358710a7 | 96 | cpu-arm.o \ |
01087713 DM |
97 | cpu-h8300.o \ |
98 | cpu-h8500.o \ | |
99 | cpu-hppa.o \ | |
100 | cpu-i386.o \ | |
101 | cpu-i960.o \ | |
102 | cpu-m68k.o \ | |
103 | cpu-m88k.o \ | |
104 | cpu-mips.o \ | |
caede515 | 105 | cpu-ns32k.o \ |
99ec1f66 | 106 | cpu-powerpc.o \ |
01087713 DM |
107 | cpu-rs6000.o \ |
108 | cpu-sh.o \ | |
109 | cpu-sparc.o \ | |
110 | cpu-vax.o \ | |
111 | cpu-we32k.o \ | |
112 | cpu-z8k.o | |
113 | ||
114 | # The .o files needed by all of the 32 bit vectors that are configured into | |
caede515 | 115 | # target_vector in targets.c if configured with --enable-targets=all. |
bb552c64 | 116 | BFD32_BACKENDS = \ |
01087713 | 117 | aout-adobe.o \ |
caede515 | 118 | aout-ns32k.o \ |
666f5925 | 119 | aout0.o \ |
01087713 DM |
120 | aout32.o \ |
121 | bout.o \ | |
d5d53b0a JW |
122 | cf-i386lynx.o \ |
123 | cf-m68klynx.o \ | |
124 | cf-sparclynx.o \ | |
01087713 | 125 | coff-a29k.o \ |
653dd82a | 126 | coff-apollo.o \ |
01087713 DM |
127 | coff-h8300.o \ |
128 | coff-h8500.o \ | |
129 | coff-i386.o \ | |
c06e55d9 | 130 | coff-go32.o \ |
01087713 DM |
131 | coff-i960.o \ |
132 | coff-m68k.o \ | |
133 | coff-m88k.o \ | |
134 | coff-mips.o \ | |
135 | coff-rs6000.o \ | |
136 | coff-sh.o \ | |
6cac89c5 | 137 | coff-sparc.o \ |
01087713 DM |
138 | coff-u68k.o \ |
139 | coff-we32k.o \ | |
140 | coff-z8k.o \ | |
3cd942de | 141 | cofflink.o \ |
caede515 SS |
142 | ecoff.o \ |
143 | ecofflink.o \ | |
01087713 DM |
144 | elf32-gen.o \ |
145 | elf32-hppa.o \ | |
146 | elf32-i386.o \ | |
147 | elf32-i860.o \ | |
148 | elf32-m68k.o \ | |
149 | elf32-m88k.o \ | |
150 | elf32-mips.o \ | |
5a66538b | 151 | elf32-ppc.o \ |
01087713 DM |
152 | elf32-sparc.o \ |
153 | elf32.o \ | |
154 | hp300hpux.o \ | |
d5a30a08 | 155 | som.o \ |
01087713 DM |
156 | i386aout.o \ |
157 | i386bsd.o \ | |
158 | i386linux.o \ | |
159 | i386lynx.o \ | |
a3f7a777 | 160 | i386netbsd.o \ |
01087713 | 161 | i386mach3.o \ |
2f88343d | 162 | i386os9k.o \ |
01087713 | 163 | ieee.o \ |
d5a30a08 | 164 | m68klynx.o \ |
caede515 | 165 | m88kmach3.o \ |
01087713 DM |
166 | mipsbsd.o \ |
167 | newsos3.o \ | |
c3e964b9 | 168 | nlm.o \ |
01087713 | 169 | nlm32-i386.o \ |
cecbf7ed | 170 | nlm32-sparc.o \ |
5a66538b | 171 | nlm32-ppc.o \ |
01087713 | 172 | nlm32.o \ |
a3f7a777 | 173 | ns32knetbsd.o \ |
01087713 | 174 | oasys.o \ |
caede515 | 175 | pc532-mach.o \ |
01087713 | 176 | reloc16.o \ |
d5d53b0a | 177 | sparclynx.o \ |
c768bd3f | 178 | sparcnetbsd.o \ |
01087713 | 179 | stab-syms.o \ |
d40d2d30 ILT |
180 | sunos.o \ |
181 | tekhex.o | |
01087713 DM |
182 | |
183 | # The .o files needed by all of the 64 bit vectors that are configured into | |
caede515 SS |
184 | # target_vector in targets.c if configured with --enable-targets=all |
185 | # and --enable-64-bit-bfd. | |
34075964 | 186 | BFD64_BACKENDS = \ |
01087713 DM |
187 | aout64.o \ |
188 | coff-alpha.o \ | |
189 | demo64.o \ | |
190 | elf64-gen.o \ | |
0b72c410 | 191 | elf64-sparc.o \ |
01087713 | 192 | elf64.o \ |
130308bf | 193 | nlm32-alpha.o \ |
01087713 DM |
194 | nlm64.o |
195 | ||
196 | OPTIONAL_BACKENDS = \ | |
197 | aix386-core.o \ | |
198 | hpux-core.o \ | |
dabfe2f6 | 199 | irix-core.o \ |
d5a30a08 ILT |
200 | lynx-core.o \ |
201 | osf-core.o \ | |
6cac89c5 ILT |
202 | trad-core.o \ |
203 | cisco-core.o | |
99a42820 | 204 | |
34075964 PB |
205 | # These are defined by configure.in: |
206 | # WORDSIZE=32 | |
207 | # BFD_BACKENDS = $(BFD32_BACKENDS) | |
34075964 | 208 | |
bb552c64 JK |
209 | all: |
210 | ||
22e98743 SC |
211 | #### host and target dependent Makefile fragments come in here. |
212 | ### | |
213 | ||
98c0c56d | 214 | FLAGS_TO_PASS = \ |
287c221d PB |
215 | "prefix=$(prefix)" \ |
216 | "exec_prefix=$(exec_prefix)" \ | |
98c0c56d BK |
217 | "against=$(against)" \ |
218 | "AR=$(AR)" \ | |
219 | "AR_FLAGS=$(AR_FLAGS)" \ | |
220 | "CC=$(CC)" \ | |
51300bdb | 221 | "CC_FOR_BUILD=$(CC_FOR_BUILD)" \ |
98c0c56d BK |
222 | "CFLAGS=$(CFLAGS)" \ |
223 | "RANLIB=$(RANLIB)" \ | |
224 | "MAKEINFO=$(MAKEINFO)" \ | |
225 | "INSTALL=$(INSTALL)" \ | |
226 | "INSTALL_DATA=$(INSTALL_DATA)" \ | |
227 | "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \ | |
228 | "BISON=$(BISON)" | |
229 | ||
d684720f | 230 | ALL_CFLAGS=$(CFLAGS) $(HDEFINES) $(TDEFINES) $(CSEARCH) $(CSWITCHES) |
6e491a87 | 231 | .c.o: |
d684720f | 232 | $(CC) -c $(ALL_CFLAGS) $< |
6e491a87 | 233 | |
99a42820 | 234 | # C source files that correspond to .o's. |
a3b3dbdd | 235 | CFILES = libbfd.c opncls.c bfd.c archive.c targets.c cache.c \ |
c06e55d9 | 236 | archures.c coff-i386.c coff-go32.c aout64.c aout32.c sunos.c demo64.c \ |
c768bd3f | 237 | coff-i960.c srec.c binary.c tekhex.c oasys.c ieee.c aout0.c \ |
8d12f138 | 238 | ecoff.c ecofflink.c coff-m68k.c coff-u68k.c coff-apollo.c \ |
4d4023b8 | 239 | coff-a29k.c coff-rs6000.c coff-sparc.c coffgen.c format.c \ |
3cd942de | 240 | section.c core.c syms.c stab-syms.c reloc.c init.c \ |
6cac89c5 | 241 | coff-m88k.c coff-mips.c coff-sh.c trad-core.c cisco-core.c newsos3.c \ |
a3f7a777 | 242 | i386aout.c i386linux.c i386mach3.c i386netbsd.c i386os9k.c \ |
2f88343d | 243 | bout.c aout-adobe.c coff-we32k.c \ |
bdf1b511 | 244 | i386bsd.c i386dynix.c cpu-h8300.c cpu-i960.c cpu-sparc.c cpu-m68k.c \ |
99ec1f66 | 245 | cpu-m88k.c cpu-vax.c cpu-mips.c cpu-a29k.c cpu-i386.c cpu-powerpc.c \ |
d5a30a08 | 246 | cpu-rs6000.c coff-h8300.c som.c cpu-hppa.c cpu-we32k.c reloc16.c \ |
51300bdb | 247 | mipsbsd.c cpu-sh.c \ |
653dd82a | 248 | elf.c elf32.c elf32-sparc.c elf32-i386.c elf32-i860.c elf32-m68k.c \ |
5a66538b | 249 | elf32-hppa.c elf32-m88k.c elf32-mips.c elf32-gen.c elf32-ppc.c \ |
0b72c410 | 250 | elf64.c elf64-gen.c elf64-sparc.c \ |
130308bf | 251 | nlm.c nlm32.c nlm32-i386.c nlm32-sparc.c nlm32-alpha.c \ |
7ce8b9d1 | 252 | nlm64.c coff-alpha.c cpu-alpha.c nlm32-ppc.c \ |
d5a30a08 | 253 | hp300bsd.c hp300hpux.c \ |
d5d53b0a | 254 | i386lynx.c cf-i386lynx.c m68klynx.c cf-m68klynx.c \ |
dabfe2f6 | 255 | sparclynx.c cf-sparclynx.c aix386-core.c hpux-core.c \ |
c768bd3f ILT |
256 | irix-core.c lynx-core.c osf-core.c hash.c linker.c cofflink.c \ |
257 | ns32knetbsd.c sparcnetbsd.c | |
63ffe5ef | 258 | |
c6b399ce KR |
259 | HFILES = aout-target.h aoutf1.h aoutx.h coffcode.h \ |
260 | coffswap.h ecoffswap.h elf32-hppa.h elf32-target.h elf64-target.h \ | |
261 | elfcode.h hppa_stubs.h libaout.h libbfd.h \ | |
262 | libcoff.h libecoff.h libelf.h libhppa.h libieee.h libnlm.h \ | |
130308bf | 263 | liboasys.h nlm-target.h nlmcode.h som.h genlink.h |
c6b399ce | 264 | |
5176a6bc RP |
265 | STAGESTUFF = $(TARGETLIB) $(OFILES) |
266 | ||
fbee3571 | 267 | all: Makefile $(TARGETLIB) |
98c0c56d | 268 | @$(MAKE) subdir_do DO=all "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS) |
5176a6bc | 269 | |
30662ca6 | 270 | .NOEXPORT: |
204ae00c | 271 | MAKEOVERRIDES= |
30662ca6 | 272 | |
d5d53b0a | 273 | .PHONY: check installcheck |
5868184b | 274 | check: |
26b572e4 | 275 | @echo No testsuites exist for the BFD library. Nothing to check. |
d5d53b0a | 276 | |
76019c92 | 277 | installcheck: |
26b572e4 | 278 | @echo No testsuites exist for the BFD library. Nothing to check. |
5868184b | 279 | |
74991624 | 280 | info dvi : force |
9faacb92 | 281 | @$(MAKE) subdir_do DO=$@ "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS) |
2090ba83 | 282 | |
5868184b | 283 | clean-info: |
98c0c56d | 284 | @$(MAKE) subdir_do DO=clean-info "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS) |
5868184b | 285 | |
2090ba83 | 286 | install-info: force |
98c0c56d | 287 | @$(MAKE) subdir_do DO=install-info "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS) |
2090ba83 | 288 | |
cecbf7ed SEF |
289 | diststuff: info |
290 | ||
dcdfa32c DM |
291 | # Various kinds of .o files to put in libbfd.a: |
292 | # BFD_LIBS Generic routines, always needed. | |
5f9a2245 DM |
293 | # BFD_BACKENDS Routines the configured targets need. |
294 | # BFD_MACHINES Architecture-specific routines the configured targets need. | |
dcdfa32c DM |
295 | # HDEPFILES Routines the host needs, regardless of target. |
296 | # TDEPFILES Routines the target needs, regardless of host. | |
6a469027 | 297 | OFILES = $(BFD_LIBS) $(BFD_BACKENDS) $(BFD_MACHINES) $(HDEPFILES) $(TDEPFILES) |
5176a6bc | 298 | |
c812942f | 299 | ofiles : Makefile |
15db2044 | 300 | rm -f ofiles |
2fdca021 | 301 | f=""; \ |
c812942f | 302 | for i in $(OFILES) ; do \ |
2fdca021 | 303 | case " $$f " in \ |
dae31cf5 | 304 | *" $$i "*) ;; \ |
2fdca021 KR |
305 | *) f="$$f $$i" ;; \ |
306 | esac ; \ | |
307 | done ; \ | |
308 | echo $$f > ofiles | |
c812942f KR |
309 | |
310 | $(TARGETLIB): $(OFILES) ofiles | |
311 | rm -f $(TARGETLIB) | |
312 | @echo ofiles = `cat ofiles` | |
313 | $(AR) $(AR_FLAGS) $(TARGETLIB) `cat ofiles` | |
314 | $(RANLIB) $(TARGETLIB) | |
5176a6bc | 315 | |
98c0c56d BK |
316 | # When compiling archures.c and targets.c, supply the default target |
317 | # info from configure. | |
318 | ||
319 | ||
51300bdb | 320 | targets.o: targets.c Makefile |
2f88343d | 321 | $(CC) -c $(ALL_CFLAGS) $(TDEFAULTS) $< |
4a29cb1e | 322 | |
51300bdb | 323 | archures.o: archures.c Makefile |
2f88343d | 324 | $(CC) -c $(ALL_CFLAGS) $(TDEFAULTS) $< |
98c0c56d | 325 | |
f259290f | 326 | subdir_do: force |
6e491a87 | 327 | @for i in $(DODIRS); do \ |
5868184b FF |
328 | if [ -d ./$$i ] ; then \ |
329 | if (cd ./$$i; \ | |
98c0c56d | 330 | $(MAKE) $(FLAGS_TO_PASS) $(DO)) ; then true ; \ |
f259290f RP |
331 | else exit 1 ; fi ; \ |
332 | else true ; fi ; \ | |
333 | done | |
334 | ||
99a42820 RP |
335 | tags etags: TAGS |
336 | ||
5176a6bc | 337 | TAGS: force |
453063fe | 338 | etags $(INCDIR)/*.h $(srcdir)/*.h $(srcdir)/*.c |
99a42820 | 339 | |
ef2810d0 PB |
340 | do_mostlyclean: |
341 | rm -f *.o *~ core *.E *.p *.ip aout-params.h gen-aout | |
fbee3571 | 342 | do_clean: do_mostlyclean |
15db2044 | 343 | rm -f libbfd.a TAGS bfd.h stmp-bfd.h ofiles |
ef2810d0 | 344 | do_distclean: do_clean |
0e238aa7 | 345 | rm -f Makefile config.status sysdep.h |
cecbf7ed SEF |
346 | |
347 | # Should we remove $(srcdir)/libcoff.h $(srcdir)/libbfd.h $(srcdir)/bfd-in2.h? | |
348 | # make-stds.texi says it depends on whether they can be regenerated using | |
349 | # this makefile. Well, they can, but only via an explicit "make headers"; | |
350 | # the makefile does not regenerate them as needed. So I guess we should not | |
351 | # remove them in realclean. | |
ef2810d0 PB |
352 | do_realclean: do_distclean |
353 | ||
354 | mostlyclean: do_mostlyclean | |
355 | $(MAKE) subdir_do DO=mostlyclean "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS) | |
fbee3571 | 356 | clean: do_clean |
ef2810d0 | 357 | $(MAKE) subdir_do DO=clean "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS) |
0e238aa7 | 358 | distclean: |
ef2810d0 | 359 | $(MAKE) subdir_do DO=distclean "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS) |
180acef5 | 360 | $(MAKE) do_distclean |
0e238aa7 | 361 | clobber realclean: |
ef2810d0 | 362 | $(MAKE) subdir_do DO=realclean "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS) |
180acef5 | 363 | $(MAKE) do_realclean |
99a42820 | 364 | |
23d44ec9 JG |
365 | # Mark everything as depending on config.status, since the timestamp on |
366 | # sysdep.h might actually move backwards if we reconfig and relink it | |
367 | # to a different hosts/h-xxx.h file. This will force a recompile anyway. | |
d684720f | 368 | BFD_H_DEPS= $(INCDIR)/ansidecl.h $(INCDIR)/obstack.h |
23d44ec9 | 369 | RECONFIG = config.status |
d684720f KR |
370 | $(BFD_LIBS): libbfd.h $(BFD_H) $(RECONFIG) $(BFD_H_DEPS) |
371 | $(BFD_MACHINES): libbfd.h $(BFD_H) $(RECONFIG) $(BFD_H_DEPS) | |
372 | $(BFD_BACKENDS): libbfd.h $(BFD_H) $(RECONFIG) $(BFD_H_DEPS) | |
373 | $(OPTIONAL_BACKENDS): libbfd.h $(BFD_H) $(RECONFIG) $(BFD_H_DEPS) | |
99a42820 | 374 | |
cbdc7909 JG |
375 | # Get around a Sun Make bug in SunOS 4.1.1 with VPATH |
376 | cpu-i386.o:cpu-i386.c | |
fbee3571 | 377 | cpu-z8k.o: cpu-z8k.c |
204ae00c | 378 | cpu-h8500.o: cpu-h8500.c |
fbee3571 | 379 | cpu-we32k.o: cpu-we32k.c |
cbdc7909 | 380 | |
99a42820 RP |
381 | saber: |
382 | #suppress 65 on bfd_map_over_sections | |
383 | #suppress 66 on bfd_map_over_sections | |
384 | #suppress 67 on bfd_map_over_sections | |
385 | #suppress 68 on bfd_map_over_sections | |
386 | #suppress 69 on bfd_map_over_sections | |
387 | #suppress 70 on bfd_map_over_sections | |
388 | #suppress 110 in bfd_map_over_sections | |
389 | #suppress 112 in bfd_map_over_sections | |
390 | #suppress 530 | |
391 | #suppress 590 in swap_exec_header | |
392 | #suppress 590 in _bfd_dummy_core_file_matches_executable_p | |
393 | #suppress 590 in bfd_dont_truncate_arname | |
394 | #suppress 590 on ignore | |
395 | #suppress 590 on abfd | |
396 | #setopt load_flags $(CFLAGS) | |
397 | #load $(CFILES) | |
a5c6b4b3 | 398 | |
99a42820 RP |
399 | |
400 | #----------------------------------------------------------------------------- | |
401 | # 'STANDARD' GNU/960 TARGETS BELOW THIS POINT | |
402 | # | |
403 | # 'VERSION' file must be present and contain a string of the form "x.y" | |
404 | #----------------------------------------------------------------------------- | |
405 | ||
406 | ver960.c: FORCE | |
407 | rm -f ver960.c | |
408 | echo "char ${TARG}_ver[]= \"${TARG} `cat VERSION`, `date`\";" > ver960.c | |
409 | ||
410 | ||
411 | # This target should be invoked before building a new release. | |
412 | # 'VERSION' file must be present and contain a string of the form "x.y" | |
413 | # | |
414 | roll: | |
415 | @V=`cat VERSION` ; \ | |
416 | MAJ=`sed 's/\..*//' VERSION` ; \ | |
417 | MIN=`sed 's/.*\.//' VERSION` ; \ | |
418 | V=$$MAJ.`expr $$MIN + 1` ; \ | |
419 | rm -f VERSION ; \ | |
420 | echo $$V >VERSION ; \ | |
421 | echo Version $$V | |
422 | ||
423 | # Dummy target to force execution of dependent targets. | |
424 | # | |
5176a6bc | 425 | force: |
99a42820 | 426 | |
99a42820 | 427 | install: |
fde8212e RP |
428 | $(INSTALL_DATA) libbfd.a $(libdir)/libbfd.a |
429 | $(RANLIB) $(libdir)/libbfd.a | |
75ff7895 DZ |
430 | # Install BFD include file, and others that it needs. Install them |
431 | # both in GCC's include directory, and in the system include dir | |
432 | # if configured as $(oldincludedir) -- which it usually isnt. | |
a5220fb9 | 433 | $(INSTALL_DATA) $(BFD_H) $(includedir)/bfd.h |
6cabab78 DZ |
434 | $(INSTALL_DATA) $(INCDIR)/ansidecl.h $(includedir)/ansidecl.h |
435 | $(INSTALL_DATA) $(INCDIR)/obstack.h $(includedir)/obstack.h | |
5d4c714e DM |
436 | -if test -z "$(oldincludedir)"; then true; else \ |
437 | test -d $(oldincludedir) || mkdir $(oldincludedir); \ | |
438 | $(INSTALL_DATA) $(BFD_H) $(oldincludedir)/bfd.h; \ | |
439 | $(INSTALL_DATA) $(INCDIR)/ansidecl.h $(oldincludedir)/ansidecl.h; \ | |
440 | $(INSTALL_DATA) $(INCDIR)/obstack.h $(oldincludedir)/obstack.h; \ | |
2c96ba79 | 441 | $(MAKE) subdir_do DO=install "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS); \ |
5d4c714e | 442 | fi |
99a42820 | 443 | |
dae31cf5 ILT |
444 | Makefile: Makefile.in configure.in $(host_makefile_frag) $(target_makefile_frag) |
445 | $(SHELL) config.status | |
a5c6b4b3 | 446 | |
c6b399ce KR |
447 | # Have to get rid of .dep1 here so that "$?" later includes all of $(CFILES). |
448 | .dep: dep.sed $(CFILES) $(HFILES) bfd.h | |
449 | rm -f .dep1 | |
450 | $(MAKE) DEP=$(DEP) .dep1 | |
451 | sed -f dep.sed <.dep1 >.dep | |
452 | ||
d684720f KR |
453 | # This rule really wants a mkdep that runs "gcc -MM". |
454 | .dep1: $(CFILES) | |
c6b399ce | 455 | rm -f .dep2 |
d684720f KR |
456 | echo '# DO NOT DELETE THIS LINE -- mkdep uses it.' > .dep2 |
457 | $(DEP) -f .dep2 $(ALL_CFLAGS) $? | |
653dd82a | 458 | $(srcdir)/../move-if-change .dep2 .dep1 |
d684720f | 459 | |
c6b399ce | 460 | dep.sed: dep-in.sed config.status |
d684720f KR |
461 | sed <$(srcdir)/dep-in.sed >dep.sed \ |
462 | -e 's!@BFD_H@!$(BFD_H)!' \ | |
463 | -e 's!@INCDIR@!$(INCDIR)!' \ | |
464 | -e 's!@srcdir@!$(srcdir)!' | |
465 | ||
d684720f KR |
466 | dep: .dep |
467 | sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < Makefile > tmp-Makefile | |
468 | cat .dep >> tmp-Makefile | |
653dd82a SG |
469 | $(srcdir)/../move-if-change tmp-Makefile Makefile |
470 | ||
471 | dep-in: .dep | |
472 | sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.in > tmp-Makefile.in | |
473 | cat .dep >> tmp-Makefile.in | |
474 | $(srcdir)/../move-if-change tmp-Makefile.in $(srcdir)/Makefile.in | |
6f715d66 | 475 | |
5868184b | 476 | host-aout.o: Makefile |
6f715d66 | 477 | |
5868184b FF |
478 | # The following program can be used to generate a simple config file |
479 | # which can be folded into an h-XXX file for a new host, with some editing. | |
d01cd8fc | 480 | aout-params.h: gen-aout |
4e810849 | 481 | ./gen-aout host > aout-params.h |
5868184b FF |
482 | gen-aout: $(srcdir)/gen-aout.c Makefile |
483 | $(CC) -o gen-aout $(CFLAGS) $(LFLAGS) $(srcdir)/gen-aout.c | |
6f715d66 | 484 | |
34075964 PB |
485 | BFDIN_H= $(srcdir)/bfd-in2.h |
486 | ||
a5220fb9 | 487 | $(BFD_H): stmp-bfd.h ; @true |
75ff7895 | 488 | |
12f367a1 KR |
489 | # The file ../include/bfd.h is from earlier attempts to get this right. |
490 | # If the file is still there, kill it. | |
c06e55d9 KR |
491 | # The weird sh*t with grep is to avoid printing "exit 1 (ignored)" type |
492 | # messages from make, and avoid various ways in which different versions | |
493 | # of make will screw up exit status checks. | |
494 | # -grep... -> make prints "exit 1" message | |
495 | # grep ... ; exit 0 -> sun(?) make notices grep failure | |
496 | # grep ... || exit 0 -> bsd4.4 make still notices | |
497 | # if grep ... -> seems okay so far | |
15db2044 KR |
498 | stmp-bfd.h : $(srcdir)/bfd-in2.h Makefile |
499 | rm -f bfd.h-new 64 ../include/bfd.h | |
c06e55d9 KR |
500 | if grep BFD_HOST_64_BIT sysdep.h > 64 2>/dev/null; then true; \ |
501 | else true; fi | |
5a66538b KR |
502 | sed -e 's/@WORDSIZE@/$(WORDSIZE)/' \ |
503 | -e "s/@VERSION@/`cat $(srcdir)/VERSION`/" \ | |
504 | -e '/64-bit.*sysdep.h/ r 64' \ | |
505 | < $(srcdir)/bfd-in2.h \ | |
506 | > bfd.h-new | |
15db2044 | 507 | $(srcdir)/../move-if-change bfd.h-new $(BFD_H) |
12f367a1 | 508 | rm -f 64 |
75ff7895 | 509 | touch stmp-bfd.h |
34075964 | 510 | |
a5220fb9 | 511 | # Could really use a "copy-if-change"... |
12e7087f | 512 | headers: |
98c0c56d | 513 | (cd $(docdir); $(MAKE) protos $(FLAGS_TO_PASS)) |
15db2044 KR |
514 | cp $(docdir)/bfd.h bfd-in2.h-new |
515 | $(srcdir)/../move-if-change bfd-in2.h-new $(srcdir)/bfd-in2.h | |
6bb4c923 KR |
516 | cp $(docdir)/libbfd.h libbfd.h-new |
517 | $(srcdir)/../move-if-change libbfd.h-new $(srcdir)/libbfd.h | |
518 | cp $(docdir)/libcoff.h libcoff.h-new | |
519 | $(srcdir)/../move-if-change libcoff.h-new $(srcdir)/libcoff.h | |
12e7087f JG |
520 | |
521 | bfd.info: | |
fbee3571 | 522 | (cd $(docdir); $(MAKE) bfd.info $(FLAGS_TO_PASS)) |
12e7087f JG |
523 | |
524 | bfd.dvi: | |
98c0c56d | 525 | (cd $(docdir); $(MAKE) bfd.dvi $(FLAGS_TO_PASS)) |
12e7087f JG |
526 | |
527 | bfd.ps: | |
98c0c56d | 528 | (cd $(docdir); $(MAKE) bfd.ps $(FLAGS_TO_PASS)) |
12e7087f JG |
529 | |
530 | # What appears below is generated by a hacked mkdep using gcc -MM. | |
531 | ||
532 | # DO NOT DELETE THIS LINE -- mkdep uses it. | |
533 | # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. | |
534 | ||
7ce8b9d1 ILT |
535 | libbfd.o: libbfd.c |
536 | opncls.o: opncls.c | |
537 | bfd.o: bfd.c $(INCDIR)/bfdlink.h $(INCDIR)/coff/internal.h \ | |
130308bf ILT |
538 | $(INCDIR)/coff/sym.h libcoff.h libecoff.h $(INCDIR)/coff/ecoff.h \ |
539 | libelf.h $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h \ | |
540 | $(INCDIR)/elf/external.h | |
7ce8b9d1 ILT |
541 | archive.o: archive.c $(INCDIR)/aout/ar.h $(INCDIR)/aout/ranlib.h |
542 | targets.o: targets.c | |
543 | cache.o: cache.c | |
544 | archures.o: archures.c | |
545 | coff-i386.o: coff-i386.c $(INCDIR)/coff/i386.h $(INCDIR)/coff/internal.h \ | |
3cd942de | 546 | libcoff.h $(INCDIR)/bfdlink.h coffcode.h coffswap.h |
c06e55d9 | 547 | coff-go32.o: coff-go32.c $(INCDIR)/coff/i386.h $(INCDIR)/coff/internal.h \ |
3cd942de | 548 | libcoff.h $(INCDIR)/bfdlink.h coffcode.h coffswap.h |
7ce8b9d1 | 549 | aout64.o: aout64.c aoutx.h $(INCDIR)/bfdlink.h libaout.h \ |
130308bf ILT |
550 | $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def \ |
551 | $(INCDIR)/aout/ar.h | |
7ce8b9d1 | 552 | aout32.o: aout32.c aoutx.h $(INCDIR)/bfdlink.h libaout.h \ |
130308bf ILT |
553 | $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def \ |
554 | $(INCDIR)/aout/ar.h | |
0b72c410 KR |
555 | sunos.o: sunos.c $(INCDIR)/bfdlink.h libaout.h aoutf1.h \ |
556 | $(INCDIR)/aout/sun4.h $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h \ | |
557 | $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h aout-target.h | |
7ce8b9d1 | 558 | demo64.o: demo64.c aoutf1.h $(INCDIR)/aout/sun4.h libaout.h \ |
0b72c410 KR |
559 | $(INCDIR)/bfdlink.h $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h \ |
560 | $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h aout-target.h | |
7ce8b9d1 | 561 | coff-i960.o: coff-i960.c $(INCDIR)/coff/i960.h $(INCDIR)/coff/internal.h \ |
3cd942de | 562 | libcoff.h $(INCDIR)/bfdlink.h coffcode.h coffswap.h |
7ce8b9d1 | 563 | srec.o: srec.c |
29407610 | 564 | binary.o: binary.c |
7ce8b9d1 ILT |
565 | tekhex.o: tekhex.c |
566 | oasys.o: oasys.c $(INCDIR)/oasys.h liboasys.h | |
567 | ieee.o: ieee.c $(INCDIR)/ieee.h libieee.h | |
568 | aout0.o: aout0.c aoutf1.h $(INCDIR)/aout/sun4.h libaout.h \ | |
0b72c410 KR |
569 | $(INCDIR)/bfdlink.h $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h \ |
570 | $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h aout-target.h | |
7ce8b9d1 | 571 | ecoff.o: ecoff.c $(INCDIR)/bfdlink.h $(INCDIR)/aout/ar.h \ |
060ea290 ILT |
572 | $(INCDIR)/aout/ranlib.h $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def \ |
573 | libaout.h $(INCDIR)/aout/aout64.h $(INCDIR)/coff/internal.h \ | |
574 | $(INCDIR)/coff/sym.h $(INCDIR)/coff/symconst.h $(INCDIR)/coff/ecoff.h \ | |
575 | libcoff.h libecoff.h | |
7ce8b9d1 | 576 | ecofflink.o: ecofflink.c $(INCDIR)/bfdlink.h $(INCDIR)/coff/internal.h \ |
8d12f138 | 577 | $(INCDIR)/coff/sym.h $(INCDIR)/coff/symconst.h $(INCDIR)/coff/ecoff.h |
7ce8b9d1 | 578 | coff-m68k.o: coff-m68k.c $(INCDIR)/coff/m68k.h $(INCDIR)/coff/internal.h \ |
3cd942de | 579 | libcoff.h $(INCDIR)/bfdlink.h coffcode.h coffswap.h |
7ce8b9d1 | 580 | coff-u68k.o: coff-u68k.c coff-m68k.c $(INCDIR)/coff/m68k.h \ |
3cd942de ILT |
581 | $(INCDIR)/coff/internal.h libcoff.h $(INCDIR)/bfdlink.h \ |
582 | coffcode.h coffswap.h | |
7ce8b9d1 | 583 | coff-apollo.o: coff-apollo.c $(INCDIR)/coff/apollo.h \ |
3cd942de ILT |
584 | $(INCDIR)/coff/internal.h libcoff.h $(INCDIR)/bfdlink.h \ |
585 | coffcode.h coffswap.h | |
7ce8b9d1 | 586 | coff-a29k.o: coff-a29k.c $(INCDIR)/coff/a29k.h $(INCDIR)/coff/internal.h \ |
3cd942de | 587 | libcoff.h $(INCDIR)/bfdlink.h coffcode.h coffswap.h |
7ce8b9d1 | 588 | coff-rs6000.o: coff-rs6000.c $(INCDIR)/coff/internal.h \ |
3cd942de ILT |
589 | $(INCDIR)/coff/rs6000.h libcoff.h $(INCDIR)/bfdlink.h \ |
590 | coffcode.h coffswap.h | |
7ce8b9d1 | 591 | coff-sparc.o: coff-sparc.c $(INCDIR)/coff/sparc.h $(INCDIR)/coff/internal.h \ |
3cd942de ILT |
592 | libcoff.h $(INCDIR)/bfdlink.h coffcode.h coffswap.h |
593 | coffgen.o: coffgen.c $(INCDIR)/coff/internal.h libcoff.h \ | |
594 | $(INCDIR)/bfdlink.h | |
7ce8b9d1 ILT |
595 | format.o: format.c |
596 | section.o: section.c | |
597 | core.o: core.c | |
598 | syms.o: syms.c $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def | |
0b72c410 KR |
599 | stab-syms.o: stab-syms.c libaout.h $(INCDIR)/bfdlink.h \ |
600 | $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab.def | |
7ce8b9d1 ILT |
601 | reloc.o: reloc.c $(INCDIR)/bfdlink.h |
602 | init.o: init.c | |
7ce8b9d1 | 603 | coff-m88k.o: coff-m88k.c $(INCDIR)/coff/m88k.h $(INCDIR)/coff/internal.h \ |
3cd942de | 604 | libcoff.h $(INCDIR)/bfdlink.h coffcode.h coffswap.h |
7ce8b9d1 | 605 | coff-mips.o: coff-mips.c $(INCDIR)/bfdlink.h $(INCDIR)/coff/internal.h \ |
d5d53b0a JW |
606 | $(INCDIR)/coff/sym.h $(INCDIR)/coff/symconst.h $(INCDIR)/coff/ecoff.h \ |
607 | $(INCDIR)/coff/mips.h libcoff.h libecoff.h coffswap.h \ | |
608 | ecoffswap.h | |
7ce8b9d1 | 609 | coff-sh.o: coff-sh.c $(INCDIR)/bfdlink.h $(INCDIR)/coff/sh.h \ |
130308bf | 610 | $(INCDIR)/coff/internal.h libcoff.h coffcode.h coffswap.h |
0b72c410 | 611 | trad-core.o: trad-core.c libaout.h $(INCDIR)/bfdlink.h |
7ce8b9d1 ILT |
612 | cisco-core.o: cisco-core.c |
613 | newsos3.o: newsos3.c $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h \ | |
d5d53b0a | 614 | $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h libaout.h \ |
0b72c410 KR |
615 | $(INCDIR)/bfdlink.h aout-target.h |
616 | i386aout.o: i386aout.c libaout.h $(INCDIR)/bfdlink.h \ | |
617 | aout-target.h $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h \ | |
618 | $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h | |
7ce8b9d1 | 619 | i386linux.o: i386linux.c $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h \ |
d5d53b0a | 620 | $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h libaout.h \ |
0b72c410 | 621 | $(INCDIR)/bfdlink.h aout-target.h |
7ce8b9d1 | 622 | i386mach3.o: i386mach3.c $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h \ |
d5d53b0a | 623 | $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h libaout.h \ |
0b72c410 | 624 | $(INCDIR)/bfdlink.h aout-target.h |
060ea290 | 625 | i386netbsd.o: i386netbsd.c netbsd.h libaout.h $(INCDIR)/bfdlink.h \ |
a3f7a777 C |
626 | aout-target.h $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h \ |
627 | $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h | |
7ce8b9d1 | 628 | i386os9k.o: i386os9k.c $(INCDIR)/bfdlink.h libaout.h \ |
6cac89c5 | 629 | $(INCDIR)/os9k.h |
7ce8b9d1 | 630 | bout.o: bout.c $(INCDIR)/bfdlink.h genlink.h $(INCDIR)/bout.h \ |
d5d53b0a | 631 | $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def libaout.h |
7ce8b9d1 | 632 | aout-adobe.o: aout-adobe.c $(INCDIR)/aout/adobe.h $(INCDIR)/aout/stab_gnu.h \ |
0b72c410 | 633 | $(INCDIR)/aout/stab.def libaout.h $(INCDIR)/bfdlink.h |
7ce8b9d1 | 634 | coff-we32k.o: coff-we32k.c $(INCDIR)/coff/we32k.h $(INCDIR)/coff/internal.h \ |
3cd942de | 635 | libcoff.h $(INCDIR)/bfdlink.h coffcode.h coffswap.h |
0b72c410 | 636 | i386bsd.o: i386bsd.c libaout.h $(INCDIR)/bfdlink.h \ |
666f5925 ILT |
637 | aout-target.h $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h \ |
638 | $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h | |
0b72c410 KR |
639 | i386dynix.o: i386dynix.c $(INCDIR)/aout/dynix3.h libaout.h \ |
640 | $(INCDIR)/bfdlink.h aout-target.h $(INCDIR)/aout/aout64.h \ | |
641 | $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h | |
7ce8b9d1 ILT |
642 | cpu-h8300.o: cpu-h8300.c |
643 | cpu-i960.o: cpu-i960.c | |
644 | cpu-sparc.o: cpu-sparc.c | |
645 | cpu-m68k.o: cpu-m68k.c | |
646 | cpu-m88k.o: cpu-m88k.c | |
647 | cpu-vax.o: cpu-vax.c | |
648 | cpu-mips.o: cpu-mips.c | |
649 | cpu-a29k.o: cpu-a29k.c | |
650 | cpu-i386.o: cpu-i386.c | |
651 | cpu-powerpc.o: cpu-powerpc.c | |
652 | cpu-rs6000.o: cpu-rs6000.c | |
653 | coff-h8300.o: coff-h8300.c $(INCDIR)/bfdlink.h $(INCDIR)/coff/h8300.h \ | |
130308bf | 654 | $(INCDIR)/coff/internal.h libcoff.h coffcode.h coffswap.h |
7ce8b9d1 ILT |
655 | som.o: som.c |
656 | cpu-hppa.o: cpu-hppa.c | |
657 | cpu-we32k.o: cpu-we32k.c | |
658 | reloc16.o: reloc16.c $(INCDIR)/bfdlink.h genlink.h \ | |
6cac89c5 | 659 | $(INCDIR)/coff/internal.h libcoff.h |
0b72c410 KR |
660 | mipsbsd.o: mipsbsd.c libaout.h $(INCDIR)/bfdlink.h \ |
661 | aout-target.h $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h \ | |
662 | $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h | |
7ce8b9d1 ILT |
663 | cpu-sh.o: cpu-sh.c |
664 | elf.o: elf.c $(INCDIR)/bfdlink.h libelf.h $(INCDIR)/elf/common.h \ | |
d5d53b0a | 665 | $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h |
7ce8b9d1 ILT |
666 | elf32.o: elf32.c elfcode.h $(INCDIR)/bfdlink.h libelf.h \ |
667 | $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h | |
668 | elf32-sparc.o: elf32-sparc.c $(INCDIR)/bfdlink.h libelf.h \ | |
130308bf | 669 | $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \ |
130308bf | 670 | elf32-target.h |
7ce8b9d1 ILT |
671 | elf32-i386.o: elf32-i386.c $(INCDIR)/bfdlink.h libelf.h \ |
672 | $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \ | |
673 | elf32-target.h | |
674 | elf32-i860.o: elf32-i860.c libelf.h $(INCDIR)/elf/common.h \ | |
675 | $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h \ | |
676 | elf32-target.h | |
677 | elf32-m68k.o: elf32-m68k.c libelf.h $(INCDIR)/elf/common.h \ | |
678 | $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h \ | |
679 | elf32-target.h | |
680 | elf32-hppa.o: elf32-hppa.c $(INCDIR)/bfdlink.h libelf.h \ | |
681 | $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \ | |
358710a7 KR |
682 | elf32-hppa.h libhppa.h $(INCDIR)/elf/hppa.h hppa_stubs.h \ |
683 | elf32-target.h | |
7ce8b9d1 ILT |
684 | elf32-m88k.o: elf32-m88k.c libelf.h $(INCDIR)/elf/common.h \ |
685 | $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h \ | |
686 | elf32-target.h | |
687 | elf32-mips.o: elf32-mips.c $(INCDIR)/bfdlink.h genlink.h \ | |
130308bf ILT |
688 | libelf.h $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h \ |
689 | $(INCDIR)/elf/external.h $(INCDIR)/elf/mips.h $(INCDIR)/coff/sym.h \ | |
690 | $(INCDIR)/coff/symconst.h $(INCDIR)/coff/internal.h \ | |
8d12f138 | 691 | $(INCDIR)/coff/ecoff.h $(INCDIR)/coff/mips.h ecoffswap.h \ |
d5d53b0a | 692 | elf32-target.h |
7ce8b9d1 ILT |
693 | elf32-gen.o: elf32-gen.c libelf.h $(INCDIR)/elf/common.h \ |
694 | $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h \ | |
695 | elf32-target.h | |
696 | elf32-ppc.o: elf32-ppc.c libelf.h $(INCDIR)/elf/common.h \ | |
697 | $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h \ | |
698 | elf32-target.h | |
699 | elf64.o: elf64.c elfcode.h $(INCDIR)/bfdlink.h libelf.h \ | |
700 | $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h | |
701 | elf64-gen.o: elf64-gen.c libelf.h $(INCDIR)/elf/common.h \ | |
702 | $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h \ | |
703 | elf64-target.h | |
0b72c410 KR |
704 | elf64-sparc.o: elf64-sparc.c libelf.h $(INCDIR)/elf/common.h \ |
705 | $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h \ | |
706 | elf64-target.h | |
7ce8b9d1 | 707 | nlm.o: nlm.c libnlm.h $(INCDIR)/nlm/common.h $(INCDIR)/nlm/internal.h \ |
d5d53b0a | 708 | $(INCDIR)/nlm/external.h |
7ce8b9d1 | 709 | nlm32.o: nlm32.c nlmcode.h libnlm.h $(INCDIR)/nlm/common.h \ |
d5d53b0a | 710 | $(INCDIR)/nlm/internal.h $(INCDIR)/nlm/external.h |
7ce8b9d1 | 711 | nlm32-i386.o: nlm32-i386.c $(INCDIR)/nlm/i386-ext.h \ |
8d12f138 ILT |
712 | libnlm.h $(INCDIR)/nlm/common.h $(INCDIR)/nlm/internal.h \ |
713 | $(INCDIR)/nlm/external.h nlmswap.h nlm-target.h | |
7ce8b9d1 | 714 | nlm32-sparc.o: nlm32-sparc.c $(INCDIR)/nlm/sparc32-ext.h \ |
8d12f138 | 715 | libnlm.h $(INCDIR)/nlm/common.h $(INCDIR)/nlm/internal.h \ |
4d4023b8 | 716 | $(INCDIR)/nlm/external.h nlmswap.h nlm-target.h |
7ce8b9d1 | 717 | nlm32-alpha.o: nlm32-alpha.c $(INCDIR)/nlm/alpha-ext.h \ |
4d4023b8 | 718 | libnlm.h $(INCDIR)/nlm/common.h $(INCDIR)/nlm/internal.h \ |
8d12f138 | 719 | $(INCDIR)/nlm/external.h nlmswap.h nlm-target.h |
7ce8b9d1 | 720 | nlm64.o: nlm64.c nlmcode.h libnlm.h $(INCDIR)/nlm/common.h \ |
d5d53b0a | 721 | $(INCDIR)/nlm/internal.h $(INCDIR)/nlm/external.h |
7ce8b9d1 | 722 | coff-alpha.o: coff-alpha.c $(INCDIR)/bfdlink.h $(INCDIR)/coff/internal.h \ |
d5d53b0a JW |
723 | $(INCDIR)/coff/sym.h $(INCDIR)/coff/symconst.h $(INCDIR)/coff/ecoff.h \ |
724 | $(INCDIR)/coff/alpha.h libcoff.h libecoff.h coffswap.h \ | |
725 | ecoffswap.h | |
7ce8b9d1 ILT |
726 | cpu-alpha.o: cpu-alpha.c |
727 | nlm32-ppc.o: nlm32-ppc.c $(INCDIR)/nlm/ppc-ext.h libnlm.h \ | |
728 | $(INCDIR)/nlm/common.h $(INCDIR)/nlm/internal.h $(INCDIR)/nlm/external.h \ | |
729 | nlmswap.h nlm-target.h | |
0b72c410 KR |
730 | hp300bsd.o: hp300bsd.c libaout.h $(INCDIR)/bfdlink.h \ |
731 | aout-target.h $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h \ | |
732 | $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h | |
7ce8b9d1 | 733 | hp300hpux.o: hp300hpux.c $(INCDIR)/aout/hp300hpux.h \ |
130308bf ILT |
734 | aoutx.h $(INCDIR)/bfdlink.h libaout.h $(INCDIR)/aout/aout64.h \ |
735 | $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h \ | |
736 | aout-target.h | |
0b72c410 KR |
737 | i386lynx.o: i386lynx.c libaout.h $(INCDIR)/bfdlink.h \ |
738 | $(INCDIR)/aout/aout64.h aout-target.h $(INCDIR)/aout/stab_gnu.h \ | |
739 | $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h | |
7ce8b9d1 | 740 | cf-i386lynx.o: cf-i386lynx.c coff-i386.c $(INCDIR)/coff/i386.h \ |
3cd942de ILT |
741 | $(INCDIR)/coff/internal.h libcoff.h $(INCDIR)/bfdlink.h \ |
742 | coffcode.h coffswap.h | |
0b72c410 KR |
743 | m68klynx.o: m68klynx.c libaout.h $(INCDIR)/bfdlink.h \ |
744 | $(INCDIR)/aout/aout64.h aout-target.h $(INCDIR)/aout/stab_gnu.h \ | |
745 | $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h | |
7ce8b9d1 | 746 | cf-m68klynx.o: cf-m68klynx.c coff-m68k.c $(INCDIR)/coff/m68k.h \ |
3cd942de ILT |
747 | $(INCDIR)/coff/internal.h libcoff.h $(INCDIR)/bfdlink.h \ |
748 | coffcode.h coffswap.h | |
7ce8b9d1 | 749 | sparclynx.o: sparclynx.c $(INCDIR)/aout/sun4.h libaout.h \ |
0b72c410 KR |
750 | $(INCDIR)/bfdlink.h $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h \ |
751 | $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h aout-target.h | |
7ce8b9d1 | 752 | cf-sparclynx.o: cf-sparclynx.c coff-sparc.c $(INCDIR)/coff/sparc.h \ |
3cd942de ILT |
753 | $(INCDIR)/coff/internal.h libcoff.h $(INCDIR)/bfdlink.h \ |
754 | coffcode.h coffswap.h | |
7ce8b9d1 | 755 | aix386-core.o: aix386-core.c $(INCDIR)/coff/i386.h \ |
3cd942de | 756 | $(INCDIR)/coff/internal.h libcoff.h $(INCDIR)/bfdlink.h |
7ce8b9d1 ILT |
757 | hpux-core.o: hpux-core.c |
758 | irix-core.o: irix-core.c | |
759 | lynx-core.o: lynx-core.c | |
760 | osf-core.o: osf-core.c | |
761 | hash.o: hash.c | |
762 | linker.o: linker.c $(INCDIR)/bfdlink.h genlink.h | |
3cd942de ILT |
763 | cofflink.o: cofflink.c $(INCDIR)/bfdlink.h $(INCDIR)/coff/internal.h \ |
764 | libcoff.h | |
c768bd3f ILT |
765 | ns32knetbsd.o: ns32knetbsd.c netbsd.h libaout.h $(INCDIR)/bfdlink.h \ |
766 | aout-target.h $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h \ | |
767 | $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h | |
768 | sparcnetbsd.o: sparcnetbsd.c netbsd.h libaout.h $(INCDIR)/bfdlink.h \ | |
769 | aout-target.h $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h \ | |
770 | $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h | |
6bb4c923 | 771 | |
12e7087f | 772 | # IF YOU PUT ANYTHING HERE IT WILL GO AWAY |