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 Development Tools" \
50 --release="binutils-$(VERSION)" --section=1
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)
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`
62 RUNTEST = `if [ -f $${srcroot}/../dejagnu/runtest ] ; \
63 then echo $${srcroot}/../dejagnu/runtest ; \
64 else echo runtest ; fi`
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; \
73 echo $$r/../gcc/xgcc -B$$r/../gcc/; \
76 if [ "@host@" = "@target@" ] ; then \
79 echo gcc | sed '$(transform)'; \
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; \
89 echo $$r/../gcc/xgcc -B$$r/../gcc/; \
92 if [ "@host@" = "@target@" ] ; then \
95 echo gcc | sed '$(transform)'; \
99 noinst_PROGRAMS = ld-new
100 info_TEXINFOS = ld.texinfo
101 noinst_TEXINFOS = ldint.texinfo
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\""
106 BFDLIB = ../bfd/libbfd.la
107 LIBIBERTY = ../libiberty/libiberty.a
279 ALL_64_EMULATIONS = \
289 eelf64_sparc_fbsd.o \
303 ALL_EMUL_EXTRA_OFILES = \
307 CFILES = ldctor.c ldemul.c ldexp.c ldfile.c ldlang.c \
308 ldmain.c ldmisc.c ldver.c ldwrite.c lexsup.c \
309 mri.c ldcref.c pe-dll.c
311 HFILES = ld.h ldctor.h ldemul.h ldexp.h ldfile.h \
312 ldlang.h ldlex.h ldmain.h ldmisc.h ldver.h \
313 ldwrite.h mri.h deffile.h pe-dll.h
315 GENERATED_CFILES = ldgram.c ldlex.c deffilep.c
316 GENERATED_HFILES = ldgram.h ldemul-list.h deffilep.h
318 OFILES = ldgram.o ldlex.o lexsup.o ldlang.o mri.o ldctor.o ldmain.o \
319 ldwrite.o ldexp.o ldemul.o ldver.o ldmisc.o \
320 ldfile.o ldcref.o ${EMULATION_OFILES} ${EMUL_EXTRA_OFILES}
322 STAGESTUFF = *.o ldscripts/* e*.c
324 # At the moment this is just a list of those emulation template files
325 # that contain internationalised strings.
326 EMULATION_FILES = emultempl/pe.em emultempl/armcoff.em
328 POTFILES = $(CFILES) $(HFILES) $(EMULATION_FILES)
330 po/POTFILES.in: @MAINT@ Makefile
331 for file in $(POTFILES); do echo $$file; done | sort > tmp \
332 && mv tmp $(srcdir)/po/POTFILES.in
334 ldmain.o: ldmain.c config.status
335 $(COMPILE) -c -DDEFAULT_EMULATION='"$(EMUL)"' -DSCRIPTDIR='"$(scriptdir)"' -DTARGET='"@target@"' $(srcdir)/ldmain.c
337 ldemul-list.h: Makefile
338 (echo "/* This file is automatically generated. DO NOT EDIT! */";\
339 for f in `echo " " ${EMULATION_OFILES} "" \
340 | sed -e 's/ e/ ld/g' -e 's/ ld/ /g' -e 's/[.]o//g'`; do \
341 echo "extern ld_emulation_xfer_type ld_$${f}_emulation;"; \
344 echo "#define EMULATION_LIST \\";\
345 for f in `echo " " ${EMULATION_OFILES} "" \
346 | sed -e 's/ e/ ld/g' -e 's/ ld/ /g' -e 's/[.]o//g'`; do \
347 echo " &ld_$${f}_emulation, \\"; \
349 echo " 0") >ldemul-tmp.h
350 mv ldemul-tmp.h ldemul-list.h
352 stringify.sed: ${srcdir}/emultempl/$(STRINGIFY)
353 cp ${srcdir}/emultempl/$(STRINGIFY) stringify.sed
355 # These all start with e so 'make clean' can find them.
357 GENSCRIPTS = $(SHELL) $(srcdir)/genscripts.sh ${srcdir} ${libdir} "${exec_prefix}" @host@ @target@ @target_alias@ "@EMULATION_LIBPATH@" "@NATIVE_LIB_DIRS@"
358 GEN_DEPENDS = $(srcdir)/genscripts.sh stringify.sed
361 ea29k.c: $(srcdir)/emulparams/a29k.sh \
362 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/a29k.sc ${GEN_DEPENDS}
363 ${GENSCRIPTS} a29k "$(tdir_a29k)"
364 eaix5ppc.c: $(srcdir)/emulparams/aix5ppc.sh \
365 $(srcdir)/emultempl/aix.em $(srcdir)/scripttempl/aix.sc ${GEN_DEPENDS}
366 ${GENSCRIPTS} aix5ppc "$(tdir_aixppc)"
367 eaix5rs6.c: $(srcdir)/emulparams/aix5rs6.sh \
368 $(srcdir)/emultempl/aix.em $(srcdir)/scripttempl/aix.sc ${GEN_DEPENDS}
369 ${GENSCRIPTS} aix5rs6 "$(tdir_aixrs6)"
370 eaixppc.c: $(srcdir)/emulparams/aixppc.sh \
371 $(srcdir)/emultempl/aix.em $(srcdir)/scripttempl/aix.sc ${GEN_DEPENDS}
372 ${GENSCRIPTS} aixppc "$(tdir_aixppc)"
373 eaixrs6.c: $(srcdir)/emulparams/aixrs6.sh \
374 $(srcdir)/emultempl/aix.em $(srcdir)/scripttempl/aix.sc ${GEN_DEPENDS}
375 ${GENSCRIPTS} aixrs6 "$(tdir_aixrs6)"
376 ealpha.c: $(srcdir)/emulparams/alpha.sh \
377 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/alpha.sc ${GEN_DEPENDS}
378 ${GENSCRIPTS} alpha "$(tdir_alpha)"
379 earcelf.c: $(srcdir)/emulparams/arcelf.sh \
380 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
381 ${GENSCRIPTS} arcelf "$(tdir_arcelf)"
382 earmelf.c: $(srcdir)/emulparams/armelf.sh \
383 $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/armelf.em \
384 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
385 ${GENSCRIPTS} armelf "$(tdir_armelf)"
386 earmelf_oabi.c: $(srcdir)/emulparams/armelf_oabi.sh \
387 $(srcdir)/emultempl/armelf_oabi.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
388 ${GENSCRIPTS} armelf_oabi "$(tdir_armelf)"
389 earmelf_fbsd.c: $(srcdir)/emulparams/armelf_fbsd.sh \
390 $(srcdir)/emulparams/armelf.sh \
391 $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/armelf.em \
392 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
393 ${GENSCRIPTS} armelf_fbsd "$(tdir_armelf_fbsd)"
394 earmelf_linux.c: $(srcdir)/emulparams/armelf_linux.sh \
395 $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/armelf.em \
396 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
397 ${GENSCRIPTS} armelf_linux "$(tdir_armelf_linux)"
398 earmelf_nbsd.c: $(srcdir)/emulparams/armelf_nbsd.sh \
399 $(srcdir)/emulparams/armelf.sh \
400 $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/armelf.em \
401 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
402 ${GENSCRIPTS} armelf_nbsd "$(tdir_armelf_nbsd)"
403 earmelfb_nbsd.c: $(srcdir)/emulparams/armelfb_nbsd.sh \
404 $(srcdir)/emulparams/armelf_nbsd.sh \
405 $(srcdir)/emulparams/armelf.sh \
406 $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/armelf.em \
407 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
408 ${GENSCRIPTS} armelfb_nbsd "$(tdir_armelfb_nbsd)"
409 earmaoutb.c: $(srcdir)/emulparams/armaoutb.sh \
410 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/armaout.sc ${GEN_DEPENDS}
411 ${GENSCRIPTS} armaoutb "$(tdir_armaoutb)"
412 earmaoutl.c: $(srcdir)/emulparams/armaoutl.sh \
413 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/armaout.sc ${GEN_DEPENDS}
414 ${GENSCRIPTS} armaoutl "$(tdir_armaoutl)"
415 earmcoff.c: $(srcdir)/emulparams/armcoff.sh \
416 $(srcdir)/emultempl/armcoff.em $(srcdir)/scripttempl/armcoff.sc ${GEN_DEPENDS}
417 ${GENSCRIPTS} armcoff "$(tdir_armcoff)"
418 earmnbsd.c: $(srcdir)/emulparams/armnbsd.sh \
419 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
420 ${GENSCRIPTS} armnbsd "$(tdir_armnbsd)"
421 earm_epoc_pe.c: $(srcdir)/emulparams/arm_epoc_pe.sh \
422 $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/epocpe.sc ${GEN_DEPENDS}
423 ${GENSCRIPTS} arm_epoc_pe "$(tdir_armpe)"
424 earmpe.c: $(srcdir)/emulparams/armpe.sh \
425 $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS}
426 ${GENSCRIPTS} armpe "$(tdir_armpe)"
427 eavr85xx.c: $(srcdir)/emulparams/avr85xx.sh \
428 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32avr.sc \
430 ${GENSCRIPTS} avr85xx "$(tdir_avr85xx)"
431 eavr1200.c: $(srcdir)/emulparams/avr1200.sh \
432 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32avr.sc \
434 ${GENSCRIPTS} avr1200 "$(tdir_avr85xx)"
435 eavr23xx.c: $(srcdir)/emulparams/avr23xx.sh \
436 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32avr.sc \
438 ${GENSCRIPTS} avr23xx "$(tdir_avr85xx)"
439 eavr44x4.c: $(srcdir)/emulparams/avr44x4.sh \
440 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32avr.sc \
442 ${GENSCRIPTS} avr44x4 "$(tdir_avr85xx)"
443 eavr4433.c: $(srcdir)/emulparams/avr4433.sh \
444 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32avr.sc \
446 ${GENSCRIPTS} avr4433 "$(tdir_avr85xx)"
447 eavrmega603.c: $(srcdir)/emulparams/avrmega603.sh \
448 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32avr.sc \
450 ${GENSCRIPTS} avrmega603 "$(tdir_avr85xx)"
451 eavrmega103.c: $(srcdir)/emulparams/avrmega103.sh \
452 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32avr.sc \
454 ${GENSCRIPTS} avrmega103 "$(tdir_avr85xx)"
455 eavrmega161.c: $(srcdir)/emulparams/avrmega161.sh \
456 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32avr.sc \
458 ${GENSCRIPTS} avrmega161 "$(tdir_avr85xx)"
459 eavr1.c: $(srcdir)/emulparams/avr1.sh \
460 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/avr.sc \
462 ${GENSCRIPTS} avr1 "$(tdir_avr85xx)"
463 eavr2.c: $(srcdir)/emulparams/avr2.sh \
464 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/avr.sc \
466 ${GENSCRIPTS} avr2 "$(tdir_avr85xx)"
467 eavr3.c: $(srcdir)/emulparams/avr3.sh \
468 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/avr.sc \
470 ${GENSCRIPTS} avr3 "$(tdir_avr85xx)"
471 eavr4.c: $(srcdir)/emulparams/avr4.sh \
472 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/avr.sc \
474 ${GENSCRIPTS} avr4 "$(tdir_avr85xx)"
475 eavr5.c: $(srcdir)/emulparams/avr5.sh \
476 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/avr.sc \
478 ${GENSCRIPTS} avr5 "$(tdir_avr85xx)"
479 ecoff_sparc.c: $(srcdir)/emulparams/coff_sparc.sh \
480 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sparccoff.sc ${GEN_DEPENDS}
481 ${GENSCRIPTS} coff_sparc "$(tdir_coff_sparc)"
482 ecrisaout.c: $(srcdir)/emulparams/crisaout.sh \
483 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/crisaout.sc ${GEN_DEPENDS}
484 ${GENSCRIPTS} crisaout "$(tdir_cris)"
485 ecriself.c: $(srcdir)/emulparams/criself.sh \
486 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
487 ${GENSCRIPTS} criself "$(tdir_cris)"
488 ecrislinux.c: $(srcdir)/emulparams/crislinux.sh \
489 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
490 ${GENSCRIPTS} crislinux "$(tdir_cris)"
491 ed10velf.c: $(srcdir)/emulparams/d10velf.sh \
492 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elfd10v.sc ${GEN_DEPENDS}
493 ${GENSCRIPTS} d10velf "$(tdir_d10v)"
494 ed30velf.c: $(srcdir)/emulparams/d30velf.sh \
495 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elfd30v.sc ${GEN_DEPENDS}
496 ${GENSCRIPTS} d30velf "$(tdir_d30v)"
497 ed30v_o.c: $(srcdir)/emulparams/d30v_o.sh \
498 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elfd30v.sc ${GEN_DEPENDS}
499 ${GENSCRIPTS} d30v_o "$(tdir_d30v)"
500 ed30v_e.c: $(srcdir)/emulparams/d30v_e.sh \
501 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elfd30v.sc ${GEN_DEPENDS}
502 ${GENSCRIPTS} d30v_e "$(tdir_d30v)"
503 edelta68.c: $(srcdir)/emulparams/delta68.sh \
504 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/delta68.sc ${GEN_DEPENDS}
505 ${GENSCRIPTS} delta68 "$(tdir_delta68)"
506 eelf32_dlx.c: $(srcdir)/emulparams/elf32_dlx.sh \
507 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/dlx.sc ${GEN_DEPENDS}
508 ${GENSCRIPTS} elf32_dlx "$(tdir_elf32_dlx)"
509 eebmon29k.c: $(srcdir)/emulparams/ebmon29k.sh \
510 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/ebmon29k.sc ${GEN_DEPENDS}
511 ${GENSCRIPTS} ebmon29k "$(tdir_ebmon29k)"
512 eelf32xstormy16.c: $(srcdir)/emulparams/elf32xstormy16.sh \
513 $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/needrelax.em \
514 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
515 ${GENSCRIPTS} elf32xstormy16 "$(tdir_xstormy16)"
516 eelf32fr30.c: $(srcdir)/emulparams/elf32fr30.sh \
517 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
518 ${GENSCRIPTS} elf32fr30 "$(tdir_fr30)"
519 eelf32mcore.c: $(srcdir)/emulparams/elf32mcore.sh \
520 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
521 ${GENSCRIPTS} elf32mcore "$(tdir_mcore)"
522 em32relf.c: $(srcdir)/emulparams/m32relf.sh \
523 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
524 ${GENSCRIPTS} m32relf "$(tdir_m32r)"
525 eelf32_sparc.c: $(srcdir)/emulparams/elf32_sparc.sh \
526 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
527 ${GENSCRIPTS} elf32_sparc "$(tdir_elf32_sparc)"
528 eelf32_i860.c: $(srcdir)/emulparams/elf32_i860.sh \
529 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
530 ${GENSCRIPTS} elf32_i860 "$(tdir_elf32_i860)"
531 eelf32_i960.c: $(srcdir)/emulparams/elf32_i960.sh \
532 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
533 ${GENSCRIPTS} elf32_i960 "$(tdir_elf32_i960)"
534 eelf32b4300.c: $(srcdir)/emulparams/elf32b4300.sh \
535 $(srcdir)/emulparams/elf32bmip.sh \
536 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
537 ${GENSCRIPTS} elf32b4300 "$(tdir_elf32b4300)"
538 eelf32bmip.c: $(srcdir)/emulparams/elf32bmip.sh \
539 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
540 ${GENSCRIPTS} elf32bmip "$(tdir_elf32bmip)"
541 eelf32bsmip.c: $(srcdir)/emulparams/elf32bsmip.sh \
542 $(srcdir)/emulparams/elf32bmip.sh \
543 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
544 ${GENSCRIPTS} elf32bsmip "$(tdir_elf32bsmip)"
545 eelf32btsmip.c: $(srcdir)/emulparams/elf32btsmip.sh \
546 $(srcdir)/emulparams/elf32bmip.sh \
547 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
548 ${GENSCRIPTS} elf32btsmip "$(tdir_elf32btsmip)"
549 eelf32ltsmip.c: $(srcdir)/emulparams/elf32ltsmip.sh \
550 $(srcdir)/emulparams/elf32btsmip.sh $(srcdir)/emulparams/elf32bmip.sh \
551 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
552 ${GENSCRIPTS} elf32ltsmip "$(tdir_elf32ltsmip)"
553 eelf32ebmip.c: $(srcdir)/emulparams/elf32ebmip.sh \
554 $(srcdir)/emulparams/elf32bmip.sh \
555 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
556 ${GENSCRIPTS} elf32ebmip "$(tdir_elf32ebmip)"
557 eelf32elmip.c: $(srcdir)/emulparams/elf32elmip.sh \
558 $(srcdir)/emulparams/elf32lmip.sh $(srcdir)/emulparams/elf32bmip.sh \
559 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
560 ${GENSCRIPTS} elf32elmip "$(tdir_elf32elmip)"
561 eelf32bmipn32.c: $(srcdir)/emulparams/elf32bmipn32.sh \
562 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
563 ${GENSCRIPTS} elf32bmipn32 "$(tdir_elf32bmipn32)"
564 eelf32l4300.c: $(srcdir)/emulparams/elf32l4300.sh \
565 $(srcdir)/emulparams/elf32b4300.sh $(srcdir)/emulparams/elf32bmip.sh \
566 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
567 ${GENSCRIPTS} elf32l4300 "$(tdir_elf32l4300)"
568 eelf32lmip.c: $(srcdir)/emulparams/elf32lmip.sh \
569 $(srcdir)/emulparams/elf32bmip.sh \
570 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
571 ${GENSCRIPTS} elf32lmip "$(tdir_elf32lmip)"
572 eelf32lppc.c: $(srcdir)/emulparams/elf32lppc.sh \
573 $(srcdir)/emulparams/elf32ppc.sh \
574 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
575 ${GENSCRIPTS} elf32lppc "$(tdir_elf32lppc)"
576 eelf32lppcsim.c: $(srcdir)/emulparams/elf32lppcsim.sh \
577 $(srcdir)/emulparams/elf32lppc.sh $(srcdir)/emulparams/elf32ppc.sh \
578 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
579 ${GENSCRIPTS} elf32lppcsim "$(tdir_elf32lppcsim)"
580 eelf32ppcwindiss.c: $(srcdir)/emulparams/elf32ppcwindiss.sh ${GEN_DEPENDS}
581 ${GENSCRIPTS} elf32ppcwindiss "$(tdir_elf32ppcwindiss)"
582 eelf32lsmip.c: $(srcdir)/emulparams/elf32lsmip.sh \
583 $(srcdir)/emulparams/elf32lmip.sh $(srcdir)/emulparams/elf32bmip.sh \
584 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
585 ${GENSCRIPTS} elf32lsmip "$(tdir_elf32lsmip)"
586 eelf32openrisc.c: $(srcdir)/emulparams/elf32openrisc.sh \
587 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
588 ${GENSCRIPTS} elf32openrisc "$(tdir_openrisc)"
589 eelf32ppc.c: $(srcdir)/emulparams/elf32ppc.sh \
590 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
591 ${GENSCRIPTS} elf32ppc "$(tdir_elf32ppc)"
592 eelf32ppc_fbsd.c: $(srcdir)/emulparams/elf32ppc_fbsd.sh \
593 $(srcdir)/emulparams/elf32ppc.sh \
594 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
595 ${GENSCRIPTS} elf32ppc_fbsd "$(tdir_elf32ppc_fbsd)"
596 eelf32ppcsim.c: $(srcdir)/emulparams/elf32ppcsim.sh \
597 $(srcdir)/emulparams/elf32ppc.sh \
598 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
599 ${GENSCRIPTS} elf32ppcsim "$(tdir_elf32ppcsim)"
600 eelf32ppclinux.c: $(srcdir)/emulparams/elf32ppclinux.sh \
601 $(srcdir)/emulparams/elf32ppc.sh \
602 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
603 ${GENSCRIPTS} elf32ppclinux "$(tdir_elf32ppclinux)"
604 eelf64ppc.c: $(srcdir)/emulparams/elf64ppc.sh $(srcdir)/emultempl/ppc64elf.em \
605 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
606 ${GENSCRIPTS} elf64ppc "$(tdir_elf64ppc)"
607 eelf64lppc.c: $(srcdir)/emulparams/elf64lppc.sh \
608 $(srcdir)/emulparams/elf64ppc.sh $(srcdir)/emultempl/ppc64elf.em \
609 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
610 ${GENSCRIPTS} elf64lppc "$(tdir_elf64lppc)"
611 eelf32i370.c: $(srcdir)/emulparams/elf32i370.sh \
612 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elfi370.sc ${GEN_DEPENDS}
613 ${GENSCRIPTS} elf32i370 "$(tdir_elf32i370)"
614 eelf64alpha.c: $(srcdir)/emulparams/elf64alpha.sh \
615 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
616 ${GENSCRIPTS} elf64alpha "$(tdir_elf64alpha)"
617 eelf64alpha_fbsd.c: $(srcdir)/emulparams/elf64alpha_fbsd.sh \
618 $(srcdir)/emulparams/elf64alpha.sh \
619 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
620 ${GENSCRIPTS} elf64alpha_fbsd "$(tdir_elf64alpha_fbsd)"
621 eelf64alpha_nbsd.c: $(srcdir)/emulparams/elf64alpha_nbsd.sh \
622 $(srcdir)/emulparams/elf64alpha.sh \
623 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
624 ${GENSCRIPTS} elf64alpha_nbsd "$(tdir_elf64alpha_nbsd)"
625 eelf64hppa.c: $(srcdir)/emulparams/elf64hppa.sh \
626 $(srcdir)/emulparams/hppa64linux.sh \
627 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
628 ${GENSCRIPTS} elf64hppa "$(tdir_elf64hppa)"
629 eelf64_aix.c: $(srcdir)/emulparams/elf64_aix.sh \
630 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
631 ${GENSCRIPTS} elf64_aix "$(tdir_elf64_aix)"
632 eelf64_ia64.c: $(srcdir)/emulparams/elf64_ia64.sh \
633 $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/needrelax.em \
634 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
635 ${GENSCRIPTS} elf64_ia64 "$(tdir_elf64_ia64)"
636 eelf64_ia64_fbsd.c: $(srcdir)/emulparams/elf64_ia64_fbsd.sh \
637 $(srcdir)/emulparams/elf64_ia64.sh \
638 $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/needrelax.em \
639 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
640 ${GENSCRIPTS} elf64_ia64_fbsd "$(tdir_elf64_ia64_fbsd)"
641 eelf64_s390.c: $(srcdir)/emulparams/elf64_s390.sh \
642 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
643 ${GENSCRIPTS} elf64_s390 "$(tdir_elf64_s390)"
644 eelf64_sparc.c: $(srcdir)/emulparams/elf64_sparc.sh \
645 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
646 ${GENSCRIPTS} elf64_sparc "$(tdir_elf64_sparc)"
647 eelf64_sparc_fbsd.c: $(srcdir)/emulparams/elf64_sparc_fbsd.sh \
648 $(srcdir)/emulparams/elf64_sparc.sh \
649 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
650 ${GENSCRIPTS} elf64_sparc_fbsd "$(tdir_elf64_sparc_fbsd)"
651 eelf64bmip.c: $(srcdir)/emulparams/elf64bmip.sh \
652 $(srcdir)/emulparams/elf32bmipn32.sh \
653 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
654 ${GENSCRIPTS} elf64bmip "$(tdir_elf64bmip)"
655 eelf64mmix.c: $(srcdir)/emulparams/elf64mmix.sh \
656 $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/mmix-elfnmmo.em \
657 $(srcdir)/emultempl/mmixelf.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
658 ${GENSCRIPTS} elf64mmix "$(tdir_elf64mmix)"
659 emmo.c: $(srcdir)/emulparams/mmo.sh $(srcdir)/emultempl/mmix-elfnmmo.em \
660 $(srcdir)/emultempl/generic.em $(srcdir)/emultempl/mmo.em \
661 $(srcdir)/scripttempl/mmo.sc ${GEN_DEPENDS}
662 ${GENSCRIPTS} mmo "$(tdir_mmo)"
663 eelf64btsmip.c: $(srcdir)/emulparams/elf64btsmip.sh \
664 $(srcdir)/emulparams/elf32bmipn32.sh \
665 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
666 ${GENSCRIPTS} elf64btsmip "$(tdir_elf64btsmip)"
667 eelf64ltsmip.c: $(srcdir)/emulparams/elf64ltsmip.sh \
668 $(srcdir)/emulparams/elf64btsmip.sh $(srcdir)/emulparams/elf32bmipn32.sh \
669 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
670 ${GENSCRIPTS} elf64ltsmip "$(tdir_elf64ltsmip)"
671 eelf_i386.c: $(srcdir)/emulparams/elf_i386.sh \
672 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
673 ${GENSCRIPTS} elf_i386 "$(tdir_elf_i386)"
674 eelf_x86_64.c: $(srcdir)/emulparams/elf_x86_64.sh \
675 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
676 ${GENSCRIPTS} elf_x86_64 "$(tdir_elf_x86_64)"
677 eelf_x86_64_fbsd.c: $(srcdir)/emulparams/elf_x86_64_fbsd.sh \
678 $(srcdir)/emulparams/elf_x86_64.sh \
679 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
680 ${GENSCRIPTS} elf_x86_64_fbsd "$(tdir_elf_x86_64_fbsd)"
681 eelf_i386_be.c: $(srcdir)/emulparams/elf_i386_be.sh \
682 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
683 ${GENSCRIPTS} elf_i386_be "$(tdir_elf_i386_be)"
684 eelf_i386_chaos.c: $(srcdir)/emulparams/elf_i386_chaos.sh \
685 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf_chaos.sc ${GEN_DEPENDS}
686 ${GENSCRIPTS} elf_i386_chaos "$(tdir_elf_i386_chaos)"
687 eelf_i386_fbsd.c: $(srcdir)/emulparams/elf_i386_fbsd.sh \
688 $(srcdir)/emulparams/elf_i386.sh \
689 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
690 ${GENSCRIPTS} elf_i386_fbsd "$(tdir_elf_i386_fbsd)"
691 eelf_i386_ldso.c: $(srcdir)/emulparams/elf_i386_ldso.sh \
692 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
693 ${GENSCRIPTS} elf_i386_ldso "$(tdir_elf_i386_ldso)"
694 eelf_s390.c: $(srcdir)/emulparams/elf_s390.sh \
695 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
696 ${GENSCRIPTS} elf_s390 "$(tdir_elf_s390)"
697 egld960.c: $(srcdir)/emulparams/gld960.sh \
698 $(srcdir)/emultempl/gld960.em $(srcdir)/scripttempl/i960.sc ${GEN_DEPENDS}
699 ${GENSCRIPTS} gld960 "$(tdir_gld960)"
700 egld960coff.c: $(srcdir)/emulparams/gld960coff.sh \
701 $(srcdir)/emultempl/gld960c.em $(srcdir)/scripttempl/i960.sc ${GEN_DEPENDS}
702 ${GENSCRIPTS} gld960coff "$(tdir_gld960coff)"
703 eh8300.c: $(srcdir)/emulparams/h8300.sh \
704 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300.sc ${GEN_DEPENDS}
705 ${GENSCRIPTS} h8300 "$(tdir_h8300)"
706 eh8300h.c: $(srcdir)/emulparams/h8300h.sh \
707 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300h.sc ${GEN_DEPENDS}
708 ${GENSCRIPTS} h8300h "$(tdir_h8300h)"
709 eh8300s.c: $(srcdir)/emulparams/h8300s.sh \
710 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300s.sc ${GEN_DEPENDS}
711 ${GENSCRIPTS} h8300s "$(tdir_h8300s)"
712 eh8300elf.c: $(srcdir)/emulparams/h8300elf.sh \
713 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
714 ${GENSCRIPTS} h8300elf "$(tdir_h8300elf)"
715 eh8300helf.c: $(srcdir)/emulparams/h8300helf.sh \
716 $(srcdir)/emulparams/h8300elf.sh \
717 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
718 ${GENSCRIPTS} h8300helf "$(tdir_h8300helf)"
719 eh8300self.c: $(srcdir)/emulparams/h8300self.sh \
720 $(srcdir)/emulparams/h8300elf.sh \
721 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
722 ${GENSCRIPTS} h8300self "$(tdir_h8300self)"
723 eh8500.c: $(srcdir)/emulparams/h8500.sh \
724 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500.sc ${GEN_DEPENDS}
725 ${GENSCRIPTS} h8500 "$(tdir_h8500)"
726 eh8500b.c: $(srcdir)/emulparams/h8500b.sh \
727 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500b.sc ${GEN_DEPENDS}
728 ${GENSCRIPTS} h8500b "$(tdir_h8500b)"
729 eh8500c.c: $(srcdir)/emulparams/h8500c.sh \
730 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500c.sc ${GEN_DEPENDS}
731 ${GENSCRIPTS} h8500c "$(tdir_h8500c)"
732 eh8500m.c: $(srcdir)/emulparams/h8500m.sh \
733 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500m.sc ${GEN_DEPENDS}
734 ${GENSCRIPTS} h8500m "$(tdir_h8500m)"
735 eh8500s.c: $(srcdir)/emulparams/h8500s.sh \
736 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500s.sc ${GEN_DEPENDS}
737 ${GENSCRIPTS} h8500s "$(tdir_h8500s)"
738 ehp300bsd.c: $(srcdir)/emulparams/hp300bsd.sh \
739 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
740 ${GENSCRIPTS} hp300bsd "$(tdir_hp300bsd)"
741 ehp3hpux.c: $(srcdir)/emulparams/hp3hpux.sh \
742 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
743 ${GENSCRIPTS} hp3hpux "$(tdir_hp3hpux)"
744 ehppaelf.c: $(srcdir)/emulparams/hppaelf.sh \
745 $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/hppaelf.em \
746 $(srcdir)/scripttempl/hppaelf.sc ${GEN_DEPENDS}
747 ${GENSCRIPTS} hppaelf "$(tdir_hppaelf)"
748 ehppalinux.c: $(srcdir)/emulparams/hppalinux.sh \
749 $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/hppaelf.em \
750 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
751 ${GENSCRIPTS} hppalinux "$(tdir_hppalinux)"
752 ehppanbsd.c: $(srcdir)/emulparams/hppanbsd.sh \
753 $(srcdir)/emulparams/hppaelf.sh \
754 $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/hppaelf.em \
755 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
756 ${GENSCRIPTS} hppanbsd "$(tdir_hppanbsd)"
757 ehppa64linux.c: $(srcdir)/emulparams/hppa64linux.sh \
758 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
759 ${GENSCRIPTS} hppa64linux "$(tdir_hppa64linux)"
760 ei386aout.c: $(srcdir)/emulparams/i386aout.sh \
761 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
762 ${GENSCRIPTS} i386aout "$(tdir_i386aout)"
763 ei386beos.c: $(srcdir)/emulparams/i386beos.sh \
764 $(srcdir)/emultempl/beos.em $(srcdir)/scripttempl/i386beos.sc ${GEN_DEPENDS}
765 ${GENSCRIPTS} i386beos "$(tdir_i386beos)"
766 ei386bsd.c: $(srcdir)/emulparams/i386bsd.sh \
767 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
768 ${GENSCRIPTS} i386bsd "$(tdir_i386bsd)"
769 ei386coff.c: $(srcdir)/emulparams/i386coff.sh \
770 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386coff.sc ${GEN_DEPENDS}
771 ${GENSCRIPTS} i386coff "$(tdir_i386coff)"
772 ei386go32.c: $(srcdir)/emulparams/i386go32.sh \
773 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386go32.sc ${GEN_DEPENDS}
774 ${GENSCRIPTS} i386go32 "$(tdir_i386go32)"
775 ei386linux.c: $(srcdir)/emulparams/i386linux.sh \
776 $(srcdir)/emultempl/linux.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
777 ${GENSCRIPTS} i386linux "$(tdir_i386linux)"
778 ei386lynx.c: $(srcdir)/emulparams/i386lynx.sh \
779 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386lynx.sc ${GEN_DEPENDS}
780 ${GENSCRIPTS} i386lynx "$(tdir_i386lynx)"
781 ei386mach.c: $(srcdir)/emulparams/i386mach.sh \
782 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
783 ${GENSCRIPTS} i386mach "$(tdir_i386mach)"
784 ei386moss.c: $(srcdir)/emulparams/i386moss.sh \
785 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
786 ${GENSCRIPTS} i386moss "$(tdir_i386moss)"
787 ei386msdos.c: $(srcdir)/emulparams/i386msdos.sh \
788 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386msdos.sc ${GEN_DEPENDS}
789 ${GENSCRIPTS} i386msdos "$(tdir_i386msdos)"
790 ei386nbsd.c: $(srcdir)/emulparams/i386nbsd.sh \
791 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
792 ${GENSCRIPTS} i386nbsd "$(tdir_i386nbsd)"
793 ei386nw.c: $(srcdir)/emulparams/i386nw.sh \
794 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/nw.sc ${GEN_DEPENDS}
795 ${GENSCRIPTS} i386nw "$(tdir_i386nw)"
796 ei386pe.c: $(srcdir)/emulparams/i386pe.sh \
797 $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS}
798 ${GENSCRIPTS} i386pe "$(tdir_i386pe)"
799 ei386pe_posix.c: $(srcdir)/emulparams/i386pe_posix.sh \
800 $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS}
801 ${GENSCRIPTS} i386pe_posix "$(tdir_i386pe_posix)"
802 elnk960.c: $(srcdir)/emulparams/lnk960.sh \
803 $(srcdir)/emultempl/lnk960.em $(srcdir)/scripttempl/i960.sc ${GEN_DEPENDS}
804 ${GENSCRIPTS} lnk960 "$(tdir_lnk960)"
805 em68hc11elf.c: $(srcdir)/emulparams/m68hc11elf.sh \
806 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elfm68hc11.sc ${GEN_DEPENDS}
807 ${GENSCRIPTS} m68hc11elf "$(tdir_m68hc11)"
808 em68hc11elfb.c: $(srcdir)/emulparams/m68hc11elfb.sh \
809 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elfm68hc11.sc ${GEN_DEPENDS}
810 ${GENSCRIPTS} m68hc11elfb "$(tdir_m68hc11b)"
811 em68hc12elf.c: $(srcdir)/emulparams/m68hc12elf.sh \
812 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elfm68hc12.sc ${GEN_DEPENDS}
813 ${GENSCRIPTS} m68hc12elf "$(tdir_m68hc12)"
814 em68hc12elfb.c: $(srcdir)/emulparams/m68hc12elfb.sh \
815 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elfm68hc12.sc ${GEN_DEPENDS}
816 ${GENSCRIPTS} m68hc12elfb "$(tdir_m68hc12b)"
817 em68k4knbsd.c: $(srcdir)/emulparams/m68k4knbsd.sh \
818 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
819 ${GENSCRIPTS} m68k4knbsd "$(tdir_m68k4knbsd)"
820 em68kaout.c: $(srcdir)/emulparams/m68kaout.sh \
821 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
822 ${GENSCRIPTS} m68kaout "$(tdir_m68kaout)"
823 em68kaux.c: $(srcdir)/emulparams/m68kaux.sh \
824 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/m68kaux.sc ${GEN_DEPENDS}
825 ${GENSCRIPTS} m68kaux "$(tdir_m68kaux)"
826 em68kcoff.c: $(srcdir)/emulparams/m68kcoff.sh \
827 $(srcdir)/emultempl/m68kcoff.em $(srcdir)/scripttempl/m68kcoff.sc ${GEN_DEPENDS}
828 ${GENSCRIPTS} m68kcoff "$(tdir_m68kcoff)"
829 em68kelf.c: $(srcdir)/emulparams/m68kelf.sh \
830 $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/m68kelf.em \
831 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
832 ${GENSCRIPTS} m68kelf "$(tdir_m68kelf)"
833 em68kelfnbsd.c: $(srcdir)/emulparams/m68kelfnbsd.sh \
834 $(srcdir)/emulparams/m68kelf.sh \
835 $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/m68kelf.em \
836 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
837 ${GENSCRIPTS} m68kelfnbsd "$(tdir_m68kelfnbsd)"
838 em68klinux.c: $(srcdir)/emulparams/m68klinux.sh \
839 $(srcdir)/emultempl/linux.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
840 ${GENSCRIPTS} m68klinux "$(tdir_m68klinux)"
841 em68klynx.c: $(srcdir)/emulparams/m68klynx.sh \
842 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/m68klynx.sc ${GEN_DEPENDS}
843 ${GENSCRIPTS} m68klynx "$(tdir_m68klynx)"
844 em68knbsd.c: $(srcdir)/emulparams/m68knbsd.sh \
845 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
846 ${GENSCRIPTS} m68knbsd "$(tdir_m68knbsd)"
847 em68kpsos.c: $(srcdir)/emulparams/m68kpsos.sh \
848 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/psos.sc ${GEN_DEPENDS}
849 ${GENSCRIPTS} m68kpsos "$(tdir_m68kpsos)"
850 em88kbcs.c: $(srcdir)/emulparams/m88kbcs.sh \
851 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/m88kbcs.sc ${GEN_DEPENDS}
852 ${GENSCRIPTS} m88kbcs "$(tdir_m88kbcs)"
853 emcorepe.c: $(srcdir)/emulparams/mcorepe.sh \
854 $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS}
855 ${GENSCRIPTS} mcorepe "$(tdir_mcorepe)"
856 emipsbig.c: $(srcdir)/emulparams/mipsbig.sh \
857 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
858 ${GENSCRIPTS} mipsbig
859 emipsbsd.c: $(srcdir)/emulparams/mipsbsd.sh \
860 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mipsbsd.sc ${GEN_DEPENDS}
861 ${GENSCRIPTS} mipsbsd
862 emipsidt.c: $(srcdir)/emulparams/mipsidt.sh \
863 $(srcdir)/emultempl/mipsecoff.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
864 ${GENSCRIPTS} mipsidt "$(tdir_mipsidt)"
865 emipsidtl.c: $(srcdir)/emulparams/mipsidtl.sh \
866 $(srcdir)/emultempl/mipsecoff.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
867 ${GENSCRIPTS} mipsidtl "$(tdir_mipsidtl)"
868 emipslit.c: $(srcdir)/emulparams/mipslit.sh \
869 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
870 ${GENSCRIPTS} mipslit "$(tdir_mipslit)"
871 emipslnews.c: $(srcdir)/emulparams/mipslnews.sh \
872 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
873 ${GENSCRIPTS} mipslnews
874 emipspe.c: $(srcdir)/emulparams/mipspe.sh \
875 $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS}
876 ${GENSCRIPTS} mipspe "$(tdir_mips)"
877 emn10300.c: $(srcdir)/emulparams/mn10300.sh \
878 $(srcdir)/emulparams/mn10200.sh \
879 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
880 ${GENSCRIPTS} mn10300 "$(tdir_mn10300)"
881 emn10200.c: $(srcdir)/emulparams/mn10200.sh \
882 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
883 ${GENSCRIPTS} mn10200 "$(tdir_mn10200)"
884 enews.c: $(srcdir)/emulparams/news.sh \
885 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
886 ${GENSCRIPTS} news "$(tdir_news)"
887 ens32knbsd.c: $(srcdir)/emulparams/ns32knbsd.sh \
888 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
889 ${GENSCRIPTS} ns32knbsd "$(tdir_ns32knbsd)"
890 eor32.c: $(srcdir)/emulparams/or32.sh \
891 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/or32.sc ${GEN_DEPENDS}
892 ${GENSCRIPTS} or32 "$(tdir_or32)"
893 eor32elf.c: $(srcdir)/emulparams/or32elf.sh \
894 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
895 ${GENSCRIPTS} or32elf "$(tdir_or32elf)"
896 epc532macha.c: $(srcdir)/emulparams/pc532macha.sh \
897 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
898 ${GENSCRIPTS} pc532macha "$(tdir_pc532macha)"
899 epdp11.c: $(srcdir)/emulparams/pdp11.sh \
900 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
901 ${GENSCRIPTS} pdp11 "$(tdir_pdp11)"
902 epjelf.c: $(srcdir)/emulparams/pjelf.sh \
903 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
904 ${GENSCRIPTS} pjelf "$(tdir_pjelf)"
905 epjlelf.c: $(srcdir)/emulparams/pjlelf.sh \
906 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
907 ${GENSCRIPTS} pjlelf "$(tdir_pjlelf)"
908 eppcmacos.c: $(srcdir)/emulparams/ppcmacos.sh \
909 $(srcdir)/emultempl/aix.em $(srcdir)/scripttempl/aix.sc ${GEN_DEPENDS}
910 ${GENSCRIPTS} ppcmacos "$(tdir_ppcmacos)"
911 eppcnw.c: $(srcdir)/emulparams/ppcnw.sh \
912 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/nw.sc ${GEN_DEPENDS}
913 ${GENSCRIPTS} ppcnw "$(tdir_ppcnw)"
914 eppcpe.c: $(srcdir)/emulparams/ppcpe.sh \
915 $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/ppcpe.sc ${GEN_DEPENDS}
916 ${GENSCRIPTS} ppcpe "$(tdir_ppcpe)"
917 eriscix.c: $(srcdir)/emulparams/riscix.sh \
918 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
919 ${GENSCRIPTS} riscix "$(tdir_riscix)"
920 esa29200.c: $(srcdir)/emulparams/sa29200.sh \
921 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sa29200.sc ${GEN_DEPENDS}
922 ${GENSCRIPTS} sa29200 "$(tdir_sa29200)"
923 esh.c: $(srcdir)/emulparams/sh.sh \
924 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sh.sc ${GEN_DEPENDS}
925 ${GENSCRIPTS} sh "$(tdir_sh)"
926 eshelf.c: $(srcdir)/emulparams/shelf.sh \
927 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
928 ${GENSCRIPTS} shelf "$(tdir_shelf)"
929 eshelf32.c: $(srcdir)/emulparams/shelf32.sh \
930 $(BFDDIR)/libbfd.h $(INCDIR)/libiberty.h \
931 $(srcdir)/emultempl/sh64elf.em $(INCDIR)/elf/sh.h $(BFDDIR)/elf-bfd.h \
932 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
933 ${GENSCRIPTS} shelf32 "$(tdir_shelf32)"
934 eshelf64.c: $(srcdir)/emulparams/shelf64.sh $(srcdir)/emulparams/shelf32.sh \
935 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
936 ${GENSCRIPTS} shelf64 "$(tdir_shelf64)"
937 eshelf_linux.c: $(srcdir)/emulparams/shelf_linux.sh \
938 $(srcdir)/emulparams/shlelf_linux.sh \
939 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
940 ${GENSCRIPTS} shelf_linux "$(tdir_shelf_linux)"
941 eshlelf_linux.c: $(srcdir)/emulparams/shlelf_linux.sh \
942 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
943 ${GENSCRIPTS} shlelf_linux "$(tdir_shlelf_linux)"
944 eshelf_nbsd.c: $(srcdir)/emulparams/shelf_nbsd.sh \
945 $(srcdir)/emulparams/shelf.sh \
946 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
947 ${GENSCRIPTS} shelf_nbsd "$(tdir_shelf_nbsd)"
948 eshlelf_nbsd.c: $(srcdir)/emulparams/shlelf_nbsd.sh \
949 $(srcdir)/emulparams/shelf_nbsd.sh \
950 $(srcdir)/emulparams/shelf.sh \
951 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
952 ${GENSCRIPTS} shlelf_nbsd "$(tdir_shlelf_nbsd)"
953 eshlelf.c: $(srcdir)/emulparams/shlelf.sh \
954 $(srcdir)/emulparams/shelf.sh \
955 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
956 ${GENSCRIPTS} shlelf "$(tdir_shlelf)"
957 eshlelf32.c: $(srcdir)/emulparams/shlelf32.sh \
958 $(BFDDIR)/libbfd.h $(INCDIR)/libiberty.h $(srcdir)/emulparams/shelf32.sh \
959 $(srcdir)/emultempl/sh64elf.em $(INCDIR)/elf/sh.h $(BFDDIR)/elf-bfd.h \
960 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
961 ${GENSCRIPTS} shlelf32 "$(tdir_shlelf32)"
962 eshlelf64.c: $(srcdir)/emulparams/shlelf64.sh \
963 $(srcdir)/emulparams/shelf64.sh $(srcdir)/emulparams/shelf32.sh \
964 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
965 ${GENSCRIPTS} shlelf64 "$(tdir_shlelf64)"
966 eshl.c: $(srcdir)/emulparams/shl.sh \
967 $(srcdir)/emulparams/sh.sh \
968 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sh.sc ${GEN_DEPENDS}
969 ${GENSCRIPTS} shl "$(tdir_shl)"
970 eshpe.c: $(srcdir)/emulparams/shpe.sh \
971 $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS}
972 ${GENSCRIPTS} shpe "$(tdir_shl)"
973 esparcaout.c: $(srcdir)/emulparams/sparcaout.sh \
974 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
975 ${GENSCRIPTS} sparcaout "$(tdir_sparcaout)"
976 esparclinux.c: $(srcdir)/emulparams/sparclinux.sh \
977 $(srcdir)/emultempl/linux.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
978 ${GENSCRIPTS} sparclinux "$(tdir_sparclinux)"
979 esparclynx.c: $(srcdir)/emulparams/sparclynx.sh \
980 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sparclynx.sc ${GEN_DEPENDS}
981 ${GENSCRIPTS} sparclynx "$(tdir_sparclynx)"
982 esparcnbsd.c: $(srcdir)/emulparams/sparcnbsd.sh \
983 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
984 ${GENSCRIPTS} sparcnbsd "$(tdir_sparcnbsd)"
985 est2000.c: $(srcdir)/emulparams/st2000.sh \
986 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/st2000.sc ${GEN_DEPENDS}
987 ${GENSCRIPTS} st2000 "$(tdir_st2000)"
988 esun3.c: $(srcdir)/emulparams/sun3.sh \
989 $(srcdir)/emultempl/sunos.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
990 ${GENSCRIPTS} sun3 "$(tdir_sun3)"
991 esun4.c: $(srcdir)/emulparams/sun4.sh \
992 $(srcdir)/emultempl/sunos.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
993 ${GENSCRIPTS} sun4 "$(tdir_sun4)"
994 etic30aout.c: $(srcdir)/emulparams/tic30aout.sh \
995 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/tic30aout.sc ${GEN_DEPENDS}
996 ${GENSCRIPTS} tic30aout "$(tdir_tic30aout)"
997 etic30coff.c: $(srcdir)/emulparams/tic30coff.sh \
998 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/tic30coff.sc ${GEN_DEPENDS}
999 ${GENSCRIPTS} tic30coff "$(tdir_tic30coff)"
1000 etic54xcoff.c: $(srcdir)/emulparams/tic54xcoff.sh \
1001 $(srcdir)/emultempl/ticoff.em $(srcdir)/scripttempl/tic54xcoff.sc ${GEN_DEPENDS}
1002 ${GENSCRIPTS} tic54xcoff "$(tdir_tic54xcoff)"
1003 etic80coff.c: $(srcdir)/emulparams/tic80coff.sh \
1004 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/tic80coff.sc ${GEN_DEPENDS}
1005 ${GENSCRIPTS} tic80coff "$(tdir_tic80coff)"
1006 evanilla.c: $(srcdir)/emulparams/vanilla.sh \
1007 $(srcdir)/emultempl/vanilla.em $(srcdir)/scripttempl/vanilla.sc ${GEN_DEPENDS}
1008 ${GENSCRIPTS} vanilla "$(tdir_vanilla)"
1009 evax.c: $(srcdir)/emulparams/vax.sh \
1010 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1011 ${GENSCRIPTS} vax "$(tdir_vax)"
1012 evsta.c: $(srcdir)/emulparams/vsta.sh \
1013 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1014 ${GENSCRIPTS} vsta "$(tdir_vsta)"
1015 ev850.c: $(srcdir)/emulparams/v850.sh \
1016 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/v850.sc ${GEN_DEPENDS}
1017 ${GENSCRIPTS} v850 "$(tdir_v850)"
1018 ew65.c: $(srcdir)/emulparams/w65.sh \
1019 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/w65.sc ${GEN_DEPENDS}
1020 ${GENSCRIPTS} w65 "$(tdir_w65)"
1021 ez8001.c: $(srcdir)/emulparams/z8001.sh \
1022 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/z8000.sc ${GEN_DEPENDS}
1023 ${GENSCRIPTS} z8001 "$(tdir_z8001)"
1024 ez8002.c: $(srcdir)/emulparams/z8002.sh \
1025 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/z8000.sc ${GEN_DEPENDS}
1026 ${GENSCRIPTS} z8002 "$(tdir_z8002)"
1028 # We need this for automake to use YLWRAP.
1029 EXTRA_ld_new_SOURCES = deffilep.y
1031 ld_new_SOURCES = ldgram.y ldlex.l lexsup.c ldlang.c mri.c ldctor.c ldmain.c \
1032 ldwrite.c ldexp.c ldemul.c ldver.c ldmisc.c ldfile.c ldcref.c
1033 ld_new_DEPENDENCIES = $(EMULATION_OFILES) $(EMUL_EXTRA_OFILES) $(BFDLIB) $(LIBIBERTY) $(INTLDEPS)
1034 ld_new_LDADD = $(EMULATION_OFILES) $(EMUL_EXTRA_OFILES) $(BFDLIB) $(LIBIBERTY) $(INTLLIBS)
1036 # The generated emulation files mostly have the same dependencies.
1037 $(EMULATION_OFILES): ../bfd/bfd.h sysdep.h config.h $(INCDIR)/bfdlink.h \
1038 ld.h ldmain.h ldemul.h ldfile.h ldmisc.h ldexp.h ldlang.h \
1039 ldctor.h ldexp.h ldlang.h ldgram.h
1041 # This is the real libbfd.a created by libtool.
1042 TESTBFDLIB = @TESTBFDLIB@
1044 check-DEJAGNU: site.exp
1045 srcroot=`cd $(srcdir) && pwd`; export srcroot; \
1046 r=`pwd`; export r; \
1047 LC_COLLATE=; LC_ALL=; LANG=; export LC_COLLATE LC_ALL LANG; \
1048 EXPECT=$(EXPECT); export EXPECT; \
1049 if [ -f $(top_builddir)/../expect/expect ]; then \
1050 TCL_LIBRARY=`cd $(top_srcdir)/../tcl/library && pwd`; \
1051 export TCL_LIBRARY; \
1053 runtest=$(RUNTEST); \
1054 if $(SHELL) -c "$$runtest --version" > /dev/null 2>&1; then \
1055 $$runtest --tool $(DEJATOOL) --srcdir $${srcroot}/testsuite \
1056 CC="$(CC_FOR_TARGET)" CFLAGS="$(CFLAGS)" \
1057 CXX="$(CXX_FOR_TARGET)" CXXFLAGS="$(CXXFLAGS)" \
1058 CC_FOR_HOST="$(CC)" CFLAGS_FOR_HOST="$(CFLAGS)" \
1059 OFILES="$(OFILES)" BFDLIB="$(TESTBFDLIB)" \
1060 LIBIBERTY="$(LIBIBERTY) $(INTLLIBS)" LIBS="$(LIBS)" \
1062 else echo "WARNING: could not find \`runtest'" 1>&2; :;\
1065 # Rules for testing by relinking ld itself.
1066 # A similar test is in the testsuite. This target is for ease of use
1069 ld-partial.o: ld-new$(EXEEXT)
1070 ./ld-new$(EXEEXT) $(HOSTING_EMU) -o ld-partial.o -r $(OFILES)
1071 ld1$(EXEEXT): ld-partial.o
1072 ./ld-new$(EXEEXT) $(HOSTING_EMU) -o ld1$(EXEEXT) $(HOSTING_CRT0) ld-partial.o $(TESTBFDLIB) $(LIBIBERTY) $(HOSTING_LIBS) $(LIBS)
1074 ld1-full$(EXEEXT): ld-new
1075 ./ld-new$(EXEEXT) $(HOSTING_EMU) -o ld1-full$(EXEEXT) $(HOSTING_CRT0) $(OFILES) $(TESTBFDLIB) $(LIBIBERTY) $(HOSTING_LIBS) $(LIBS)
1077 ld2$(EXEEXT): ld1$(EXEEXT)
1078 ./ld1$(EXEEXT) $(HOSTING_EMU) -o ld2$(EXEEXT) $(HOSTING_CRT0) $(OFILES) $(TESTBFDLIB) $(LIBIBERTY) $(HOSTING_LIBS) $(LIBS)
1080 ld3$(EXEEXT): ld2$(EXEEXT)
1081 ./ld2$(EXEEXT) $(HOSTING_EMU) -o ld3$(EXEEXT) $(HOSTING_CRT0) $(OFILES) $(TESTBFDLIB) $(LIBIBERTY) $(HOSTING_LIBS) $(LIBS)
1083 bootstrap: ld3$(EXEEXT)
1084 cmp ld2$(EXEEXT) ld3$(EXEEXT)
1088 # A test program for C++ constructors and destructors.
1089 # This test is now in the testsuite.
1091 #cdtest: cdtest-main.o cdtest-bar.o cdtest-foo.o ld.new
1092 # ./ld.new $(HOSTING_EMU) -o cdtest $(HOSTING_CRT0) \
1093 # cdtest-main.o cdtest-bar.o cdtest-foo.o $(HOSTING_LIBS)
1096 # ./cdtest > cdtest.tmp
1097 # mv cdtest.tmp cdtest.out
1099 #cdtest-ur.o: cdtest-main.o cdtest-bar.o cdtest-foo.o ld.new
1100 # ./ld.new $(HOSTING_EMU) -o cdtest-ur.o -Ur cdtest-main.o \
1101 # cdtest-bar.o cdtest-foo.o
1103 #cdtest-ur: cdtest-ur.o
1104 # ./ld.new $(HOSTING_EMU) -o cdtest-ur $(HOSTING_CRT0) cdtest-ur.o \
1107 #cdtest-ur.out: cdtest-ur
1108 # ./cdtest-ur > cdtest-ur.tmp
1109 # mv cdtest-ur.tmp cdtest-ur.out
1111 #check-cdtest: cdtest.out cdtest-ur.out $(srcdir)/cdtest.exp
1112 # diff $(srcdir)/cdtest.exp cdtest.out
1113 # diff $(srcdir)/cdtest.exp cdtest-ur.out
1115 #.PHONY: check-cdtest
1117 # END OF CHECK TARGETS
1119 # DOCUMENTATION TARGETS
1120 # Manual configuration file; not usually attached to normal configuration,
1121 # because almost all configs use "gen" version of manual.
1122 # Set DOCVER above to change.
1123 configdoc.texi: ${DOCVER}-doc.texi
1124 ln -s ${srcdir}/${DOCVER}-doc.texi ./configdoc.texi >/dev/null 2>&1 \
1125 || ln ${srcdir}/${DOCVER}-doc.texi ./configdoc.texi >/dev/null 2>&1 \
1126 || cp ${srcdir}/${DOCVER}-doc.texi ./configdoc.texi
1128 ldver.texi: Makefile
1130 echo '@set VERSION $(VERSION)' > $@
1132 ld.info: $(srcdir)/ld.texinfo configdoc.texi ldver.texi
1133 @rm -f $@ $@-[0-9] $@-[0-9][0-9]
1134 $(MAKEINFO) -I $(srcdir) -I $(BFDDIR)/doc $(srcdir)/ld.texinfo
1136 ld.dvi: $(srcdir)/ld.texinfo configdoc.texi ldver.texi
1137 TEXINPUTS=$(top_srcdir)/../texinfo:$$TEXINPUTS \
1138 MAKEINFO="$(MAKEINFO) -I $(srcdir) -I $(BFDDIR)/doc" $(TEXI2DVI) -I $(BFDDIR)/doc $(srcdir)/ld.texinfo
1140 # Build the man page from the texinfo file
1141 # The sed command removes the no-adjust Nroff command so that
1142 # the man output looks standard.
1143 ld.1: $(srcdir)/ld.texinfo
1145 -$(TEXI2POD) $(MANCONF) < $(srcdir)/ld.texinfo > ld.pod
1146 -($(POD2MAN) ld.pod | \
1147 sed -e '/^.if n .na/d' > $@.T$$$$ && \
1148 mv -f $@.T$$$$ $@) || \
1149 (rm -f $@.T$$$$ && exit 1)
1152 MAINTAINERCLEANFILES = ldver.texi
1154 # We want to reconfigure if configure.host or configure.tgt changes.
1155 CONFIG_STATUS_DEPENDENCIES = $(srcdir)/configure.host $(srcdir)/configure.tgt
1157 MOSTLYCLEANFILES = $(STAGESTUFF) ld1$(EXEEXT) ld2$(EXEEXT) ld3$(EXEEXT) \
1158 ldemul-list.h crtbegin.o crtend.o ld.log ld.sum
1161 CLEANFILES = dep.sed DEP DEPA DEP1 DEP2
1163 .PHONY: install-exec-local install-data-local
1165 install-exec-local: ld-new$(EXEEXT)
1166 $(mkinstalldirs) $(DESTDIR)$(bindir) $(DESTDIR)$(tooldir)/bin
1167 @list='$(noinst_PROGRAMS)'; for p in $$list; do \
1168 if test -f $$p; then \
1169 echo " $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(bindir)/`echo $$p|sed -e 's/$(EXEEXT)$$//' -e 's/-new//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \
1170 $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed -e 's/$(EXEEXT)$$//' -e 's/-new//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
1173 n=`echo ld | sed '$(transform)'`; \
1174 if [ "$(bindir)/$$n$(EXEEXT)" != "$(tooldir)/bin/ld$(EXEEXT)" ]; then \
1175 rm -f $(DESTDIR)$(tooldir)/bin/ld$(EXEEXT); \
1176 ln $(DESTDIR)$(bindir)/$$n$(EXEEXT) $(DESTDIR)$(tooldir)/bin/ld$(EXEEXT) >/dev/null 2>/dev/null \
1177 || $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) ld-new$(EXEEXT) $(DESTDIR)$(tooldir)/bin/ld$(EXEEXT); \
1181 $(mkinstalldirs) $(DESTDIR)$(scriptdir)/ldscripts
1182 for f in ldscripts/*; do \
1183 $(INSTALL_DATA) $$f $(DESTDIR)$(scriptdir)/$$f ; \
1186 # We want install to imply install-info as per GNU standards, despite the
1188 install: install-info
1190 # Stuff that should be included in a distribution. The diststuff
1191 # target is run by the taz target in ../Makefile.in.
1192 EXTRA_DIST = ldgram.c ldgram.h ldlex.c $(man_MANS)
1193 diststuff: info $(EXTRA_DIST)
1195 DISTCLEANFILES = tdirs site.exp site.bak stringify.sed
1199 Makefile: $(BFDDIR)/configure.in
1201 # Targets to rebuild dependencies in this Makefile.
1202 # Have to get rid of DEP1 here so that "$?" later includes all of $(CFILES).
1203 DEP: dep.sed $(CFILES) $(HFILES) $(GENERATED_CFILES) $(GENERATED_HFILES) config.h
1205 $(MAKE) MKDEP="$(MKDEP)" DEP1
1206 sed -f dep.sed < DEP1 > DEPA
1207 echo '# IF YOU PUT ANYTHING HERE IT WILL GO AWAY' >> DEPA
1208 if grep ' /' DEPA > /dev/null 2> /dev/null; then \
1209 echo 'make DEP failed!'; exit 1; \
1214 DEP1: $(CFILES) $(GENERATED_CFILES)
1215 echo '# DO NOT DELETE THIS LINE -- mkdep uses it.' > DEP2
1216 echo '# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.' >> DEP2
1217 $(MKDEP) $(INCLUDES) $(CFLAGS) $? >> DEP2
1220 dep.sed: dep-in.sed config.status
1221 sed <$(srcdir)/dep-in.sed >dep.sed \
1222 -e 's!@INCDIR@!$(INCDIR)!' \
1223 -e 's!@BFDDIR@!$(BFDDIR)!' \
1224 -e 's!@SRCDIR@!$(srcdir)!' \
1225 -e 's!@TOPDIR@!'`echo $(srcdir) | sed -e s,/ld$$,,`'!'
1228 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < Makefile > tmp-Makefile
1229 cat DEP >> tmp-Makefile
1230 $(srcdir)/../move-if-change tmp-Makefile Makefile
1233 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.in > tmp-Makefile.in
1234 cat DEP >> tmp-Makefile.in
1235 $(srcdir)/../move-if-change tmp-Makefile.in $(srcdir)/Makefile.in
1238 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.am > tmp-Makefile.am
1239 cat DEP >> tmp-Makefile.am
1240 $(srcdir)/../move-if-change tmp-Makefile.am $(srcdir)/Makefile.am
1242 .PHONY: dep dep-in dep-am
1245 @MAINT@mpw: $(srcdir)/mpw-ei386go32.c $(srcdir)/mpw-elfmips.c \
1246 @MAINT@ $(srcdir)/mpw-em68kcoff.c $(srcdir)/mpw-eppcmac.c \
1247 @MAINT@ $(srcdir)/mpw-esh.c $(srcdir)/mpw-idtmips.c
1249 @MAINT@$(srcdir)/mpw-ei386go32.c: ei386go32.c
1250 @MAINT@ $(srcdir)/../move-if-change $< $@
1252 @MAINT@$(srcdir)/mpw-elfmips.c: eelf32ebmip.c
1253 @MAINT@ $(srcdir)/../move-if-change $< $@
1255 @MAINT@$(srcdir)/mpw-em68kcoff.c: em68kcoff.c
1256 @MAINT@ $(srcdir)/../move-if-change $< $@
1258 @MAINT@$(srcdir)/mpw-eppcmac.c: eppcmacos.c
1259 @MAINT@ $(srcdir)/../move-if-change $< $@
1261 @MAINT@$(srcdir)/mpw-esh.c: esh.c
1262 @MAINT@ $(srcdir)/../move-if-change $< $@
1264 @MAINT@$(srcdir)/mpw-idtmips.c: emipsidt.c
1265 @MAINT@ $(srcdir)/../move-if-change $< $@
1267 # What appears below is generated by a hacked mkdep using gcc -MM.
1269 # DO NOT DELETE THIS LINE -- mkdep uses it.
1270 # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
1271 ldctor.o: ldctor.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1272 $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
1273 $(INCDIR)/bfdlink.h $(INCDIR)/safe-ctype.h ld.h $(INCDIR)/bin-bugs.h \
1274 ldexp.h ldlang.h ldmisc.h ldgram.h ldmain.h ldctor.h
1275 ldemul.o: ldemul.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1276 $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
1277 ld.h $(INCDIR)/bin-bugs.h ldmisc.h ldexp.h ldlang.h \
1278 ldfile.h ldemul.h ldmain.h ldemul-list.h
1279 ldexp.o: ldexp.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1280 $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
1281 $(INCDIR)/bfdlink.h ld.h $(INCDIR)/bin-bugs.h ldmain.h \
1282 ldmisc.h ldexp.h ldgram.h ldlang.h $(INCDIR)/libiberty.h \
1283 $(INCDIR)/safe-ctype.h
1284 ldfile.o: ldfile.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1285 $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
1286 $(INCDIR)/bfdlink.h $(INCDIR)/safe-ctype.h ld.h $(INCDIR)/bin-bugs.h \
1287 ldmisc.h ldexp.h ldlang.h ldfile.h ldmain.h ldgram.h \
1288 ldlex.h ldemul.h $(INCDIR)/libiberty.h
1289 ldlang.o: ldlang.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1290 $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
1291 $(INCDIR)/libiberty.h $(INCDIR)/safe-ctype.h $(INCDIR)/obstack.h \
1292 $(INCDIR)/bfdlink.h ld.h $(INCDIR)/bin-bugs.h ldmain.h \
1293 ldexp.h ldlang.h ldgram.h ldlex.h ldmisc.h ldctor.h \
1294 ldfile.h ldemul.h $(INCDIR)/fnmatch.h $(INCDIR)/demangle.h
1295 ldmain.o: ldmain.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1296 $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
1297 $(INCDIR)/safe-ctype.h $(INCDIR)/libiberty.h $(INCDIR)/progress.h \
1298 $(INCDIR)/bfdlink.h $(INCDIR)/filenames.h ld.h $(INCDIR)/bin-bugs.h \
1299 ldmain.h ldmisc.h ldwrite.h ldexp.h ldlang.h ldgram.h \
1300 ldlex.h ldfile.h ldemul.h ldctor.h
1301 ldmisc.o: ldmisc.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1302 $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
1303 $(INCDIR)/libiberty.h $(INCDIR)/demangle.h ld.h $(INCDIR)/bin-bugs.h \
1304 ldmisc.h ldexp.h ldlang.h ldgram.h ldlex.h ldmain.h \
1306 ldver.o: ldver.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1307 $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
1308 ld.h $(INCDIR)/bin-bugs.h ldver.h ldexp.h ldlang.h \
1309 ldfile.h ldemul.h ldmain.h
1310 ldwrite.o: ldwrite.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1311 $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
1312 $(INCDIR)/bfdlink.h $(INCDIR)/libiberty.h ld.h $(INCDIR)/bin-bugs.h \
1313 ldexp.h ldlang.h ldwrite.h ldmisc.h ldgram.h ldmain.h
1314 lexsup.o: lexsup.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1315 $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
1316 $(INCDIR)/libiberty.h $(INCDIR)/safe-ctype.h $(INCDIR)/bfdlink.h \
1317 ld.h $(INCDIR)/bin-bugs.h ldmain.h ldmisc.h ldexp.h \
1318 ldlang.h ldgram.h ldlex.h ldfile.h ldver.h ldemul.h \
1319 $(INCDIR)/demangle.h
1320 mri.o: mri.c ../bfd/bfd.h $(INCDIR)/ansidecl.h $(INCDIR)/symcat.h \
1321 sysdep.h config.h $(INCDIR)/fopen-same.h ld.h $(INCDIR)/bin-bugs.h \
1322 ldexp.h ldlang.h ldmisc.h mri.h ldgram.h $(INCDIR)/libiberty.h
1323 ldcref.o: ldcref.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1324 $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
1325 $(INCDIR)/bfdlink.h $(INCDIR)/libiberty.h ld.h $(INCDIR)/bin-bugs.h \
1326 ldmain.h ldmisc.h ldexp.h ldlang.h
1327 pe-dll.o: pe-dll.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1328 $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
1329 $(INCDIR)/bfdlink.h $(INCDIR)/libiberty.h $(INCDIR)/safe-ctype.h \
1330 ld.h $(INCDIR)/bin-bugs.h ldexp.h ldlang.h ldwrite.h \
1331 ldmisc.h ldgram.h ldmain.h ldfile.h ldemul.h $(INCDIR)/coff/internal.h \
1332 $(BFDDIR)/libcoff.h deffile.h pe-dll.h
1333 ldgram.o: ldgram.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1334 $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
1335 $(INCDIR)/bfdlink.h ld.h $(INCDIR)/bin-bugs.h ldexp.h \
1336 ldver.h ldlang.h ldfile.h ldemul.h ldmisc.h ldmain.h \
1337 mri.h ldctor.h ldlex.h
1338 ldlex.o: ldlex.c $(INCDIR)/ansidecl.h ../bfd/bfd.h \
1339 $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
1340 $(INCDIR)/safe-ctype.h ld.h $(INCDIR)/bin-bugs.h ldmisc.h \
1341 ldexp.h ldlang.h ldgram.h ldfile.h ldlex.h ldmain.h \
1342 $(INCDIR)/libiberty.h
1343 deffilep.o: deffilep.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \
1344 $(INCDIR)/safe-ctype.h ../bfd/bfd.h $(INCDIR)/symcat.h \
1345 sysdep.h config.h $(INCDIR)/fopen-same.h ld.h $(INCDIR)/bin-bugs.h \
1347 # IF YOU PUT ANYTHING HERE IT WILL GO AWAY