Commit | Line | Data |
---|---|---|
b5b2c886 | 1 | # Configuration fragment for LD. |
22691fe7 | 2 | |
1a8b189e | 3 | If "{target_canonical}" =~ /m68k-apple-macos/ |
22691fe7 | 4 | Set emulname m68kcoff |
1a8b189e SS |
5 | Else If "{target_canonical}" =~ /ppc-apple-macos/ |
6 | Set emulname ppcelf | |
7 | Else If "{target_canonical}" =~ /i386-unknown-aout/ | |
8 | Set emulname i386aout | |
9 | Else If "{target_canonical}" =~ /i386-unknown-coff/ | |
10 | Set emulname i386coff | |
22691fe7 SS |
11 | Else If "{target_canonical}" =~ /mips-idt-ecoff/ |
12 | Set emulname mipsidt | |
177941a1 | 13 | forward-include "{srcdir}"mpw-em.c em_mipsidt.c |
22691fe7 SS |
14 | End If |
15 | ||
16 | Echo '/* This file is automatically generated. DO NOT EDIT! */' >ldemul-tmp.h | |
17 | Echo "extern ld_emulation_xfer_type ld_{emulname}_emulation;" >>ldemul-tmp.h | |
18 | Echo '#define EMULATION_LIST \' >>ldemul-tmp.h | |
19 | Echo " &ld_{emulname}_emulation, \" >>ldemul-tmp.h | |
20 | Echo ' 0' >>ldemul-tmp.h | |
21 | MoveIfChange ldemul-tmp.h ldemul-list.h | |
1a8b189e SS |
22 | |
23 | Echo '# From mpw-config.in' > "{o}"mk.tmp | |
24 | ||
25 | Echo "EMUL = " {emulname} >> "{o}"mk.tmp | |
26 | ||
27 | Echo '# End from mpw-config.in' >> "{o}"mk.tmp |