aboutsummaryrefslogtreecommitdiff
path: root/ld/mpw-config.in
diff options
context:
space:
mode:
authorStan Shebs <shebs@codesourcery.com>1994-06-28 20:20:35 +0000
committerStan Shebs <shebs@codesourcery.com>1994-06-28 20:20:35 +0000
commit22691fe7be208f8e82739c4d470d6e6ae85cfdf0 (patch)
tree32588fa69001d735520adaaff4d7c7124e4753d6 /ld/mpw-config.in
parent83896c8b2bb69793df0b2fca2d2b0fa75809ebd7 (diff)
downloadgdb-22691fe7be208f8e82739c4d470d6e6ae85cfdf0.zip
gdb-22691fe7be208f8e82739c4d470d6e6ae85cfdf0.tar.gz
gdb-22691fe7be208f8e82739c4d470d6e6ae85cfdf0.tar.bz2
* mpw-config.in (emulname): Set based on target.
(ldemul-list.h): Construct. * mpw-make.in (install-only): New target. (install): Depend on install-only.
Diffstat (limited to 'ld/mpw-config.in')
-rw-r--r--ld/mpw-config.in16
1 files changed, 16 insertions, 0 deletions
diff --git a/ld/mpw-config.in b/ld/mpw-config.in
index ed90274..c0a3775 100644
--- a/ld/mpw-config.in
+++ b/ld/mpw-config.in
@@ -1 +1,17 @@
# Configuration fragment for LD.
+
+If "{target_canonical}" =~ /m68k-aout/
+ Set emulname m68kaout
+Else If "{target_canonical}" =~ /m68k-coff/
+ Set emulname m68kcoff
+Else If "{target_canonical}" =~ /mips-idt-ecoff/
+ Set emulname mipsidt
+End If
+
+Echo '/* This file is automatically generated. DO NOT EDIT! */' >ldemul-tmp.h
+Echo "extern ld_emulation_xfer_type ld_{emulname}_emulation;" >>ldemul-tmp.h
+Echo '#define EMULATION_LIST \' >>ldemul-tmp.h
+Echo " &ld_{emulname}_emulation, \" >>ldemul-tmp.h
+Echo ' 0' >>ldemul-tmp.h
+MoveIfChange ldemul-tmp.h ldemul-list.h
+