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