* gdbtypes.c (check_stub_method): Make sure we get back a function
[deliverable/binutils-gdb.git] / ld / mpw-config.in
CommitLineData
b5b2c886 1# Configuration fragment for LD.
22691fe7 2
1a8b189e 3If "{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
49af8a4e
SS
7Else If "{target_canonical}" =~ /powerpc-apple-macos/
8 Set emulname ppcmacos
9 forward-include "{srcdir}"mpw-eppcmacos.c eppcmacos.c
10 Set emulation_ofiles "{o}"eppcmacos.c.o
ab4ccfd5
SS
11Else 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
15Else 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
19Else 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
23End If
24
ab4ccfd5
SS
25Echo '/* This file is automatically generated. DO NOT EDIT! */' > "{o}"ldemul-tmp.h
26Echo "extern ld_emulation_xfer_type ld_{emulname}_emulation;" >> "{o}"ldemul-tmp.h
27Echo '#define EMULATION_LIST \' >> "{o}"ldemul-tmp.h
28Echo " &ld_{emulname}_emulation, \" >> "{o}"ldemul-tmp.h
29Echo ' 0' >> "{o}"ldemul-tmp.h
1a8b189e 30
49af8a4e 31MoveIfChange "{o}"ldemul-tmp.h "{o}"ldemul-list.h
1a8b189e 32
49af8a4e
SS
33Echo '# From mpw-config.in' > "{o}"mk.tmp
34Echo "EMUL = " {emulname} >> "{o}"mk.tmp
35Echo "EMULATION_OFILES = " {emulation_ofiles} >> "{o}"mk.tmp
ab4ccfd5 36Echo 'version = ' `Search 'ld version ' {srcdir}ldver.c | sed -e 's/.*ld version \([^ ]*\).*/\1/'` >> "{o}"mk.tmp
49af8a4e
SS
37Echo "TDEFINES = " >> "{o}"mk.tmp
38Echo '# End from mpw-config.in' >> "{o}"mk.tmp
39
40Echo '/* config.h. Generated by mpw-configure. */' > "{o}"config.new
41Echo '#include "mpw.h"' >> "{o}"config.new
1a8b189e 42
49af8a4e 43MoveIfChange "{o}"config.new "{o}"config.h
This page took 0.077793 seconds and 4 git commands to generate.