1 ## Process this file with automake to generate Makefile.in
3 ## FIXME: work around apparent automake bug.
6 AUTOMAKE_OPTIONS = cygnus dejagnu
10 tooldir = $(exec_prefix)/$(target_alias)
12 YACC = `if [ -f ../bison/bison ]; then echo ../bison/bison -y -L$(srcdir)/../bison/; else echo @YACC@; fi`
14 LEX = `if [ -f ../flex/flex ]; then echo ../flex/flex; else echo @LEX@; fi`
16 WARN_CFLAGS = @WARN_CFLAGS@
17 AM_CFLAGS = $(WARN_CFLAGS)
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
25 EMULATION_OFILES = @EMULATION_OFILES@
26 EMUL_EXTRA_OFILES = @EMUL_EXTRA_OFILES@
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
36 BASEDIR = $(srcdir)/..
37 BFDDIR = $(BASEDIR)/bfd
38 INCDIR = $(BASEDIR)/include
41 # What version of the manual to build
44 # Options to extract the man page from ld.texinfo
47 TEXI2POD = perl $(BASEDIR)/etc/texi2pod.pl
49 POD2MAN = pod2man --center="GNU" --release="binutils-$(VERSION)" --section=1
51 #stuff for self hosting (can be overridden in config file).
52 HOSTING_CRT0 = @HOSTING_CRT0@
53 HOSTING_LIBS = @HOSTING_LIBS@
54 HOSTING_EMU = -m $(EMUL)
56 # Setup the testing framework, if you have one
57 EXPECT = `if [ -f $$r/../expect/expect ] ; \
58 then echo $$r/../expect/expect ; \
59 else echo expect ; fi`
61 RUNTEST = `if [ -f $${srcroot}/../dejagnu/runtest ] ; \
62 then echo $${srcroot}/../dejagnu/runtest ; \
63 else echo runtest ; fi`
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; \
72 echo $$r/../gcc/xgcc -B$$r/../gcc/; \
75 if [ "@host@" = "@target@" ] ; then \
78 echo gcc | sed '$(transform)'; \
84 if [ -f $$r/../gcc/xgcc ] ; then \
85 if [ -f $$r/../newlib/Makefile ] ; then \
86 echo $$r/../gcc/xgcc -B$$r/../gcc/ -idirafter $$r/../newlib/targ-include -idirafter $${srcroot}/../newlib/libc/include -nostdinc; \
88 echo $$r/../gcc/xgcc -B$$r/../gcc/; \
91 if [ "@host@" = "@target@" ] ; then \
94 echo gcc | sed '$(transform)'; \
98 noinst_PROGRAMS = ld-new
99 info_TEXINFOS = ld.texinfo
100 noinst_TEXINFOS = ldint.texinfo
103 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 BFDLIB = ../bfd/libbfd.la
106 LIBIBERTY = ../libiberty/libiberty.a
254 ALL_64_EMULATIONS = \
267 ALL_EMUL_EXTRA_OFILES = \
271 CFILES = ldctor.c ldemul.c ldexp.c ldfile.c ldlang.c \
272 ldmain.c ldmisc.c ldver.c ldwrite.c lexsup.c \
273 mri.c ldcref.c pe-dll.c
275 HFILES = ld.h ldctor.h ldemul.h ldexp.h ldfile.h \
276 ldlang.h ldlex.h ldmain.h ldmisc.h ldver.h \
277 ldwrite.h mri.h deffile.h pe-dll.h
279 GENERATED_CFILES = ldgram.c ldlex.c deffilep.c
280 GENERATED_HFILES = ldgram.h ldemul-list.h deffilep.h
282 OFILES = ldgram.o ldlex.o lexsup.o ldlang.o mri.o ldctor.o ldmain.o \
283 ldwrite.o ldexp.o ldemul.o ldver.o ldmisc.o \
284 ldfile.o ldcref.o ${EMULATION_OFILES} ${EMUL_EXTRA_OFILES}
286 STAGESTUFF = *.o ldscripts/* e*.c
288 # At the moment this is just a list of those emulation template files
289 # that contain internationalised strings.
290 EMULATION_FILES = emultempl/pe.em emultempl/armcoff.em
292 POTFILES = $(CFILES) $(HFILES) $(EMULATION_FILES)
294 po/POTFILES.in: @MAINT@ Makefile
295 for file in $(POTFILES); do echo $$file; done | sort > tmp \
296 && mv tmp $(srcdir)/po/POTFILES.in
298 ldmain.o: ldmain.c config.status
299 $(COMPILE) -c -DDEFAULT_EMULATION='"$(EMUL)"' -DSCRIPTDIR='"$(scriptdir)"' -DTARGET='"@target@"' $(srcdir)/ldmain.c
301 ldemul-list.h: Makefile
302 (echo "/* This file is automatically generated. DO NOT EDIT! */";\
303 for f in `echo " " ${EMULATION_OFILES} "" \
304 | sed -e 's/ e/ ld/g' -e 's/ ld/ /g' -e 's/[.]o//g'`; do \
305 echo "extern ld_emulation_xfer_type ld_$${f}_emulation;"; \
308 echo "#define EMULATION_LIST \\";\
309 for f in `echo " " ${EMULATION_OFILES} "" \
310 | sed -e 's/ e/ ld/g' -e 's/ ld/ /g' -e 's/[.]o//g'`; do \
311 echo " &ld_$${f}_emulation, \\"; \
313 echo " 0") >ldemul-tmp.h
314 mv ldemul-tmp.h ldemul-list.h
316 stringify.sed: ${srcdir}/emultempl/$(STRINGIFY)
317 cp ${srcdir}/emultempl/$(STRINGIFY) stringify.sed
319 # These all start with e so 'make clean' can find them.
321 GENSCRIPTS = $(SHELL) $(srcdir)/genscripts.sh ${srcdir} ${libdir} ${exec_prefix} @host@ @target@ @target_alias@ "@EMULATION_LIBPATH@" "@NATIVE_LIB_DIRS@"
322 GEN_DEPENDS = $(srcdir)/genscripts.sh stringify.sed
325 ea29k.c: $(srcdir)/emulparams/a29k.sh \
326 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/a29k.sc ${GEN_DEPENDS}
327 ${GENSCRIPTS} a29k "$(tdir_a29k)"
328 eaixppc64.c: $(srcdir)/emulparams/aixppc64.sh \
329 $(srcdir)/emultempl/aix.em $(srcdir)/scripttempl/aix.sc ${GEN_DEPENDS}
330 ${GENSCRIPTS} aixppc64 "$(tdir_aixppc64)"
331 eaixppc.c: $(srcdir)/emulparams/aixppc.sh \
332 $(srcdir)/emultempl/aix.em $(srcdir)/scripttempl/aix.sc ${GEN_DEPENDS}
333 ${GENSCRIPTS} aixppc "$(tdir_aixppc)"
334 eaixrs6.c: $(srcdir)/emulparams/aixrs6.sh \
335 $(srcdir)/emultempl/aix.em $(srcdir)/scripttempl/aix.sc ${GEN_DEPENDS}
336 ${GENSCRIPTS} aixrs6 "$(tdir_aixrs6)"
337 ealpha.c: $(srcdir)/emulparams/alpha.sh \
338 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/alpha.sc ${GEN_DEPENDS}
339 ${GENSCRIPTS} alpha "$(tdir_alpha)"
340 earcelf.c: $(srcdir)/emulparams/arcelf.sh \
341 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
342 ${GENSCRIPTS} arcelf "$(tdir_arcelf)"
343 earmelf.c: $(srcdir)/emulparams/armelf.sh \
344 $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/armelf.em \
345 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
346 ${GENSCRIPTS} armelf "$(tdir_armelf)"
347 earmelf_oabi.c: $(srcdir)/emulparams/armelf_oabi.sh \
348 $(srcdir)/emultempl/armelf_oabi.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
349 ${GENSCRIPTS} armelf_oabi "$(tdir_armelf)"
350 earmelf_linux.c: $(srcdir)/emulparams/armelf_linux.sh \
351 $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/armelf.em \
352 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
353 ${GENSCRIPTS} armelf_linux "$(tdir_armelf_linux)"
354 earmaoutb.c: $(srcdir)/emulparams/armaoutb.sh \
355 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/armaout.sc ${GEN_DEPENDS}
356 ${GENSCRIPTS} armaoutb "$(tdir_armaoutb)"
357 earmaoutl.c: $(srcdir)/emulparams/armaoutl.sh \
358 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/armaout.sc ${GEN_DEPENDS}
359 ${GENSCRIPTS} armaoutl "$(tdir_armaoutl)"
360 earmcoff.c: $(srcdir)/emulparams/armcoff.sh \
361 $(srcdir)/emultempl/armcoff.em $(srcdir)/scripttempl/armcoff.sc ${GEN_DEPENDS}
362 ${GENSCRIPTS} armcoff "$(tdir_armcoff)"
363 earmnbsd.c: $(srcdir)/emulparams/armnbsd.sh \
364 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
365 ${GENSCRIPTS} armnbsd "$(tdir_armnbsd)"
366 earm_epoc_pe.c: $(srcdir)/emulparams/arm_epoc_pe.sh \
367 $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/epocpe.sc ${GEN_DEPENDS}
368 ${GENSCRIPTS} arm_epoc_pe "$(tdir_armpe)"
369 earmpe.c: $(srcdir)/emulparams/armpe.sh \
370 $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS}
371 ${GENSCRIPTS} armpe "$(tdir_armpe)"
372 eavr85xx.c: $(srcdir)/emulparams/avr85xx.sh \
373 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32avr.sc \
375 ${GENSCRIPTS} avr85xx "$(tdir_avr85xx)"
376 eavr1200.c: $(srcdir)/emulparams/avr1200.sh \
377 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32avr.sc \
379 ${GENSCRIPTS} avr1200 "$(tdir_avr85xx)"
380 eavr23xx.c: $(srcdir)/emulparams/avr23xx.sh \
381 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32avr.sc \
383 ${GENSCRIPTS} avr23xx "$(tdir_avr85xx)"
384 eavr44x4.c: $(srcdir)/emulparams/avr44x4.sh \
385 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32avr.sc \
387 ${GENSCRIPTS} avr44x4 "$(tdir_avr85xx)"
388 eavr4433.c: $(srcdir)/emulparams/avr4433.sh \
389 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32avr.sc \
391 ${GENSCRIPTS} avr4433 "$(tdir_avr85xx)"
392 eavrmega603.c: $(srcdir)/emulparams/avrmega603.sh \
393 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32avr.sc \
395 ${GENSCRIPTS} avrmega603 "$(tdir_avr85xx)"
396 eavrmega103.c: $(srcdir)/emulparams/avrmega103.sh \
397 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32avr.sc \
399 ${GENSCRIPTS} avrmega103 "$(tdir_avr85xx)"
400 eavrmega161.c: $(srcdir)/emulparams/avrmega161.sh \
401 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32avr.sc \
403 ${GENSCRIPTS} avrmega161 "$(tdir_avr85xx)"
404 ecoff_sparc.c: $(srcdir)/emulparams/coff_sparc.sh \
405 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sparccoff.sc ${GEN_DEPENDS}
406 ${GENSCRIPTS} coff_sparc "$(tdir_coff_sparc)"
407 ecrisaout.c: $(srcdir)/emulparams/crisaout.sh \
408 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/crisaout.sc ${GEN_DEPENDS}
409 ${GENSCRIPTS} crisaout "$(tdir_cris)"
410 ecriself.c: $(srcdir)/emulparams/criself.sh \
411 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
412 ${GENSCRIPTS} criself "$(tdir_cris)"
413 ecrislinux.c: $(srcdir)/emulparams/crislinux.sh \
414 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
415 ${GENSCRIPTS} crislinux "$(tdir_cris)"
416 ed10velf.c: $(srcdir)/emulparams/d10velf.sh \
417 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elfd10v.sc ${GEN_DEPENDS}
418 ${GENSCRIPTS} d10velf "$(tdir_d10v)"
419 ed30velf.c: $(srcdir)/emulparams/d30velf.sh \
420 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elfd30v.sc ${GEN_DEPENDS}
421 ${GENSCRIPTS} d30velf "$(tdir_d30v)"
422 ed30v_o.c: $(srcdir)/emulparams/d30v_o.sh \
423 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elfd30v.sc ${GEN_DEPENDS}
424 ${GENSCRIPTS} d30v_o "$(tdir_d30v)"
425 ed30v_e.c: $(srcdir)/emulparams/d30v_e.sh \
426 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elfd30v.sc ${GEN_DEPENDS}
427 ${GENSCRIPTS} d30v_e "$(tdir_d30v)"
428 edelta68.c: $(srcdir)/emulparams/delta68.sh \
429 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/delta68.sc ${GEN_DEPENDS}
430 ${GENSCRIPTS} delta68 "$(tdir_delta68)"
431 eebmon29k.c: $(srcdir)/emulparams/ebmon29k.sh \
432 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/ebmon29k.sc ${GEN_DEPENDS}
433 ${GENSCRIPTS} ebmon29k "$(tdir_ebmon29k)"
434 eelf32fr30.c: $(srcdir)/emulparams/elf32fr30.sh \
435 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
436 ${GENSCRIPTS} elf32fr30 "$(tdir_fr30)"
437 eelf32mcore.c: $(srcdir)/emulparams/elf32mcore.sh \
438 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
439 ${GENSCRIPTS} elf32mcore "$(tdir_mcore)"
440 em32relf.c: $(srcdir)/emulparams/m32relf.sh \
441 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
442 ${GENSCRIPTS} m32relf "$(tdir_m32r)"
443 eelf32_sparc.c: $(srcdir)/emulparams/elf32_sparc.sh \
444 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
445 ${GENSCRIPTS} elf32_sparc "$(tdir_elf32_sparc)"
446 eelf32_i860.c: $(srcdir)/emulparams/elf32_i860.sh \
447 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
448 ${GENSCRIPTS} elf32_i860 "$(tdir_elf32_i860)"
449 eelf32_i960.c: $(srcdir)/emulparams/elf32_i960.sh \
450 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
451 ${GENSCRIPTS} elf32_i960 "$(tdir_elf32_i960)"
452 eelf32b4300.c: $(srcdir)/emulparams/elf32b4300.sh \
453 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
454 ${GENSCRIPTS} elf32b4300 "$(tdir_elf32b4300)"
455 eelf32bmip.c: $(srcdir)/emulparams/elf32bmip.sh \
456 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
457 ${GENSCRIPTS} elf32bmip "$(tdir_elf32bmip)"
458 eelf32bsmip.c: $(srcdir)/emulparams/elf32bsmip.sh \
459 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
460 ${GENSCRIPTS} elf32bsmip "$(tdir_elf32bsmip)"
461 eelf32btsmip.c: $(srcdir)/emulparams/elf32btsmip.sh \
462 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
463 ${GENSCRIPTS} elf32btsmip "$(tdir_elf32btsmip)"
464 eelf32ltsmip.c: $(srcdir)/emulparams/elf32ltsmip.sh \
465 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
466 ${GENSCRIPTS} elf32ltsmip "$(tdir_elf32ltsmip)"
467 eelf32ebmip.c: $(srcdir)/emulparams/elf32ebmip.sh \
468 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
469 ${GENSCRIPTS} elf32ebmip "$(tdir_elf32ebmip)"
470 eelf32elmip.c: $(srcdir)/emulparams/elf32elmip.sh \
471 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
472 ${GENSCRIPTS} elf32elmip "$(tdir_elf32elmip)"
473 eelf32bmipn32.c: $(srcdir)/emulparams/elf32bmipn32.sh \
474 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
475 ${GENSCRIPTS} elf32bmipn32 "$(tdir_elf32bmipn32)"
476 eelf32l4300.c: $(srcdir)/emulparams/elf32l4300.sh \
477 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
478 ${GENSCRIPTS} elf32l4300 "$(tdir_elf32l4300)"
479 eelf32lmip.c: $(srcdir)/emulparams/elf32lmip.sh \
480 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
481 ${GENSCRIPTS} elf32lmip "$(tdir_elf32lmip)"
482 eelf32lppc.c: $(srcdir)/emulparams/elf32lppc.sh \
483 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
484 ${GENSCRIPTS} elf32lppc "$(tdir_elf32lppc)"
485 eelf32lppcsim.c: $(srcdir)/emulparams/elf32lppcsim.sh \
486 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
487 ${GENSCRIPTS} elf32lppcsim "$(tdir_elf32lppcsim)"
488 eelf32lsmip.c: $(srcdir)/emulparams/elf32lsmip.sh \
489 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
490 ${GENSCRIPTS} elf32lsmip "$(tdir_elf32lsmip)"
491 eelf32openrisc.c: $(srcdir)/emulparams/elf32openrisc.sh \
492 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
493 ${GENSCRIPTS} elf32openrisc "$(tdir_openrisc)"
494 eelf32ppc.c: $(srcdir)/emulparams/elf32ppc.sh \
495 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
496 ${GENSCRIPTS} elf32ppc "$(tdir_elf32ppc)"
497 eelf32ppcsim.c: $(srcdir)/emulparams/elf32ppcsim.sh \
498 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
499 ${GENSCRIPTS} elf32ppcsim "$(tdir_elf32ppcsim)"
500 eelf32ppclinux.c: $(srcdir)/emulparams/elf32ppclinux.sh \
501 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
502 ${GENSCRIPTS} elf32ppclinux "$(tdir_elf32ppclinux)"
503 eelf32i370.c: $(srcdir)/emulparams/elf32i370.sh \
504 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elfi370.sc ${GEN_DEPENDS}
505 ${GENSCRIPTS} elf32i370 "$(tdir_elf32i370)"
506 eelf64alpha.c: $(srcdir)/emulparams/elf64alpha.sh \
507 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
508 ${GENSCRIPTS} elf64alpha "$(tdir_elf64alpha)"
509 eelf64hppa.c: $(srcdir)/emulparams/elf64hppa.sh \
510 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
511 ${GENSCRIPTS} elf64hppa "$(tdir_elf64hppa)"
512 eelf64_aix.c: $(srcdir)/emulparams/elf64_aix.sh \
513 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
514 ${GENSCRIPTS} elf64_aix "$(tdir_elf64_aix)"
515 eelf64_ia64.c: $(srcdir)/emulparams/elf64_ia64.sh \
516 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
517 ${GENSCRIPTS} elf64_ia64 "$(tdir_elf64_ia64)"
518 eelf64_s390.c: $(srcdir)/emulparams/elf64_s390.sh \
519 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
520 ${GENSCRIPTS} elf64_s390 "$(tdir_elf64_s390)"
521 eelf64_sparc.c: $(srcdir)/emulparams/elf64_sparc.sh \
522 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
523 ${GENSCRIPTS} elf64_sparc "$(tdir_elf64_sparc)"
524 eelf64bmip.c: $(srcdir)/emulparams/elf64bmip.sh \
525 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
526 ${GENSCRIPTS} elf64bmip "$(tdir_elf64bmip)"
527 eelf64btsmip.c: $(srcdir)/emulparams/elf64btsmip.sh \
528 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
529 ${GENSCRIPTS} elf64btsmip "$(tdir_elf64btsmip)"
530 eelf64ltsmip.c: $(srcdir)/emulparams/elf64ltsmip.sh \
531 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
532 ${GENSCRIPTS} elf64ltsmip "$(tdir_elf64ltsmip)"
533 eelf_i386.c: $(srcdir)/emulparams/elf_i386.sh \
534 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
535 ${GENSCRIPTS} elf_i386 "$(tdir_elf_i386)"
536 eelf_x86_64.c: $(srcdir)/emulparams/elf_x86_64.sh \
537 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
538 ${GENSCRIPTS} elf_x86_64 "$(tdir_elf_x86_64)"
539 eelf_i386_be.c: $(srcdir)/emulparams/elf_i386_be.sh \
540 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
541 ${GENSCRIPTS} elf_i386_be "$(tdir_elf_i386_be)"
542 eelf_i386_chaos.c: $(srcdir)/emulparams/elf_i386_chaos.sh \
543 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
544 ${GENSCRIPTS} elf_i386_chaos "$(tdir_elf_i386_chaos)"
545 eelf_i386_ldso.c: $(srcdir)/emulparams/elf_i386_ldso.sh \
546 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
547 ${GENSCRIPTS} elf_i386_ldso "$(tdir_elf_i386_ldso)"
548 eelf_s390.c: $(srcdir)/emulparams/elf_s390.sh \
549 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
550 ${GENSCRIPTS} elf_s390 "$(tdir_elf_s390)"
551 egld960.c: $(srcdir)/emulparams/gld960.sh \
552 $(srcdir)/emultempl/gld960.em $(srcdir)/scripttempl/i960.sc ${GEN_DEPENDS}
553 ${GENSCRIPTS} gld960 "$(tdir_gld960)"
554 egld960coff.c: $(srcdir)/emulparams/gld960coff.sh \
555 $(srcdir)/emultempl/gld960c.em $(srcdir)/scripttempl/i960.sc ${GEN_DEPENDS}
556 ${GENSCRIPTS} gld960coff "$(tdir_gld960coff)"
557 eh8300.c: $(srcdir)/emulparams/h8300.sh \
558 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300.sc ${GEN_DEPENDS}
559 ${GENSCRIPTS} h8300 "$(tdir_h8300)"
560 eh8300h.c: $(srcdir)/emulparams/h8300h.sh \
561 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300h.sc ${GEN_DEPENDS}
562 ${GENSCRIPTS} h8300h "$(tdir_h8300h)"
563 eh8300s.c: $(srcdir)/emulparams/h8300s.sh \
564 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300s.sc ${GEN_DEPENDS}
565 ${GENSCRIPTS} h8300s "$(tdir_h8300s)"
566 eh8500.c: $(srcdir)/emulparams/h8500.sh \
567 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500.sc ${GEN_DEPENDS}
568 ${GENSCRIPTS} h8500 "$(tdir_h8500)"
569 eh8500b.c: $(srcdir)/emulparams/h8500b.sh \
570 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500b.sc ${GEN_DEPENDS}
571 ${GENSCRIPTS} h8500b "$(tdir_h8500b)"
572 eh8500c.c: $(srcdir)/emulparams/h8500c.sh \
573 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500c.sc ${GEN_DEPENDS}
574 ${GENSCRIPTS} h8500c "$(tdir_h8500c)"
575 eh8500m.c: $(srcdir)/emulparams/h8500m.sh \
576 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500m.sc ${GEN_DEPENDS}
577 ${GENSCRIPTS} h8500m "$(tdir_h8500m)"
578 eh8500s.c: $(srcdir)/emulparams/h8500s.sh \
579 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500s.sc ${GEN_DEPENDS}
580 ${GENSCRIPTS} h8500s "$(tdir_h8500s)"
581 ehp300bsd.c: $(srcdir)/emulparams/hp300bsd.sh \
582 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
583 ${GENSCRIPTS} hp300bsd "$(tdir_hp300bsd)"
584 ehp3hpux.c: $(srcdir)/emulparams/hp3hpux.sh \
585 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
586 ${GENSCRIPTS} hp3hpux "$(tdir_hp3hpux)"
587 ehppaelf.c: $(srcdir)/emulparams/hppaelf.sh \
588 $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/hppaelf.em \
589 $(srcdir)/scripttempl/hppaelf.sc ${GEN_DEPENDS}
590 ${GENSCRIPTS} hppaelf "$(tdir_hppaelf)"
591 ehppalinux.c: $(srcdir)/emulparams/hppalinux.sh \
592 $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/hppaelf.em \
593 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
594 ${GENSCRIPTS} hppalinux "$(tdir_hppalinux)"
595 ei386aout.c: $(srcdir)/emulparams/i386aout.sh \
596 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
597 ${GENSCRIPTS} i386aout "$(tdir_i386aout)"
598 ei386beos.c: $(srcdir)/emulparams/i386beos.sh \
599 $(srcdir)/emultempl/beos.em $(srcdir)/scripttempl/i386beos.sc ${GEN_DEPENDS}
600 ${GENSCRIPTS} i386beos "$(tdir_i386beos)"
601 ei386bsd.c: $(srcdir)/emulparams/i386bsd.sh \
602 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
603 ${GENSCRIPTS} i386bsd "$(tdir_i386bsd)"
604 ei386coff.c: $(srcdir)/emulparams/i386coff.sh \
605 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386coff.sc ${GEN_DEPENDS}
606 ${GENSCRIPTS} i386coff "$(tdir_i386coff)"
607 ei386go32.c: $(srcdir)/emulparams/i386go32.sh \
608 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386go32.sc ${GEN_DEPENDS}
609 ${GENSCRIPTS} i386go32 "$(tdir_i386go32)"
610 ei386linux.c: $(srcdir)/emulparams/i386linux.sh \
611 $(srcdir)/emultempl/linux.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
612 ${GENSCRIPTS} i386linux "$(tdir_i386linux)"
613 ei386lynx.c: $(srcdir)/emulparams/i386lynx.sh \
614 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386lynx.sc ${GEN_DEPENDS}
615 ${GENSCRIPTS} i386lynx "$(tdir_i386lynx)"
616 ei386mach.c: $(srcdir)/emulparams/i386mach.sh \
617 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
618 ${GENSCRIPTS} i386mach "$(tdir_i386mach)"
619 ei386moss.c: $(srcdir)/emulparams/i386moss.sh \
620 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
621 ${GENSCRIPTS} i386moss "$(tdir_i386moss)"
622 ei386msdos.c: $(srcdir)/emulparams/i386msdos.sh \
623 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386msdos.sc ${GEN_DEPENDS}
624 ${GENSCRIPTS} i386msdos "$(tdir_i386msdos)"
625 ei386nbsd.c: $(srcdir)/emulparams/i386nbsd.sh \
626 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
627 ${GENSCRIPTS} i386nbsd "$(tdir_i386nbsd)"
628 ei386nw.c: $(srcdir)/emulparams/i386nw.sh \
629 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/nw.sc ${GEN_DEPENDS}
630 ${GENSCRIPTS} i386nw "$(tdir_i386nw)"
631 ei386pe.c: $(srcdir)/emulparams/i386pe.sh \
632 $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS}
633 ${GENSCRIPTS} i386pe "$(tdir_i386pe)"
634 ei386pe_posix.c: $(srcdir)/emulparams/i386pe_posix.sh \
635 $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS}
636 ${GENSCRIPTS} i386pe_posix "$(tdir_i386pe_posix)"
637 elnk960.c: $(srcdir)/emulparams/lnk960.sh \
638 $(srcdir)/emultempl/lnk960.em $(srcdir)/scripttempl/i960.sc ${GEN_DEPENDS}
639 ${GENSCRIPTS} lnk960 "$(tdir_lnk960)"
640 em68hc11elf.c: $(srcdir)/emulparams/m68hc11elf.sh \
641 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elfm68hc11.sc ${GEN_DEPENDS}
642 ${GENSCRIPTS} m68hc11elf "$(tdir_m68hc11)"
643 em68hc11elfb.c: $(srcdir)/emulparams/m68hc11elfb.sh \
644 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elfm68hc11.sc ${GEN_DEPENDS}
645 ${GENSCRIPTS} m68hc11elfb "$(tdir_m68hc11b)"
646 em68hc12elf.c: $(srcdir)/emulparams/m68hc12elf.sh \
647 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elfm68hc12.sc ${GEN_DEPENDS}
648 ${GENSCRIPTS} m68hc12elf "$(tdir_m68hc12)"
649 em68hc12elfb.c: $(srcdir)/emulparams/m68hc12elfb.sh \
650 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elfm68hc12.sc ${GEN_DEPENDS}
651 ${GENSCRIPTS} m68hc12elfb "$(tdir_m68hc12b)"
652 em68k4knbsd.c: $(srcdir)/emulparams/m68k4knbsd.sh \
653 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
654 ${GENSCRIPTS} m68k4knbsd "$(tdir_m68k4knbsd)"
655 em68kaout.c: $(srcdir)/emulparams/m68kaout.sh \
656 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
657 ${GENSCRIPTS} m68kaout "$(tdir_m68kaout)"
658 em68kaux.c: $(srcdir)/emulparams/m68kaux.sh \
659 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/m68kaux.sc ${GEN_DEPENDS}
660 ${GENSCRIPTS} m68kaux "$(tdir_m68kaux)"
661 em68kcoff.c: $(srcdir)/emulparams/m68kcoff.sh \
662 $(srcdir)/emultempl/m68kcoff.em $(srcdir)/scripttempl/m68kcoff.sc ${GEN_DEPENDS}
663 ${GENSCRIPTS} m68kcoff "$(tdir_m68kcoff)"
664 em68kelf.c: $(srcdir)/emulparams/m68kelf.sh \
665 $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/m68kelf.em \
666 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
667 ${GENSCRIPTS} m68kelf "$(tdir_m68kelf)"
668 em68klinux.c: $(srcdir)/emulparams/m68klinux.sh \
669 $(srcdir)/emultempl/linux.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
670 ${GENSCRIPTS} m68klinux "$(tdir_m68klinux)"
671 em68klynx.c: $(srcdir)/emulparams/m68klynx.sh \
672 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/m68klynx.sc ${GEN_DEPENDS}
673 ${GENSCRIPTS} m68klynx "$(tdir_m68klynx)"
674 em68knbsd.c: $(srcdir)/emulparams/m68knbsd.sh \
675 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
676 ${GENSCRIPTS} m68knbsd "$(tdir_m68knbsd)"
677 em68kpsos.c: $(srcdir)/emulparams/m68kpsos.sh \
678 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/psos.sc ${GEN_DEPENDS}
679 ${GENSCRIPTS} m68kpsos "$(tdir_m68kpsos)"
680 em88kbcs.c: $(srcdir)/emulparams/m88kbcs.sh \
681 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/m88kbcs.sc ${GEN_DEPENDS}
682 ${GENSCRIPTS} m88kbcs "$(tdir_m88kbcs)"
683 emcorepe.c: $(srcdir)/emulparams/mcorepe.sh \
684 $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS}
685 ${GENSCRIPTS} mcorepe "$(tdir_mcorepe)"
686 emipsbig.c: $(srcdir)/emulparams/mipsbig.sh \
687 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
688 ${GENSCRIPTS} mipsbig
689 emipsbsd.c: $(srcdir)/emulparams/mipsbsd.sh \
690 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mipsbsd.sc ${GEN_DEPENDS}
691 ${GENSCRIPTS} mipsbsd
692 emipsidt.c: $(srcdir)/emulparams/mipsidt.sh \
693 $(srcdir)/emultempl/mipsecoff.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
694 ${GENSCRIPTS} mipsidt "$(tdir_mipsidt)"
695 emipsidtl.c: $(srcdir)/emulparams/mipsidtl.sh \
696 $(srcdir)/emultempl/mipsecoff.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
697 ${GENSCRIPTS} mipsidtl "$(tdir_mipsidtl)"
698 emipslit.c: $(srcdir)/emulparams/mipslit.sh \
699 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
700 ${GENSCRIPTS} mipslit "$(tdir_mipslit)"
701 emipslnews.c: $(srcdir)/emulparams/mipslnews.sh \
702 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
703 ${GENSCRIPTS} mipslnews
704 emipspe.c: $(srcdir)/emulparams/mipspe.sh \
705 $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS}
706 ${GENSCRIPTS} mipspe "$(tdir_mips)"
707 emn10300.c: $(srcdir)/emulparams/mn10300.sh \
708 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
709 ${GENSCRIPTS} mn10300 "$(tdir_mn10300)"
710 emn10200.c: $(srcdir)/emulparams/mn10200.sh \
711 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
712 ${GENSCRIPTS} mn10200 "$(tdir_mn10200)"
713 enews.c: $(srcdir)/emulparams/news.sh \
714 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
715 ${GENSCRIPTS} news "$(tdir_news)"
716 ens32knbsd.c: $(srcdir)/emulparams/ns32knbsd.sh \
717 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
718 ${GENSCRIPTS} ns32knbsd "$(tdir_ns32knbsd)"
719 epc532macha.c: $(srcdir)/emulparams/pc532macha.sh \
720 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
721 ${GENSCRIPTS} pc532macha "$(tdir_pc532macha)"
722 epdp11.c: $(srcdir)/emulparams/pdp11.sh \
723 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
724 ${GENSCRIPTS} pdp11 "$(tdir_pdp11)"
725 epjelf.c: $(srcdir)/emulparams/pjelf.sh \
726 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
727 ${GENSCRIPTS} pjelf "$(tdir_pjelf)"
728 epjlelf.c: $(srcdir)/emulparams/pjlelf.sh \
729 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
730 ${GENSCRIPTS} pjlelf "$(tdir_pjlelf)"
731 eppcmacos.c: $(srcdir)/emulparams/ppcmacos.sh \
732 $(srcdir)/emultempl/aix.em $(srcdir)/scripttempl/aix.sc ${GEN_DEPENDS}
733 ${GENSCRIPTS} ppcmacos "$(tdir_ppcmacos)"
734 eppcnw.c: $(srcdir)/emulparams/ppcnw.sh \
735 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/nw.sc ${GEN_DEPENDS}
736 ${GENSCRIPTS} ppcnw "$(tdir_ppcnw)"
737 eppcpe.c: $(srcdir)/emulparams/ppcpe.sh \
738 $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/ppcpe.sc ${GEN_DEPENDS}
739 ${GENSCRIPTS} ppcpe "$(tdir_ppcpe)"
740 eriscix.c: $(srcdir)/emulparams/riscix.sh \
741 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
742 ${GENSCRIPTS} riscix "$(tdir_riscix)"
743 esa29200.c: $(srcdir)/emulparams/sa29200.sh \
744 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sa29200.sc ${GEN_DEPENDS}
745 ${GENSCRIPTS} sa29200 "$(tdir_sa29200)"
746 esh.c: $(srcdir)/emulparams/sh.sh \
747 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sh.sc ${GEN_DEPENDS}
748 ${GENSCRIPTS} sh "$(tdir_sh)"
749 eshelf.c: $(srcdir)/emulparams/shelf.sh \
750 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
751 ${GENSCRIPTS} shelf "$(tdir_shelf)"
752 eshelf_linux.c: $(srcdir)/emulparams/shelf_linux.sh \
753 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
754 ${GENSCRIPTS} shelf_linux "$(tdir_shelf_linux)"
755 eshlelf_linux.c: $(srcdir)/emulparams/shlelf_linux.sh \
756 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
757 ${GENSCRIPTS} shlelf_linux "$(tdir_shlelf_linux)"
758 eshlelf.c: $(srcdir)/emulparams/shlelf.sh \
759 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
760 ${GENSCRIPTS} shlelf "$(tdir_shlelf)"
761 eshl.c: $(srcdir)/emulparams/shl.sh \
762 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sh.sc ${GEN_DEPENDS}
763 ${GENSCRIPTS} shl "$(tdir_shl)"
764 eshpe.c: $(srcdir)/emulparams/shpe.sh \
765 $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS}
766 ${GENSCRIPTS} shpe "$(tdir_shl)"
767 esparcaout.c: $(srcdir)/emulparams/sparcaout.sh \
768 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
769 ${GENSCRIPTS} sparcaout "$(tdir_sparcaout)"
770 esparclinux.c: $(srcdir)/emulparams/sparclinux.sh \
771 $(srcdir)/emultempl/linux.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
772 ${GENSCRIPTS} sparclinux "$(tdir_sparclinux)"
773 esparclynx.c: $(srcdir)/emulparams/sparclynx.sh \
774 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sparclynx.sc ${GEN_DEPENDS}
775 ${GENSCRIPTS} sparclynx "$(tdir_sparclynx)"
776 esparcnbsd.c: $(srcdir)/emulparams/sparcnbsd.sh \
777 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
778 ${GENSCRIPTS} sparcnbsd "$(tdir_sparcnbsd)"
779 est2000.c: $(srcdir)/emulparams/st2000.sh \
780 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/st2000.sc ${GEN_DEPENDS}
781 ${GENSCRIPTS} st2000 "$(tdir_st2000)"
782 esun3.c: $(srcdir)/emulparams/sun3.sh \
783 $(srcdir)/emultempl/sunos.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
784 ${GENSCRIPTS} sun3 "$(tdir_sun3)"
785 esun4.c: $(srcdir)/emulparams/sun4.sh \
786 $(srcdir)/emultempl/sunos.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
787 ${GENSCRIPTS} sun4 "$(tdir_sun4)"
788 etic30aout.c: $(srcdir)/emulparams/tic30aout.sh \
789 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/tic30aout.sc ${GEN_DEPENDS}
790 ${GENSCRIPTS} tic30aout "$(tdir_tic30aout)"
791 etic30coff.c: $(srcdir)/emulparams/tic30coff.sh \
792 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/tic30coff.sc ${GEN_DEPENDS}
793 ${GENSCRIPTS} tic30coff "$(tdir_tic30coff)"
794 etic54xcoff.c: $(srcdir)/emulparams/tic54xcoff.sh \
795 $(srcdir)/emultempl/ticoff.em $(srcdir)/scripttempl/tic54xcoff.sc ${GEN_DEPENDS}
796 ${GENSCRIPTS} tic54xcoff "$(tdir_tic54xcoff)"
797 etic80coff.c: $(srcdir)/emulparams/tic80coff.sh \
798 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/tic80coff.sc ${GEN_DEPENDS}
799 ${GENSCRIPTS} tic80coff "$(tdir_tic80coff)"
800 evanilla.c: $(srcdir)/emulparams/vanilla.sh \
801 $(srcdir)/emultempl/vanilla.em $(srcdir)/scripttempl/vanilla.sc ${GEN_DEPENDS}
802 ${GENSCRIPTS} vanilla "$(tdir_vanilla)"
803 evax.c: $(srcdir)/emulparams/vax.sh \
804 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
805 ${GENSCRIPTS} vax "$(tdir_vax)"
806 evsta.c: $(srcdir)/emulparams/vsta.sh \
807 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
808 ${GENSCRIPTS} vsta "$(tdir_vsta)"
809 ev850.c: $(srcdir)/emulparams/v850.sh \
810 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/v850.sc ${GEN_DEPENDS}
811 ${GENSCRIPTS} v850 "$(tdir_v850)"
812 ew65.c: $(srcdir)/emulparams/w65.sh \
813 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/w65.sc ${GEN_DEPENDS}
814 ${GENSCRIPTS} w65 "$(tdir_w65)"
815 ez8001.c: $(srcdir)/emulparams/z8001.sh \
816 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/z8000.sc ${GEN_DEPENDS}
817 ${GENSCRIPTS} z8001 "$(tdir_z8001)"
818 ez8002.c: $(srcdir)/emulparams/z8002.sh \
819 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/z8000.sc ${GEN_DEPENDS}
820 ${GENSCRIPTS} z8002 "$(tdir_z8002)"
822 # We need this for automake to use YLWRAP.
823 EXTRA_ld_new_SOURCES = deffilep.y
825 ld_new_SOURCES = ldgram.y ldlex.l lexsup.c ldlang.c mri.c ldctor.c ldmain.c \
826 ldwrite.c ldexp.c ldemul.c ldver.c ldmisc.c ldfile.c ldcref.c
827 ld_new_DEPENDENCIES = $(EMULATION_OFILES) $(EMUL_EXTRA_OFILES) $(BFDLIB) $(LIBIBERTY) $(INTLDEPS)
828 ld_new_LDADD = $(EMULATION_OFILES) $(EMUL_EXTRA_OFILES) $(BFDLIB) $(LIBIBERTY) $(INTLLIBS)
830 # The generated emulation files mostly have the same dependencies.
831 $(EMULATION_OFILES): ../bfd/bfd.h sysdep.h config.h $(INCDIR)/bfdlink.h \
832 ld.h ldmain.h ldemul.h ldfile.h ldmisc.h ldexp.h ldlang.h \
833 ldctor.h ldexp.h ldlang.h ldgram.h
835 # This is the real libbfd.a created by libtool.
836 TESTBFDLIB = @TESTBFDLIB@
838 check-DEJAGNU: site.exp
839 srcroot=`cd $(srcdir) && pwd`; export srcroot; \
841 LC_COLLATE=; LC_ALL=; LANG=; export LC_COLLATE LC_ALL LANG; \
842 EXPECT=$(EXPECT); export EXPECT; \
843 if [ -f $(top_builddir)/../expect/expect ]; then \
844 TCL_LIBRARY=`cd $(top_srcdir)/../tcl/library && pwd`; \
845 export TCL_LIBRARY; \
847 runtest=$(RUNTEST); \
848 if $(SHELL) -c "$$runtest --version" > /dev/null 2>&1; then \
849 $$runtest --tool $(DEJATOOL) --srcdir $${srcroot}/testsuite \
850 CC="$(CC_FOR_TARGET)" CFLAGS="$(CFLAGS)" \
851 CXX="$(CXX_FOR_TARGET)" CXXFLAGS="$(CXXFLAGS)" \
852 CC_FOR_HOST="$(CC)" CFLAGS_FOR_HOST="$(CFLAGS)" \
853 OFILES="$(OFILES)" BFDLIB="$(TESTBFDLIB)" \
854 LIBIBERTY="$(LIBIBERTY) $(INTLLIBS)" LIBS="$(LIBS)" \
856 else echo "WARNING: could not find \`runtest'" 1>&2; :;\
859 # Rules for testing by relinking ld itself.
860 # A similar test is in the testsuite. This target is for ease of use
863 ld-partial.o: ld-new$(EXEEXT)
864 ./ld-new$(EXEEXT) $(HOSTING_EMU) -o ld-partial.o -r $(OFILES)
865 ld1$(EXEEXT): ld-partial.o
866 ./ld-new$(EXEEXT) $(HOSTING_EMU) -o ld1$(EXEEXT) $(HOSTING_CRT0) ld-partial.o $(TESTBFDLIB) $(LIBIBERTY) $(HOSTING_LIBS) $(LIBS)
868 ld1-full$(EXEEXT): ld-new
869 ./ld-new$(EXEEXT) $(HOSTING_EMU) -o ld1-full$(EXEEXT) $(HOSTING_CRT0) $(OFILES) $(TESTBFDLIB) $(LIBIBERTY) $(HOSTING_LIBS) $(LIBS)
871 ld2$(EXEEXT): ld1$(EXEEXT)
872 ./ld1$(EXEEXT) $(HOSTING_EMU) -o ld2$(EXEEXT) $(HOSTING_CRT0) $(OFILES) $(TESTBFDLIB) $(LIBIBERTY) $(HOSTING_LIBS) $(LIBS)
874 ld3$(EXEEXT): ld2$(EXEEXT)
875 ./ld2$(EXEEXT) $(HOSTING_EMU) -o ld3$(EXEEXT) $(HOSTING_CRT0) $(OFILES) $(TESTBFDLIB) $(LIBIBERTY) $(HOSTING_LIBS) $(LIBS)
877 bootstrap: ld3$(EXEEXT)
878 cmp ld2$(EXEEXT) ld3$(EXEEXT)
882 # A test program for C++ constructors and destructors.
883 # This test is now in the testsuite.
885 #cdtest: cdtest-main.o cdtest-bar.o cdtest-foo.o ld.new
886 # ./ld.new $(HOSTING_EMU) -o cdtest $(HOSTING_CRT0) \
887 # cdtest-main.o cdtest-bar.o cdtest-foo.o $(HOSTING_LIBS)
890 # ./cdtest > cdtest.tmp
891 # mv cdtest.tmp cdtest.out
893 #cdtest-ur.o: cdtest-main.o cdtest-bar.o cdtest-foo.o ld.new
894 # ./ld.new $(HOSTING_EMU) -o cdtest-ur.o -Ur cdtest-main.o \
895 # cdtest-bar.o cdtest-foo.o
897 #cdtest-ur: cdtest-ur.o
898 # ./ld.new $(HOSTING_EMU) -o cdtest-ur $(HOSTING_CRT0) cdtest-ur.o \
901 #cdtest-ur.out: cdtest-ur
902 # ./cdtest-ur > cdtest-ur.tmp
903 # mv cdtest-ur.tmp cdtest-ur.out
905 #check-cdtest: cdtest.out cdtest-ur.out $(srcdir)/cdtest.exp
906 # diff $(srcdir)/cdtest.exp cdtest.out
907 # diff $(srcdir)/cdtest.exp cdtest-ur.out
909 #.PHONY: check-cdtest
911 # END OF CHECK TARGETS
913 # DOCUMENTATION TARGETS
914 # Manual configuration file; not usually attached to normal configuration,
915 # because almost all configs use "gen" version of manual.
916 # Set DOCVER above to change.
917 configdoc.texi: ${DOCVER}-doc.texi
918 ln -s ${srcdir}/${DOCVER}-doc.texi ./configdoc.texi >/dev/null 2>&1 \
919 || ln ${srcdir}/${DOCVER}-doc.texi ./configdoc.texi >/dev/null 2>&1 \
920 || cp ${srcdir}/${DOCVER}-doc.texi ./configdoc.texi
924 echo '@set VERSION $(VERSION)' > $@
926 ld.info: $(srcdir)/ld.texinfo configdoc.texi ldver.texi
927 @rm -f $@ $@-[0-9] $@-[0-9][0-9]
928 $(MAKEINFO) -I $(srcdir) -I $(BFDDIR)/doc $(srcdir)/ld.texinfo
930 ld.dvi: $(srcdir)/ld.texinfo configdoc.texi ldver.texi
931 TEXINPUTS=$(top_srcdir)/../texinfo:$$TEXINPUTS \
932 MAKEINFO="$(MAKEINFO) -I $(srcdir) -I $(BFDDIR)/doc" $(TEXI2DVI) -I $(BFDDIR)/doc $(srcdir)/ld.texinfo
934 # Build the man page from the texinfo file
935 # The sed command removes the no-adjust Nroff command so that
936 # the man output looks standard.
937 $(srcdir)/ld.1: $(srcdir)/ld.texinfo
939 -$(TEXI2POD) $(MANCONF) < $(srcdir)/ld.texinfo > ld.pod
940 -($(POD2MAN) ld.pod | \
941 sed -e '/^.if n .na/d' > $(srcdir)/ld.1.T$$$$ && \
942 mv -f $(srcdir)/ld.1.T$$$$ $(srcdir)/ld.1) || \
943 (rm -f $(srcdir)/ld.1.T$$$$ && exit 1)
945 MAINTAINERCLEANFILES = ldver.texi
947 # We want to reconfigure if configure.host or configure.tgt changes.
948 config.status: $(srcdir)/configure $(srcdir)/configure.host $(srcdir)/configure.tgt
949 $(SHELL) ./config.status --recheck
951 MOSTLYCLEANFILES = $(STAGESTUFF) ld1$(EXEEXT) ld2$(EXEEXT) ld3$(EXEEXT) \
952 ldemul-list.h crtbegin.o crtend.o ld.log ld.sum
955 CLEANFILES = dep.sed DEP DEPA DEP1 DEP2
957 .PHONY: install-exec-local install-data-local
959 install-exec-local: ld-new$(EXEEXT)
960 $(mkinstalldirs) $(bindir) $(tooldir)/bin
961 @list='$(noinst_PROGRAMS)'; for p in $$list; do \
962 if test -f $$p; then \
963 echo " $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(bindir)/`echo $$p|sed -e 's/$(EXEEXT)$$//' -e 's/-new//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \
964 $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(bindir)/`echo $$p|sed -e 's/$(EXEEXT)$$//' -e 's/-new//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
967 n=`echo ld | sed '$(transform)'`; \
968 if [ "$(bindir)/$$n$(EXEEXT)" != "$(tooldir)/bin/ld$(EXEEXT)" ]; then \
969 rm -f $(tooldir)/bin/ld$(EXEEXT); \
970 ln $(bindir)/$$n$(EXEEXT) $(tooldir)/bin/ld$(EXEEXT) >/dev/null 2>/dev/null \
971 || $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) ld-new$(EXEEXT) $(tooldir)/bin/ld$(EXEEXT); \
975 $(mkinstalldirs) $(scriptdir)/ldscripts
976 for f in ldscripts/*; do \
977 $(INSTALL_DATA) $$f $(scriptdir)/$$f ; \
980 # Stuff that should be included in a distribution. The diststuff
981 # target is run by the taz target in ../Makefile.in.
982 LDDISTSTUFF = ldgram.c ldgram.h ldlex.c
983 diststuff: $(LDDISTSTUFF) info
985 DISTCLEANFILES = tdirs site.exp site.bak stringify.sed
989 # Targets to rebuild dependencies in this Makefile.
990 # Have to get rid of DEP1 here so that "$?" later includes all of $(CFILES).
991 DEP: dep.sed $(CFILES) $(HFILES) $(GENERATED_CFILES) $(GENERATED_HFILES) config.h
993 $(MAKE) MKDEP="$(MKDEP)" DEP1
994 sed -f dep.sed < DEP1 > DEPA
995 echo '# IF YOU PUT ANYTHING HERE IT WILL GO AWAY' >> DEPA
996 if grep ' /' DEPA > /dev/null 2> /dev/null; then \
997 echo 'make DEP failed!'; exit 1; \
1002 DEP1: $(CFILES) $(GENERATED_CFILES)
1003 echo '# DO NOT DELETE THIS LINE -- mkdep uses it.' > DEP2
1004 echo '# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.' >> DEP2
1005 $(MKDEP) $(INCLUDES) $(CFLAGS) $? >> DEP2
1008 dep.sed: dep-in.sed config.status
1009 sed <$(srcdir)/dep-in.sed >dep.sed \
1010 -e 's!@INCDIR@!$(INCDIR)!' \
1011 -e 's!@SRCDIR@!$(srcdir)!'
1014 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < Makefile > tmp-Makefile
1015 cat DEP >> tmp-Makefile
1016 $(srcdir)/../move-if-change tmp-Makefile Makefile
1019 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.in > tmp-Makefile.in
1020 cat DEP >> tmp-Makefile.in
1021 $(srcdir)/../move-if-change tmp-Makefile.in $(srcdir)/Makefile.in
1024 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.am > tmp-Makefile.am
1025 cat DEP >> tmp-Makefile.am
1026 $(srcdir)/../move-if-change tmp-Makefile.am $(srcdir)/Makefile.am
1028 .PHONY: dep dep-in dep-am
1030 # What appears below is generated by a hacked mkdep using gcc -MM.
1032 # DO NOT DELETE THIS LINE -- mkdep uses it.
1033 # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
1034 ldctor.o: ldctor.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1035 sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/bfdlink.h \
1036 ld.h $(INCDIR)/bin-bugs.h ldexp.h ldlang.h ldmisc.h \
1037 ldgram.h ldmain.h ldctor.h
1038 ldemul.o: ldemul.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1039 sysdep.h config.h $(INCDIR)/fopen-same.h ld.h $(INCDIR)/bin-bugs.h \
1040 ldmisc.h ldexp.h ldlang.h ldfile.h ldemul.h ldmain.h \
1042 ldexp.o: ldexp.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1043 sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/bfdlink.h \
1044 ld.h $(INCDIR)/bin-bugs.h ldmain.h ldmisc.h ldexp.h \
1046 ldfile.o: ldfile.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1047 sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/bfdlink.h \
1048 ld.h $(INCDIR)/bin-bugs.h ldmisc.h ldexp.h ldlang.h \
1049 ldfile.h ldmain.h ldgram.h ldlex.h ldemul.h
1050 ldlang.o: ldlang.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1051 sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h \
1052 $(INCDIR)/obstack.h $(INCDIR)/bfdlink.h ld.h $(INCDIR)/bin-bugs.h \
1053 ldmain.h ldgram.h ldexp.h ldlang.h ldlex.h ldmisc.h \
1054 ldctor.h ldfile.h ldemul.h $(INCDIR)/fnmatch.h $(INCDIR)/demangle.h
1055 ldmain.o: ldmain.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1056 sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h \
1057 $(INCDIR)/progress.h $(INCDIR)/bfdlink.h $(INCDIR)/filenames.h \
1058 ld.h $(INCDIR)/bin-bugs.h ldmain.h ldmisc.h ldwrite.h \
1059 ldgram.h ldexp.h ldlang.h ldlex.h ldfile.h ldemul.h \
1061 ldmisc.o: ldmisc.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1062 sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h \
1063 $(INCDIR)/demangle.h ld.h $(INCDIR)/bin-bugs.h ldmisc.h \
1064 ldexp.h ldlang.h ldgram.h ldlex.h ldmain.h ldfile.h
1065 ldver.o: ldver.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1066 sysdep.h config.h $(INCDIR)/fopen-same.h ld.h $(INCDIR)/bin-bugs.h \
1067 ldver.h ldexp.h ldlang.h ldfile.h ldemul.h ldmain.h
1068 ldwrite.o: ldwrite.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1069 sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/bfdlink.h \
1070 $(INCDIR)/libiberty.h ld.h $(INCDIR)/bin-bugs.h ldexp.h \
1071 ldlang.h ldwrite.h ldmisc.h ldgram.h ldmain.h
1072 lexsup.o: lexsup.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1073 sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h \
1074 $(INCDIR)/bfdlink.h ld.h $(INCDIR)/bin-bugs.h ldmain.h \
1075 ldmisc.h ldexp.h ldlang.h ldgram.h ldlex.h ldfile.h \
1076 ldver.h ldemul.h $(INCDIR)/demangle.h
1077 mri.o: mri.c ../bfd/bfd.h $(INCDIR)/ansidecl.h sysdep.h \
1078 config.h $(INCDIR)/fopen-same.h ld.h $(INCDIR)/bin-bugs.h \
1079 ldexp.h ldlang.h ldmisc.h mri.h ldgram.h $(INCDIR)/libiberty.h
1080 ldcref.o: ldcref.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1081 sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/bfdlink.h \
1082 $(INCDIR)/libiberty.h ld.h $(INCDIR)/bin-bugs.h ldmain.h \
1083 ldmisc.h ldexp.h ldlang.h
1084 pe-dll.o: pe-dll.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1085 sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/bfdlink.h \
1086 $(INCDIR)/libiberty.h ld.h $(INCDIR)/bin-bugs.h ldexp.h \
1087 ldlang.h ldwrite.h ldmisc.h ldgram.h ldmain.h ldfile.h \
1088 ldemul.h $(INCDIR)/coff/internal.h ../bfd/libcoff.h \
1090 ldgram.o: ldgram.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1091 sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/bfdlink.h \
1092 ld.h $(INCDIR)/bin-bugs.h ldexp.h ldver.h ldlang.h \
1093 ldfile.h ldemul.h ldmisc.h ldmain.h mri.h ldctor.h \
1095 ldlex.o: ldlex.c ../bfd/bfd.h sysdep.h config.h $(INCDIR)/fopen-same.h \
1096 ld.h $(INCDIR)/bin-bugs.h ldgram.h ldmisc.h ldexp.h \
1097 ldlang.h ldfile.h ldlex.h ldmain.h
1098 deffilep.o: deffilep.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \
1099 ../bfd/bfd.h sysdep.h config.h $(INCDIR)/fopen-same.h \
1100 ld.h $(INCDIR)/bin-bugs.h ldmisc.h deffile.h
1101 # IF YOU PUT ANYTHING HERE IT WILL GO AWAY