12159047fSniklas# Configuration fragment for LD. 22159047fSniklas 32159047fSniklasIf "{target_canonical}" =~ /m68k-apple-macos/ 42159047fSniklas Set emulname m68kcoff 52159047fSniklas forward-include "{srcdir}"mpw-em68kcoff.c em68kcoff.c 62159047fSniklas Set emulation_ofiles "{o}"em68kcoff.c.o 7191aa565Sniklas 82159047fSniklasElse If "{target_canonical}" =~ /powerpc-apple-macos/ 92159047fSniklas Set emulname ppcmacos 10191aa565Sniklas forward-include "{srcdir}"mpw-eppcmac.c eppcmacos.c 112159047fSniklas Set emulation_ofiles "{o}"eppcmacos.c.o 12191aa565Sniklas 13e93f7393SniklasElse If "{target_canonical}" =~ /i386-\Option-x-go32/ 142159047fSniklas Set emulname i386go32 152159047fSniklas forward-include "{srcdir}"mpw-ei386go32.c ei386go32.c 162159047fSniklas Set emulation_ofiles "{o}"ei386go32.c.o 17191aa565Sniklas 18e93f7393SniklasElse If "{target_canonical}" =~ /mips-\Option-x-ecoff/ 192159047fSniklas Set emulname mipsidt 20*6a4c786fSespie forward-include "{srcdir}"mpw-idtmips.c emipsidt.c 212159047fSniklas Set emulation_ofiles "{o}"emipsidt.c.o 22191aa565Sniklas 23e93f7393SniklasElse If "{target_canonical}" =~ /mips-\Option-x-\Option-x/ 24e93f7393Sniklas Set emulname elf32ebmip 25*6a4c786fSespie forward-include "{srcdir}"mpw-elfmips.c eelf32ebmip.c 26e93f7393Sniklas Set emulation_ofiles "{o}"eelf32ebmip.c.o 27e93f7393Sniklas 28e93f7393SniklasElse If "{target_canonical}" =~ /sh-\Option-x-hms/ 292159047fSniklas Set emulname sh 302159047fSniklas forward-include "{srcdir}"mpw-esh.c esh.c 312159047fSniklas Set emulation_ofiles "{o}"esh.c.o 322159047fSniklasEnd If 332159047fSniklas 342159047fSniklasEcho '/* This file is automatically generated. DO NOT EDIT! */' > "{o}"ldemul-tmp.h 352159047fSniklasEcho "extern ld_emulation_xfer_type ld_{emulname}_emulation;" >> "{o}"ldemul-tmp.h 362159047fSniklasEcho '#define EMULATION_LIST \' >> "{o}"ldemul-tmp.h 372159047fSniklasEcho " &ld_{emulname}_emulation, \" >> "{o}"ldemul-tmp.h 382159047fSniklasEcho ' 0' >> "{o}"ldemul-tmp.h 392159047fSniklas 402159047fSniklasMoveIfChange "{o}"ldemul-tmp.h "{o}"ldemul-list.h 412159047fSniklas 422159047fSniklasEcho '# From mpw-config.in' > "{o}"mk.tmp 432159047fSniklasEcho "EMUL = " {emulname} >> "{o}"mk.tmp 442159047fSniklasEcho "EMULATION_OFILES = " {emulation_ofiles} >> "{o}"mk.tmp 452159047fSniklasEcho 'version = ' `Search 'ld version ' {srcdir}ldver.c | sed -e 's/.*ld version \([^ ]*\).*/\1/'` >> "{o}"mk.tmp 462159047fSniklasEcho "TDEFINES = " >> "{o}"mk.tmp 472159047fSniklasEcho '# End from mpw-config.in' >> "{o}"mk.tmp 482159047fSniklas 492159047fSniklasEcho '/* config.h. Generated by mpw-configure. */' > "{o}"config.new 502159047fSniklasEcho '#include "mpw.h"' >> "{o}"config.new 512159047fSniklas 522159047fSniklasMoveIfChange "{o}"config.new "{o}"config.h 53