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