aboutsummaryrefslogtreecommitdiff
path: root/ld/mpw-config.in
blob: c0a37759c68c6a1a6ccf0a5693880c8a50b1b8eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Configuration fragment for LD.

If "{target_canonical}" =~ /m68k-aout/
	Set emulname m68kaout
Else If "{target_canonical}" =~ /m68k-coff/
	Set emulname m68kcoff
Else If "{target_canonical}" =~ /mips-idt-ecoff/
	Set emulname mipsidt
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