Based on patches by Alan Modra <alan@spri.levels.unisa.edu.au>:
[deliverable/binutils-gdb.git] / ld / Makefile.in
1 # Makefile for the GNU linker ld (version 2)
2 # Copyright (C) 1989, 90, 91, 92, 93, 1994 Free Software Foundation, Inc.
3
4 # This file is part of GNU ld.
5
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2 of the License, or
9 # (at your option) any later version.
10 #
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
15 #
16 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, write to the Free Software
18 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19
20
21 VPATH = @srcdir@
22 srcdir = @srcdir@
23 objdir = .
24
25 target_alias = @target_alias@
26 prefix = @prefix@
27
28 program_transform_name = @program_transform_name@
29 exec_prefix = @exec_prefix@
30 bindir = $(exec_prefix)/bin
31 libdir = $(exec_prefix)/lib
32 tooldir = $(exec_prefix)/$(target_alias)
33 datadir = $(prefix)/lib
34 mandir = $(prefix)/man
35 man1dir = $(mandir)/man1
36 man2dir = $(mandir)/man2
37 man3dir = $(mandir)/man3
38 man4dir = $(mandir)/man4
39 man5dir = $(mandir)/man5
40 man6dir = $(mandir)/man6
41 man7dir = $(mandir)/man7
42 man8dir = $(mandir)/man8
43 man9dir = $(mandir)/man9
44 infodir = $(prefix)/info
45 includedir = $(prefix)/include
46 docdir = $(datadir)/doc
47 # We put the scripts in the directory $(scriptdir)/ldscripts.
48 # We can't put the scripts in $(datadir) because the SEARCH_DIR
49 # directives need to be different for native and cross linkers.
50 scriptdir = $(tooldir)/lib
51
52 SHELL = /bin/sh
53
54 INSTALL = `cd $(srcdir); pwd`/../install.sh -c
55 INSTALL_PROGRAM = $(INSTALL)
56 INSTALL_DATA = $(INSTALL)
57 INSTALL_XFORM = $(INSTALL) -t='$(program_transform_name)'
58 INSTALL_XFORM1 = $(INSTALL_XFORM) -b=.1
59
60 AR = ar
61 AR_FLAGS = qv
62 CC = @CC@
63 CFLAGS = @CFLAGS@
64 MAKEINFO = makeinfo
65 TEXI2DVI = texi2dvi
66 RANLIB = ranlib
67 BISON = `if [ -f ../bison/bison ] ; then echo ../bison/bison -y -L../bison/bison ; else echo bison -y ; fi`
68 LEX = `if [ -f ../flex/flex ] ; then echo ../flex/flex ; else echo flex ; fi`
69
70 EMUL = @EMUL@
71 EMULATION_OFILES = @EMULATION_OFILES@
72
73 # Seach path to override the default search path for -lfoo libraries.
74 # If LIB_PATH is empty, the ones in the script (if any) are left alone.
75 # (The default is usually /lib:/usr/lib:/usr/local/lib, unless building
76 # a cross-linker, in which case the default is empty. See genscripts.sh.)
77 # Otherwise, they are replaced with the ones given in LIB_PATH,
78 # which may have the form: LIB_PATH=/lib:/usr/local/lib
79 LIB_PATH =
80
81 BASEDIR = $(srcdir)/..
82 BFDDIR = $(BASEDIR)/bfd
83 INCDIR = $(BASEDIR)/include
84 INCLUDES = -I. -I$(srcdir) -I../bfd -I$(BFDDIR) -I$(INCDIR)
85 DEP = mkdep
86
87 # What version of the manual to build
88 DOCVER = gen
89
90 # Where to find texinfo.tex to format docn with TeX
91 TEXIDIR = $(srcdir)/../texinfo
92
93 # Where to find other docs needed to format with TeX
94 TEXINPUTS = $(TEXIDIR):$(BFDDIR)/doc:$(srcdir)
95
96 # Whether to get roff to put indexing entries on stderr
97 TEXI2OPT =
98 # You neeed this to generate ld-index.ms (or .mm or .me)
99 # TEXI2OPT = -i
100
101 TEXI2ROFF=texi2roff
102
103 # Which roff program to use to generate index for texi2roff'd doc
104 ROFF = groff
105
106 #stuff for self hosting (can be overridden in config file).
107 HOSTING_CRT0 = @HOSTING_CRT0@
108 HOSTING_LIBS = @HOSTING_LIBS@
109 HOSTING_EMU = -m $(EMUL)
110
111 # These were used by `make check-cdtest'
112 #
113 #CXX = `if [ -f ../gcc/xgcc ] ; then \
114 # echo ../gcc/xgcc -B../gcc/; \
115 # else echo gcc; \
116 # fi`
117 #CXXFLAGS = -fgnu-linker
118 #
119 # FIX_ME: using ../gcc/xgcc breaks the cdtest.
120 #CXX = g++
121
122 # Setup the testing framework, if you have one
123 EXPECT = `if [ -f $$r/../expect/expect ] ; \
124 then echo $$r/../expect/expect ; \
125 else echo expect ; fi`
126
127 RUNTEST = `if [ -f $${srcroot}/../dejagnu/runtest ] ; \
128 then echo $${srcroot}/../dejagnu/runtest ; \
129 else echo runtest ; fi`
130
131 RUNTESTFLAGS =
132
133 CC_FOR_TARGET = ` \
134 if [ -f $$r/../gcc/xgcc ] ; then \
135 if [ -f $$r/../newlib/Makefile ] ; then \
136 echo $$r/../gcc/xgcc -B$$r/../gcc/ -idirafter $$r/../newlib/targ-include -idirafter $${srcroot}/../newlib/libc/include -nostdinc; \
137 else \
138 echo $$r/../gcc/xgcc -B$$r/../gcc/; \
139 fi; \
140 else \
141 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
142 echo $(CC); \
143 else \
144 echo gcc | sed $(program_transform_name); \
145 fi; \
146 fi`
147
148 CXX = gcc
149 CXX_FOR_TARGET = ` \
150 if [ -f $$r/../gcc/xgcc ] ; then \
151 if [ -f $$r/../newlib/Makefile ] ; then \
152 echo $$r/../gcc/xgcc -B$$r/../gcc/ -idirafter $$r/../newlib/targ-include -idirafter $${srcroot}/../newlib/libc/include -nostdinc; \
153 else \
154 echo $$r/../gcc/xgcc -B$$r/../gcc/; \
155 fi; \
156 else \
157 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
158 echo $(CXX); \
159 else \
160 echo gcc | sed $(program_transform_name); \
161 fi; \
162 fi`
163
164 # go directly to ld.new in case this ld isn't capable of
165 # linking native object on this host. It can be renamed on
166 # install.
167 LD_PROG = ld.new
168
169 all: $(LD_PROG)
170 .PHONY: all
171
172 LINTFLAGS = $(INCLUDES) $(EXTRA_DEF)
173
174 # The .cc suffix was used by `make check-cdtest'.
175
176 .SUFFIXES: .y $(SUFFIXES) .cc
177
178 # Suppress smart makes who think they know how to automake Yacc files
179 .y.c:
180
181 # This rule was used for the check-cdtest target.
182 #.cc.o:
183 # $(CXX) -c -I$(srcdir) $(CXXFLAGS) $(CFLAGS) $<
184
185 ALL_CFLAGS = $(INCLUDES) @HDEFINES@ $(CFLAGS)
186 .c.o:
187 $(CC) -c $(ALL_CFLAGS) $<
188
189 # for self hosting
190 BFDLIB = ../bfd/libbfd.a
191 LIBIBERTY = ../libiberty/libiberty.a
192
193 ALL_EMULATIONS = ea29k.o ealpha.o earmaoutl.o earmaoutb.o \
194 ecoff_sparc.o eebmon29k.o \
195 eelf32_sparc.o eelf32bmip.o eelf32lmip.o eelf32ppc.o eelf32lppc.o \
196 eelf64_sparc.o eelf_i386.o egld960.o ego32.o eh8300.o \
197 eh8300h.o eh8500.o eh8500b.o eh8500c.o eh8500m.o eh8500s.o \
198 ehp300bsd.o ehp3hpux.o ehppaelf.o ei386aout.o ei386bsd.o \
199 ei386coff.o ei386go32.o ei386linux.o ei386lynx.o ei386mach.o \
200 ei386nbsd.o ei386nw.o elnk960.o em68kaout.o em68kcoff.o em68kelf.o \
201 em68klynx.o em68knbsd.o em88kbcs.o emipsbig.o emipsbsd.o \
202 emipsidt.o emipsidtl.o emipslit.o enews.o ens32knbsd.o eppcnw.o \
203 eriscix.o esa29200.o eshl.o esh.o esparclynx.o esparcnbsd.o \
204 est2000.o esun3.o esun4.o evanilla.o evax.o evsta.o \
205 ez8001.o ez8002.o ei386pe.o earmpe.o eelf32vr4300.o eelf32vr4300el.o
206
207 CFILES = ldctor.c ldemul.c ldexp.c ldfile.c ldlang.c \
208 ldmain.c ldmisc.c ldver.c ldwrite.c lexsup.c \
209 mri.c
210
211 HFILES = config.h ld.h ldctor.h ldemul.h ldexp.h ldfile.h \
212 ldlang.h ldlex.h ldmain.h ldmisc.h ldver.h \
213 ldwrite.h mri.h
214
215 GENERATED_CFILES = ldgram.c ldlex.c
216 GENERATED_HFILES = ldgram.h ldemul-list.h
217
218 OFILES = ldgram.o ldlex.o lexsup.o ldlang.o mri.o ldctor.o ldmain.o \
219 ldwrite.o ldexp.o ldemul.o ldver.o ldmisc.o \
220 ldfile.o ${EMULATION_OFILES}
221
222 LINTSOURCES = $(CFILES) $(GENERATED_CFILES) e*.c
223
224 STAGESTUFF = *.o ldscripts/* e*.c
225
226 info: ld.info
227 .PHONY: info
228
229 ldgram.c: ldgram.y
230 $(BISON) $(BISONFLAGS) -d $(srcdir)/ldgram.y
231 mv -f y.tab.c ldgram.c
232 mv -f y.tab.h ldgram.h
233
234 # Separate from ldgram.c so that a parallel make doesn't try to build
235 # both ldgram.c and ldgram.h simultaneously.
236 ldgram.h: ldgram.c
237
238 ldmain.o: ldmain.c config.status
239 $(CC) -c -DDEFAULT_EMULATION='"$(EMUL)"' -DSCRIPTDIR='"$(scriptdir)"' $(ALL_CFLAGS) $<
240
241 ldemul-list.h: Makefile
242 (echo "/* This file is automatically generated. DO NOT EDIT! */";\
243 for f in `echo " " ${EMULATION_OFILES} "" \
244 | sed -e 's/ e/ ld/g' -e 's/ ld/ /g' -e 's/[.]o//g'`; do \
245 echo "extern ld_emulation_xfer_type ld_$${f}_emulation;"; \
246 done;\
247 echo "";\
248 echo "#define EMULATION_LIST \\";\
249 for f in `echo " " ${EMULATION_OFILES} "" \
250 | sed -e 's/ e/ ld/g' -e 's/ ld/ /g' -e 's/[.]o//g'`; do \
251 echo " &ld_$${f}_emulation, \\"; \
252 done;\
253 echo " 0") >ldemul-tmp.h
254 mv ldemul-tmp.h ldemul-list.h
255
256 ldlex.c: ldlex.l
257 $(LEX) -I -Cem $(srcdir)/ldlex.l
258 -sed -e '/^int.*free();/d' \
259 -e '/^char.*malloc();/d' \
260 -e 's/malloc/xmalloc/g' \
261 < lex.yy.c > ldlex.c.new
262 -rm lex.yy.c
263 mv ldlex.c.new ./ldlex.c
264
265 # These all start with e so 'make clean' can find them.
266
267 GENSCRIPTS = $(SHELL) $(srcdir)/genscripts.sh ${srcdir} ${libdir} @host_alias@ @target_alias@ ${EMUL} "@NATIVE_LIB_DIRS@"
268 GEN_DEPENDS = $(srcdir)/genscripts.sh $(srcdir)/emultempl/stringify.sed
269
270 esun4.c: $(srcdir)/emulparams/sun4.sh \
271 $(srcdir)/emultempl/sunos.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
272 ${GENSCRIPTS} sun4
273 esun3.c: $(srcdir)/emulparams/sun3.sh \
274 $(srcdir)/emultempl/sunos.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
275 ${GENSCRIPTS} sun3
276 earmpe.c: $(srcdir)/emulparams/armpe.sh \
277 $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS}
278 ${GENSCRIPTS} armpe
279 evsta.c: $(srcdir)/emulparams/vsta.sh \
280 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
281 ${GENSCRIPTS} vsta
282 ego32.c: $(srcdir)/emulparams/go32.sh \
283 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
284 ${GENSCRIPTS} go32
285 enews.c: $(srcdir)/emulparams/news.sh \
286 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
287 ${GENSCRIPTS} news
288 evax.c: $(srcdir)/emulparams/vax.sh \
289 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
290 ${GENSCRIPTS} vax
291 ehp300bsd.c: $(srcdir)/emulparams/hp300bsd.sh \
292 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
293 ${GENSCRIPTS} hp300bsd
294 ehp3hpux.c: $(srcdir)/emulparams/hp3hpux.sh \
295 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
296 ${GENSCRIPTS} hp3hpux
297 ei386pe.c: $(srcdir)/emulparams/i386pe.sh \
298 $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS}
299 ${GENSCRIPTS} i386pe
300 ehppaelf.c: $(srcdir)/emulparams/hppaelf.sh \
301 $(srcdir)/emultempl/hppaelf.em $(srcdir)/scripttempl/hppaelf.sc ${GEN_DEPENDS}
302 ${GENSCRIPTS} hppaelf
303 ei386aout.c: $(srcdir)/emulparams/i386aout.sh \
304 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
305 ${GENSCRIPTS} i386aout
306 ei386go32.c: $(srcdir)/emulparams/i386go32.sh \
307 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386go32.sc ${GEN_DEPENDS}
308 ${GENSCRIPTS} i386go32
309 ei386mach.c: $(srcdir)/emulparams/i386mach.sh \
310 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
311 ${GENSCRIPTS} i386mach
312 ei386moss.c: $(srcdir)/emulparams/i386moss.sh \
313 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
314 ${GENSCRIPTS} i386moss
315 ei386msdos.c: $(srcdir)/emulparams/i386msdos.sh \
316 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386msdos.sc ${GEN_DEPENDS}
317 ${GENSCRIPTS} i386msdos
318 eebmon29k.c: $(srcdir)/emulparams/ebmon29k.sh \
319 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/ebmon29k.sc ${GEN_DEPENDS}
320 ${GENSCRIPTS} ebmon29k
321 esa29200.c: $(srcdir)/emulparams/sa29200.sh \
322 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sa29200.sc ${GEN_DEPENDS}
323 ${GENSCRIPTS} sa29200
324 ea29k.c: $(srcdir)/emulparams/a29k.sh \
325 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/a29k.sc ${GEN_DEPENDS}
326 ${GENSCRIPTS} a29k
327 em88kbcs.c: $(srcdir)/emulparams/m88kbcs.sh \
328 $(srcdir)/emultempl/m88kbcs.em $(srcdir)/scripttempl/m88kbcs.sc ${GEN_DEPENDS}
329 ${GENSCRIPTS} m88kbcs
330 eh8300.c: $(srcdir)/emulparams/h8300.sh \
331 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300.sc ${GEN_DEPENDS}
332 ${GENSCRIPTS} h8300
333 eh8300h.c: $(srcdir)/emulparams/h8300h.sh \
334 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300h.sc ${GEN_DEPENDS}
335 ${GENSCRIPTS} h8300h
336 eh8500.c: $(srcdir)/emulparams/h8500.sh \
337 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500.sc ${GEN_DEPENDS}
338 ${GENSCRIPTS} h8500
339 eh8500b.c: $(srcdir)/emulparams/h8500b.sh \
340 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500b.sc ${GEN_DEPENDS}
341 ${GENSCRIPTS} h8500b
342 eh8500c.c: $(srcdir)/emulparams/h8500c.sh \
343 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500c.sc ${GEN_DEPENDS}
344 ${GENSCRIPTS} h8500c
345 eh8500m.c: $(srcdir)/emulparams/h8500m.sh \
346 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500m.sc ${GEN_DEPENDS}
347 ${GENSCRIPTS} h8500m
348 eh8500s.c: $(srcdir)/emulparams/h8500s.sh \
349 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500s.sc ${GEN_DEPENDS}
350 ${GENSCRIPTS} h8500s
351 esh.c: $(srcdir)/emulparams/sh.sh \
352 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sh.sc ${GEN_DEPENDS}
353 ${GENSCRIPTS} sh
354 eshl.c: $(srcdir)/emulparams/shl.sh \
355 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sh.sc ${GEN_DEPENDS}
356 ${GENSCRIPTS} shl
357 est2000.c: $(srcdir)/emulparams/st2000.sh \
358 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/st2000.sc ${GEN_DEPENDS}
359 ${GENSCRIPTS} st2000
360 evanilla.c: $(srcdir)/emulparams/vanilla.sh \
361 $(srcdir)/emultempl/vanilla.em $(srcdir)/scripttempl/vanilla.sc ${GEN_DEPENDS}
362 ${GENSCRIPTS} vanilla
363 elnk960.c: $(srcdir)/emulparams/lnk960.sh \
364 $(srcdir)/emultempl/lnk960.em $(srcdir)/scripttempl/i960.sc ${GEN_DEPENDS}
365 ${GENSCRIPTS} lnk960
366 egld960.c: $(srcdir)/emulparams/gld960.sh \
367 $(srcdir)/emultempl/gld960.em $(srcdir)/scripttempl/i960.sc ${GEN_DEPENDS}
368 ${GENSCRIPTS} gld960
369 egld960coff.c: $(srcdir)/emulparams/gld960coff.sh \
370 $(srcdir)/emultempl/gld960c.em $(srcdir)/scripttempl/i960.sc ${GEN_DEPENDS}
371 ${GENSCRIPTS} gld960coff
372 em68kcoff.c: $(srcdir)/emulparams/m68kcoff.sh \
373 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/m68kcoff.sc ${GEN_DEPENDS}
374 ${GENSCRIPTS} m68kcoff
375 em68kelf.c: $(srcdir)/emulparams/m68kelf.sh \
376 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
377 ${GENSCRIPTS} m68kelf
378 em68klynx.c: $(srcdir)/emulparams/m68klynx.sh \
379 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/m68klynx.sc ${GEN_DEPENDS}
380 ${GENSCRIPTS} m68klynx
381 ei386coff.c: $(srcdir)/emulparams/i386coff.sh \
382 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386coff.sc ${GEN_DEPENDS}
383 ${GENSCRIPTS} i386coff
384 ei386lynx.c: $(srcdir)/emulparams/i386lynx.sh \
385 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386lynx.sc ${GEN_DEPENDS}
386 ${GENSCRIPTS} i386lynx
387 emipslit.c: $(srcdir)/emulparams/mipslit.sh \
388 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
389 ${GENSCRIPTS} mipslit
390 ei386bsd.c: $(srcdir)/emulparams/i386bsd.sh \
391 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
392 ${GENSCRIPTS} i386bsd
393 emipsbig.c: $(srcdir)/emulparams/mipsbig.sh \
394 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
395 ${GENSCRIPTS} mipsbig
396 emipsbsd.c: $(srcdir)/emulparams/mipsbsd.sh \
397 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mipsbsd.sc ${GEN_DEPENDS}
398 ${GENSCRIPTS} mipsbsd
399 emipsidt.c: $(srcdir)/emulparams/mipsidt.sh \
400 $(srcdir)/emultempl/mipsecoff.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
401 ${GENSCRIPTS} mipsidt
402 emipsidtl.c: $(srcdir)/emulparams/mipsidtl.sh \
403 $(srcdir)/emultempl/mipsecoff.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
404 ${GENSCRIPTS} mipsidtl
405 eelf_i386.c: $(srcdir)/emulparams/elf_i386.sh \
406 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
407 ${GENSCRIPTS} elf_i386
408 eelf32bmip.c: $(srcdir)/emulparams/elf32bmip.sh \
409 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
410 ${GENSCRIPTS} elf32bmip
411 eelf32lmip.c: $(srcdir)/emulparams/elf32lmip.sh \
412 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
413 ${GENSCRIPTS} elf32lmip
414 eelf32vr4300.c: $(srcdir)/emulparams/elf32vr4300.sh \
415 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
416 ${GENSCRIPTS} elf32vr4300
417 eelf32vr4300el.c: $(srcdir)/emulparams/elf32vr4300el.sh \
418 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
419 ${GENSCRIPTS} elf32vr4300el
420 ealpha.c: $(srcdir)/emulparams/alpha.sh \
421 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/alpha.sc ${GEN_DEPENDS}
422 ${GENSCRIPTS} alpha
423 ecoff_sparc.c: $(srcdir)/emulparams/coff_sparc.sh \
424 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sparccoff.sc ${GEN_DEPENDS}
425 ${GENSCRIPTS} coff_sparc
426 esparclynx.c: $(srcdir)/emulparams/sparclynx.sh \
427 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sparclynx.sc ${GEN_DEPENDS}
428 ${GENSCRIPTS} sparclynx
429 eelf32ppc.c: $(srcdir)/emulparams/elf32ppc.sh \
430 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
431 ${GENSCRIPTS} elf32ppc
432 eelf32lppc.c: $(srcdir)/emulparams/elf32lppc.sh \
433 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
434 ${GENSCRIPTS} elf32lppc
435 eriscix.c: $(srcdir)/emulparams/riscix.sh \
436 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
437 ${GENSCRIPTS} riscix
438 em68kaout.c: $(srcdir)/emulparams/m68kaout.sh \
439 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
440 ${GENSCRIPTS} m68kaout
441 ei386linux.c: $(srcdir)/emulparams/i386linux.sh \
442 $(srcdir)/emultempl/linux.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
443 ${GENSCRIPTS} i386linux
444 eelf32_sparc.c: $(srcdir)/emulparams/elf32_sparc.sh \
445 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
446 ${GENSCRIPTS} elf32_sparc
447 eelf64_sparc.c: $(srcdir)/emulparams/elf64_sparc.sh \
448 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
449 ${GENSCRIPTS} elf64_sparc
450
451 epc532machaout.c: $(srcdir)/emulparams/pc532machaout.sh \
452 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
453 ${GENSCRIPTS} pc532machaout
454
455 ew65.c: $(srcdir)/emulparams/w65.sh \
456 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/w65.sc ${GEN_DEPENDS}
457 ${GENSCRIPTS} w65
458
459 ei386nw.c: $(srcdir)/emulparams/i386nw.sh \
460 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/nw.sc ${GEN_DEPENDS}
461 ${GENSCRIPTS} i386nw
462 eppcnw.c: $(srcdir)/emulparams/ppcnw.sh \
463 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/nw.sc ${GEN_DEPENDS}
464 ${GENSCRIPTS} ppcnw
465
466 ei386nbsd.c: $(srcdir)/emulparams/i386nbsd.sh \
467 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
468 ${GENSCRIPTS} i386nbsd
469 em68knbsd.c: $(srcdir)/emulparams/m68knbsd.sh \
470 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
471 ${GENSCRIPTS} m68knbsd
472 ens32knbsd.c: $(srcdir)/emulparams/ns32knbsd.sh \
473 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
474 ${GENSCRIPTS} ns32knbsd
475 esparcnbsd.c: $(srcdir)/emulparams/sparcnbsd.sh \
476 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
477 ${GENSCRIPTS} sparcnbsd
478 earmaoutl.c: $(srcdir)/emulparams/armaoutl.sh \
479 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/armaout.sc ${GEN_DEPENDS}
480 ${GENSCRIPTS} armaoutl
481 earmaoutb.c: $(srcdir)/emulparams/armaoutb.sh \
482 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/armaout.sc ${GEN_DEPENDS}
483 ${GENSCRIPTS} armaoutb
484 ez8001.c: $(srcdir)/emulparams/z8001.sh \
485 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/z8000.sc ${GEN_DEPENDS}
486 ${GENSCRIPTS} z8001
487 ez8002.c: $(srcdir)/emulparams/z8002.sh \
488 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/z8000.sc ${GEN_DEPENDS}
489 ${GENSCRIPTS} z8002
490 # start-sanitize-arc
491 earcelf.c: $(srcdir)/emulparams/arcelf.sh \
492 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
493 ${GENSCRIPTS} arcelf
494 # end-sanitize-arc
495 # start-sanitize-rce
496 erce.c: $(srcdir)/emulparams/rce.sh \
497 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/rce.sc ${GEN_DEPENDS}
498 ${GENSCRIPTS} rce
499 # end-sanitize-rce
500
501 $(LD_PROG): $(OFILES) $(BFDLIB) $(LIBIBERTY)
502 $(CC) $(CFLAGS) $(LDFLAGS) -o $(LD_PROG) $(OFILES) $(BFDLIB) $(LIBIBERTY) $(EXTRALIBS)
503
504 # The generated emulation files mostly have the same dependencies.
505 $(EMULATION_OFILES): ../bfd/bfd.h sysdep.h config.h $(INCDIR)/bfdlink.h \
506 ld.h ldmain.h ldemul.h ldfile.h ldmisc.h ldexp.h ldlang.h \
507 ldctor.h ldexp.h ldlang.h
508
509 # These targets are for the dejagnu testsuites. The file site.exp
510 # contains global variables that all the testsuites will use.
511
512 site.exp: ./config.status Makefile
513 @echo "Making a new config file..."
514 @rm -f ./tmp?
515 @touch site.exp
516 @mv site.exp site.bak
517 @echo "## variables are automatically generated by make ##" > ./tmp0
518 @echo "# Do not edit here. If you wish to override these" >> ./tmp0
519 @echo "# values, add them to the last section" >> ./tmp0
520 @echo "# HOST AND TARGET INFO" >> ./tmp0
521 @echo "set host_os @host_os@" >> ./tmp0
522 @echo "set host_alias @host_alias@" >> ./tmp0
523 @echo "set host_cpu @host_cpu@" >> ./tmp0
524 @echo "set host_vendor @host_vendor@" >> ./tmp0
525 @echo "set target_os @target_os@" >> ./tmp0
526 @echo "set target_alias @target_alias@" >> ./tmp0
527 @echo "set target_cpu @target_cpu@" >> ./tmp0
528 @echo "set target_vendor @target_vendor@" >> ./tmp0
529 @echo "set host_triplet @host@" >> ./tmp0
530 @echo "set target_triplet @target@" >> ./tmp0
531 @echo "# DIRECTORY INFO" >> ./tmp0
532 @echo "set objdir `pwd`" >> ./tmp0
533 @echo "" >> ./tmp0
534 @echo "# LD DEPENDENCIES" >> ./tmp0
535 @echo "set OFILES \"$(OFILES)\"" >> ./tmp0
536 @echo "set BFDLIB \"$(BFDLIB)\"" >> ./tmp0
537 @echo "set LIBIBERTY \"$(LIBIBERTY)\"" >> ./tmp0
538 @echo "set HOSTING_EMU \"$(HOSTING_EMU)\"" >> ./tmp0
539 @echo "set HOSTING_CRT0 \"$(HOSTING_CRT0)\"" >> ./tmp0
540 @echo "set HOSTING_LIBS \"$(HOSTING_LIBS)\"" >> ./tmp0
541 @echo "" >> ./tmp0
542 @echo "## Variables generated by configure. Do Not Edit ##" >> ./tmp0
543 @cat ./tmp0 > site.exp
544 @cat site.bak | sed \
545 -e '1,/^## Variables generated by.*##/ d' >> site.exp
546 -@rm -f ./tmp?
547
548 check: site.exp
549 r=`pwd`; export r; \
550 srcroot=`cd ${srcdir}; pwd` ; export srcroot ; \
551 EXPECT=${EXPECT} ; export EXPECT ; \
552 if [ -f $$r/../expect/expect ] ; then \
553 TCL_LIBRARY=$${srcroot}/../tcl/library ; \
554 export TCL_LIBRARY ; \
555 else true ; fi ; \
556 $(RUNTEST) --tool ld --srcdir $(srcdir)/testsuite $(RUNTESTFLAGS) \
557 CC="$(CC_FOR_TARGET)" CFLAGS="$(CFLAGS)" \
558 CXX="$(CXX_FOR_TARGET)" CXXFLAGS="$(CXXFLAGS)" \
559 CC_FOR_HOST="$(CC)" CFLAGS_FOR_HOST="$(CFLAGS)"
560
561 installcheck:
562 .PHONY: check installcheck
563
564 # Rules for testing by relinking ld itself.
565 # A similar test is in the testsuite. This target is for ease of use
566 # when porting ld.
567
568 ld-partial.o: ld.new
569 ./ld.new $(HOSTING_EMU) -o ld-partial.o -r $(OFILES)
570 ld1: ld-partial.o
571 ./ld.new $(HOSTING_EMU) -o ld1 $(HOSTING_CRT0) ld-partial.o $(BFDLIB) $(LIBIBERTY) $(HOSTING_LIBS)
572
573 ld1-full: ld.new
574 ./ld.new $(HOSTING_EMU) -o ld1-full $(HOSTING_CRT0) $(OFILES) $(BFDLIB) $(LIBIBERTY) $(HOSTING_LIBS)
575
576 ld2: ld1
577 ./ld1 $(HOSTING_EMU) -o ld2 $(HOSTING_CRT0) $(OFILES) $(BFDLIB) $(LIBIBERTY) $(HOSTING_LIBS)
578
579 ld3: ld2
580 ./ld2 $(HOSTING_EMU) -o ld3 $(HOSTING_CRT0) $(OFILES) $(BFDLIB) $(LIBIBERTY) $(HOSTING_LIBS)
581
582 bootstrap: ld3
583 cmp ld2 ld3
584
585 .PHONY: bootstrap
586
587 # A test program for C++ constructors and destructors.
588 # This test is now in the testsuite.
589 #
590 #cdtest: cdtest-main.o cdtest-bar.o cdtest-foo.o ld.new
591 # ./ld.new $(HOSTING_EMU) -o cdtest $(HOSTING_CRT0) \
592 # cdtest-main.o cdtest-bar.o cdtest-foo.o $(HOSTING_LIBS)
593 #
594 #cdtest.out: cdtest
595 # ./cdtest > cdtest.tmp
596 # mv cdtest.tmp cdtest.out
597 #
598 #cdtest-ur.o: cdtest-main.o cdtest-bar.o cdtest-foo.o ld.new
599 # ./ld.new $(HOSTING_EMU) -o cdtest-ur.o -Ur cdtest-main.o \
600 # cdtest-bar.o cdtest-foo.o
601 #
602 #cdtest-ur: cdtest-ur.o
603 # ./ld.new $(HOSTING_EMU) -o cdtest-ur $(HOSTING_CRT0) cdtest-ur.o \
604 # $(HOSTING_LIBS)
605 #
606 #cdtest-ur.out: cdtest-ur
607 # ./cdtest-ur > cdtest-ur.tmp
608 # mv cdtest-ur.tmp cdtest-ur.out
609 #
610 #check-cdtest: cdtest.out cdtest-ur.out $(srcdir)/cdtest.exp
611 # diff $(srcdir)/cdtest.exp cdtest.out
612 # diff $(srcdir)/cdtest.exp cdtest-ur.out
613 #
614 #.PHONY: check-cdtest
615
616 # END OF CHECK TARGETS
617
618 # DOCUMENTATION TARGETS
619 # Manual configuration file; not usually attached to normal configuration,
620 # because almost all configs use "gen" version of manual.
621 # Set DOCVER above to change.
622 configdoc.texi: ${DOCVER}-doc.texi
623 ln -s ${srcdir}/${DOCVER}-doc.texi ./configdoc.texi || \
624 ln ${srcdir}/${DOCVER}-doc.texi ./configdoc.texi || \
625 cp ${srcdir}/${DOCVER}-doc.texi ./configdoc.texi
626
627 # TeX output
628 dvi: ld.dvi
629 ld.dvi: $(srcdir)/ld.texinfo configdoc.texi $(BFDDIR)/doc/bfdsumm.texi
630 TEXINPUTS=$(BFDDIR)/doc:$$TEXINPUTS $(TEXI2DVI) $(srcdir)/ld.texinfo
631
632 ldint.dvi: $(srcdir)/ldint.texinfo
633 $(TEXI2DVI) $(srcdir)/ldint.texinfo
634
635 # info file for online browsing
636 ld.info: $(srcdir)/ld.texinfo configdoc.texi $(BFDDIR)/doc/bfdsumm.texi
637 $(MAKEINFO) -I$(BFDDIR)/doc -o ld.info $(srcdir)/ld.texinfo
638
639 ldint.info: $(srcdir)/ldint.texinfo
640 $(MAKEINFO) -o ldint.info $(srcdir)/ldint.texinfo
641
642 .PHONY: dvi
643
644 #separate targets for "ms", "me", and "mm" forms of roff doc
645 # Try to use a recent texi2roff. v2 was put on prep in jan91.
646 # If you want an index, see texi2roff doc for postprocessing
647 # and add -i to texi2roff invocations below.
648 # Workarounds for texi2roff-2 (probably fixed in later texi2roff's, delete
649 # correspondint -e lines when later texi2roff's are current)
650 # + @ifinfo's deleted explicitly due to texi2roff-2 bug w nested constructs.
651 # + @c's deleted explicitly because texi2roff sees texinfo commands in them
652 # + @ (that's at-BLANK) not recognized by texi2roff, turned into blank
653 # + @alphaenumerate is ridiculously new, turned into @enumerate
654
655 ld.ms: $(srcdir)/ld.texinfo
656 sed -e '/\\input texinfo/d' \
657 -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
658 -e '/^@ifinfo/,/^@end ifinfo/d' \
659 -e '/^@c/d' \
660 -e 's/{.*,,/{/' \
661 -e 's/@ / /g' \
662 -e 's/^@alphaenumerate/@enumerate/g' \
663 -e 's/^@end alphaenumerate/@end enumerate/g' \
664 $(srcdir)/ld.texinfo | \
665 $(TEXI2ROFF) $(TEXI2OPT) -ms | \
666 sed -e 's/---/\\(em/g' \
667 >>ld.ms
668
669 # index for roff output
670 ld-index.ms: ld.ms
671 $(ROFF) -ms ld.ms 2>&1 1>/dev/null | \
672 sed -e '/: warning:/d' | \
673 texi2index >ld-index.ms
674
675 # roff output (-mm)
676 ld.mm: $(srcdir)/ld.texinfo
677 sed -e '/\\input texinfo/d' \
678 -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
679 -e '/^@ifinfo/,/^@end ifinfo/d' \
680 -e '/^@c/d' \
681 -e 's/{.*,,/{/' \
682 -e '/@noindent/d' \
683 -e 's/@ / /g' \
684 -e 's/^@alphaenumerate/@enumerate/g' \
685 -e 's/^@end alphaenumerate/@end enumerate/g' \
686 $(srcdir)/ld.texinfo | \
687 $(TEXI2ROFF) $(TEXI2OPT) -mm | \
688 sed -e 's/---/\\(em/g' \
689 >ld.mm
690
691 # index for roff output
692 ld-index.mm: ld.mm
693 $(ROFF) -mm ld.mm 2>&1 1>/dev/null | \
694 sed -e '/: warning:/d' | \
695 texi2index >ld-index.mm
696
697 # roff output (-me)
698 ld.me: $(srcdir)/ld.texinfo
699 sed -e '/\\input texinfo/d' \
700 -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
701 -e '/^@ifinfo/,/^@end ifinfo/d' \
702 -e '/^@c/d' \
703 -e 's/{.*,,/{/' \
704 -e 's/@ / /g' \
705 -e 's/^@alphaenumerate/@enumerate/g' \
706 -e 's/^@end alphaenumerate/@end enumerate/g' \
707 $(srcdir)/ld.texinfo | \
708 $(TEXI2ROFF) $(TEXI2OPT) -me | \
709 sed -e 's/---/\\(em/g' \
710 >>ld.me
711
712 # index for roff output
713 ld-index.me: ld.me
714 $(ROFF) -me ld.me 2>&1 1>/dev/null | \
715 sed -e '/: warning:/d' | \
716 texi2index >ld-index.me
717
718 stage1: force
719 -mkdir stage1
720 -mv -f $(STAGESTUFF) $(LD_PROG) stage1
721 -(cd stage1 ; ln -s $(LD_PROG) ld)
722
723 stage2: force
724 -mkdir stage2
725 -mv -f $(STAGESTUFF) $(LD_PROG) stage2
726 -(cd stage2 ; ln -s $(LD_PROG) ld)
727
728 stage3: force
729 -mkdir stage3
730 -mv -f $(STAGESTUFF) $(LD_PROG) stage3
731 -(cd stage3 ; ln -s $(LD_PROG) ld)
732
733 against = stage2
734
735 comparison: force
736 for i in $(STAGESTUFF) $(LD_PROG) ; do cmp $$i $(against)/$$i ; done
737
738 de-stage1: force
739 -(cd stage1 ; mv -f * ..)
740 -rm ld
741 -rmdir stage1
742
743 de-stage2: force
744 -(cd stage2 ; mv -f * ..)
745 -rm ld
746 -rmdir stage2
747
748 de-stage3: force
749 -(cd stage3 ; mv -f * ..)
750 -rm ld
751 -rmdir stage3
752
753 .PHONY: stage1 stage2 stage3 comparison de-stage1 de-stage2 de-stage3
754
755 # Stuff that should be included in a distribution:
756 LDDISTSTUFF = ldgram.c ldgram.h ldlex.c
757 diststuff: $(LDDISTSTUFF)
758
759 mostlyclean:
760 -rm -f $(STAGESTUFF) ld.?? ld.??? ldlex.[qp] config.log
761 -rm -f ld ld1 ld2 ld3 *.o y.output cdtest cdtest.out cdtest.tmp
762 -rm -f cdtest-ur cdtest-ur.out cdtest-ur.tmp
763 -rm -f $(GENERATED_CFILES) $(GENERATED_HFILES)
764 -rm -fr tmpdir
765 clean: mostlyclean
766 -rm -f $(LD_PROG) configdoc.texi
767 distclean: clean
768 -rm -f Makefile config.status TAGS site.exp site.bak config.cache
769 -rm -f config.h stamp-h
770 -rm -rf ldscripts
771 maintainer-clean realclean: clean distclean
772 @echo "This command is intended for maintainers to use;"
773 @echo "it deletes files that may require special tools to rebuild."
774 -rm -f $(LDDISTSTUFF)
775
776 .PHONY: diststuff mostlyclean clean distclean realclean
777
778 lintlog:$(LINTSOURCES) Makefile
779 $(LINT) -abhxzn $(LINTFLAGS) $(LINTSOURCES) \
780 | grep -v "pointer casts may be troublesome" \
781 | grep -v "possible pointer alignment problem" \
782 | grep -v "ignore" \
783 | grep -v "conversion from long may lose accuracy" \
784 | grep -v "warning: constant argument to NOT" \
785 | grep -v "enumeration type clash, operator CAST" \
786 | grep -v "warning: constant in conditional context"\
787 | grep -v "archive\.c"
788
789
790 TAGS:
791 etags -t $(srcdir)/*.[chly] *.[chly]
792
793
794 install:
795 $(INSTALL_XFORM) ld.new $(bindir)/ld
796 $(INSTALL_XFORM1) $(srcdir)/ld.1 $(man1dir)/ld.1
797 for f in ldscripts/*; do \
798 $(INSTALL_DATA) $$f $(scriptdir)/$$f ; \
799 done
800 -n=`echo ld | sed $(program_transform_name)`; \
801 rm -f $(tooldir)/bin/ld; \
802 ln $(bindir)/$$n $(tooldir)/bin/ld >/dev/null 2>/dev/null \
803 || $(INSTALL_PROGRAM) ld.new $(tooldir)/bin/ld
804
805 install-info: ld.info
806 if [ -r ld.info ]; then \
807 dir=. ; \
808 else \
809 dir=$(srcdir) ; \
810 fi ; \
811 for i in `cd $$dir ; echo ld.info*` ; do \
812 $(INSTALL_DATA) $$dir/$$i $(infodir)/$$i ; \
813 done
814
815 clean-info:
816 -rm -rf *.info*
817
818 .PHONY: install install-info clean-info
819
820 # Targets to rebuild dependencies in this Makefile.
821 # Have to get rid of .dep1 here so that "$?" later includes all of $(CFILES).
822 .dep: dep.sed $(CFILES) $(HFILES) $(GENERATED_CFILES) $(GENERATED_HFILES) config.h
823 rm -f .dep1
824 $(MAKE) DEP=$(DEP) .dep1
825 sed -f dep.sed <.dep1 >.dep
826
827 # This rule really wants a mkdep that runs "gcc -MM".
828 .dep1: $(CFILES) $(GENERATED_CFILES)
829 rm -f .dep2
830 echo '# DO NOT DELETE THIS LINE -- mkdep uses it.' > .dep2
831 $(DEP) -f .dep2 $(ALL_CFLAGS) $?
832 $(srcdir)/../move-if-change .dep2 .dep1
833
834 dep.sed: dep-in.sed config.status
835 sed <$(srcdir)/dep-in.sed >dep.sed \
836 -e 's!@INCDIR@!$(INCDIR)!' \
837 -e 's!@SRCDIR@!$(srcdir)!'
838
839 dep: .dep
840 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < Makefile > tmp-Makefile
841 cat .dep >> tmp-Makefile
842 $(srcdir)/../move-if-change tmp-Makefile Makefile
843
844 dep-in: .dep
845 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.in > tmp-Makefile.in
846 cat .dep >> tmp-Makefile.in
847 $(srcdir)/../move-if-change tmp-Makefile.in $(srcdir)/Makefile.in
848
849 .PHONY: dep dep-in
850
851 # Dummy target to force execution of dependent targets.
852 #
853 force:
854
855 .PHONY: force
856
857 Makefile: Makefile.in config.status
858 CONFIG_FILES=Makefile CONFIG_HEADERS= $(SHELL) ./config.status
859
860 config.h: stamp-h ; @true
861 stamp-h: config.in config.status
862 CONFIG_FILES= CONFIG_HEADERS=config.h:config.in $(SHELL) ./config.status
863
864 config.status: configure configure.host configure.tgt
865 $(SHELL) ./config.status --recheck
866
867 # What appears below is generated by a hacked mkdep using gcc -MM.
868
869 # DO NOT DELETE THIS LINE -- mkdep uses it.
870 # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
871
872 ldctor.o: ldctor.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
873 $(INCDIR)/obstack.h sysdep.h config.h $(INCDIR)/fopen-same.h \
874 $(INCDIR)/bfdlink.h ld.h ldexp.h ldlang.h ldmisc.h \
875 ldgram.h ldmain.h ldctor.h
876 ldemul.o: ldemul.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
877 $(INCDIR)/obstack.h sysdep.h config.h $(INCDIR)/fopen-same.h \
878 ld.h ldemul.h ldmisc.h ldexp.h ldlang.h ldfile.h ldmain.h \
879 ldemul-list.h
880 ldexp.o: ldexp.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
881 $(INCDIR)/obstack.h sysdep.h config.h $(INCDIR)/fopen-same.h \
882 $(INCDIR)/bfdlink.h ld.h ldmain.h ldmisc.h ldexp.h \
883 ldgram.h ldlang.h
884 ldfile.o: ldfile.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
885 $(INCDIR)/obstack.h sysdep.h config.h $(INCDIR)/fopen-same.h \
886 $(INCDIR)/bfdlink.h ld.h ldmisc.h ldexp.h ldlang.h \
887 ldfile.h ldmain.h ldgram.h ldlex.h ldemul.h
888 ldlang.o: ldlang.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
889 $(INCDIR)/obstack.h sysdep.h config.h $(INCDIR)/fopen-same.h \
890 $(INCDIR)/libiberty.h $(INCDIR)/bfdlink.h ld.h ldmain.h \
891 ldgram.h ldexp.h ldlang.h ldemul.h ldlex.h ldmisc.h \
892 ldctor.h ldfile.h
893 ldmain.o: ldmain.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
894 $(INCDIR)/obstack.h sysdep.h config.h $(INCDIR)/fopen-same.h \
895 $(INCDIR)/libiberty.h $(INCDIR)/progress.h $(INCDIR)/bfdlink.h \
896 ld.h ldmain.h ldmisc.h ldwrite.h ldgram.h ldexp.h ldlang.h \
897 ldemul.h ldlex.h ldfile.h ldctor.h
898 ldmisc.o: ldmisc.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
899 $(INCDIR)/obstack.h sysdep.h config.h $(INCDIR)/fopen-same.h \
900 ld.h ldmisc.h ldexp.h ldlang.h ldgram.h ldlex.h ldmain.h \
901 ldfile.h
902 ldver.o: ldver.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
903 $(INCDIR)/obstack.h sysdep.h config.h $(INCDIR)/fopen-same.h \
904 ld.h ldver.h ldemul.h ldmain.h
905 ldwrite.o: ldwrite.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
906 $(INCDIR)/obstack.h sysdep.h config.h $(INCDIR)/fopen-same.h \
907 $(INCDIR)/bfdlink.h ld.h ldexp.h ldlang.h ldwrite.h \
908 ldmisc.h ldgram.h ldmain.h
909 lexsup.o: lexsup.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
910 $(INCDIR)/obstack.h sysdep.h config.h $(INCDIR)/fopen-same.h \
911 $(INCDIR)/getopt.h $(INCDIR)/bfdlink.h ld.h ldmain.h \
912 ldmisc.h ldexp.h ldlang.h ldgram.h ldlex.h ldfile.h \
913 ldver.h ldemul.h
914 mri.o: mri.c ../bfd/bfd.h $(INCDIR)/ansidecl.h $(INCDIR)/obstack.h \
915 sysdep.h config.h $(INCDIR)/fopen-same.h ld.h ldexp.h \
916 ldlang.h ldmisc.h mri.h ldgram.h
917 ldgram.o: ldgram.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
918 $(INCDIR)/obstack.h sysdep.h config.h $(INCDIR)/fopen-same.h \
919 $(INCDIR)/bfdlink.h ld.h ldexp.h ldver.h ldlang.h ldemul.h \
920 ldfile.h ldmisc.h ldmain.h mri.h ldlex.h
921 ldlex.o: ldlex.c ../bfd/bfd.h $(INCDIR)/obstack.h sysdep.h \
922 config.h $(INCDIR)/fopen-same.h ld.h ldgram.h ldmisc.h \
923 ldexp.h ldlang.h ldfile.h ldlex.h ldmain.h
924
925 # IF YOU PUT ANYTHING HERE IT WILL GO AWAY
This page took 0.049276 seconds and 4 git commands to generate.