old-cross-binutils/ld/mpw-config.in
Stan Shebs 1a8b189e1c * mpw-config.in (m68k-apple-macos, ppc-apple-macos,
i386-unknown-aout, i386-unknown-coff): New targets.
	(m68k-aout, m68k-coff): Remove targets.
	(mk.tmp): Add definition of EMUL.
1994-12-14 21:33:33 +00:00

27 lines
913 B
Text

# Configuration fragment for LD.
If "{target_canonical}" =~ /m68k-apple-macos/
Set emulname m68kcoff
Else If "{target_canonical}" =~ /ppc-apple-macos/
Set emulname ppcelf
Else If "{target_canonical}" =~ /i386-unknown-aout/
Set emulname i386aout
Else If "{target_canonical}" =~ /i386-unknown-coff/
Set emulname i386coff
Else If "{target_canonical}" =~ /mips-idt-ecoff/
Set emulname mipsidt
forward-include "{srcdir}"mpw-em.c em_mipsidt.c
End If
Echo '/* This file is automatically generated. DO NOT EDIT! */' >ldemul-tmp.h
Echo "extern ld_emulation_xfer_type ld_{emulname}_emulation;" >>ldemul-tmp.h
Echo '#define EMULATION_LIST \' >>ldemul-tmp.h
Echo " &ld_{emulname}_emulation, \" >>ldemul-tmp.h
Echo ' 0' >>ldemul-tmp.h
MoveIfChange ldemul-tmp.h ldemul-list.h
Echo '# From mpw-config.in' > "{o}"mk.tmp
Echo "EMUL = " {emulname} >> "{o}"mk.tmp
Echo '# End from mpw-config.in' >> "{o}"mk.tmp