Commit | Line | Data |
---|---|---|
b5b2c886 | 1 | # Configuration fragment for LD. |
22691fe7 | 2 | |
1a8b189e | 3 | If "{target_canonical}" =~ /m68k-apple-macos/ |
22691fe7 | 4 | Set emulname m68kcoff |
ab4ccfd5 SS |
5 | forward-include "{srcdir}"mpw-em68kcoff.c em68kcoff.c |
6 | Set emulation_ofiles "{o}"em68kcoff.c.o | |
1a8b189e | 7 | Else If "{target_canonical}" =~ /ppc-apple-macos/ |
ab4ccfd5 SS |
8 | Set emulname xcoff |
9 | forward-include "{srcdir}"mpw-excoff.c excoff.c | |
10 | Set emulation_ofiles "{o}"excoff.c.o | |
11 | Else If "{target_canonical}" =~ /i386-unknown-go32/ | |
12 | Set emulname i386go32 | |
13 | forward-include "{srcdir}"mpw-ei386go32.c ei386go32.c | |
14 | Set emulation_ofiles "{o}"ei386go32.c.o | |
22691fe7 SS |
15 | Else If "{target_canonical}" =~ /mips-idt-ecoff/ |
16 | Set emulname mipsidt | |
ab4ccfd5 SS |
17 | forward-include "{srcdir}"mpw-emipsidt.c emipsidt.c |
18 | Set emulation_ofiles "{o}"emipsidt.c.o | |
19 | Else If "{target_canonical}" =~ /sh-hitachi-hms/ | |
20 | Set emulname sh | |
21 | forward-include "{srcdir}"mpw-esh.c esh.c | |
22 | Set emulation_ofiles "{o}"esh.c.o | |
22691fe7 SS |
23 | End If |
24 | ||
ab4ccfd5 SS |
25 | Echo '/* This file is automatically generated. DO NOT EDIT! */' > "{o}"ldemul-tmp.h |
26 | Echo "extern ld_emulation_xfer_type ld_{emulname}_emulation;" >> "{o}"ldemul-tmp.h | |
27 | Echo '#define EMULATION_LIST \' >> "{o}"ldemul-tmp.h | |
28 | Echo " &ld_{emulname}_emulation, \" >> "{o}"ldemul-tmp.h | |
29 | Echo ' 0' >> "{o}"ldemul-tmp.h | |
30 | MoveIfChange "{o}"ldemul-tmp.h "{o}"ldemul-list.h | |
1a8b189e | 31 | |
ab4ccfd5 | 32 | Echo '# From mpw-config.in' > "{o}"mk.tmp |
1a8b189e | 33 | |
ab4ccfd5 SS |
34 | Echo "EMUL = " {emulname} >> "{o}"mk.tmp |
35 | Echo "EMULATION_OFILES = " {emulation_ofiles} >> "{o}"mk.tmp | |
36 | Echo 'version = ' `Search 'ld version ' {srcdir}ldver.c | sed -e 's/.*ld version \([^ ]*\).*/\1/'` >> "{o}"mk.tmp | |
37 | Echo "TDEFINES = " >> "{o}"mk.tmp | |
1a8b189e | 38 | |
ab4ccfd5 | 39 | Echo '# End from mpw-config.in' >> "{o}"mk.tmp |