Add QNX Neutrino PowerPC support and common up QNX functions
[deliverable/binutils-gdb.git] / ld / mpw-config.in
CommitLineData
252b5132
RH
1# Configuration fragment for LD.
2
3If "{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
8Else If "{target_canonical}" =~ /powerpc-apple-macos/
9 Set emulname ppcmacos
10 forward-include "{srcdir}"mpw-eppcmac.c eppcmacos.c
11 Set emulation_ofiles "{o}"eppcmacos.c.o
12
13Else If "{target_canonical}" =~ /i386-\Option-x-go32/
14 Set emulname i386go32
15 forward-include "{srcdir}"mpw-ei386go32.c ei386go32.c
16 Set emulation_ofiles "{o}"ei386go32.c.o
17
18Else If "{target_canonical}" =~ /mips-\Option-x-ecoff/
19 Set emulname mipsidt
20 forward-include "{srcdir}"mpw-idtmips.c emipsidt.c
21 Set emulation_ofiles "{o}"emipsidt.c.o
22
23Else If "{target_canonical}" =~ /mips-\Option-x-\Option-x/
24 Set emulname elf32ebmip
25 forward-include "{srcdir}"mpw-elfmips.c eelf32ebmip.c
26 Set emulation_ofiles "{o}"eelf32ebmip.c.o
27
28Else If "{target_canonical}" =~ /sh-\Option-x-hms/
29 Set emulname sh
30 forward-include "{srcdir}"mpw-esh.c esh.c
31 Set emulation_ofiles "{o}"esh.c.o
32End If
33
34Echo '/* This file is automatically generated. DO NOT EDIT! */' > "{o}"ldemul-tmp.h
35Echo "extern ld_emulation_xfer_type ld_{emulname}_emulation;" >> "{o}"ldemul-tmp.h
36Echo '#define EMULATION_LIST \' >> "{o}"ldemul-tmp.h
37Echo " &ld_{emulname}_emulation, \" >> "{o}"ldemul-tmp.h
38Echo ' 0' >> "{o}"ldemul-tmp.h
39
40MoveIfChange "{o}"ldemul-tmp.h "{o}"ldemul-list.h
41
42Echo '# From mpw-config.in' > "{o}"mk.tmp
43Echo "EMUL = " {emulname} >> "{o}"mk.tmp
44Echo "EMULATION_OFILES = " {emulation_ofiles} >> "{o}"mk.tmp
45Echo 'version = ' `Search 'ld version ' {srcdir}ldver.c | sed -e 's/.*ld version \([^ ]*\).*/\1/'` >> "{o}"mk.tmp
46Echo "TDEFINES = " >> "{o}"mk.tmp
47Echo '# End from mpw-config.in' >> "{o}"mk.tmp
48
49Echo '/* config.h. Generated by mpw-configure. */' > "{o}"config.new
50Echo '#include "mpw.h"' >> "{o}"config.new
51
52MoveIfChange "{o}"config.new "{o}"config.h
This page took 0.135643 seconds and 4 git commands to generate.