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