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 | ||
47 | INSTALL = install -c | |
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. | |
13cadf76 | 75 | # gdb: ecoff.o 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 DM |
85 | BFD_LIBS = \ |
86 | archive.o archures.o bfd.o cache.o coffgen.o core.o ctor.o \ | |
87 | format.o init.o libbfd.o opncls.o reloc.o \ | |
88 | seclet.o section.o syms.o targets.o \ | |
ac0d500c | 89 | ecoff.o elf.o srec.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 \ | |
96 | cpu-h8300.o \ | |
97 | cpu-h8500.o \ | |
98 | cpu-hppa.o \ | |
99 | cpu-i386.o \ | |
100 | cpu-i960.o \ | |
101 | cpu-m68k.o \ | |
102 | cpu-m88k.o \ | |
103 | cpu-mips.o \ | |
104 | cpu-rs6000.o \ | |
105 | cpu-sh.o \ | |
106 | cpu-sparc.o \ | |
107 | cpu-vax.o \ | |
108 | cpu-we32k.o \ | |
109 | cpu-z8k.o | |
110 | ||
111 | # The .o files needed by all of the 32 bit vectors that are configured into | |
112 | # target_vector in targets.c if configured with --with-targets=all. | |
bb552c64 | 113 | BFD32_BACKENDS = \ |
01087713 DM |
114 | aout-adobe.o \ |
115 | aout32.o \ | |
116 | bout.o \ | |
117 | coff-a29k.o \ | |
118 | coff-h8300.o \ | |
119 | coff-h8500.o \ | |
120 | coff-i386.o \ | |
121 | coff-i960.o \ | |
122 | coff-m68k.o \ | |
123 | coff-m88k.o \ | |
124 | coff-mips.o \ | |
125 | coff-rs6000.o \ | |
126 | coff-sh.o \ | |
127 | coff-u68k.o \ | |
128 | coff-we32k.o \ | |
129 | coff-z8k.o \ | |
130 | elf32-gen.o \ | |
131 | elf32-hppa.o \ | |
132 | elf32-i386.o \ | |
133 | elf32-i860.o \ | |
134 | elf32-m68k.o \ | |
135 | elf32-m88k.o \ | |
136 | elf32-mips.o \ | |
137 | elf32-sparc.o \ | |
138 | elf32.o \ | |
139 | hp300hpux.o \ | |
d5a30a08 | 140 | som.o \ |
01087713 DM |
141 | i386aout.o \ |
142 | i386bsd.o \ | |
143 | i386linux.o \ | |
144 | i386lynx.o \ | |
d5a30a08 ILT |
145 | i386lynx-cf.o \ |
146 | netbsd386.o \ | |
01087713 DM |
147 | i386mach3.o \ |
148 | ieee.o \ | |
d5a30a08 ILT |
149 | m68klynx.o \ |
150 | m68klynx-cf.o \ | |
01087713 DM |
151 | mipsbsd.o \ |
152 | newsos3.o \ | |
c3e964b9 | 153 | nlm.o \ |
01087713 DM |
154 | nlm32-gen.o \ |
155 | nlm32-i386.o \ | |
156 | nlm32.o \ | |
157 | oasys.o \ | |
158 | reloc16.o \ | |
159 | stab-syms.o \ | |
160 | sunos.o | |
161 | ||
162 | # The .o files needed by all of the 64 bit vectors that are configured into | |
163 | # target_vector in targets.c if configured with --with-targets=all | |
164 | # and --with-64-bit-bfd. | |
34075964 | 165 | BFD64_BACKENDS = \ |
01087713 DM |
166 | aout64.o \ |
167 | coff-alpha.o \ | |
168 | demo64.o \ | |
169 | elf64-gen.o \ | |
170 | elf64.o \ | |
171 | nlm64-gen.o \ | |
172 | nlm64.o | |
173 | ||
174 | OPTIONAL_BACKENDS = \ | |
175 | aix386-core.o \ | |
176 | hpux-core.o \ | |
d5a30a08 ILT |
177 | lynx-core.o \ |
178 | osf-core.o \ | |
01087713 DM |
179 | sco-core.o \ |
180 | trad-core.o | |
99a42820 | 181 | |
34075964 PB |
182 | # These are defined by configure.in: |
183 | # WORDSIZE=32 | |
184 | # BFD_BACKENDS = $(BFD32_BACKENDS) | |
34075964 | 185 | |
bb552c64 JK |
186 | all: |
187 | ||
22e98743 SC |
188 | #### host and target dependent Makefile fragments come in here. |
189 | ### | |
190 | ||
98c0c56d | 191 | FLAGS_TO_PASS = \ |
287c221d PB |
192 | "prefix=$(prefix)" \ |
193 | "exec_prefix=$(exec_prefix)" \ | |
98c0c56d BK |
194 | "against=$(against)" \ |
195 | "AR=$(AR)" \ | |
196 | "AR_FLAGS=$(AR_FLAGS)" \ | |
197 | "CC=$(CC)" \ | |
51300bdb | 198 | "CC_FOR_BUILD=$(CC_FOR_BUILD)" \ |
98c0c56d BK |
199 | "CFLAGS=$(CFLAGS)" \ |
200 | "RANLIB=$(RANLIB)" \ | |
201 | "MAKEINFO=$(MAKEINFO)" \ | |
202 | "INSTALL=$(INSTALL)" \ | |
203 | "INSTALL_DATA=$(INSTALL_DATA)" \ | |
204 | "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \ | |
205 | "BISON=$(BISON)" | |
206 | ||
6e491a87 | 207 | .c.o: |
892205bc | 208 | $(CC) -c $(CFLAGS) $(HDEFINES) $(TDEFINES) $(CSEARCH) $(CSWITCHES) $< |
6e491a87 | 209 | |
99a42820 | 210 | # C source files that correspond to .o's. |
a3b3dbdd ILT |
211 | CFILES = libbfd.c opncls.c bfd.c archive.c targets.c cache.c \ |
212 | archures.c coff-i386.c aout64.c aout32.c sunos.c demo64.c \ | |
4d09e8ac | 213 | coff-i960.c srec.c tekhex.c oasys.c ieee.c \ |
dae31cf5 ILT |
214 | ecoff.c coff-m68k.c coff-u68k.c \ |
215 | coff-a29k.c coff-rs6000.c coffgen.c format.c \ | |
a3b3dbdd | 216 | section.c core.c syms.c stab-syms.c reloc.c init.c ctor.c \ |
51300bdb | 217 | seclet.c coff-m88k.c coff-mips.c coff-sh.c trad-core.c newsos3.c \ |
d5a30a08 | 218 | i386aout.c i386linux.c netbsd386.c i386mach3.c bout.c aout-adobe.c coff-we32k.c \ |
a3b3dbdd ILT |
219 | i386bsd.c cpu-h8300.c cpu-i960.c cpu-sparc.c cpu-m68k.c \ |
220 | cpu-m88k.c cpu-vax.c cpu-mips.c cpu-a29k.c cpu-i386.c \ | |
d5a30a08 | 221 | cpu-rs6000.c coff-h8300.c som.c cpu-hppa.c cpu-we32k.c reloc16.c \ |
51300bdb | 222 | mipsbsd.c cpu-sh.c \ |
9faacb92 | 223 | elf32.c elf32-sparc.c elf32-i386.c elf32-i860.c elf32-m68k.c \ |
c55665ea JK |
224 | elf32-hppa.c elf32-m88k.c elf32-mips.c elf32-gen.c \ |
225 | elf64.c elf64-gen.c \ | |
dae31cf5 | 226 | nlm32.c nlm32-gen.c nlm32-i386.c nlm64.c nlm64-gen.c \ |
51300bdb | 227 | coff-alpha.c cpu-alpha.c \ |
d5a30a08 ILT |
228 | hp300bsd.c hp300hpux.c \ |
229 | i386lynx.c i386lynx-cf.c m68klynx.c m68klynx-cf.c | |
63ffe5ef | 230 | |
5176a6bc RP |
231 | STAGESTUFF = $(TARGETLIB) $(OFILES) |
232 | ||
fbee3571 | 233 | all: Makefile $(TARGETLIB) |
98c0c56d | 234 | @$(MAKE) subdir_do DO=all "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS) |
5176a6bc | 235 | |
30662ca6 | 236 | .NOEXPORT: |
204ae00c | 237 | MAKEOVERRIDES= |
30662ca6 | 238 | |
5868184b | 239 | check: |
76019c92 | 240 | installcheck: |
5868184b | 241 | |
74991624 | 242 | info dvi : force |
9faacb92 | 243 | @$(MAKE) subdir_do DO=$@ "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS) |
2090ba83 | 244 | |
5868184b | 245 | clean-info: |
98c0c56d | 246 | @$(MAKE) subdir_do DO=clean-info "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS) |
5868184b | 247 | |
2090ba83 | 248 | install-info: force |
98c0c56d | 249 | @$(MAKE) subdir_do DO=install-info "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS) |
2090ba83 | 250 | |
dcdfa32c DM |
251 | # Various kinds of .o files to put in libbfd.a: |
252 | # BFD_LIBS Generic routines, always needed. | |
5f9a2245 DM |
253 | # BFD_BACKENDS Routines the configured targets need. |
254 | # BFD_MACHINES Architecture-specific routines the configured targets need. | |
dcdfa32c DM |
255 | # HDEPFILES Routines the host needs, regardless of target. |
256 | # TDEPFILES Routines the target needs, regardless of host. | |
6a469027 | 257 | OFILES = $(BFD_LIBS) $(BFD_BACKENDS) $(BFD_MACHINES) $(HDEPFILES) $(TDEPFILES) |
5176a6bc | 258 | |
c812942f | 259 | ofiles : Makefile |
15db2044 | 260 | rm -f ofiles |
2fdca021 | 261 | f=""; \ |
c812942f | 262 | for i in $(OFILES) ; do \ |
2fdca021 | 263 | case " $$f " in \ |
dae31cf5 | 264 | *" $$i "*) ;; \ |
2fdca021 KR |
265 | *) f="$$f $$i" ;; \ |
266 | esac ; \ | |
267 | done ; \ | |
268 | echo $$f > ofiles | |
c812942f KR |
269 | |
270 | $(TARGETLIB): $(OFILES) ofiles | |
271 | rm -f $(TARGETLIB) | |
272 | @echo ofiles = `cat ofiles` | |
273 | $(AR) $(AR_FLAGS) $(TARGETLIB) `cat ofiles` | |
274 | $(RANLIB) $(TARGETLIB) | |
5176a6bc | 275 | |
98c0c56d BK |
276 | # When compiling archures.c and targets.c, supply the default target |
277 | # info from configure. | |
278 | ||
279 | ||
51300bdb | 280 | targets.o: targets.c Makefile |
5f9a2245 | 281 | $(CC) -c $(CFLAGS) $(HDEFINES) $(TDEFINES) $(CSEARCH) $(CSWITCHES) $(TDEFAULTS) $< |
4a29cb1e | 282 | |
51300bdb | 283 | archures.o: archures.c Makefile |
5f9a2245 | 284 | $(CC) -c $(CFLAGS) $(HDEFINES) $(TDEFINES) $(CSEARCH) $(CSWITCHES) $(TDEFAULTS) $< |
98c0c56d | 285 | |
f259290f | 286 | subdir_do: force |
6e491a87 | 287 | @for i in $(DODIRS); do \ |
5868184b FF |
288 | if [ -d ./$$i ] ; then \ |
289 | if (cd ./$$i; \ | |
98c0c56d | 290 | $(MAKE) $(FLAGS_TO_PASS) $(DO)) ; then true ; \ |
f259290f RP |
291 | else exit 1 ; fi ; \ |
292 | else true ; fi ; \ | |
293 | done | |
294 | ||
99a42820 RP |
295 | tags etags: TAGS |
296 | ||
5176a6bc | 297 | TAGS: force |
453063fe | 298 | etags $(INCDIR)/*.h $(srcdir)/*.h $(srcdir)/*.c |
99a42820 | 299 | |
ef2810d0 PB |
300 | do_mostlyclean: |
301 | rm -f *.o *~ core *.E *.p *.ip aout-params.h gen-aout | |
fbee3571 | 302 | do_clean: do_mostlyclean |
15db2044 | 303 | rm -f libbfd.a TAGS bfd.h stmp-bfd.h ofiles |
ef2810d0 | 304 | do_distclean: do_clean |
0e238aa7 | 305 | rm -f Makefile config.status sysdep.h |
ef2810d0 | 306 | do_realclean: do_distclean |
15db2044 | 307 | rm -f $(srcdir)/libcoff.h $(srcdir)/libbfd.h $(srcdir)/bfd-in2.h |
ef2810d0 PB |
308 | |
309 | mostlyclean: do_mostlyclean | |
310 | $(MAKE) subdir_do DO=mostlyclean "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS) | |
fbee3571 | 311 | clean: do_clean |
ef2810d0 | 312 | $(MAKE) subdir_do DO=clean "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS) |
0e238aa7 | 313 | distclean: |
ef2810d0 | 314 | $(MAKE) subdir_do DO=distclean "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS) |
180acef5 | 315 | $(MAKE) do_distclean |
0e238aa7 | 316 | clobber realclean: |
ef2810d0 | 317 | $(MAKE) subdir_do DO=realclean "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS) |
180acef5 | 318 | $(MAKE) do_realclean |
99a42820 | 319 | |
23d44ec9 JG |
320 | # Mark everything as depending on config.status, since the timestamp on |
321 | # sysdep.h might actually move backwards if we reconfig and relink it | |
322 | # to a different hosts/h-xxx.h file. This will force a recompile anyway. | |
323 | RECONFIG = config.status | |
a5220fb9 KR |
324 | $(BFD_LIBS): libbfd.h $(BFD_H) $(RECONFIG) |
325 | $(BFD_MACHINES): libbfd.h $(BFD_H) $(RECONFIG) | |
326 | $(BFD_BACKENDS): libbfd.h $(BFD_H) $(RECONFIG) | |
327 | $(OPTIONAL_BACKENDS): libbfd.h $(BFD_H) $(RECONFIG) | |
99a42820 | 328 | |
cbdc7909 JG |
329 | # Get around a Sun Make bug in SunOS 4.1.1 with VPATH |
330 | cpu-i386.o:cpu-i386.c | |
fbee3571 | 331 | cpu-z8k.o: cpu-z8k.c |
204ae00c | 332 | cpu-h8500.o: cpu-h8500.c |
fbee3571 | 333 | cpu-we32k.o: cpu-we32k.c |
cbdc7909 | 334 | |
99a42820 RP |
335 | saber: |
336 | #suppress 65 on bfd_map_over_sections | |
337 | #suppress 66 on bfd_map_over_sections | |
338 | #suppress 67 on bfd_map_over_sections | |
339 | #suppress 68 on bfd_map_over_sections | |
340 | #suppress 69 on bfd_map_over_sections | |
341 | #suppress 70 on bfd_map_over_sections | |
342 | #suppress 110 in bfd_map_over_sections | |
343 | #suppress 112 in bfd_map_over_sections | |
344 | #suppress 530 | |
345 | #suppress 590 in swap_exec_header | |
346 | #suppress 590 in _bfd_dummy_core_file_matches_executable_p | |
347 | #suppress 590 in bfd_dont_truncate_arname | |
348 | #suppress 590 on ignore | |
349 | #suppress 590 on abfd | |
350 | #setopt load_flags $(CFLAGS) | |
351 | #load $(CFILES) | |
a5c6b4b3 | 352 | |
99a42820 RP |
353 | |
354 | #----------------------------------------------------------------------------- | |
355 | # 'STANDARD' GNU/960 TARGETS BELOW THIS POINT | |
356 | # | |
357 | # 'VERSION' file must be present and contain a string of the form "x.y" | |
358 | #----------------------------------------------------------------------------- | |
359 | ||
360 | ver960.c: FORCE | |
361 | rm -f ver960.c | |
362 | echo "char ${TARG}_ver[]= \"${TARG} `cat VERSION`, `date`\";" > ver960.c | |
363 | ||
364 | ||
365 | # This target should be invoked before building a new release. | |
366 | # 'VERSION' file must be present and contain a string of the form "x.y" | |
367 | # | |
368 | roll: | |
369 | @V=`cat VERSION` ; \ | |
370 | MAJ=`sed 's/\..*//' VERSION` ; \ | |
371 | MIN=`sed 's/.*\.//' VERSION` ; \ | |
372 | V=$$MAJ.`expr $$MIN + 1` ; \ | |
373 | rm -f VERSION ; \ | |
374 | echo $$V >VERSION ; \ | |
375 | echo Version $$V | |
376 | ||
377 | # Dummy target to force execution of dependent targets. | |
378 | # | |
5176a6bc | 379 | force: |
99a42820 | 380 | |
99a42820 | 381 | install: |
fde8212e RP |
382 | $(INSTALL_DATA) libbfd.a $(libdir)/libbfd.a |
383 | $(RANLIB) $(libdir)/libbfd.a | |
75ff7895 DZ |
384 | # Install BFD include file, and others that it needs. Install them |
385 | # both in GCC's include directory, and in the system include dir | |
386 | # if configured as $(oldincludedir) -- which it usually isnt. | |
a5220fb9 | 387 | $(INSTALL_DATA) $(BFD_H) $(includedir)/bfd.h |
6cabab78 DZ |
388 | $(INSTALL_DATA) $(INCDIR)/ansidecl.h $(includedir)/ansidecl.h |
389 | $(INSTALL_DATA) $(INCDIR)/obstack.h $(includedir)/obstack.h | |
5d4c714e DM |
390 | -if test -z "$(oldincludedir)"; then true; else \ |
391 | test -d $(oldincludedir) || mkdir $(oldincludedir); \ | |
392 | $(INSTALL_DATA) $(BFD_H) $(oldincludedir)/bfd.h; \ | |
393 | $(INSTALL_DATA) $(INCDIR)/ansidecl.h $(oldincludedir)/ansidecl.h; \ | |
394 | $(INSTALL_DATA) $(INCDIR)/obstack.h $(oldincludedir)/obstack.h; \ | |
395 | @$(MAKE) subdir_do DO=install "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS); \ | |
396 | fi | |
99a42820 | 397 | |
dae31cf5 ILT |
398 | Makefile: Makefile.in configure.in $(host_makefile_frag) $(target_makefile_frag) |
399 | $(SHELL) config.status | |
a5c6b4b3 SC |
400 | |
401 | dep: $(CFILES) | |
402 | mkdep $(CFLAGS) $? | |
6f715d66 | 403 | |
5868184b | 404 | host-aout.o: Makefile |
6f715d66 | 405 | |
5868184b FF |
406 | # The following program can be used to generate a simple config file |
407 | # which can be folded into an h-XXX file for a new host, with some editing. | |
d01cd8fc FF |
408 | aout-params.h: gen-aout |
409 | ./gen-aout > aout-params.h | |
5868184b FF |
410 | gen-aout: $(srcdir)/gen-aout.c Makefile |
411 | $(CC) -o gen-aout $(CFLAGS) $(LFLAGS) $(srcdir)/gen-aout.c | |
6f715d66 | 412 | |
34075964 PB |
413 | BFDIN_H= $(srcdir)/bfd-in2.h |
414 | ||
a5220fb9 | 415 | $(BFD_H): stmp-bfd.h ; @true |
75ff7895 | 416 | |
12f367a1 KR |
417 | # The file ../include/bfd.h is from earlier attempts to get this right. |
418 | # If the file is still there, kill it. | |
15db2044 KR |
419 | stmp-bfd.h : $(srcdir)/bfd-in2.h Makefile |
420 | rm -f bfd.h-new 64 ../include/bfd.h | |
12f367a1 | 421 | -grep HOST_64_BIT sysdep.h > 64 |
15db2044 KR |
422 | sed -e 's/@WORDSIZE@/$(WORDSIZE)/' -e '/64-bit.*sysdep.h/ r 64' < $(srcdir)/bfd-in2.h > bfd.h-new |
423 | $(srcdir)/../move-if-change bfd.h-new $(BFD_H) | |
12f367a1 | 424 | rm -f 64 |
75ff7895 | 425 | touch stmp-bfd.h |
34075964 | 426 | |
a5220fb9 | 427 | # Could really use a "copy-if-change"... |
12e7087f | 428 | headers: |
98c0c56d | 429 | (cd $(docdir); $(MAKE) protos $(FLAGS_TO_PASS)) |
15db2044 KR |
430 | cp $(docdir)/bfd.h bfd-in2.h-new |
431 | $(srcdir)/../move-if-change bfd-in2.h-new $(srcdir)/bfd-in2.h | |
6bb4c923 KR |
432 | cp $(docdir)/libbfd.h libbfd.h-new |
433 | $(srcdir)/../move-if-change libbfd.h-new $(srcdir)/libbfd.h | |
434 | cp $(docdir)/libcoff.h libcoff.h-new | |
435 | $(srcdir)/../move-if-change libcoff.h-new $(srcdir)/libcoff.h | |
12e7087f JG |
436 | |
437 | bfd.info: | |
fbee3571 | 438 | (cd $(docdir); $(MAKE) bfd.info $(FLAGS_TO_PASS)) |
12e7087f JG |
439 | |
440 | bfd.dvi: | |
98c0c56d | 441 | (cd $(docdir); $(MAKE) bfd.dvi $(FLAGS_TO_PASS)) |
12e7087f JG |
442 | |
443 | bfd.ps: | |
98c0c56d | 444 | (cd $(docdir); $(MAKE) bfd.ps $(FLAGS_TO_PASS)) |
12e7087f JG |
445 | |
446 | # What appears below is generated by a hacked mkdep using gcc -MM. | |
447 | ||
448 | # DO NOT DELETE THIS LINE -- mkdep uses it. | |
449 | # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. | |
450 | ||
a5220fb9 KR |
451 | libbfd.o : libbfd.c $(BFD_H) $(INCDIR)/obstack.h libbfd.h |
452 | opncls.o : opncls.c $(BFD_H) $(INCDIR)/obstack.h libbfd.h | |
453 | bfd.o : bfd.c $(BFD_H) $(INCDIR)/obstack.h libbfd.h \ | |
d5a30a08 | 454 | $(INCDIR)/coff/internal.h $(INCDIR)/coff/sym.h libecoff.h libelf.h |
a5220fb9 | 455 | archive.o : archive.c $(BFD_H) $(INCDIR)/obstack.h libbfd.h \ |
fde8212e | 456 | $(INCDIR)/aout/ar.h $(INCDIR)/aout/ranlib.h |
a5220fb9 KR |
457 | targets.o : targets.c $(BFD_H) $(INCDIR)/obstack.h libbfd.h |
458 | cache.o : cache.c $(BFD_H) $(INCDIR)/obstack.h libbfd.h | |
459 | archures.o : archures.c $(BFD_H) $(INCDIR)/obstack.h | |
12e7087f | 460 | aout64.o : aout64.c |
a5220fb9 | 461 | aout32.o : aout32.c aoutx.h $(BFD_H) $(INCDIR)/ansidecl.h \ |
fde8212e RP |
462 | $(INCDIR)/obstack.h libaout.h libbfd.h $(INCDIR)/aout/aout64.h \ |
463 | $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h | |
a5220fb9 | 464 | sunos.o : sunos.c aoutf1.h $(BFD_H) $(INCDIR)/obstack.h \ |
fde8212e RP |
465 | libaout.h libbfd.h $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h \ |
466 | $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h | |
ebd24135 ILT |
467 | hp300hpux.o : hp300hpux.c aoutx.h $(BFD_H) $(INCDIR)/ansidecl.h \ |
468 | $(INCDIR)/obstack.h libaout.h libbfd.h $(INCDIR)/aout/aout64.h \ | |
469 | $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h \ | |
470 | $(INCDIR)/aout/hp300hpux.h aout-target.h | |
493a2593 DM |
471 | hp300bsd.o : hp300bsd.c aoutx.h $(BFD_H) $(INCDIR)/ansidecl.h \ |
472 | $(INCDIR)/obstack.h libaout.h libbfd.h $(INCDIR)/aout/aout64.h \ | |
473 | $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h \ | |
474 | aout-target.h | |
12e7087f | 475 | demo64.o : demo64.c |
3b4f1a5d | 476 | |
a5220fb9 KR |
477 | srec.o : srec.c $(BFD_H) $(INCDIR)/obstack.h libbfd.h |
478 | oasys.o : oasys.c $(BFD_H) $(INCDIR)/obstack.h libbfd.h \ | |
a26878d1 | 479 | $(INCDIR)/oasys.h liboasys.h |
a5220fb9 | 480 | ieee.o : ieee.c $(BFD_H) $(INCDIR)/obstack.h libbfd.h \ |
a26878d1 | 481 | $(INCDIR)/ieee.h libieee.h |
a5220fb9 | 482 | coff-h8300.o: coff-h8300.c $(BFD_H) $(INCDIR)/obstack.h libbfd.h \ |
a3b3dbdd ILT |
483 | $(INCDIR)/coff/h8300.h $(INCDIR)/coff/internal.h libcoff.h coffcode.h \ |
484 | coffswap.h seclet.h | |
a5220fb9 | 485 | coff-h8500.o: coff-h8500.c $(BFD_H) $(INCDIR)/obstack.h libbfd.h \ |
204ae00c ILT |
486 | $(INCDIR)/coff/h8300.h $(INCDIR)/coff/internal.h libcoff.h coffcode.h \ |
487 | coffswap.h seclet.h | |
a5220fb9 | 488 | coff-a29k.o: coff-a29k.c $(BFD_H) $(INCDIR)/obstack.h libbfd.h \ |
a3b3dbdd ILT |
489 | $(INCDIR)/coff/a29k.h $(INCDIR)/coff/internal.h libcoff.h coffcode.h \ |
490 | coffswap.h seclet.h | |
a5220fb9 | 491 | coff-i386.o: coff-i386.c $(BFD_H) $(INCDIR)/obstack.h libbfd.h \ |
a3b3dbdd ILT |
492 | $(INCDIR)/coff/i386.h $(INCDIR)/coff/internal.h libcoff.h coffcode.h \ |
493 | coffswap.h seclet.h | |
a5220fb9 | 494 | coff-i960.o: coff-i960.c $(BFD_H) $(INCDIR)/obstack.h libbfd.h \ |
a3b3dbdd ILT |
495 | $(INCDIR)/coff/i960.h $(INCDIR)/coff/internal.h libcoff.h coffcode.h \ |
496 | coffswap.h seclet.h | |
a5220fb9 | 497 | coff-m68k.o: coff-m68k.c $(BFD_H) $(INCDIR)/obstack.h libbfd.h \ |
a3b3dbdd ILT |
498 | $(INCDIR)/coff/m68k.h $(INCDIR)/coff/internal.h libcoff.h coffcode.h \ |
499 | coffswap.h seclet.h | |
a5220fb9 | 500 | coff-m88k.o: coff-m88k.c $(BFD_H) $(INCDIR)/obstack.h libbfd.h \ |
a3b3dbdd ILT |
501 | $(INCDIR)/coff/m88k.h $(INCDIR)/coff/internal.h libcoff.h coffcode.h \ |
502 | coffswap.h seclet.h | |
dae31cf5 ILT |
503 | ecoff.o: ecoff.c $(BFD_H) $(INCDIR)/obstack.h libbfd.h \ |
504 | $(INCDIR)/coff/internal.h libecoff.h libcoff.h seclet.h \ | |
505 | $(INCDIR)/aout/ar.h $(INCDIR)/aout/ranlib.h libaout.h \ | |
506 | $(INCDIR)/aout/aout64.h $(INCDIR)/coff/ecoff.h $(INCDIR)/coff/sym.h \ | |
507 | $(INCDIR)/coff/symconst.h | |
a5220fb9 | 508 | coff-mips.o: coff-mips.c $(BFD_H) $(INCDIR)/obstack.h libbfd.h \ |
014e4e99 | 509 | $(INCDIR)/coff/mips.h $(INCDIR)/coff/internal.h libcoff.h \ |
dae31cf5 ILT |
510 | coffswap.h seclet.h libecoff.h ecoffswap.h $(INCDIR)/coff/ecoff.h |
511 | coff-alpha.o: coff-alpha.c $(BFD_H) $(INCDIR)/obstack.h libbfd.h \ | |
014e4e99 | 512 | $(INCDIR)/coff/alpha.h $(INCDIR)/coff/internal.h libcoff.h \ |
dae31cf5 | 513 | coffswap.h seclet.h libecoff.h ecoffswap.h $(INCDIR)/coff/ecoff.h |
a5220fb9 | 514 | coff-rs6000.o: coff-rs6000.c $(BFD_H) $(INCDIR)/obstack.h libbfd.h \ |
a3b3dbdd ILT |
515 | $(INCDIR)/coff/rs6000.h $(INCDIR)/coff/internal.h libcoff.h coffcode.h \ |
516 | coffswap.h seclet.h | |
a5220fb9 | 517 | coff-z8k.o: coff-z8k.c $(BFD_H) $(INCDIR)/obstack.h libbfd.h \ |
a3b3dbdd ILT |
518 | $(INCDIR)/coff/z8k.h $(INCDIR)/coff/internal.h libcoff.h coffcode.h \ |
519 | coffswap.h seclet.h | |
a5220fb9 | 520 | coff-we32k.o: coff-we32k.c $(BFD_H) $(INCDIR)/obstack.h libbfd.h \ |
a3b3dbdd ILT |
521 | $(INCDIR)/coff/we32k.h $(INCDIR)/coff/internal.h libcoff.h coffcode.h \ |
522 | coffswap.h seclet.h | |
a5220fb9 | 523 | coffgen.o: coffgen.c $(BFD_H) libbfd.h $(INCDIR)/coff/internal.h \ |
a3b3dbdd | 524 | libcoff.h |
a5220fb9 | 525 | reloc16.o: reloc16.c $(BFD_H) libbfd.h $(INCDIR)/coff/internal.h \ |
a3b3dbdd | 526 | libcoff.h seclet.h |
a5220fb9 | 527 | format.o : format.c $(BFD_H) \ |
a26878d1 | 528 | $(INCDIR)/obstack.h libbfd.h |
a5220fb9 | 529 | section.o : section.c $(BFD_H) \ |
a26878d1 | 530 | $(INCDIR)/obstack.h libbfd.h |
a5220fb9 | 531 | core.o : core.c $(BFD_H) \ |
a26878d1 | 532 | $(INCDIR)/obstack.h libbfd.h |
a5220fb9 | 533 | syms.o : syms.c $(BFD_H) \ |
a26878d1 | 534 | $(INCDIR)/obstack.h libbfd.h |
7de245d3 | 535 | syms.o : stab-syms.c |
a5220fb9 | 536 | reloc.o : reloc.c $(BFD_H) \ |
a26878d1 | 537 | $(INCDIR)/obstack.h libbfd.h |
3b4f1a5d | 538 | |
a5220fb9 | 539 | trad-core.o : trad-core.c $(BFD_H) $(INCDIR)/obstack.h \ |
12e7087f | 540 | libbfd.h libaout.h |
a643e626 ILT |
541 | sco-core.o : sco-core.c $(BFD_H) libbfd.h libcoff.h \ |
542 | $(INCDIR)/obstack.h $(INCDIR)/coff/i386.h $(INCDIR)/coff/internal.h | |
543 | aix386-core.o : aix386-core.c $(BFD_H) libbfd.h libcoff.h \ | |
544 | $(INCDIR)/obstack.h $(INCDIR)/coff/i386.h $(INCDIR)/coff/internal.h | |
545 | hpux-core.o : hpux-core.c $(BFD_H) libbfd.h libhppa.h | |
d5a30a08 | 546 | osf-core.o : osf-core.c $(BFD_H) libbfd.h |
5868184b | 547 | |
a5220fb9 | 548 | newsos3.o : newsos3.c $(BFD_H) $(INCDIR)/obstack.h libbfd.h \ |
fde8212e RP |
549 | $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def \ |
550 | $(INCDIR)/aout/ar.h libaout.h | |
a5220fb9 | 551 | i386lynx.o : i386lynx.c $(BFD_H) $(INCDIR)/obstack.h libbfd.h \ |
51300bdb KR |
552 | $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def \ |
553 | $(INCDIR)/aout/ar.h libaout.h | |
d5a30a08 ILT |
554 | i386lynx-cf.o: i386lynx-cf.c coff-i386.c $(BFD_H) $(INCDIR)/obstack.h \ |
555 | libbfd.h $(INCDIR)/coff/i386.h $(INCDIR)/coff/internal.h libcoff.h \ | |
556 | coffcode.h coffswap.h seclet.h | |
557 | lynx-core.o : lynx-core.c $(BFD_H) libbfd.h | |
a5220fb9 | 558 | i386aout.o : i386aout.c $(BFD_H) $(INCDIR)/obstack.h libbfd.h \ |
fde8212e RP |
559 | $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def \ |
560 | $(INCDIR)/aout/ar.h libaout.h | |
d5a30a08 ILT |
561 | netbsd386.o : netbsd386.c $(BFD_H) $(INCDIR)/obstack.h libbfd.h \ |
562 | $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def \ | |
563 | $(INCDIR)/aout/ar.h libaout.h | |
13cadf76 JK |
564 | i386mach3.o : i386mach3.c $(BFD_H) $(INCDIR)/obstack.h libbfd.h \ |
565 | $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def \ | |
566 | $(INCDIR)/aout/ar.h libaout.h | |
a5220fb9 | 567 | i386linux.o : i386linux.c $(BFD_H) $(INCDIR)/obstack.h libbfd.h \ |
6bb4c923 KR |
568 | $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def \ |
569 | $(INCDIR)/aout/ar.h libaout.h | |
a5220fb9 | 570 | i386bsd.o : i386bsd.c $(BFD_H) $(INCDIR)/obstack.h libbfd.h \ |
fbee3571 ME |
571 | $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def \ |
572 | $(INCDIR)/aout/ar.h libaout.h | |
a5220fb9 | 573 | bout.o : bout.c $(BFD_H) $(INCDIR)/obstack.h libbfd.h \ |
6bb4c923 | 574 | $(INCDIR)/bout.h $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def libaout.h |
a5220fb9 | 575 | mipsbsd.o : mipsbsd.c $(BFD_H) $(INCDIR)/obstack.h \ |
204ae00c | 576 | libbfd.h libaout.h |
bb552c64 | 577 | elf.o : elf.c libelf.h libbfd.h $(BFD_H) $(INCDIR)/obstack.h |
a5220fb9 | 578 | elf32.o : elf32.c elfcode.h libelf.h libbfd.h $(BFD_H) \ |
51300bdb | 579 | $(INCDIR)/obstack.h |
a5220fb9 | 580 | elf32-sparc.o : elf32-sparc.c libelf.h libbfd.h $(BFD_H) \ |
d5a30a08 | 581 | $(INCDIR)/obstack.h elf32-target.h |
a5220fb9 | 582 | elf32-m68k.o : elf32-m68k.c libelf.h libbfd.h $(BFD_H) \ |
d5a30a08 | 583 | $(INCDIR)/obstack.h elf32-target.h |
a5220fb9 | 584 | elf32-i860.o : elf32-i860.c libelf.h libbfd.h $(BFD_H) \ |
d5a30a08 | 585 | $(INCDIR)/obstack.h elf32-target.h |
a5220fb9 | 586 | elf32-i386.o : elf32-i386.c libelf.h libbfd.h $(BFD_H) \ |
d5a30a08 ILT |
587 | $(INCDIR)/obstack.h elf32-target.h |
588 | elf32-hppa.o : elf32-hppa.c $(srcdir)/elf32-hppa.h $(srcdir)/libhppa.h \ | |
589 | libelf.h libbfd.h $(BFD_H) $(INCDIR)/obstack.h elf32-target.h | |
244ffee7 | 590 | elf32-m88k.o : elf32-m88k.c libelf.h libbfd.h \ |
d5a30a08 | 591 | $(BFD_H) $(INCDIR)/obstack.h elf32-target.h |
244ffee7 | 592 | elf32-mips.o : elf32-mips.c libelf.h libbfd.h \ |
d5a30a08 | 593 | $(BFD_H) $(INCDIR)/obstack.h $(INCDIR)/elf/mips.h elf32-target.h |
c55665ea | 594 | elf32-gen.o : elf32-gen.c libelf.h libbfd.h \ |
d5a30a08 | 595 | $(BFD_H) $(INCDIR)/obstack.h elf32-target.h |
a5220fb9 | 596 | elf64.o : elf64.c elfcode.h libelf.h libbfd.h $(BFD_H) \ |
51300bdb | 597 | $(INCDIR)/obstack.h |
c55665ea | 598 | elf64-gen.o : elf64-gen.c libelf.h libbfd.h \ |
d5a30a08 | 599 | $(BFD_H) $(INCDIR)/obstack.h elf64-target.h |
c3e964b9 FF |
600 | nlm.o : nlm.c libnlm.h libbfd.h $(BFD_H) $(INCDIR)/obstack.h |
601 | nlm32.o : nlm32.c nlmcode.h libnlm.h libbfd.h $(BFD_H) \ | |
602 | $(INCDIR)/obstack.h | |
603 | nlm32-gen.o : nlm32-gen.c libnlm.h libbfd.h \ | |
dae31cf5 ILT |
604 | $(BFD_H) $(INCDIR)/obstack.h nlm-target.h |
605 | nlm32-i386.o : nlm32-i386.c libnlm.h libbfd.h \ | |
606 | $(BFD_H) $(INCDIR)/obstack.h nlm-target.h | |
c3e964b9 FF |
607 | nlm64.o : nlm64.c nlmcode.h libnlm.h libbfd.h $(BFD_H) \ |
608 | $(INCDIR)/obstack.h | |
609 | nlm64-gen.o : nlm64-gen.c libnlm.h libbfd.h \ | |
dae31cf5 | 610 | $(BFD_H) $(INCDIR)/obstack.h nlm-target.h |
6bb4c923 | 611 | |
12e7087f | 612 | # IF YOU PUT ANYTHING HERE IT WILL GO AWAY |
a26878d1 | 613 |