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