]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - ld/Makefile.am
txvuelf.sh: New file.
[thirdparty/binutils-gdb.git] / ld / Makefile.am
CommitLineData
49c009b5
ILT
1## Process this file with automake to generate Makefile.in
2
3AUTOMAKE_OPTIONS = dejagnu
4
5tooldir = $(exec_prefix)/$(target_alias)
6
7YACC = `if [ -f ../bison/bison ] ; then echo ../bison/bison -y -L../bison/bison ; else echo bison -y ; fi`
8YFLAGS = -d
9LEX = `if [ -f ../flex/flex ] ; then echo ../flex/flex ; else echo flex ; fi`
10
11# We put the scripts in the directory $(scriptdir)/ldscripts.
12# We can't put the scripts in $(datadir) because the SEARCH_DIR
13# directives need to be different for native and cross linkers.
14scriptdir = $(tooldir)/lib
15
16EMUL = @EMUL@
17EMULATION_OFILES = @EMULATION_OFILES@
18
19# Search path to override the default search path for -lfoo libraries.
20# If LIB_PATH is empty, the ones in the script (if any) are left alone.
21# (The default is usually /lib:/usr/lib:/usr/local/lib, unless building
22# a cross-linker, in which case the default is empty. See genscripts.sh.)
23# Otherwise, they are replaced with the ones given in LIB_PATH,
24# which may have the form: LIB_PATH=/lib:/usr/local/lib
25LIB_PATH =
26
27BASEDIR = $(srcdir)/..
28BFDDIR = $(BASEDIR)/bfd
29INCDIR = $(BASEDIR)/include
30DEP = mkdep
31
32# What version of the manual to build
33DOCVER = gen
34
35#stuff for self hosting (can be overridden in config file).
36HOSTING_CRT0 = @HOSTING_CRT0@
37HOSTING_LIBS = @HOSTING_LIBS@
38HOSTING_EMU = -m $(EMUL)
39
40# Setup the testing framework, if you have one
41EXPECT = `if [ -f $$r/../expect/expect ] ; \
42 then echo $$r/../expect/expect ; \
43 else echo expect ; fi`
44
45RUNTEST = `if [ -f $${srcroot}/../dejagnu/runtest ] ; \
46 then echo $${srcroot}/../dejagnu/runtest ; \
47 else echo runtest ; fi`
48
49RUNTESTFLAGS =
50
51CC_FOR_TARGET = ` \
52 if [ -f $$r/../gcc/xgcc ] ; then \
53 if [ -f $$r/../newlib/Makefile ] ; then \
54 echo $$r/../gcc/xgcc -B$$r/../gcc/ -idirafter $$r/../newlib/targ-include -idirafter $${srcroot}/../newlib/libc/include -nostdinc; \
55 else \
56 echo $$r/../gcc/xgcc -B$$r/../gcc/; \
57 fi; \
58 else \
59 if [ "@host@" = "@target@" ] ; then \
60 echo $(CC); \
61 else \
62 echo gcc | sed '$(program_transform_name)'; \
63 fi; \
64 fi`
65
66CXX = gcc
67CXX_FOR_TARGET = ` \
68 if [ -f $$r/../gcc/xgcc ] ; then \
69 if [ -f $$r/../newlib/Makefile ] ; then \
70 echo $$r/../gcc/xgcc -B$$r/../gcc/ -idirafter $$r/../newlib/targ-include -idirafter $${srcroot}/../newlib/libc/include -nostdinc; \
71 else \
72 echo $$r/../gcc/xgcc -B$$r/../gcc/; \
73 fi; \
74 else \
75 if [ "@host@" = "@target@" ] ; then \
76 echo $(CXX); \
77 else \
78 echo gcc | sed '$(program_transform_name)'; \
79 fi; \
80 fi`
81
82noinst_PROGRAMS = ld-new
83info_TEXINFOS = ld.texinfo
84noinst_TEXINFOS = ldint.texinfo
85man_MANS = ld.1
86
87INCLUDES = -D_GNU_SOURCE -I. -I$(srcdir) -I../bfd -I$(BFDDIR) -I$(INCDIR) $(HDEFINES) $(CFLAGS)
88
89BFDLIB = ../bfd/libbfd.la
90LIBIBERTY = ../libiberty/libiberty.a
91
92ALL_EMULATIONS = \
93 ea29k.o \
94 eaixppc.o \
95 eaixrs6.o \
96 ealpha.o \
0c0b16f9 97 earcelf.o \
49c009b5
ILT
98 earmaoutb.o \
99 earmaoutl.o \
100 earmcoff.o \
101 earmpe.o \
102 ecoff_sparc.o \
e48412a2
MM
103 ed10velf.o \
104 $(start-sanitize-d30v) \
105 ed30velf.o \
106 $(end-sanitize-d30v) \
49c009b5
ILT
107 edelta68.o \
108 eebmon29k.o \
109 eelf32_sparc.o \
110 eelf32b4300.o \
111 eelf32bmip.o \
112 eelf32ebmip.o \
113 eelf32elmip.o \
114 eelf32l4300.o \
115 eelf32lmip.o \
116 eelf32lppc.o \
117 eelf32ppc.o \
49c009b5
ILT
118 eelf_i386.o \
119 egld960.o \
120 egld960coff.o \
121 ego32.o \
122 eh8300.o \
123 eh8300h.o \
124 eh8300s.o \
125 eh8500.o \
126 eh8500b.o \
127 eh8500c.o \
128 eh8500m.o \
129 eh8500s.o \
130 ehp300bsd.o \
131 ehp3hpux.o \
132 ehppaelf.o \
133 ei386aout.o \
134 ei386bsd.o \
135 ei386coff.o \
136 ei386go32.o \
137 ei386linux.o \
138 ei386lynx.o \
139 ei386mach.o \
140 ei386moss.o \
141 ei386msdos.o \
142 ei386nbsd.o \
143 ei386nw.o \
144 ei386pe.o \
145 elnk960.o \
146 em68k4knbsd.o \
147 em68kaout.o \
148 em68kaux.o \
149 em68kcoff.o \
150 em68kelf.o \
151 em68klinux.o \
152 em68klynx.o \
153 em68knbsd.o \
154 em68kpsos.o \
155 em88kbcs.o \
156 emipsbig.o \
157 emipsbsd.o \
158 emipsidt.o \
159 emipsidtl.o \
160 emipslit.o \
161 emipslnews.o \
162 enews.o \
163 ens32knbsd.o \
164 epc532macha.o \
165 eppcmacos.o \
166 eppcnw.o \
167 eppcpe.o \
168 eriscix.o \
169 esa29200.o \
170 esh.o \
171 eshelf.o \
172 eshlelf.o \
173 eshl.o \
174 esparcaout.o \
175 esparclinux.o \
176 esparclynx.o \
177 esparcnbsd.o \
178 est2000.o \
179 esun3.o \
180 esun4.o \
e48412a2
MM
181 $(start-sanitize-tic80) \
182 etic80coff.o \
183 $(end-sanitize-tic80) \
49c009b5
ILT
184 evanilla.o \
185 evax.o \
186 evsta.o \
187 ew65.o \
188 ez8001.o \
189 ez8002.o
190
191ALL_64_EMULATIONS = \
e48412a2 192 eelf64_sparc.o \
49c009b5
ILT
193 eelf64alpha.o
194
195CFILES = ldctor.c ldemul.c ldexp.c ldfile.c ldlang.c \
196 ldmain.c ldmisc.c ldver.c ldwrite.c lexsup.c \
197 mri.c ldcref.c
198
199HFILES = config.h ld.h ldctor.h ldemul.h ldexp.h ldfile.h \
200 ldlang.h ldlex.h ldmain.h ldmisc.h ldver.h \
201 ldwrite.h mri.h
202
203GENERATED_CFILES = ldgram.c ldlex.c
204GENERATED_HFILES = ldgram.h ldemul-list.h
205
206OFILES = ldgram.o ldlex.o lexsup.o ldlang.o mri.o ldctor.o ldmain.o \
207 ldwrite.o ldexp.o ldemul.o ldver.o ldmisc.o \
208 ldfile.o ldcref.o ${EMULATION_OFILES}
209
210STAGESTUFF = *.o ldscripts/* e*.c
211
212ldmain.o: ldmain.c config.status
213 $(COMPILE) -c -DDEFAULT_EMULATION='"$(EMUL)"' -DSCRIPTDIR='"$(scriptdir)"' -DTARGET='"@target@"' $(srcdir)/ldmain.c
214
215ldemul-list.h: Makefile
216 (echo "/* This file is automatically generated. DO NOT EDIT! */";\
217 for f in `echo " " ${EMULATION_OFILES} "" \
218 | sed -e 's/ e/ ld/g' -e 's/ ld/ /g' -e 's/[.]o//g'`; do \
219 echo "extern ld_emulation_xfer_type ld_$${f}_emulation;"; \
220 done;\
221 echo "";\
222 echo "#define EMULATION_LIST \\";\
223 for f in `echo " " ${EMULATION_OFILES} "" \
224 | sed -e 's/ e/ ld/g' -e 's/ ld/ /g' -e 's/[.]o//g'`; do \
225 echo " &ld_$${f}_emulation, \\"; \
226 done;\
227 echo " 0") >ldemul-tmp.h
228 mv ldemul-tmp.h ldemul-list.h
229
230# These all start with e so 'make clean' can find them.
231
232GENSCRIPTS = $(SHELL) $(srcdir)/genscripts.sh ${srcdir} ${libdir} @host@ @target@ @target_alias@ ${EMUL} "@NATIVE_LIB_DIRS@"
233GEN_DEPENDS = $(srcdir)/genscripts.sh $(srcdir)/emultempl/stringify.sed
234@TDIRS@
235
236ea29k.c: $(srcdir)/emulparams/a29k.sh \
237 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/a29k.sc ${GEN_DEPENDS}
238 ${GENSCRIPTS} a29k "$(tdir_a29k)"
239eaixppc.c: $(srcdir)/emulparams/aixppc.sh \
240 $(srcdir)/emultempl/aix.em $(srcdir)/scripttempl/aix.sc ${GEN_DEPENDS}
241 ${GENSCRIPTS} aixppc "$(tdir_aixppc)"
242eaixrs6.c: $(srcdir)/emulparams/aixrs6.sh \
243 $(srcdir)/emultempl/aix.em $(srcdir)/scripttempl/aix.sc ${GEN_DEPENDS}
244 ${GENSCRIPTS} aixrs6 "$(tdir_aixrs6)"
245ealpha.c: $(srcdir)/emulparams/alpha.sh \
246 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/alpha.sc ${GEN_DEPENDS}
247 ${GENSCRIPTS} alpha "$(tdir_alpha)"
49c009b5
ILT
248earcelf.c: $(srcdir)/emulparams/arcelf.sh \
249 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
250 ${GENSCRIPTS} arcelf "$(tdir_arcelf)"
49c009b5
ILT
251earmaoutb.c: $(srcdir)/emulparams/armaoutb.sh \
252 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/armaout.sc ${GEN_DEPENDS}
253 ${GENSCRIPTS} armaoutb "$(tdir_armaoutb)"
254earmaoutl.c: $(srcdir)/emulparams/armaoutl.sh \
255 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/armaout.sc ${GEN_DEPENDS}
256 ${GENSCRIPTS} armaoutl "$(tdir_armaoutl)"
257earmcoff.c: $(srcdir)/emulparams/armcoff.sh \
258 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/armcoff.sc ${GEN_DEPENDS}
259 ${GENSCRIPTS} armcoff "$(tdir_armcoff)"
260earmpe.c: $(srcdir)/emulparams/armpe.sh \
261 $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS}
262 ${GENSCRIPTS} armpe "$(tdir_armpe)"
263ecoff_sparc.c: $(srcdir)/emulparams/coff_sparc.sh \
264 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sparccoff.sc ${GEN_DEPENDS}
265 ${GENSCRIPTS} coff_sparc "$(tdir_coff_sparc)"
266ed10velf.c: $(srcdir)/emulparams/d10velf.sh \
267 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elfd10v.sc ${GEN_DEPENDS}
268 ${GENSCRIPTS} d10velf "$(tdir_d10v)"
269start-sanitize-d30v:
270ed30velf.c: $(srcdir)/emulparams/d30velf.sh \
271 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elfd30v.sc ${GEN_DEPENDS}
272 ${GENSCRIPTS} d30velf "$(tdir_d30v)"
273end-sanitize-d30v:
274edelta68.c: $(srcdir)/emulparams/delta68.sh \
275 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/delta68.sc ${GEN_DEPENDS}
276 ${GENSCRIPTS} delta68 "$(tdir_delta68)"
277eebmon29k.c: $(srcdir)/emulparams/ebmon29k.sh \
278 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/ebmon29k.sc ${GEN_DEPENDS}
279 ${GENSCRIPTS} ebmon29k "$(tdir_ebmon29k)"
280em32relf.c: $(srcdir)/emulparams/m32relf.sh \
281 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
282 ${GENSCRIPTS} m32relf "$(tdir_m32r)"
283eelf32_sparc.c: $(srcdir)/emulparams/elf32_sparc.sh \
284 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
285 ${GENSCRIPTS} elf32_sparc "$(tdir_elf32_sparc)"
286eelf32b4300.c: $(srcdir)/emulparams/elf32b4300.sh \
287 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
288 ${GENSCRIPTS} elf32b4300 "$(tdir_elf32b4300)"
289eelf32bmip.c: $(srcdir)/emulparams/elf32bmip.sh \
290 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
291 ${GENSCRIPTS} elf32bmip "$(tdir_elf32bmip)"
292eelf32ebmip.c: $(srcdir)/emulparams/elf32ebmip.sh \
293 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
294 ${GENSCRIPTS} elf32ebmip "$(tdir_elf32ebmip)"
295eelf32elmip.c: $(srcdir)/emulparams/elf32elmip.sh \
296 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
297 ${GENSCRIPTS} elf32elmip "$(tdir_elf32elmip)"
298eelf32l4300.c: $(srcdir)/emulparams/elf32l4300.sh \
299 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
300 ${GENSCRIPTS} elf32l4300 "$(tdir_elf32l4300)"
301eelf32lmip.c: $(srcdir)/emulparams/elf32lmip.sh \
302 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
303 ${GENSCRIPTS} elf32lmip "$(tdir_elf32lmip)"
304eelf32lppc.c: $(srcdir)/emulparams/elf32lppc.sh \
305 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elfppc.sc ${GEN_DEPENDS}
306 ${GENSCRIPTS} elf32lppc "$(tdir_elf32lppc)"
307eelf32ppc.c: $(srcdir)/emulparams/elf32ppc.sh \
308 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elfppc.sc ${GEN_DEPENDS}
309 ${GENSCRIPTS} elf32ppc "$(tdir_elf32ppc)"
310eelf64alpha.c: $(srcdir)/emulparams/elf64alpha.sh \
311 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
312 ${GENSCRIPTS} elf64alpha "$(tdir_elf64alpha)"
313eelf64_sparc.c: $(srcdir)/emulparams/elf64_sparc.sh \
e48412a2 314 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
49c009b5
ILT
315 ${GENSCRIPTS} elf64_sparc "$(tdir_elf64_sparc)"
316eelf_i386.c: $(srcdir)/emulparams/elf_i386.sh \
317 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
318 ${GENSCRIPTS} elf_i386 "$(tdir_elf_i386)"
319egld960.c: $(srcdir)/emulparams/gld960.sh \
320 $(srcdir)/emultempl/gld960.em $(srcdir)/scripttempl/i960.sc ${GEN_DEPENDS}
321 ${GENSCRIPTS} gld960 "$(tdir_gld960)"
322egld960coff.c: $(srcdir)/emulparams/gld960coff.sh \
323 $(srcdir)/emultempl/gld960c.em $(srcdir)/scripttempl/i960.sc ${GEN_DEPENDS}
324 ${GENSCRIPTS} gld960coff "$(tdir_gld960coff)"
325ego32.c: $(srcdir)/emulparams/go32.sh \
326 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
327 ${GENSCRIPTS} go32 "$(tdir_go32)"
328eh8300.c: $(srcdir)/emulparams/h8300.sh \
329 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300.sc ${GEN_DEPENDS}
330 ${GENSCRIPTS} h8300 "$(tdir_h8300)"
331eh8300h.c: $(srcdir)/emulparams/h8300h.sh \
332 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300h.sc ${GEN_DEPENDS}
333 ${GENSCRIPTS} h8300h "$(tdir_h8300h)"
334eh8300s.c: $(srcdir)/emulparams/h8300s.sh \
335 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300s.sc ${GEN_DEPENDS}
336 ${GENSCRIPTS} h8300s "$(tdir_h8300s)"
337eh8500.c: $(srcdir)/emulparams/h8500.sh \
338 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500.sc ${GEN_DEPENDS}
339 ${GENSCRIPTS} h8500 "$(tdir_h8500)"
340eh8500b.c: $(srcdir)/emulparams/h8500b.sh \
341 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500b.sc ${GEN_DEPENDS}
342 ${GENSCRIPTS} h8500b "$(tdir_h8500b)"
343eh8500c.c: $(srcdir)/emulparams/h8500c.sh \
344 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500c.sc ${GEN_DEPENDS}
345 ${GENSCRIPTS} h8500c "$(tdir_h8500c)"
346eh8500m.c: $(srcdir)/emulparams/h8500m.sh \
347 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500m.sc ${GEN_DEPENDS}
348 ${GENSCRIPTS} h8500m "$(tdir_h8500m)"
349eh8500s.c: $(srcdir)/emulparams/h8500s.sh \
350 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500s.sc ${GEN_DEPENDS}
351 ${GENSCRIPTS} h8500s "$(tdir_h8500s)"
352ehp300bsd.c: $(srcdir)/emulparams/hp300bsd.sh \
353 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
354 ${GENSCRIPTS} hp300bsd "$(tdir_hp300bsd)"
355ehp3hpux.c: $(srcdir)/emulparams/hp3hpux.sh \
356 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
357 ${GENSCRIPTS} hp3hpux "$(tdir_hp3hpux)"
358ehppaelf.c: $(srcdir)/emulparams/hppaelf.sh \
359 $(srcdir)/emultempl/hppaelf.em $(srcdir)/scripttempl/hppaelf.sc ${GEN_DEPENDS}
360 ${GENSCRIPTS} hppaelf "$(tdir_hppaelf)"
361ei386aout.c: $(srcdir)/emulparams/i386aout.sh \
362 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
363 ${GENSCRIPTS} i386aout "$(tdir_i386aout)"
364ei386bsd.c: $(srcdir)/emulparams/i386bsd.sh \
365 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
366 ${GENSCRIPTS} i386bsd "$(tdir_i386bsd)"
367ei386coff.c: $(srcdir)/emulparams/i386coff.sh \
368 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386coff.sc ${GEN_DEPENDS}
369 ${GENSCRIPTS} i386coff "$(tdir_i386coff)"
370ei386go32.c: $(srcdir)/emulparams/i386go32.sh \
371 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386go32.sc ${GEN_DEPENDS}
372 ${GENSCRIPTS} i386go32 "$(tdir_i386go32)"
373ei386linux.c: $(srcdir)/emulparams/i386linux.sh \
374 $(srcdir)/emultempl/linux.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
375 ${GENSCRIPTS} i386linux "$(tdir_i386linux)"
376ei386lynx.c: $(srcdir)/emulparams/i386lynx.sh \
377 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386lynx.sc ${GEN_DEPENDS}
378 ${GENSCRIPTS} i386lynx "$(tdir_i386lynx)"
379ei386mach.c: $(srcdir)/emulparams/i386mach.sh \
380 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
381 ${GENSCRIPTS} i386mach "$(tdir_i386mach)"
382ei386moss.c: $(srcdir)/emulparams/i386moss.sh \
383 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
384 ${GENSCRIPTS} i386moss "$(tdir_i386moss)"
385ei386msdos.c: $(srcdir)/emulparams/i386msdos.sh \
386 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386msdos.sc ${GEN_DEPENDS}
387 ${GENSCRIPTS} i386msdos "$(tdir_i386msdos)"
388ei386nbsd.c: $(srcdir)/emulparams/i386nbsd.sh \
389 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
390 ${GENSCRIPTS} i386nbsd "$(tdir_i386nbsd)"
391ei386nw.c: $(srcdir)/emulparams/i386nw.sh \
392 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/nw.sc ${GEN_DEPENDS}
393 ${GENSCRIPTS} i386nw "$(tdir_i386nw)"
394ei386pe.c: $(srcdir)/emulparams/i386pe.sh \
395 $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS}
396 ${GENSCRIPTS} i386pe "$(tdir_i386pe)"
397elnk960.c: $(srcdir)/emulparams/lnk960.sh \
398 $(srcdir)/emultempl/lnk960.em $(srcdir)/scripttempl/i960.sc ${GEN_DEPENDS}
399 ${GENSCRIPTS} lnk960 "$(tdir_lnk960)"
400em68k4knbsd.c: $(srcdir)/emulparams/m68k4knbsd.sh \
401 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
402 ${GENSCRIPTS} m68k4knbsd "$(tdir_m68k4knbsd)"
403em68kaout.c: $(srcdir)/emulparams/m68kaout.sh \
404 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
405 ${GENSCRIPTS} m68kaout "$(tdir_m68kaout)"
406em68kaux.c: $(srcdir)/emulparams/m68kaux.sh \
407 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/m68kaux.sc ${GEN_DEPENDS}
408 ${GENSCRIPTS} m68kaux "$(tdir_m68kaux)"
409em68kcoff.c: $(srcdir)/emulparams/m68kcoff.sh \
410 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/m68kcoff.sc ${GEN_DEPENDS}
411 ${GENSCRIPTS} m68kcoff "$(tdir_m68kcoff)"
412em68kelf.c: $(srcdir)/emulparams/m68kelf.sh \
413 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
414 ${GENSCRIPTS} m68kelf "$(tdir_m68kelf)"
415em68klinux.c: $(srcdir)/emulparams/m68klinux.sh \
416 $(srcdir)/emultempl/linux.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
417 ${GENSCRIPTS} m68klinux "$(tdir_m68klinux)"
418em68klynx.c: $(srcdir)/emulparams/m68klynx.sh \
419 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/m68klynx.sc ${GEN_DEPENDS}
420 ${GENSCRIPTS} m68klynx "$(tdir_m68klynx)"
421em68knbsd.c: $(srcdir)/emulparams/m68knbsd.sh \
422 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
423 ${GENSCRIPTS} m68knbsd "$(tdir_m68knbsd)"
424em68kpsos.c: $(srcdir)/emulparams/m68kpsos.sh \
425 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/psos.sc ${GEN_DEPENDS}
426 ${GENSCRIPTS} m68kpsos "$(tdir_m68kpsos)"
427em88kbcs.c: $(srcdir)/emulparams/m88kbcs.sh \
428 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/m88kbcs.sc ${GEN_DEPENDS}
429 ${GENSCRIPTS} m88kbcs "$(tdir_m88kbcs)"
430emipsbig.c: $(srcdir)/emulparams/mipsbig.sh \
431 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
432 ${GENSCRIPTS} mipsbig
433emipsbsd.c: $(srcdir)/emulparams/mipsbsd.sh \
434 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mipsbsd.sc ${GEN_DEPENDS}
435 ${GENSCRIPTS} mipsbsd
436emipsidt.c: $(srcdir)/emulparams/mipsidt.sh \
437 $(srcdir)/emultempl/mipsecoff.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
438 ${GENSCRIPTS} mipsidt "$(tdir_mipsidt)"
439emipsidtl.c: $(srcdir)/emulparams/mipsidtl.sh \
440 $(srcdir)/emultempl/mipsecoff.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
441 ${GENSCRIPTS} mipsidtl "$(tdir_mipsidtl)"
442emipslit.c: $(srcdir)/emulparams/mipslit.sh \
443 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
444 ${GENSCRIPTS} mipslit "$(tdir_mipslit)"
445emipslnews.c: $(srcdir)/emulparams/mipslnews.sh \
446 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
447 ${GENSCRIPTS} mipslnews
448emn10300.c: $(srcdir)/emulparams/mn10300.sh \
449 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
450 ${GENSCRIPTS} mn10300 "$(tdir_mn10300)"
451emn10200.c: $(srcdir)/emulparams/mn10200.sh \
452 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
453 ${GENSCRIPTS} mn10200 "$(tdir_mn10200)"
454enews.c: $(srcdir)/emulparams/news.sh \
455 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
456 ${GENSCRIPTS} news "$(tdir_news)"
457ens32knbsd.c: $(srcdir)/emulparams/ns32knbsd.sh \
458 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
459 ${GENSCRIPTS} ns32knbsd "$(tdir_ns32knbsd)"
460epc532macha.c: $(srcdir)/emulparams/pc532macha.sh \
461 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
462 ${GENSCRIPTS} pc532macha "$(tdir_pc532macha)"
463eppcmacos.c: $(srcdir)/emulparams/ppcmacos.sh \
464 $(srcdir)/emultempl/aix.em $(srcdir)/scripttempl/aix.sc ${GEN_DEPENDS}
465 ${GENSCRIPTS} ppcmacos "$(tdir_ppcmacos)"
466eppcnw.c: $(srcdir)/emulparams/ppcnw.sh \
467 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/nw.sc ${GEN_DEPENDS}
468 ${GENSCRIPTS} ppcnw "$(tdir_ppcnw)"
469eppcpe.c: $(srcdir)/emulparams/ppcpe.sh \
470 $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/ppcpe.sc ${GEN_DEPENDS}
471 ${GENSCRIPTS} ppcpe "$(tdir_ppcpe)"
472eriscix.c: $(srcdir)/emulparams/riscix.sh \
473 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
474 ${GENSCRIPTS} riscix "$(tdir_riscix)"
475esa29200.c: $(srcdir)/emulparams/sa29200.sh \
476 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sa29200.sc ${GEN_DEPENDS}
477 ${GENSCRIPTS} sa29200 "$(tdir_sa29200)"
478esh.c: $(srcdir)/emulparams/sh.sh \
479 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sh.sc ${GEN_DEPENDS}
480 ${GENSCRIPTS} sh "$(tdir_sh)"
481eshelf.c: $(srcdir)/emulparams/shelf.sh \
482 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
483 ${GENSCRIPTS} shelf "$(tdir_shelf)"
484eshlelf.c: $(srcdir)/emulparams/shlelf.sh \
485 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
486 ${GENSCRIPTS} shlelf "$(tdir_shlelf)"
487eshl.c: $(srcdir)/emulparams/shl.sh \
488 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sh.sc ${GEN_DEPENDS}
489 ${GENSCRIPTS} shl "$(tdir_shl)"
490esparcaout.c: $(srcdir)/emulparams/sparcaout.sh \
491 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
492 ${GENSCRIPTS} sparcaout "$(tdir_sparcaout)"
493esparclinux.c: $(srcdir)/emulparams/sparclinux.sh \
494 $(srcdir)/emultempl/linux.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
495 ${GENSCRIPTS} sparclinux "$(tdir_sparclinux)"
496esparclynx.c: $(srcdir)/emulparams/sparclynx.sh \
497 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sparclynx.sc ${GEN_DEPENDS}
498 ${GENSCRIPTS} sparclynx "$(tdir_sparclynx)"
499esparcnbsd.c: $(srcdir)/emulparams/sparcnbsd.sh \
500 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
501 ${GENSCRIPTS} sparcnbsd "$(tdir_sparcnbsd)"
502est2000.c: $(srcdir)/emulparams/st2000.sh \
503 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/st2000.sc ${GEN_DEPENDS}
504 ${GENSCRIPTS} st2000 "$(tdir_st2000)"
505esun3.c: $(srcdir)/emulparams/sun3.sh \
506 $(srcdir)/emultempl/sunos.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
507 ${GENSCRIPTS} sun3 "$(tdir_sun3)"
508esun4.c: $(srcdir)/emulparams/sun4.sh \
509 $(srcdir)/emultempl/sunos.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
510 ${GENSCRIPTS} sun4 "$(tdir_sun4)"
511start-sanitize-tic80:
512etic80coff.c: $(srcdir)/emulparams/tic80coff.sh \
513 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/tic80coff.sc ${GEN_DEPENDS}
514 ${GENSCRIPTS} tic80coff "$(tdir_tic80coff)"
515end-sanitize-tic80:
516evanilla.c: $(srcdir)/emulparams/vanilla.sh \
517 $(srcdir)/emultempl/vanilla.em $(srcdir)/scripttempl/vanilla.sc ${GEN_DEPENDS}
518 ${GENSCRIPTS} vanilla "$(tdir_vanilla)"
519evax.c: $(srcdir)/emulparams/vax.sh \
520 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
521 ${GENSCRIPTS} vax "$(tdir_vax)"
522evsta.c: $(srcdir)/emulparams/vsta.sh \
523 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
524 ${GENSCRIPTS} vsta "$(tdir_vsta)"
49c009b5
ILT
525ev850.c: $(srcdir)/emulparams/v850.sh \
526 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/v850.sc ${GEN_DEPENDS}
527 ${GENSCRIPTS} v850 "$(tdir_v850)"
49c009b5
ILT
528ew65.c: $(srcdir)/emulparams/w65.sh \
529 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/w65.sc ${GEN_DEPENDS}
530 ${GENSCRIPTS} w65 "$(tdir_w65)"
531ez8001.c: $(srcdir)/emulparams/z8001.sh \
532 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/z8000.sc ${GEN_DEPENDS}
533 ${GENSCRIPTS} z8001 "$(tdir_z8001)"
534ez8002.c: $(srcdir)/emulparams/z8002.sh \
535 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/z8000.sc ${GEN_DEPENDS}
536 ${GENSCRIPTS} z8002 "$(tdir_z8002)"
537
538ld_new_SOURCES = ldgram.y ldlex.l lexsup.c ldlang.c mri.c ldctor.c ldmain.c \
539 ldwrite.c ldexp.c ldemul.c ldver.c ldmisc.c ldfile.c ldcref.c
24d2330e 540ld_new_DEPENDENCIES = $(EMULATION_OFILES) $(BFDLIB) $(LIBIBERTY)
49c009b5
ILT
541ld_new_LDADD = $(EMULATION_OFILES) $(BFDLIB) $(LIBIBERTY) @LEXLIB@
542
543# The generated emulation files mostly have the same dependencies.
544$(EMULATION_OFILES): ../bfd/bfd.h sysdep.h config.h $(INCDIR)/bfdlink.h \
545 ld.h ldmain.h ldemul.h ldfile.h ldmisc.h ldexp.h ldlang.h \
546 ldctor.h ldexp.h ldlang.h ldgram.h
547
548# This is the real libbfd.a created by libtool.
549TESTBFDLIB = ../bfd/.libs/libbfd.a
550
551check-DEJAGNU: site.exp
552 srcroot=`cd $(srcdir) && pwd`; export srcroot; \
553 r=`pwd`; export r; \
554 EXPECT=$(EXPECT); export EXPECT; \
555 if [ -f $(top_builddir)/../expect/expect ]; then \
556 TCL_LIBRARY=`cd $(top_srcdir)/../tcl/library && pwd`; \
557 export TCL_LIBRARY; \
558 fi; \
559 runtest=$(RUNTEST); \
560 if $(SHELL) -c "$$runtest --version" > /dev/null 2>&1; then \
561 $$runtest --tool $(DEJATOOL) --srcdir $${srcroot}/testsuite \
562 CC="$(CC_FOR_TARGET)" CFLAGS="$(CFLAGS)" \
563 CXX="$(CXX_FOR_TARGET)" CXXFLAGS="$(CXXFLAGS)" \
564 CC_FOR_HOST="$(CC)" CFLAGS_FOR_HOST="$(CFLAGS)" \
565 OFILES="$(OFILES)" BFDLIB="$(TESTBFDLIB)" \
566 LIBIBERTY="$(LIBIBERTY)" HOSTING_EMU="$(HOSTING_EMU)" \
567 HOSTING_CRT0="$(HOSTING_CRT0)" HOSTING_LIBS="$(HOSTING_LIBS)" \
568 $(RUNTESTFLAGS); \
569 else echo "WARNING: could not find \`runtest'" 1>&2; :;\
570 fi
571
572# Rules for testing by relinking ld itself.
573# A similar test is in the testsuite. This target is for ease of use
574# when porting ld.
575
576ld-partial.o: ld-new$(EXEEXT)
577 ./ld-new$(EXEEXT) $(HOSTING_EMU) -o ld-partial.o -r $(OFILES)
578ld1$(EXEEXT): ld-partial.o
579 ./ld-new$(EXEEXT) $(HOSTING_EMU) -o ld1$(EXEEXT) $(HOSTING_CRT0) ld-partial.o $(TESTBFDLIB) $(LIBIBERTY) $(HOSTING_LIBS)
580
581ld1-full$(EXEEXT): ld-new
582 ./ld-new$(EXEEXT) $(HOSTING_EMU) -o ld1-full$(EXEEXT) $(HOSTING_CRT0) $(OFILES) $(TESTBFDLIB) $(LIBIBERTY) $(HOSTING_LIBS)
583
584ld2$(EXEEXT): ld1$(EXEEXT)
585 ./ld1$(EXEEXT) $(HOSTING_EMU) -o ld2$(EXEEXT) $(HOSTING_CRT0) $(OFILES) $(TESTBFDLIB) $(LIBIBERTY) $(HOSTING_LIBS)
586
587ld3$(EXEEXT): ld2$(EXEEXT)
588 ./ld2$(EXEEXT) $(HOSTING_EMU) -o ld3$(EXEEXT) $(HOSTING_CRT0) $(OFILES) $(TESTBFDLIB) $(LIBIBERTY) $(HOSTING_LIBS)
589
590bootstrap: ld3$(EXEEXT)
591 cmp ld2$(EXEEXT) ld3$(EXEEXT)
592
593.PHONY: bootstrap
594
595# A test program for C++ constructors and destructors.
596# This test is now in the testsuite.
597#
598#cdtest: cdtest-main.o cdtest-bar.o cdtest-foo.o ld.new
599# ./ld.new $(HOSTING_EMU) -o cdtest $(HOSTING_CRT0) \
600# cdtest-main.o cdtest-bar.o cdtest-foo.o $(HOSTING_LIBS)
601#
602#cdtest.out: cdtest
603# ./cdtest > cdtest.tmp
604# mv cdtest.tmp cdtest.out
605#
606#cdtest-ur.o: cdtest-main.o cdtest-bar.o cdtest-foo.o ld.new
607# ./ld.new $(HOSTING_EMU) -o cdtest-ur.o -Ur cdtest-main.o \
608# cdtest-bar.o cdtest-foo.o
609#
610#cdtest-ur: cdtest-ur.o
611# ./ld.new $(HOSTING_EMU) -o cdtest-ur $(HOSTING_CRT0) cdtest-ur.o \
612# $(HOSTING_LIBS)
613#
614#cdtest-ur.out: cdtest-ur
615# ./cdtest-ur > cdtest-ur.tmp
616# mv cdtest-ur.tmp cdtest-ur.out
617#
618#check-cdtest: cdtest.out cdtest-ur.out $(srcdir)/cdtest.exp
619# diff $(srcdir)/cdtest.exp cdtest.out
620# diff $(srcdir)/cdtest.exp cdtest-ur.out
621#
622#.PHONY: check-cdtest
623
624# END OF CHECK TARGETS
625
626# DOCUMENTATION TARGETS
627# Manual configuration file; not usually attached to normal configuration,
628# because almost all configs use "gen" version of manual.
629# Set DOCVER above to change.
630configdoc.texi: ${DOCVER}-doc.texi
631 ln -s ${srcdir}/${DOCVER}-doc.texi ./configdoc.texi >/dev/null 2>&1 \
632 || ln ${srcdir}/${DOCVER}-doc.texi ./configdoc.texi >/dev/null 2>&1 \
633 || cp ${srcdir}/${DOCVER}-doc.texi ./configdoc.texi
634
0c0b16f9
DE
635ld.info: $(srcdir)/ld.texinfo configdoc.texi bfdsumm.texi
636ld.dvi: $(srcdir)/ld.texinfo configdoc.texi bfdsumm.texi
637
638# We want to include a file from the BFD documentation. automake
639# doesn't give us a way to set the include directories for makeinfo,
640# so we just create a file locally to include it.
641bfdsumm.texi: Makefile
642 echo @include $(BFDDIR)/doc/bfdsumm.texi > bfdsumm.texi
49c009b5
ILT
643
644MOSTCLEANFILES = $(STAGESTUFF) ld1$(EXEEXT) ld2$(EXEEXT) ld3$(EXEEXT) \
645 ldemul-list.h tmpdir crtbegin.o crtend.o
0c0b16f9 646CLEANFILES = dep.sed .dep .dep1 bfdsumm.texi
49c009b5
ILT
647DISTCLEANFILES = ldscripts
648
649.PHONY: install-exec-local install-data-local
650
651install-exec-local: ld-new$(EXEEXT)
652 $(mkinstalldirs) $(bindir) $(tooldir)/bin
653 @list='$(noinst_PROGRAMS)'; for p in $$list; do \
654 if test -f $$p; then \
655 echo " $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(bindir)/`echo $$p|sed -e 's/-new//'|sed '$(transform)'`"; \
656 $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(bindir)/`echo $$p|sed -e 's/-new//'|sed '$(transform)'`; \
657 else :; fi; \
658 done
659 rm -f $(tooldir)/bin/ld$(EXEEXT)
660 n=`echo ld | sed '$(transform)'`; \
661 ln $(bindir)/$$n$(EXEEXT) $(tooldir)/bin/ld$(EXEEXT) >/dev/null 2>/dev/null \
662 || $(INSTALL_PROGRAM) ld-new$(EXEEXT) $(tooldir)/bin/ld$(EXEEXT)
663
664install-data-local:
665 $(mkinstalldirs) $(scriptdir)
666 for f in ldscripts/*; do \
667 $(INSTALL_DATA) $$f $(scriptdir)/$$f ; \
668 done
669
670# Targets to rebuild dependencies in this Makefile.
671# Have to get rid of .dep1 here so that "$?" later includes all of $(CFILES).
672.dep: dep.sed $(CFILES) $(HFILES) $(GENERATED_CFILES) $(GENERATED_HFILES) config.h
673 rm -f .dep1
674 $(MAKE) DEP=$(DEP) .dep1
675 sed -f dep.sed <.dep1 >.dep
676
677# This rule really wants a mkdep that runs "gcc -MM".
678.dep1: $(CFILES) $(GENERATED_CFILES)
679 rm -f .dep2
680 echo '# DO NOT DELETE THIS LINE -- mkdep uses it.' > .dep2
681 $(DEP) -f .dep2 $(INCLUDES) $?
682 $(srcdir)/../move-if-change .dep2 .dep1
683
684dep.sed: dep-in.sed config.status
685 sed <$(srcdir)/dep-in.sed >dep.sed \
686 -e 's!@INCDIR@!$(INCDIR)!' \
687 -e 's!@SRCDIR@!$(srcdir)!'
688
689dep: .dep
690 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < Makefile > tmp-Makefile
691 cat .dep >> tmp-Makefile
692 $(srcdir)/../move-if-change tmp-Makefile Makefile
693
694dep-in: .dep
695 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.in > tmp-Makefile.in
696 cat .dep >> tmp-Makefile.in
697 $(srcdir)/../move-if-change tmp-Makefile.in $(srcdir)/Makefile.in
698
699dep-am: .dep
700 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.am > tmp-Makefile.am
701 cat .dep >> tmp-Makefile.am
702 $(srcdir)/../move-if-change tmp-Makefile.am $(srcdir)/Makefile.am
703
704.PHONY: dep dep-in dep-am
705
706# What appears below is generated by a hacked mkdep using gcc -MM.
707
708# DO NOT DELETE THIS LINE -- mkdep uses it.
709# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
710
711ldctor.o: ldctor.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
712 sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/bfdlink.h \
713 ld.h ldexp.h ldlang.h ldmisc.h ldgram.h ldmain.h ldctor.h
714ldemul.o: ldemul.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
715 sysdep.h config.h $(INCDIR)/fopen-same.h ld.h ldemul.h \
716 ldmisc.h ldexp.h ldlang.h ldfile.h ldmain.h ldemul-list.h
717ldexp.o: ldexp.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
718 sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/bfdlink.h \
719 ld.h ldmain.h ldmisc.h ldexp.h ldgram.h ldlang.h
720ldfile.o: ldfile.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
721 sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/bfdlink.h \
722 ld.h ldmisc.h ldexp.h ldlang.h ldfile.h ldmain.h ldgram.h \
723 ldlex.h ldemul.h
724ldlang.o: ldlang.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
725 sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h \
726 $(INCDIR)/obstack.h $(INCDIR)/bfdlink.h ld.h ldmain.h \
727 ldgram.h ldexp.h ldlang.h ldemul.h ldlex.h ldmisc.h \
728 ldctor.h ldfile.h $(INCDIR)/fnmatch.h
729ldmain.o: ldmain.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
730 sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h \
731 $(INCDIR)/progress.h $(INCDIR)/bfdlink.h ld.h ldmain.h \
732 ldmisc.h ldwrite.h ldgram.h ldexp.h ldlang.h ldemul.h \
733 ldlex.h ldfile.h ldctor.h
734ldmisc.o: ldmisc.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
735 sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h \
736 $(INCDIR)/demangle.h ld.h ldmisc.h ldexp.h ldlang.h \
737 ldgram.h ldlex.h ldmain.h ldfile.h
738ldver.o: ldver.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
739 sysdep.h config.h $(INCDIR)/fopen-same.h ld.h ldver.h \
740 ldemul.h ldmain.h
741ldwrite.o: ldwrite.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
742 sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/bfdlink.h \
743 $(INCDIR)/libiberty.h ld.h ldexp.h ldlang.h ldwrite.h \
744 ldmisc.h ldgram.h ldmain.h
745lexsup.o: lexsup.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
746 sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h \
747 $(INCDIR)/getopt.h $(INCDIR)/bfdlink.h ld.h ldmain.h \
748 ldmisc.h ldexp.h ldlang.h ldgram.h ldlex.h ldfile.h \
749 ldver.h ldemul.h
750mri.o: mri.c ../bfd/bfd.h $(INCDIR)/ansidecl.h sysdep.h \
751 config.h $(INCDIR)/fopen-same.h ld.h ldexp.h ldlang.h \
752 ldmisc.h mri.h ldgram.h $(INCDIR)/libiberty.h
753ldcref.o: ldcref.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
754 sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/bfdlink.h \
755 $(INCDIR)/libiberty.h ld.h ldmain.h ldmisc.h ldexp.h \
756 ldlang.h
757ldgram.o: ldgram.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
758 sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/bfdlink.h \
759 ld.h ldexp.h ldver.h ldlang.h ldemul.h ldfile.h ldmisc.h \
760 ldmain.h mri.h ldlex.h
761ldlex.o: ldlex.c ../bfd/bfd.h sysdep.h config.h $(INCDIR)/fopen-same.h \
762 ld.h ldgram.h ldmisc.h ldexp.h ldlang.h ldfile.h ldlex.h \
763 ldmain.h
764
765# IF YOU PUT ANYTHING HERE IT WILL GO AWAY