Contribute sh64-elf.
[deliverable/binutils-gdb.git] / ld / Makefile.am
1 ## Process this file with automake to generate Makefile.in
2
3 ## FIXME: work around apparent automake bug.
4 INTLLIBS = @INTLLIBS@
5
6 AUTOMAKE_OPTIONS = cygnus dejagnu
7
8 SUBDIRS = po
9
10 tooldir = $(exec_prefix)/$(target_alias)
11
12 YACC = `if [ -f ../bison/bison ]; then echo ../bison/bison -y -L$(srcdir)/../bison/; else echo @YACC@; fi`
13 YFLAGS = -d
14 LEX = `if [ -f ../flex/flex ]; then echo ../flex/flex; else echo @LEX@; fi`
15
16 WARN_CFLAGS = @WARN_CFLAGS@
17 AM_CFLAGS = $(WARN_CFLAGS)
18
19 # We put the scripts in the directory $(scriptdir)/ldscripts.
20 # We can't put the scripts in $(datadir) because the SEARCH_DIR
21 # directives need to be different for native and cross linkers.
22 scriptdir = $(tooldir)/lib
23
24 EMUL = @EMUL@
25 EMULATION_OFILES = @EMULATION_OFILES@
26 EMUL_EXTRA_OFILES = @EMUL_EXTRA_OFILES@
27
28 # Search path to override the default search path for -lfoo libraries.
29 # If LIB_PATH is empty, the ones in the script (if any) are left alone.
30 # (The default is usually /lib:/usr/lib:/usr/local/lib, unless building
31 # a cross-linker, in which case the default is empty. See genscripts.sh.)
32 # Otherwise, they are replaced with the ones given in LIB_PATH,
33 # which may have the form: LIB_PATH=/lib:/usr/local/lib
34 LIB_PATH =
35
36 BASEDIR = $(srcdir)/..
37 BFDDIR = $(BASEDIR)/bfd
38 INCDIR = $(BASEDIR)/include
39 MKDEP = gcc -MM
40
41 # What version of the manual to build
42 DOCVER = gen
43
44 # Options to extract the man page from ld.texinfo
45 MANCONF = -Dman
46
47 TEXI2POD = perl $(BASEDIR)/etc/texi2pod.pl
48
49 POD2MAN = pod2man --center="GNU Development Tools" \
50 --release="binutils-$(VERSION)" --section=1
51
52 #stuff for self hosting (can be overridden in config file).
53 HOSTING_CRT0 = @HOSTING_CRT0@
54 HOSTING_LIBS = @HOSTING_LIBS@
55 HOSTING_EMU = -m $(EMUL)
56
57 # Setup the testing framework, if you have one
58 EXPECT = `if [ -f $$r/../expect/expect ] ; \
59 then echo $$r/../expect/expect ; \
60 else echo expect ; fi`
61
62 RUNTEST = `if [ -f $${srcroot}/../dejagnu/runtest ] ; \
63 then echo $${srcroot}/../dejagnu/runtest ; \
64 else echo runtest ; fi`
65
66 RUNTESTFLAGS =
67
68 CC_FOR_TARGET = ` \
69 if [ -f $$r/../gcc/xgcc ] ; then \
70 if [ -f $$r/../newlib/Makefile ] ; then \
71 echo $$r/../gcc/xgcc -B$$r/../gcc/ -idirafter $$r/../newlib/targ-include -idirafter $${srcroot}/../newlib/libc/include -nostdinc; \
72 else \
73 echo $$r/../gcc/xgcc -B$$r/../gcc/; \
74 fi; \
75 else \
76 if [ "@host@" = "@target@" ] ; then \
77 echo $(CC); \
78 else \
79 echo gcc | sed '$(transform)'; \
80 fi; \
81 fi`
82
83 CXX = gcc
84 CXX_FOR_TARGET = ` \
85 if [ -f $$r/../gcc/xgcc ] ; then \
86 if [ -f $$r/../newlib/Makefile ] ; then \
87 echo $$r/../gcc/xgcc -B$$r/../gcc/ -idirafter $$r/../newlib/targ-include -idirafter $${srcroot}/../newlib/libc/include -nostdinc; \
88 else \
89 echo $$r/../gcc/xgcc -B$$r/../gcc/; \
90 fi; \
91 else \
92 if [ "@host@" = "@target@" ] ; then \
93 echo $(CXX); \
94 else \
95 echo gcc | sed '$(transform)'; \
96 fi; \
97 fi`
98
99 noinst_PROGRAMS = ld-new
100 info_TEXINFOS = ld.texinfo
101 noinst_TEXINFOS = ldint.texinfo
102 man_MANS = ld.1
103
104 INCLUDES = -D_GNU_SOURCE -I. -I$(srcdir) -I../bfd -I$(BFDDIR) -I$(INCDIR) -I$(top_srcdir)/../intl -I../intl $(HDEFINES) $(CFLAGS) -DLOCALEDIR="\"$(prefix)/share/locale\""
105
106 BFDLIB = ../bfd/libbfd.la
107 LIBIBERTY = ../libiberty/libiberty.a
108
109 ALL_EMULATIONS = \
110 ea29k.o \
111 eaixppc.o \
112 eaixrs6.o \
113 ealpha.o \
114 earcelf.o \
115 earm_epoc_pe.o \
116 earmaoutb.o \
117 earmaoutl.o \
118 earmcoff.o \
119 earmelf.o \
120 earmelf_linux.o \
121 earmelf_nbsd.o \
122 earmelf_oabi.o \
123 earmnbsd.o \
124 earmpe.o \
125 eavr1200.o \
126 eavr23xx.o \
127 eavr4433.o \
128 eavr44x4.o \
129 eavr85xx.o \
130 eavrmega103.o \
131 eavrmega161.o \
132 eavrmega603.o \
133 ecoff_sparc.o \
134 ecrisaout.o \
135 ecriself.o \
136 ecrislinux.o \
137 ed10velf.o \
138 ed30v_e.o \
139 ed30v_o.o \
140 ed30velf.o \
141 edelta68.o \
142 eebmon29k.o \
143 eelf32_i960.o \
144 eelf32_i860.o \
145 eelf32_sparc.o \
146 eelf32b4300.o \
147 eelf32bmip.o \
148 eelf32bmipn32.o \
149 eelf32btsmip.o \
150 eelf32ltsmip.o \
151 eelf32ebmip.o \
152 eelf32elmip.o \
153 eelf32fr30.o \
154 eelf32i370.o \
155 eelf32l4300.o \
156 eelf32lmip.o \
157 eelf32lppc.o \
158 eelf32lppcsim.o \
159 eelf32mcore.o \
160 eelf32openrisc.o \
161 eelf32ppc.o \
162 eelf32ppclinux.o \
163 eelf32ppcsim.o \
164 eelf32xstormy16.o \
165 eelf_i386.o \
166 eelf_i386_be.o \
167 eelf_i386_chaos.o \
168 eelf_i386_ldso.o \
169 eelf_s390.o \
170 egld960.o \
171 egld960coff.o \
172 eh8300.o \
173 eh8300h.o \
174 eh8300s.o \
175 eh8300elf.o \
176 eh8300helf.o \
177 eh8300self.o \
178 eh8500.o \
179 eh8500b.o \
180 eh8500c.o \
181 eh8500m.o \
182 eh8500s.o \
183 ehp300bsd.o \
184 ehp3hpux.o \
185 ehppaelf.o \
186 ehppalinux.o \
187 ehppanbsd.o \
188 ei386aout.o \
189 ei386beos.o \
190 ei386bsd.o \
191 ei386coff.o \
192 ei386go32.o \
193 ei386linux.o \
194 ei386lynx.o \
195 ei386mach.o \
196 ei386moss.o \
197 ei386msdos.o \
198 ei386nbsd.o \
199 ei386nw.o \
200 ei386pe.o \
201 ei386pe_posix.o \
202 elnk960.o \
203 em68hc11elf.o \
204 em68hc11elfb.o \
205 em68hc12elf.o \
206 em68hc12elfb.o \
207 em68k4knbsd.o \
208 em68kaout.o \
209 em68kaux.o \
210 em68kcoff.o \
211 em68kelf.o \
212 em68kelfnbsd.o \
213 em68klinux.o \
214 em68klynx.o \
215 em68knbsd.o \
216 em68kpsos.o \
217 em88kbcs.o \
218 emcorepe.o \
219 emipsbig.o \
220 emipsbsd.o \
221 emipsidt.o \
222 emipsidtl.o \
223 emipslit.o \
224 emipslnews.o \
225 emipspe.o \
226 enews.o \
227 ens32knbsd.o \
228 eor32.o \
229 eor32elf.o \
230 epc532macha.o \
231 epdp11.o \
232 epjelf.o \
233 epjlelf.o \
234 eppcmacos.o \
235 eppcnw.o \
236 eppcpe.o \
237 eriscix.o \
238 esa29200.o \
239 esh.o \
240 eshelf32.o \
241 eshlelf32.o \
242 eshelf.o \
243 eshelf_linux.o \
244 eshlelf_linux.o \
245 eshelf_nbsd.o \
246 eshlelf_nbsd.o \
247 eshl.o \
248 eshlelf.o \
249 eshpe.o \
250 esparcaout.o \
251 esparclinux.o \
252 esparclynx.o \
253 esparcnbsd.o \
254 est2000.o \
255 esun3.o \
256 esun4.o \
257 etic30aout.o \
258 etic30coff.o \
259 etic54xcoff.o \
260 etic80coff.o \
261 evanilla.o \
262 evax.o \
263 evsta.o \
264 ew65.o \
265 ez8001.o \
266 ez8002.o
267
268 ALL_64_EMULATIONS = \
269 eelf64_aix.o \
270 eelf64_ia64.o \
271 eshelf64.o \
272 eshlelf64.o \
273 eelf_x86_64.o \
274 eelf64_s390.o \
275 eelf64_sparc.o \
276 eelf64alpha.o \
277 eelf64alpha_nbsd.o \
278 eelf64bmip.o \
279 eelf64btsmip.o \
280 eelf64ltsmip.o \
281 eelf64hppa.o \
282 eelf64mmix.o \
283 emmo.o \
284 eelf64ppc.o \
285 eelf64lppc.o \
286 ehppa64linux.o
287
288 ALL_EMUL_EXTRA_OFILES = \
289 deffilep.o \
290 pe-dll.o
291
292 CFILES = ldctor.c ldemul.c ldexp.c ldfile.c ldlang.c \
293 ldmain.c ldmisc.c ldver.c ldwrite.c lexsup.c \
294 mri.c ldcref.c pe-dll.c
295
296 HFILES = ld.h ldctor.h ldemul.h ldexp.h ldfile.h \
297 ldlang.h ldlex.h ldmain.h ldmisc.h ldver.h \
298 ldwrite.h mri.h deffile.h pe-dll.h
299
300 GENERATED_CFILES = ldgram.c ldlex.c deffilep.c
301 GENERATED_HFILES = ldgram.h ldemul-list.h deffilep.h
302
303 OFILES = ldgram.o ldlex.o lexsup.o ldlang.o mri.o ldctor.o ldmain.o \
304 ldwrite.o ldexp.o ldemul.o ldver.o ldmisc.o \
305 ldfile.o ldcref.o ${EMULATION_OFILES} ${EMUL_EXTRA_OFILES}
306
307 STAGESTUFF = *.o ldscripts/* e*.c
308
309 # At the moment this is just a list of those emulation template files
310 # that contain internationalised strings.
311 EMULATION_FILES = emultempl/pe.em emultempl/armcoff.em
312
313 POTFILES = $(CFILES) $(HFILES) $(EMULATION_FILES)
314
315 po/POTFILES.in: @MAINT@ Makefile
316 for file in $(POTFILES); do echo $$file; done | sort > tmp \
317 && mv tmp $(srcdir)/po/POTFILES.in
318
319 ldmain.o: ldmain.c config.status
320 $(COMPILE) -c -DDEFAULT_EMULATION='"$(EMUL)"' -DSCRIPTDIR='"$(scriptdir)"' -DTARGET='"@target@"' $(srcdir)/ldmain.c
321
322 ldemul-list.h: Makefile
323 (echo "/* This file is automatically generated. DO NOT EDIT! */";\
324 for f in `echo " " ${EMULATION_OFILES} "" \
325 | sed -e 's/ e/ ld/g' -e 's/ ld/ /g' -e 's/[.]o//g'`; do \
326 echo "extern ld_emulation_xfer_type ld_$${f}_emulation;"; \
327 done;\
328 echo "";\
329 echo "#define EMULATION_LIST \\";\
330 for f in `echo " " ${EMULATION_OFILES} "" \
331 | sed -e 's/ e/ ld/g' -e 's/ ld/ /g' -e 's/[.]o//g'`; do \
332 echo " &ld_$${f}_emulation, \\"; \
333 done;\
334 echo " 0") >ldemul-tmp.h
335 mv ldemul-tmp.h ldemul-list.h
336
337 stringify.sed: ${srcdir}/emultempl/$(STRINGIFY)
338 cp ${srcdir}/emultempl/$(STRINGIFY) stringify.sed
339
340 # These all start with e so 'make clean' can find them.
341
342 GENSCRIPTS = $(SHELL) $(srcdir)/genscripts.sh ${srcdir} ${libdir} "${exec_prefix}" @host@ @target@ @target_alias@ "@EMULATION_LIBPATH@" "@NATIVE_LIB_DIRS@"
343 GEN_DEPENDS = $(srcdir)/genscripts.sh stringify.sed
344 @TDIRS@
345
346 ea29k.c: $(srcdir)/emulparams/a29k.sh \
347 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/a29k.sc ${GEN_DEPENDS}
348 ${GENSCRIPTS} a29k "$(tdir_a29k)"
349 eaixppc.c: $(srcdir)/emulparams/aixppc.sh \
350 $(srcdir)/emultempl/aix.em $(srcdir)/scripttempl/aix.sc ${GEN_DEPENDS}
351 ${GENSCRIPTS} aixppc "$(tdir_aixppc)"
352 eaixrs6.c: $(srcdir)/emulparams/aixrs6.sh \
353 $(srcdir)/emultempl/aix.em $(srcdir)/scripttempl/aix.sc ${GEN_DEPENDS}
354 ${GENSCRIPTS} aixrs6 "$(tdir_aixrs6)"
355 ealpha.c: $(srcdir)/emulparams/alpha.sh \
356 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/alpha.sc ${GEN_DEPENDS}
357 ${GENSCRIPTS} alpha "$(tdir_alpha)"
358 earcelf.c: $(srcdir)/emulparams/arcelf.sh \
359 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
360 ${GENSCRIPTS} arcelf "$(tdir_arcelf)"
361 earmelf.c: $(srcdir)/emulparams/armelf.sh \
362 $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/armelf.em \
363 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
364 ${GENSCRIPTS} armelf "$(tdir_armelf)"
365 earmelf_oabi.c: $(srcdir)/emulparams/armelf_oabi.sh \
366 $(srcdir)/emultempl/armelf_oabi.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
367 ${GENSCRIPTS} armelf_oabi "$(tdir_armelf)"
368 earmelf_linux.c: $(srcdir)/emulparams/armelf_linux.sh \
369 $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/armelf.em \
370 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
371 ${GENSCRIPTS} armelf_linux "$(tdir_armelf_linux)"
372 earmelf_nbsd.c: $(srcdir)/emulparams/armelf_nbsd.sh \
373 $(srcdir)/emulparams/armelf.sh \
374 $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/armelf.em \
375 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
376 ${GENSCRIPTS} armelf_nbsd "$(tdir_armelf_nbsd)"
377 earmaoutb.c: $(srcdir)/emulparams/armaoutb.sh \
378 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/armaout.sc ${GEN_DEPENDS}
379 ${GENSCRIPTS} armaoutb "$(tdir_armaoutb)"
380 earmaoutl.c: $(srcdir)/emulparams/armaoutl.sh \
381 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/armaout.sc ${GEN_DEPENDS}
382 ${GENSCRIPTS} armaoutl "$(tdir_armaoutl)"
383 earmcoff.c: $(srcdir)/emulparams/armcoff.sh \
384 $(srcdir)/emultempl/armcoff.em $(srcdir)/scripttempl/armcoff.sc ${GEN_DEPENDS}
385 ${GENSCRIPTS} armcoff "$(tdir_armcoff)"
386 earmnbsd.c: $(srcdir)/emulparams/armnbsd.sh \
387 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
388 ${GENSCRIPTS} armnbsd "$(tdir_armnbsd)"
389 earm_epoc_pe.c: $(srcdir)/emulparams/arm_epoc_pe.sh \
390 $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/epocpe.sc ${GEN_DEPENDS}
391 ${GENSCRIPTS} arm_epoc_pe "$(tdir_armpe)"
392 earmpe.c: $(srcdir)/emulparams/armpe.sh \
393 $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS}
394 ${GENSCRIPTS} armpe "$(tdir_armpe)"
395 eavr85xx.c: $(srcdir)/emulparams/avr85xx.sh \
396 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32avr.sc \
397 ${GEN_DEPENDS}
398 ${GENSCRIPTS} avr85xx "$(tdir_avr85xx)"
399 eavr1200.c: $(srcdir)/emulparams/avr1200.sh \
400 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32avr.sc \
401 ${GEN_DEPENDS}
402 ${GENSCRIPTS} avr1200 "$(tdir_avr85xx)"
403 eavr23xx.c: $(srcdir)/emulparams/avr23xx.sh \
404 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32avr.sc \
405 ${GEN_DEPENDS}
406 ${GENSCRIPTS} avr23xx "$(tdir_avr85xx)"
407 eavr44x4.c: $(srcdir)/emulparams/avr44x4.sh \
408 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32avr.sc \
409 ${GEN_DEPENDS}
410 ${GENSCRIPTS} avr44x4 "$(tdir_avr85xx)"
411 eavr4433.c: $(srcdir)/emulparams/avr4433.sh \
412 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32avr.sc \
413 ${GEN_DEPENDS}
414 ${GENSCRIPTS} avr4433 "$(tdir_avr85xx)"
415 eavrmega603.c: $(srcdir)/emulparams/avrmega603.sh \
416 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32avr.sc \
417 ${GEN_DEPENDS}
418 ${GENSCRIPTS} avrmega603 "$(tdir_avr85xx)"
419 eavrmega103.c: $(srcdir)/emulparams/avrmega103.sh \
420 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32avr.sc \
421 ${GEN_DEPENDS}
422 ${GENSCRIPTS} avrmega103 "$(tdir_avr85xx)"
423 eavrmega161.c: $(srcdir)/emulparams/avrmega161.sh \
424 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32avr.sc \
425 ${GEN_DEPENDS}
426 ${GENSCRIPTS} avrmega161 "$(tdir_avr85xx)"
427 ecoff_sparc.c: $(srcdir)/emulparams/coff_sparc.sh \
428 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sparccoff.sc ${GEN_DEPENDS}
429 ${GENSCRIPTS} coff_sparc "$(tdir_coff_sparc)"
430 ecrisaout.c: $(srcdir)/emulparams/crisaout.sh \
431 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/crisaout.sc ${GEN_DEPENDS}
432 ${GENSCRIPTS} crisaout "$(tdir_cris)"
433 ecriself.c: $(srcdir)/emulparams/criself.sh \
434 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
435 ${GENSCRIPTS} criself "$(tdir_cris)"
436 ecrislinux.c: $(srcdir)/emulparams/crislinux.sh \
437 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
438 ${GENSCRIPTS} crislinux "$(tdir_cris)"
439 ed10velf.c: $(srcdir)/emulparams/d10velf.sh \
440 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elfd10v.sc ${GEN_DEPENDS}
441 ${GENSCRIPTS} d10velf "$(tdir_d10v)"
442 ed30velf.c: $(srcdir)/emulparams/d30velf.sh \
443 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elfd30v.sc ${GEN_DEPENDS}
444 ${GENSCRIPTS} d30velf "$(tdir_d30v)"
445 ed30v_o.c: $(srcdir)/emulparams/d30v_o.sh \
446 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elfd30v.sc ${GEN_DEPENDS}
447 ${GENSCRIPTS} d30v_o "$(tdir_d30v)"
448 ed30v_e.c: $(srcdir)/emulparams/d30v_e.sh \
449 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elfd30v.sc ${GEN_DEPENDS}
450 ${GENSCRIPTS} d30v_e "$(tdir_d30v)"
451 edelta68.c: $(srcdir)/emulparams/delta68.sh \
452 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/delta68.sc ${GEN_DEPENDS}
453 ${GENSCRIPTS} delta68 "$(tdir_delta68)"
454 eebmon29k.c: $(srcdir)/emulparams/ebmon29k.sh \
455 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/ebmon29k.sc ${GEN_DEPENDS}
456 ${GENSCRIPTS} ebmon29k "$(tdir_ebmon29k)"
457 eelf32xstormy16.c: $(srcdir)/emulparams/elf32xstormy16.sh \
458 $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/needrelax.em \
459 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
460 ${GENSCRIPTS} elf32xstormy16 "$(tdir_xstormy16)"
461 eelf32fr30.c: $(srcdir)/emulparams/elf32fr30.sh \
462 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
463 ${GENSCRIPTS} elf32fr30 "$(tdir_fr30)"
464 eelf32mcore.c: $(srcdir)/emulparams/elf32mcore.sh \
465 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
466 ${GENSCRIPTS} elf32mcore "$(tdir_mcore)"
467 em32relf.c: $(srcdir)/emulparams/m32relf.sh \
468 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
469 ${GENSCRIPTS} m32relf "$(tdir_m32r)"
470 eelf32_sparc.c: $(srcdir)/emulparams/elf32_sparc.sh \
471 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
472 ${GENSCRIPTS} elf32_sparc "$(tdir_elf32_sparc)"
473 eelf32_i860.c: $(srcdir)/emulparams/elf32_i860.sh \
474 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
475 ${GENSCRIPTS} elf32_i860 "$(tdir_elf32_i860)"
476 eelf32_i960.c: $(srcdir)/emulparams/elf32_i960.sh \
477 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
478 ${GENSCRIPTS} elf32_i960 "$(tdir_elf32_i960)"
479 eelf32b4300.c: $(srcdir)/emulparams/elf32b4300.sh \
480 $(srcdir)/emulparams/elf32bmip.sh \
481 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
482 ${GENSCRIPTS} elf32b4300 "$(tdir_elf32b4300)"
483 eelf32bmip.c: $(srcdir)/emulparams/elf32bmip.sh \
484 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
485 ${GENSCRIPTS} elf32bmip "$(tdir_elf32bmip)"
486 eelf32bsmip.c: $(srcdir)/emulparams/elf32bsmip.sh \
487 $(srcdir)/emulparams/elf32bmip.sh \
488 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
489 ${GENSCRIPTS} elf32bsmip "$(tdir_elf32bsmip)"
490 eelf32btsmip.c: $(srcdir)/emulparams/elf32btsmip.sh \
491 $(srcdir)/emulparams/elf32bmip.sh \
492 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
493 ${GENSCRIPTS} elf32btsmip "$(tdir_elf32btsmip)"
494 eelf32ltsmip.c: $(srcdir)/emulparams/elf32ltsmip.sh \
495 $(srcdir)/emulparams/elf32btsmip.sh $(srcdir)/emulparams/elf32bmip.sh \
496 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
497 ${GENSCRIPTS} elf32ltsmip "$(tdir_elf32ltsmip)"
498 eelf32ebmip.c: $(srcdir)/emulparams/elf32ebmip.sh \
499 $(srcdir)/emulparams/elf32bmip.sh \
500 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
501 ${GENSCRIPTS} elf32ebmip "$(tdir_elf32ebmip)"
502 eelf32elmip.c: $(srcdir)/emulparams/elf32elmip.sh \
503 $(srcdir)/emulparams/elf32lmip.sh $(srcdir)/emulparams/elf32bmip.sh \
504 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
505 ${GENSCRIPTS} elf32elmip "$(tdir_elf32elmip)"
506 eelf32bmipn32.c: $(srcdir)/emulparams/elf32bmipn32.sh \
507 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
508 ${GENSCRIPTS} elf32bmipn32 "$(tdir_elf32bmipn32)"
509 eelf32l4300.c: $(srcdir)/emulparams/elf32l4300.sh \
510 $(srcdir)/emulparams/elf32b4300.sh $(srcdir)/emulparams/elf32bmip.sh \
511 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
512 ${GENSCRIPTS} elf32l4300 "$(tdir_elf32l4300)"
513 eelf32lmip.c: $(srcdir)/emulparams/elf32lmip.sh \
514 $(srcdir)/emulparams/elf32bmip.sh \
515 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
516 ${GENSCRIPTS} elf32lmip "$(tdir_elf32lmip)"
517 eelf32lppc.c: $(srcdir)/emulparams/elf32lppc.sh \
518 $(srcdir)/emulparams/elf32ppc.sh \
519 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
520 ${GENSCRIPTS} elf32lppc "$(tdir_elf32lppc)"
521 eelf32lppcsim.c: $(srcdir)/emulparams/elf32lppcsim.sh \
522 $(srcdir)/emulparams/elf32lppc.sh $(srcdir)/emulparams/elf32ppc.sh \
523 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
524 ${GENSCRIPTS} elf32lppcsim "$(tdir_elf32lppcsim)"
525 eelf32lsmip.c: $(srcdir)/emulparams/elf32lsmip.sh \
526 $(srcdir)/emulparams/elf32lmip.sh $(srcdir)/emulparams/elf32bmip.sh \
527 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
528 ${GENSCRIPTS} elf32lsmip "$(tdir_elf32lsmip)"
529 eelf32openrisc.c: $(srcdir)/emulparams/elf32openrisc.sh \
530 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
531 ${GENSCRIPTS} elf32openrisc "$(tdir_openrisc)"
532 eelf32ppc.c: $(srcdir)/emulparams/elf32ppc.sh \
533 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
534 ${GENSCRIPTS} elf32ppc "$(tdir_elf32ppc)"
535 eelf32ppcsim.c: $(srcdir)/emulparams/elf32ppcsim.sh \
536 $(srcdir)/emulparams/elf32ppc.sh \
537 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
538 ${GENSCRIPTS} elf32ppcsim "$(tdir_elf32ppcsim)"
539 eelf32ppclinux.c: $(srcdir)/emulparams/elf32ppclinux.sh \
540 $(srcdir)/emulparams/elf32ppc.sh \
541 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
542 ${GENSCRIPTS} elf32ppclinux "$(tdir_elf32ppclinux)"
543 eelf64ppc.c: $(srcdir)/emulparams/elf64ppc.sh $(srcdir)/emultempl/ppc64elf.em \
544 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
545 ${GENSCRIPTS} elf64ppc "$(tdir_elf64ppc)"
546 eelf64lppc.c: $(srcdir)/emulparams/elf64lppc.sh \
547 $(srcdir)/emulparams/elf64ppc.sh $(srcdir)/emultempl/ppc64elf.em \
548 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
549 ${GENSCRIPTS} elf64lppc "$(tdir_elf64lppc)"
550 eelf32i370.c: $(srcdir)/emulparams/elf32i370.sh \
551 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elfi370.sc ${GEN_DEPENDS}
552 ${GENSCRIPTS} elf32i370 "$(tdir_elf32i370)"
553 eelf64alpha.c: $(srcdir)/emulparams/elf64alpha.sh \
554 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
555 ${GENSCRIPTS} elf64alpha "$(tdir_elf64alpha)"
556 eelf64alpha_nbsd.c: $(srcdir)/emulparams/elf64alpha_nbsd.sh \
557 $(srcdir)/emulparams/elf64alpha.sh \
558 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
559 ${GENSCRIPTS} elf64alpha_nbsd "$(tdir_elf64alpha_nbsd)"
560 eelf64hppa.c: $(srcdir)/emulparams/elf64hppa.sh \
561 $(srcdir)/emulparams/hppa64linux.sh \
562 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
563 ${GENSCRIPTS} elf64hppa "$(tdir_elf64hppa)"
564 eelf64_aix.c: $(srcdir)/emulparams/elf64_aix.sh \
565 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
566 ${GENSCRIPTS} elf64_aix "$(tdir_elf64_aix)"
567 eelf64_ia64.c: $(srcdir)/emulparams/elf64_ia64.sh \
568 $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/needrelax.em \
569 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
570 ${GENSCRIPTS} elf64_ia64 "$(tdir_elf64_ia64)"
571 eelf64_s390.c: $(srcdir)/emulparams/elf64_s390.sh \
572 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
573 ${GENSCRIPTS} elf64_s390 "$(tdir_elf64_s390)"
574 eelf64_sparc.c: $(srcdir)/emulparams/elf64_sparc.sh \
575 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
576 ${GENSCRIPTS} elf64_sparc "$(tdir_elf64_sparc)"
577 eelf64bmip.c: $(srcdir)/emulparams/elf64bmip.sh \
578 $(srcdir)/emulparams/elf32bmipn32.sh \
579 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
580 ${GENSCRIPTS} elf64bmip "$(tdir_elf64bmip)"
581 eelf64mmix.c: $(srcdir)/emulparams/elf64mmix.sh \
582 $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/mmix-elfnmmo.em \
583 $(srcdir)/emultempl/mmixelf.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
584 ${GENSCRIPTS} elf64mmix "$(tdir_elf64mmix)"
585 emmo.c: $(srcdir)/emulparams/mmo.sh $(srcdir)/emultempl/mmix-elfnmmo.em \
586 $(srcdir)/emultempl/generic.em $(srcdir)/emultempl/mmo.em \
587 $(srcdir)/scripttempl/mmo.sc ${GEN_DEPENDS}
588 ${GENSCRIPTS} mmo "$(tdir_mmo)"
589 eelf64btsmip.c: $(srcdir)/emulparams/elf64btsmip.sh \
590 $(srcdir)/emulparams/elf32bmipn32.sh \
591 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
592 ${GENSCRIPTS} elf64btsmip "$(tdir_elf64btsmip)"
593 eelf64ltsmip.c: $(srcdir)/emulparams/elf64ltsmip.sh \
594 $(srcdir)/emulparams/elf64btsmip.sh $(srcdir)/emulparams/elf32bmipn32.sh \
595 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
596 ${GENSCRIPTS} elf64ltsmip "$(tdir_elf64ltsmip)"
597 eelf_i386.c: $(srcdir)/emulparams/elf_i386.sh \
598 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
599 ${GENSCRIPTS} elf_i386 "$(tdir_elf_i386)"
600 eelf_x86_64.c: $(srcdir)/emulparams/elf_x86_64.sh \
601 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
602 ${GENSCRIPTS} elf_x86_64 "$(tdir_elf_x86_64)"
603 eelf_i386_be.c: $(srcdir)/emulparams/elf_i386_be.sh \
604 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
605 ${GENSCRIPTS} elf_i386_be "$(tdir_elf_i386_be)"
606 eelf_i386_chaos.c: $(srcdir)/emulparams/elf_i386_chaos.sh \
607 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
608 ${GENSCRIPTS} elf_i386_chaos "$(tdir_elf_i386_chaos)"
609 eelf_i386_ldso.c: $(srcdir)/emulparams/elf_i386_ldso.sh \
610 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
611 ${GENSCRIPTS} elf_i386_ldso "$(tdir_elf_i386_ldso)"
612 eelf_s390.c: $(srcdir)/emulparams/elf_s390.sh \
613 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
614 ${GENSCRIPTS} elf_s390 "$(tdir_elf_s390)"
615 egld960.c: $(srcdir)/emulparams/gld960.sh \
616 $(srcdir)/emultempl/gld960.em $(srcdir)/scripttempl/i960.sc ${GEN_DEPENDS}
617 ${GENSCRIPTS} gld960 "$(tdir_gld960)"
618 egld960coff.c: $(srcdir)/emulparams/gld960coff.sh \
619 $(srcdir)/emultempl/gld960c.em $(srcdir)/scripttempl/i960.sc ${GEN_DEPENDS}
620 ${GENSCRIPTS} gld960coff "$(tdir_gld960coff)"
621 eh8300.c: $(srcdir)/emulparams/h8300.sh \
622 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300.sc ${GEN_DEPENDS}
623 ${GENSCRIPTS} h8300 "$(tdir_h8300)"
624 eh8300h.c: $(srcdir)/emulparams/h8300h.sh \
625 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300h.sc ${GEN_DEPENDS}
626 ${GENSCRIPTS} h8300h "$(tdir_h8300h)"
627 eh8300s.c: $(srcdir)/emulparams/h8300s.sh \
628 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300s.sc ${GEN_DEPENDS}
629 ${GENSCRIPTS} h8300s "$(tdir_h8300s)"
630 eh8300elf.c: $(srcdir)/emulparams/h8300elf.sh \
631 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
632 ${GENSCRIPTS} h8300elf "$(tdir_h8300elf)"
633 eh8300helf.c: $(srcdir)/emulparams/h8300helf.sh \
634 $(srcdir)/emulparams/h8300elf.sh \
635 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
636 ${GENSCRIPTS} h8300helf "$(tdir_h8300helf)"
637 eh8300self.c: $(srcdir)/emulparams/h8300self.sh \
638 $(srcdir)/emulparams/h8300elf.sh \
639 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
640 ${GENSCRIPTS} h8300self "$(tdir_h8300self)"
641 eh8500.c: $(srcdir)/emulparams/h8500.sh \
642 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500.sc ${GEN_DEPENDS}
643 ${GENSCRIPTS} h8500 "$(tdir_h8500)"
644 eh8500b.c: $(srcdir)/emulparams/h8500b.sh \
645 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500b.sc ${GEN_DEPENDS}
646 ${GENSCRIPTS} h8500b "$(tdir_h8500b)"
647 eh8500c.c: $(srcdir)/emulparams/h8500c.sh \
648 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500c.sc ${GEN_DEPENDS}
649 ${GENSCRIPTS} h8500c "$(tdir_h8500c)"
650 eh8500m.c: $(srcdir)/emulparams/h8500m.sh \
651 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500m.sc ${GEN_DEPENDS}
652 ${GENSCRIPTS} h8500m "$(tdir_h8500m)"
653 eh8500s.c: $(srcdir)/emulparams/h8500s.sh \
654 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500s.sc ${GEN_DEPENDS}
655 ${GENSCRIPTS} h8500s "$(tdir_h8500s)"
656 ehp300bsd.c: $(srcdir)/emulparams/hp300bsd.sh \
657 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
658 ${GENSCRIPTS} hp300bsd "$(tdir_hp300bsd)"
659 ehp3hpux.c: $(srcdir)/emulparams/hp3hpux.sh \
660 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
661 ${GENSCRIPTS} hp3hpux "$(tdir_hp3hpux)"
662 ehppaelf.c: $(srcdir)/emulparams/hppaelf.sh \
663 $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/hppaelf.em \
664 $(srcdir)/scripttempl/hppaelf.sc ${GEN_DEPENDS}
665 ${GENSCRIPTS} hppaelf "$(tdir_hppaelf)"
666 ehppalinux.c: $(srcdir)/emulparams/hppalinux.sh \
667 $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/hppaelf.em \
668 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
669 ${GENSCRIPTS} hppalinux "$(tdir_hppalinux)"
670 ehppanbsd.c: $(srcdir)/emulparams/hppanbsd.sh \
671 $(srcdir)/emulparams/hppaelf.sh \
672 $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/hppaelf.em \
673 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
674 ${GENSCRIPTS} hppanbsd "$(tdir_hppanbsd)"
675 ehppa64linux.c: $(srcdir)/emulparams/hppa64linux.sh \
676 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
677 ${GENSCRIPTS} hppa64linux "$(tdir_hppa64linux)"
678 ei386aout.c: $(srcdir)/emulparams/i386aout.sh \
679 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
680 ${GENSCRIPTS} i386aout "$(tdir_i386aout)"
681 ei386beos.c: $(srcdir)/emulparams/i386beos.sh \
682 $(srcdir)/emultempl/beos.em $(srcdir)/scripttempl/i386beos.sc ${GEN_DEPENDS}
683 ${GENSCRIPTS} i386beos "$(tdir_i386beos)"
684 ei386bsd.c: $(srcdir)/emulparams/i386bsd.sh \
685 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
686 ${GENSCRIPTS} i386bsd "$(tdir_i386bsd)"
687 ei386coff.c: $(srcdir)/emulparams/i386coff.sh \
688 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386coff.sc ${GEN_DEPENDS}
689 ${GENSCRIPTS} i386coff "$(tdir_i386coff)"
690 ei386go32.c: $(srcdir)/emulparams/i386go32.sh \
691 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386go32.sc ${GEN_DEPENDS}
692 ${GENSCRIPTS} i386go32 "$(tdir_i386go32)"
693 ei386linux.c: $(srcdir)/emulparams/i386linux.sh \
694 $(srcdir)/emultempl/linux.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
695 ${GENSCRIPTS} i386linux "$(tdir_i386linux)"
696 ei386lynx.c: $(srcdir)/emulparams/i386lynx.sh \
697 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386lynx.sc ${GEN_DEPENDS}
698 ${GENSCRIPTS} i386lynx "$(tdir_i386lynx)"
699 ei386mach.c: $(srcdir)/emulparams/i386mach.sh \
700 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
701 ${GENSCRIPTS} i386mach "$(tdir_i386mach)"
702 ei386moss.c: $(srcdir)/emulparams/i386moss.sh \
703 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
704 ${GENSCRIPTS} i386moss "$(tdir_i386moss)"
705 ei386msdos.c: $(srcdir)/emulparams/i386msdos.sh \
706 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386msdos.sc ${GEN_DEPENDS}
707 ${GENSCRIPTS} i386msdos "$(tdir_i386msdos)"
708 ei386nbsd.c: $(srcdir)/emulparams/i386nbsd.sh \
709 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
710 ${GENSCRIPTS} i386nbsd "$(tdir_i386nbsd)"
711 ei386nw.c: $(srcdir)/emulparams/i386nw.sh \
712 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/nw.sc ${GEN_DEPENDS}
713 ${GENSCRIPTS} i386nw "$(tdir_i386nw)"
714 ei386pe.c: $(srcdir)/emulparams/i386pe.sh \
715 $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS}
716 ${GENSCRIPTS} i386pe "$(tdir_i386pe)"
717 ei386pe_posix.c: $(srcdir)/emulparams/i386pe_posix.sh \
718 $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS}
719 ${GENSCRIPTS} i386pe_posix "$(tdir_i386pe_posix)"
720 elnk960.c: $(srcdir)/emulparams/lnk960.sh \
721 $(srcdir)/emultempl/lnk960.em $(srcdir)/scripttempl/i960.sc ${GEN_DEPENDS}
722 ${GENSCRIPTS} lnk960 "$(tdir_lnk960)"
723 em68hc11elf.c: $(srcdir)/emulparams/m68hc11elf.sh \
724 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elfm68hc11.sc ${GEN_DEPENDS}
725 ${GENSCRIPTS} m68hc11elf "$(tdir_m68hc11)"
726 em68hc11elfb.c: $(srcdir)/emulparams/m68hc11elfb.sh \
727 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elfm68hc11.sc ${GEN_DEPENDS}
728 ${GENSCRIPTS} m68hc11elfb "$(tdir_m68hc11b)"
729 em68hc12elf.c: $(srcdir)/emulparams/m68hc12elf.sh \
730 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elfm68hc12.sc ${GEN_DEPENDS}
731 ${GENSCRIPTS} m68hc12elf "$(tdir_m68hc12)"
732 em68hc12elfb.c: $(srcdir)/emulparams/m68hc12elfb.sh \
733 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elfm68hc12.sc ${GEN_DEPENDS}
734 ${GENSCRIPTS} m68hc12elfb "$(tdir_m68hc12b)"
735 em68k4knbsd.c: $(srcdir)/emulparams/m68k4knbsd.sh \
736 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
737 ${GENSCRIPTS} m68k4knbsd "$(tdir_m68k4knbsd)"
738 em68kaout.c: $(srcdir)/emulparams/m68kaout.sh \
739 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
740 ${GENSCRIPTS} m68kaout "$(tdir_m68kaout)"
741 em68kaux.c: $(srcdir)/emulparams/m68kaux.sh \
742 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/m68kaux.sc ${GEN_DEPENDS}
743 ${GENSCRIPTS} m68kaux "$(tdir_m68kaux)"
744 em68kcoff.c: $(srcdir)/emulparams/m68kcoff.sh \
745 $(srcdir)/emultempl/m68kcoff.em $(srcdir)/scripttempl/m68kcoff.sc ${GEN_DEPENDS}
746 ${GENSCRIPTS} m68kcoff "$(tdir_m68kcoff)"
747 em68kelf.c: $(srcdir)/emulparams/m68kelf.sh \
748 $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/m68kelf.em \
749 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
750 ${GENSCRIPTS} m68kelf "$(tdir_m68kelf)"
751 em68kelfnbsd.c: $(srcdir)/emulparams/m68kelfnbsd.sh \
752 $(srcdir)/emulparams/m68kelf.sh \
753 $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/m68kelf.em \
754 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
755 ${GENSCRIPTS} m68kelfnbsd "$(tdir_m68kelfnbsd)"
756 em68klinux.c: $(srcdir)/emulparams/m68klinux.sh \
757 $(srcdir)/emultempl/linux.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
758 ${GENSCRIPTS} m68klinux "$(tdir_m68klinux)"
759 em68klynx.c: $(srcdir)/emulparams/m68klynx.sh \
760 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/m68klynx.sc ${GEN_DEPENDS}
761 ${GENSCRIPTS} m68klynx "$(tdir_m68klynx)"
762 em68knbsd.c: $(srcdir)/emulparams/m68knbsd.sh \
763 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
764 ${GENSCRIPTS} m68knbsd "$(tdir_m68knbsd)"
765 em68kpsos.c: $(srcdir)/emulparams/m68kpsos.sh \
766 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/psos.sc ${GEN_DEPENDS}
767 ${GENSCRIPTS} m68kpsos "$(tdir_m68kpsos)"
768 em88kbcs.c: $(srcdir)/emulparams/m88kbcs.sh \
769 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/m88kbcs.sc ${GEN_DEPENDS}
770 ${GENSCRIPTS} m88kbcs "$(tdir_m88kbcs)"
771 emcorepe.c: $(srcdir)/emulparams/mcorepe.sh \
772 $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS}
773 ${GENSCRIPTS} mcorepe "$(tdir_mcorepe)"
774 emipsbig.c: $(srcdir)/emulparams/mipsbig.sh \
775 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
776 ${GENSCRIPTS} mipsbig
777 emipsbsd.c: $(srcdir)/emulparams/mipsbsd.sh \
778 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mipsbsd.sc ${GEN_DEPENDS}
779 ${GENSCRIPTS} mipsbsd
780 emipsidt.c: $(srcdir)/emulparams/mipsidt.sh \
781 $(srcdir)/emultempl/mipsecoff.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
782 ${GENSCRIPTS} mipsidt "$(tdir_mipsidt)"
783 emipsidtl.c: $(srcdir)/emulparams/mipsidtl.sh \
784 $(srcdir)/emultempl/mipsecoff.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
785 ${GENSCRIPTS} mipsidtl "$(tdir_mipsidtl)"
786 emipslit.c: $(srcdir)/emulparams/mipslit.sh \
787 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
788 ${GENSCRIPTS} mipslit "$(tdir_mipslit)"
789 emipslnews.c: $(srcdir)/emulparams/mipslnews.sh \
790 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
791 ${GENSCRIPTS} mipslnews
792 emipspe.c: $(srcdir)/emulparams/mipspe.sh \
793 $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS}
794 ${GENSCRIPTS} mipspe "$(tdir_mips)"
795 emn10300.c: $(srcdir)/emulparams/mn10300.sh \
796 $(srcdir)/emulparams/mn10200.sh \
797 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
798 ${GENSCRIPTS} mn10300 "$(tdir_mn10300)"
799 emn10200.c: $(srcdir)/emulparams/mn10200.sh \
800 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
801 ${GENSCRIPTS} mn10200 "$(tdir_mn10200)"
802 enews.c: $(srcdir)/emulparams/news.sh \
803 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
804 ${GENSCRIPTS} news "$(tdir_news)"
805 ens32knbsd.c: $(srcdir)/emulparams/ns32knbsd.sh \
806 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
807 ${GENSCRIPTS} ns32knbsd "$(tdir_ns32knbsd)"
808 eor32.c: $(srcdir)/emulparams/or32.sh \
809 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/or32.sc ${GEN_DEPENDS}
810 ${GENSCRIPTS} or32 "$(tdir_or32)"
811 eor32elf.c: $(srcdir)/emulparams/or32elf.sh \
812 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
813 ${GENSCRIPTS} or32elf "$(tdir_or32elf)"
814 epc532macha.c: $(srcdir)/emulparams/pc532macha.sh \
815 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
816 ${GENSCRIPTS} pc532macha "$(tdir_pc532macha)"
817 epdp11.c: $(srcdir)/emulparams/pdp11.sh \
818 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
819 ${GENSCRIPTS} pdp11 "$(tdir_pdp11)"
820 epjelf.c: $(srcdir)/emulparams/pjelf.sh \
821 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
822 ${GENSCRIPTS} pjelf "$(tdir_pjelf)"
823 epjlelf.c: $(srcdir)/emulparams/pjlelf.sh \
824 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
825 ${GENSCRIPTS} pjlelf "$(tdir_pjlelf)"
826 eppcmacos.c: $(srcdir)/emulparams/ppcmacos.sh \
827 $(srcdir)/emultempl/aix.em $(srcdir)/scripttempl/aix.sc ${GEN_DEPENDS}
828 ${GENSCRIPTS} ppcmacos "$(tdir_ppcmacos)"
829 eppcnw.c: $(srcdir)/emulparams/ppcnw.sh \
830 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/nw.sc ${GEN_DEPENDS}
831 ${GENSCRIPTS} ppcnw "$(tdir_ppcnw)"
832 eppcpe.c: $(srcdir)/emulparams/ppcpe.sh \
833 $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/ppcpe.sc ${GEN_DEPENDS}
834 ${GENSCRIPTS} ppcpe "$(tdir_ppcpe)"
835 eriscix.c: $(srcdir)/emulparams/riscix.sh \
836 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
837 ${GENSCRIPTS} riscix "$(tdir_riscix)"
838 esa29200.c: $(srcdir)/emulparams/sa29200.sh \
839 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sa29200.sc ${GEN_DEPENDS}
840 ${GENSCRIPTS} sa29200 "$(tdir_sa29200)"
841 esh.c: $(srcdir)/emulparams/sh.sh \
842 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sh.sc ${GEN_DEPENDS}
843 ${GENSCRIPTS} sh "$(tdir_sh)"
844 eshelf.c: $(srcdir)/emulparams/shelf.sh \
845 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
846 ${GENSCRIPTS} shelf "$(tdir_shelf)"
847 eshelf32.c: $(srcdir)/emulparams/shelf32.sh \
848 $(BFDDIR)/libbfd.h $(INCDIR)/libiberty.h \
849 $(srcdir)/emultempl/sh64elf.em $(INCDIR)/elf/sh.h $(BFDDIR)/elf-bfd.h \
850 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
851 ${GENSCRIPTS} shelf32 "$(tdir_shelf32)"
852 eshelf64.c: $(srcdir)/emulparams/shelf64.sh $(srcdir)/emulparams/shelf32.sh \
853 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
854 ${GENSCRIPTS} shelf64 "$(tdir_shelf64)"
855 eshelf_linux.c: $(srcdir)/emulparams/shelf_linux.sh \
856 $(srcdir)/emulparams/shlelf_linux.sh \
857 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
858 ${GENSCRIPTS} shelf_linux "$(tdir_shelf_linux)"
859 eshlelf_linux.c: $(srcdir)/emulparams/shlelf_linux.sh \
860 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
861 ${GENSCRIPTS} shlelf_linux "$(tdir_shlelf_linux)"
862 eshelf_nbsd.c: $(srcdir)/emulparams/shelf_nbsd.sh \
863 $(srcdir)/emulparams/shelf.sh \
864 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
865 ${GENSCRIPTS} shelf_nbsd "$(tdir_shelf_nbsd)"
866 eshlelf_nbsd.c: $(srcdir)/emulparams/shlelf_nbsd.sh \
867 $(srcdir)/emulparams/shelf_nbsd.sh \
868 $(srcdir)/emulparams/shelf.sh \
869 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
870 ${GENSCRIPTS} shlelf_nbsd "$(tdir_shlelf_nbsd)"
871 eshlelf.c: $(srcdir)/emulparams/shlelf.sh \
872 $(srcdir)/emulparams/shelf.sh \
873 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
874 ${GENSCRIPTS} shlelf "$(tdir_shlelf)"
875 eshlelf32.c: $(srcdir)/emulparams/shlelf32.sh \
876 $(BFDDIR)/libbfd.h $(INCDIR)/libiberty.h $(srcdir)/emulparams/shelf32.sh \
877 $(srcdir)/emultempl/sh64elf.em $(INCDIR)/elf/sh.h $(BFDDIR)/elf-bfd.h \
878 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
879 ${GENSCRIPTS} shlelf32 "$(tdir_shlelf32)"
880 eshlelf64.c: $(srcdir)/emulparams/shlelf64.sh \
881 $(srcdir)/emulparams/shelf64.sh $(srcdir)/emulparams/shelf32.sh \
882 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
883 ${GENSCRIPTS} shlelf64 "$(tdir_shlelf64)"
884 eshl.c: $(srcdir)/emulparams/shl.sh \
885 $(srcdir)/emulparams/sh.sh \
886 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sh.sc ${GEN_DEPENDS}
887 ${GENSCRIPTS} shl "$(tdir_shl)"
888 eshpe.c: $(srcdir)/emulparams/shpe.sh \
889 $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS}
890 ${GENSCRIPTS} shpe "$(tdir_shl)"
891 esparcaout.c: $(srcdir)/emulparams/sparcaout.sh \
892 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
893 ${GENSCRIPTS} sparcaout "$(tdir_sparcaout)"
894 esparclinux.c: $(srcdir)/emulparams/sparclinux.sh \
895 $(srcdir)/emultempl/linux.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
896 ${GENSCRIPTS} sparclinux "$(tdir_sparclinux)"
897 esparclynx.c: $(srcdir)/emulparams/sparclynx.sh \
898 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sparclynx.sc ${GEN_DEPENDS}
899 ${GENSCRIPTS} sparclynx "$(tdir_sparclynx)"
900 esparcnbsd.c: $(srcdir)/emulparams/sparcnbsd.sh \
901 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
902 ${GENSCRIPTS} sparcnbsd "$(tdir_sparcnbsd)"
903 est2000.c: $(srcdir)/emulparams/st2000.sh \
904 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/st2000.sc ${GEN_DEPENDS}
905 ${GENSCRIPTS} st2000 "$(tdir_st2000)"
906 esun3.c: $(srcdir)/emulparams/sun3.sh \
907 $(srcdir)/emultempl/sunos.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
908 ${GENSCRIPTS} sun3 "$(tdir_sun3)"
909 esun4.c: $(srcdir)/emulparams/sun4.sh \
910 $(srcdir)/emultempl/sunos.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
911 ${GENSCRIPTS} sun4 "$(tdir_sun4)"
912 etic30aout.c: $(srcdir)/emulparams/tic30aout.sh \
913 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/tic30aout.sc ${GEN_DEPENDS}
914 ${GENSCRIPTS} tic30aout "$(tdir_tic30aout)"
915 etic30coff.c: $(srcdir)/emulparams/tic30coff.sh \
916 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/tic30coff.sc ${GEN_DEPENDS}
917 ${GENSCRIPTS} tic30coff "$(tdir_tic30coff)"
918 etic54xcoff.c: $(srcdir)/emulparams/tic54xcoff.sh \
919 $(srcdir)/emultempl/ticoff.em $(srcdir)/scripttempl/tic54xcoff.sc ${GEN_DEPENDS}
920 ${GENSCRIPTS} tic54xcoff "$(tdir_tic54xcoff)"
921 etic80coff.c: $(srcdir)/emulparams/tic80coff.sh \
922 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/tic80coff.sc ${GEN_DEPENDS}
923 ${GENSCRIPTS} tic80coff "$(tdir_tic80coff)"
924 evanilla.c: $(srcdir)/emulparams/vanilla.sh \
925 $(srcdir)/emultempl/vanilla.em $(srcdir)/scripttempl/vanilla.sc ${GEN_DEPENDS}
926 ${GENSCRIPTS} vanilla "$(tdir_vanilla)"
927 evax.c: $(srcdir)/emulparams/vax.sh \
928 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
929 ${GENSCRIPTS} vax "$(tdir_vax)"
930 evsta.c: $(srcdir)/emulparams/vsta.sh \
931 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
932 ${GENSCRIPTS} vsta "$(tdir_vsta)"
933 ev850.c: $(srcdir)/emulparams/v850.sh \
934 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/v850.sc ${GEN_DEPENDS}
935 ${GENSCRIPTS} v850 "$(tdir_v850)"
936 ew65.c: $(srcdir)/emulparams/w65.sh \
937 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/w65.sc ${GEN_DEPENDS}
938 ${GENSCRIPTS} w65 "$(tdir_w65)"
939 ez8001.c: $(srcdir)/emulparams/z8001.sh \
940 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/z8000.sc ${GEN_DEPENDS}
941 ${GENSCRIPTS} z8001 "$(tdir_z8001)"
942 ez8002.c: $(srcdir)/emulparams/z8002.sh \
943 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/z8000.sc ${GEN_DEPENDS}
944 ${GENSCRIPTS} z8002 "$(tdir_z8002)"
945
946 # We need this for automake to use YLWRAP.
947 EXTRA_ld_new_SOURCES = deffilep.y
948
949 ld_new_SOURCES = ldgram.y ldlex.l lexsup.c ldlang.c mri.c ldctor.c ldmain.c \
950 ldwrite.c ldexp.c ldemul.c ldver.c ldmisc.c ldfile.c ldcref.c
951 ld_new_DEPENDENCIES = $(EMULATION_OFILES) $(EMUL_EXTRA_OFILES) $(BFDLIB) $(LIBIBERTY) $(INTLDEPS)
952 ld_new_LDADD = $(EMULATION_OFILES) $(EMUL_EXTRA_OFILES) $(BFDLIB) $(LIBIBERTY) $(INTLLIBS)
953
954 # The generated emulation files mostly have the same dependencies.
955 $(EMULATION_OFILES): ../bfd/bfd.h sysdep.h config.h $(INCDIR)/bfdlink.h \
956 ld.h ldmain.h ldemul.h ldfile.h ldmisc.h ldexp.h ldlang.h \
957 ldctor.h ldexp.h ldlang.h ldgram.h
958
959 # This is the real libbfd.a created by libtool.
960 TESTBFDLIB = @TESTBFDLIB@
961
962 check-DEJAGNU: site.exp
963 srcroot=`cd $(srcdir) && pwd`; export srcroot; \
964 r=`pwd`; export r; \
965 LC_COLLATE=; LC_ALL=; LANG=; export LC_COLLATE LC_ALL LANG; \
966 EXPECT=$(EXPECT); export EXPECT; \
967 if [ -f $(top_builddir)/../expect/expect ]; then \
968 TCL_LIBRARY=`cd $(top_srcdir)/../tcl/library && pwd`; \
969 export TCL_LIBRARY; \
970 fi; \
971 runtest=$(RUNTEST); \
972 if $(SHELL) -c "$$runtest --version" > /dev/null 2>&1; then \
973 $$runtest --tool $(DEJATOOL) --srcdir $${srcroot}/testsuite \
974 CC="$(CC_FOR_TARGET)" CFLAGS="$(CFLAGS)" \
975 CXX="$(CXX_FOR_TARGET)" CXXFLAGS="$(CXXFLAGS)" \
976 CC_FOR_HOST="$(CC)" CFLAGS_FOR_HOST="$(CFLAGS)" \
977 OFILES="$(OFILES)" BFDLIB="$(TESTBFDLIB)" \
978 LIBIBERTY="$(LIBIBERTY) $(INTLLIBS)" LIBS="$(LIBS)" \
979 $(RUNTESTFLAGS); \
980 else echo "WARNING: could not find \`runtest'" 1>&2; :;\
981 fi
982
983 # Rules for testing by relinking ld itself.
984 # A similar test is in the testsuite. This target is for ease of use
985 # when porting ld.
986
987 ld-partial.o: ld-new$(EXEEXT)
988 ./ld-new$(EXEEXT) $(HOSTING_EMU) -o ld-partial.o -r $(OFILES)
989 ld1$(EXEEXT): ld-partial.o
990 ./ld-new$(EXEEXT) $(HOSTING_EMU) -o ld1$(EXEEXT) $(HOSTING_CRT0) ld-partial.o $(TESTBFDLIB) $(LIBIBERTY) $(HOSTING_LIBS) $(LIBS)
991
992 ld1-full$(EXEEXT): ld-new
993 ./ld-new$(EXEEXT) $(HOSTING_EMU) -o ld1-full$(EXEEXT) $(HOSTING_CRT0) $(OFILES) $(TESTBFDLIB) $(LIBIBERTY) $(HOSTING_LIBS) $(LIBS)
994
995 ld2$(EXEEXT): ld1$(EXEEXT)
996 ./ld1$(EXEEXT) $(HOSTING_EMU) -o ld2$(EXEEXT) $(HOSTING_CRT0) $(OFILES) $(TESTBFDLIB) $(LIBIBERTY) $(HOSTING_LIBS) $(LIBS)
997
998 ld3$(EXEEXT): ld2$(EXEEXT)
999 ./ld2$(EXEEXT) $(HOSTING_EMU) -o ld3$(EXEEXT) $(HOSTING_CRT0) $(OFILES) $(TESTBFDLIB) $(LIBIBERTY) $(HOSTING_LIBS) $(LIBS)
1000
1001 bootstrap: ld3$(EXEEXT)
1002 cmp ld2$(EXEEXT) ld3$(EXEEXT)
1003
1004 .PHONY: bootstrap
1005
1006 # A test program for C++ constructors and destructors.
1007 # This test is now in the testsuite.
1008 #
1009 #cdtest: cdtest-main.o cdtest-bar.o cdtest-foo.o ld.new
1010 # ./ld.new $(HOSTING_EMU) -o cdtest $(HOSTING_CRT0) \
1011 # cdtest-main.o cdtest-bar.o cdtest-foo.o $(HOSTING_LIBS)
1012 #
1013 #cdtest.out: cdtest
1014 # ./cdtest > cdtest.tmp
1015 # mv cdtest.tmp cdtest.out
1016 #
1017 #cdtest-ur.o: cdtest-main.o cdtest-bar.o cdtest-foo.o ld.new
1018 # ./ld.new $(HOSTING_EMU) -o cdtest-ur.o -Ur cdtest-main.o \
1019 # cdtest-bar.o cdtest-foo.o
1020 #
1021 #cdtest-ur: cdtest-ur.o
1022 # ./ld.new $(HOSTING_EMU) -o cdtest-ur $(HOSTING_CRT0) cdtest-ur.o \
1023 # $(HOSTING_LIBS)
1024 #
1025 #cdtest-ur.out: cdtest-ur
1026 # ./cdtest-ur > cdtest-ur.tmp
1027 # mv cdtest-ur.tmp cdtest-ur.out
1028 #
1029 #check-cdtest: cdtest.out cdtest-ur.out $(srcdir)/cdtest.exp
1030 # diff $(srcdir)/cdtest.exp cdtest.out
1031 # diff $(srcdir)/cdtest.exp cdtest-ur.out
1032 #
1033 #.PHONY: check-cdtest
1034
1035 # END OF CHECK TARGETS
1036
1037 # DOCUMENTATION TARGETS
1038 # Manual configuration file; not usually attached to normal configuration,
1039 # because almost all configs use "gen" version of manual.
1040 # Set DOCVER above to change.
1041 configdoc.texi: ${DOCVER}-doc.texi
1042 ln -s ${srcdir}/${DOCVER}-doc.texi ./configdoc.texi >/dev/null 2>&1 \
1043 || ln ${srcdir}/${DOCVER}-doc.texi ./configdoc.texi >/dev/null 2>&1 \
1044 || cp ${srcdir}/${DOCVER}-doc.texi ./configdoc.texi
1045
1046 ldver.texi: Makefile
1047 rm -f $@
1048 echo '@set VERSION $(VERSION)' > $@
1049
1050 ld.info: $(srcdir)/ld.texinfo configdoc.texi ldver.texi
1051 @rm -f $@ $@-[0-9] $@-[0-9][0-9]
1052 $(MAKEINFO) -I $(srcdir) -I $(BFDDIR)/doc $(srcdir)/ld.texinfo
1053
1054 ld.dvi: $(srcdir)/ld.texinfo configdoc.texi ldver.texi
1055 TEXINPUTS=$(top_srcdir)/../texinfo:$$TEXINPUTS \
1056 MAKEINFO="$(MAKEINFO) -I $(srcdir) -I $(BFDDIR)/doc" $(TEXI2DVI) -I $(BFDDIR)/doc $(srcdir)/ld.texinfo
1057
1058 # Build the man page from the texinfo file
1059 # The sed command removes the no-adjust Nroff command so that
1060 # the man output looks standard.
1061 ld.1: $(srcdir)/ld.texinfo
1062 touch $@
1063 -$(TEXI2POD) $(MANCONF) < $(srcdir)/ld.texinfo > ld.pod
1064 -($(POD2MAN) ld.pod | \
1065 sed -e '/^.if n .na/d' > $@.T$$$$ && \
1066 mv -f $@.T$$$$ $@) || \
1067 (rm -f $@.T$$$$ && exit 1)
1068 rm -f ld.pod
1069
1070 MAINTAINERCLEANFILES = ldver.texi
1071
1072 # We want to reconfigure if configure.host or configure.tgt changes.
1073 CONFIG_STATUS_DEPENDENCIES = $(srcdir)/configure.host $(srcdir)/configure.tgt
1074
1075 MOSTLYCLEANFILES = $(STAGESTUFF) ld1$(EXEEXT) ld2$(EXEEXT) ld3$(EXEEXT) \
1076 ldemul-list.h crtbegin.o crtend.o ld.log ld.sum
1077 mostlyclean-local:
1078 -rm -rf tmpdir
1079 CLEANFILES = dep.sed DEP DEPA DEP1 DEP2
1080
1081 .PHONY: install-exec-local install-data-local
1082
1083 install-exec-local: ld-new$(EXEEXT)
1084 $(mkinstalldirs) $(bindir) $(tooldir)/bin
1085 @list='$(noinst_PROGRAMS)'; for p in $$list; do \
1086 if test -f $$p; then \
1087 echo " $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(bindir)/`echo $$p|sed -e 's/$(EXEEXT)$$//' -e 's/-new//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \
1088 $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(bindir)/`echo $$p|sed -e 's/$(EXEEXT)$$//' -e 's/-new//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
1089 else :; fi; \
1090 done
1091 n=`echo ld | sed '$(transform)'`; \
1092 if [ "$(bindir)/$$n$(EXEEXT)" != "$(tooldir)/bin/ld$(EXEEXT)" ]; then \
1093 rm -f $(tooldir)/bin/ld$(EXEEXT); \
1094 ln $(bindir)/$$n$(EXEEXT) $(tooldir)/bin/ld$(EXEEXT) >/dev/null 2>/dev/null \
1095 || $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) ld-new$(EXEEXT) $(tooldir)/bin/ld$(EXEEXT); \
1096 fi
1097
1098 install-data-local:
1099 $(mkinstalldirs) $(scriptdir)/ldscripts
1100 for f in ldscripts/*; do \
1101 $(INSTALL_DATA) $$f $(scriptdir)/$$f ; \
1102 done
1103
1104 # We want install to imply install-info as per GNU standards, despite the
1105 # cygnus option.
1106 install: install-info
1107
1108 # Stuff that should be included in a distribution. The diststuff
1109 # target is run by the taz target in ../Makefile.in.
1110 EXTRA_DIST = ldgram.c ldgram.h ldlex.c $(man_MANS)
1111 diststuff: info $(EXTRA_DIST)
1112
1113 DISTCLEANFILES = tdirs site.exp site.bak stringify.sed
1114 distclean-local:
1115 rm -rf ldscripts
1116
1117 Makefile: $(BFDDIR)/configure.in
1118
1119 # Targets to rebuild dependencies in this Makefile.
1120 # Have to get rid of DEP1 here so that "$?" later includes all of $(CFILES).
1121 DEP: dep.sed $(CFILES) $(HFILES) $(GENERATED_CFILES) $(GENERATED_HFILES) config.h
1122 rm -f DEP1
1123 $(MAKE) MKDEP="$(MKDEP)" DEP1
1124 sed -f dep.sed < DEP1 > DEPA
1125 echo '# IF YOU PUT ANYTHING HERE IT WILL GO AWAY' >> DEPA
1126 if grep ' /' DEPA > /dev/null 2> /dev/null; then \
1127 echo 'make DEP failed!'; exit 1; \
1128 else \
1129 mv -f DEPA $@; \
1130 fi
1131
1132 DEP1: $(CFILES) $(GENERATED_CFILES)
1133 echo '# DO NOT DELETE THIS LINE -- mkdep uses it.' > DEP2
1134 echo '# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.' >> DEP2
1135 $(MKDEP) $(INCLUDES) $(CFLAGS) $? >> DEP2
1136 mv -f DEP2 $@
1137
1138 dep.sed: dep-in.sed config.status
1139 sed <$(srcdir)/dep-in.sed >dep.sed \
1140 -e 's!@INCDIR@!$(INCDIR)!' \
1141 -e 's!@SRCDIR@!$(srcdir)!'
1142
1143 dep: DEP
1144 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < Makefile > tmp-Makefile
1145 cat DEP >> tmp-Makefile
1146 $(srcdir)/../move-if-change tmp-Makefile Makefile
1147
1148 dep-in: DEP
1149 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.in > tmp-Makefile.in
1150 cat DEP >> tmp-Makefile.in
1151 $(srcdir)/../move-if-change tmp-Makefile.in $(srcdir)/Makefile.in
1152
1153 dep-am: DEP
1154 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.am > tmp-Makefile.am
1155 cat DEP >> tmp-Makefile.am
1156 $(srcdir)/../move-if-change tmp-Makefile.am $(srcdir)/Makefile.am
1157
1158 .PHONY: dep dep-in dep-am
1159
1160 # What appears below is generated by a hacked mkdep using gcc -MM.
1161
1162 # DO NOT DELETE THIS LINE -- mkdep uses it.
1163 # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
1164 ldctor.o: ldctor.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1165 $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
1166 $(INCDIR)/bfdlink.h $(INCDIR)/safe-ctype.h ld.h $(INCDIR)/bin-bugs.h \
1167 ldexp.h ldlang.h ldmisc.h ldgram.h ldmain.h ldctor.h
1168 ldemul.o: ldemul.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1169 $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
1170 ld.h $(INCDIR)/bin-bugs.h ldmisc.h ldexp.h ldlang.h \
1171 ldfile.h ldemul.h ldmain.h ldemul-list.h
1172 ldexp.o: ldexp.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1173 $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
1174 $(INCDIR)/bfdlink.h ld.h $(INCDIR)/bin-bugs.h ldmain.h \
1175 ldmisc.h ldexp.h ldgram.h ldlang.h $(INCDIR)/libiberty.h
1176 ldfile.o: ldfile.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1177 $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
1178 $(INCDIR)/bfdlink.h $(INCDIR)/safe-ctype.h ld.h $(INCDIR)/bin-bugs.h \
1179 ldmisc.h ldexp.h ldlang.h ldfile.h ldmain.h ldgram.h \
1180 ldlex.h ldemul.h $(INCDIR)/libiberty.h
1181 ldlang.o: ldlang.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1182 $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
1183 $(INCDIR)/libiberty.h $(INCDIR)/safe-ctype.h $(INCDIR)/obstack.h \
1184 $(INCDIR)/bfdlink.h ld.h $(INCDIR)/bin-bugs.h ldmain.h \
1185 ldgram.h ldexp.h ldlang.h ldlex.h ldmisc.h ldctor.h \
1186 ldfile.h ldemul.h $(INCDIR)/fnmatch.h $(INCDIR)/demangle.h
1187 ldmain.o: ldmain.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1188 $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
1189 $(INCDIR)/safe-ctype.h $(INCDIR)/libiberty.h $(INCDIR)/progress.h \
1190 $(INCDIR)/bfdlink.h $(INCDIR)/filenames.h ld.h $(INCDIR)/bin-bugs.h \
1191 ldmain.h ldmisc.h ldwrite.h ldgram.h ldexp.h ldlang.h \
1192 ldlex.h ldfile.h ldemul.h ldctor.h
1193 ldmisc.o: ldmisc.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1194 $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
1195 $(INCDIR)/libiberty.h $(INCDIR)/demangle.h ld.h $(INCDIR)/bin-bugs.h \
1196 ldmisc.h ldexp.h ldlang.h ldgram.h ldlex.h ldmain.h \
1197 ldfile.h
1198 ldver.o: ldver.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1199 $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
1200 ld.h $(INCDIR)/bin-bugs.h ldver.h ldexp.h ldlang.h \
1201 ldfile.h ldemul.h ldmain.h
1202 ldwrite.o: ldwrite.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1203 $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
1204 $(INCDIR)/bfdlink.h $(INCDIR)/libiberty.h ld.h $(INCDIR)/bin-bugs.h \
1205 ldexp.h ldlang.h ldwrite.h ldmisc.h ldgram.h ldmain.h
1206 lexsup.o: lexsup.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1207 $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
1208 $(INCDIR)/libiberty.h $(INCDIR)/safe-ctype.h $(INCDIR)/bfdlink.h \
1209 ld.h $(INCDIR)/bin-bugs.h ldmain.h ldmisc.h ldexp.h \
1210 ldlang.h ldgram.h ldlex.h ldfile.h ldver.h ldemul.h \
1211 $(INCDIR)/demangle.h
1212 mri.o: mri.c ../bfd/bfd.h $(INCDIR)/ansidecl.h $(INCDIR)/symcat.h \
1213 sysdep.h config.h $(INCDIR)/fopen-same.h ld.h $(INCDIR)/bin-bugs.h \
1214 ldexp.h ldlang.h ldmisc.h mri.h ldgram.h $(INCDIR)/libiberty.h
1215 ldcref.o: ldcref.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1216 $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
1217 $(INCDIR)/bfdlink.h $(INCDIR)/libiberty.h ld.h $(INCDIR)/bin-bugs.h \
1218 ldmain.h ldmisc.h ldexp.h ldlang.h
1219 pe-dll.o: pe-dll.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1220 $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
1221 $(INCDIR)/bfdlink.h $(INCDIR)/libiberty.h $(INCDIR)/safe-ctype.h \
1222 ld.h $(INCDIR)/bin-bugs.h ldexp.h ldlang.h ldwrite.h \
1223 ldmisc.h ldgram.h ldmain.h ldfile.h ldemul.h $(INCDIR)/coff/internal.h \
1224 ../bfd/libcoff.h deffile.h pe-dll.h
1225 ldgram.o: ldgram.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1226 $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
1227 $(INCDIR)/bfdlink.h ld.h $(INCDIR)/bin-bugs.h ldexp.h \
1228 ldver.h ldlang.h ldfile.h ldemul.h ldmisc.h ldmain.h \
1229 mri.h ldctor.h ldlex.h
1230 ldlex.o: ldlex.c ../bfd/bfd.h $(INCDIR)/symcat.h sysdep.h \
1231 config.h $(INCDIR)/fopen-same.h $(INCDIR)/safe-ctype.h \
1232 ld.h $(INCDIR)/bin-bugs.h ldgram.h ldmisc.h ldexp.h \
1233 ldlang.h ldfile.h ldlex.h ldmain.h $(INCDIR)/libiberty.h
1234 deffilep.o: deffilep.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \
1235 $(INCDIR)/safe-ctype.h ../bfd/bfd.h $(INCDIR)/symcat.h \
1236 sysdep.h config.h $(INCDIR)/fopen-same.h ld.h $(INCDIR)/bin-bugs.h \
1237 ldmisc.h deffile.h
1238 # IF YOU PUT ANYTHING HERE IT WILL GO AWAY
This page took 0.056903 seconds and 4 git commands to generate.