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