]> Git Repo - binutils.git/blob - ld/mpw-config.in
Add support for ARM-PE.
[binutils.git] / ld / mpw-config.in
1 # Configuration fragment for LD.
2
3 If "{target_canonical}" =~ /m68k-apple-macos/
4         Set emulname m68kcoff
5         forward-include "{srcdir}"mpw-em68kcoff.c em68kcoff.c
6         Set emulation_ofiles "{o}"em68kcoff.c.o
7 Else If "{target_canonical}" =~ /ppc-apple-macos/
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
15 Else If "{target_canonical}" =~ /mips-idt-ecoff/
16         Set emulname mipsidt
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
23 End If
24
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
31
32 Echo '# From mpw-config.in'      > "{o}"mk.tmp
33
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
38
39 Echo '# End from mpw-config.in' >> "{o}"mk.tmp
This page took 0.027752 seconds and 4 git commands to generate.