diff options
author | Stan Shebs <shebs@codesourcery.com> | 1995-10-27 05:28:17 +0000 |
---|---|---|
committer | Stan Shebs <shebs@codesourcery.com> | 1995-10-27 05:28:17 +0000 |
commit | 49af8a4ec7402f8eaa5677f47a9823cc4e225c59 (patch) | |
tree | 9c2682491402f78cbc0675388374ca78aaa71311 /ld/mpw-config.in | |
parent | e33bf0ab90929acd773ee2fe9b46e4aa18a4ed93 (diff) | |
download | gdb-49af8a4ec7402f8eaa5677f47a9823cc4e225c59.zip gdb-49af8a4ec7402f8eaa5677f47a9823cc4e225c59.tar.gz gdb-49af8a4ec7402f8eaa5677f47a9823cc4e225c59.tar.bz2 |
* mpw-config.in: Add PowerMac target support, generate config.h.
* mac-ld.r: New file, Mac resources.
* mpw-make.sed: New file, edits Makefile.in into MPW syntax.
* mpw-make.in: Remove.
* mpw-eppcmacos.c: Prebuilt version of PowerMac linking script.
Diffstat (limited to 'ld/mpw-config.in')
-rw-r--r-- | ld/mpw-config.in | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/ld/mpw-config.in b/ld/mpw-config.in index 928e903..45fc41f 100644 --- a/ld/mpw-config.in +++ b/ld/mpw-config.in @@ -4,10 +4,10 @@ If "{target_canonical}" =~ /m68k-apple-macos/ Set emulname m68kcoff forward-include "{srcdir}"mpw-em68kcoff.c em68kcoff.c Set emulation_ofiles "{o}"em68kcoff.c.o -Else If "{target_canonical}" =~ /ppc-apple-macos/ - Set emulname xcoff - forward-include "{srcdir}"mpw-excoff.c excoff.c - Set emulation_ofiles "{o}"excoff.c.o +Else If "{target_canonical}" =~ /powerpc-apple-macos/ + Set emulname ppcmacos + forward-include "{srcdir}"mpw-eppcmacos.c eppcmacos.c + Set emulation_ofiles "{o}"eppcmacos.c.o Else If "{target_canonical}" =~ /i386-unknown-go32/ Set emulname i386go32 forward-include "{srcdir}"mpw-ei386go32.c ei386go32.c @@ -27,13 +27,17 @@ Echo "extern ld_emulation_xfer_type ld_{emulname}_emulation;" >> "{o}"ldemul-tmp Echo '#define EMULATION_LIST \' >> "{o}"ldemul-tmp.h Echo " &ld_{emulname}_emulation, \" >> "{o}"ldemul-tmp.h Echo ' 0' >> "{o}"ldemul-tmp.h -MoveIfChange "{o}"ldemul-tmp.h "{o}"ldemul-list.h -Echo '# From mpw-config.in' > "{o}"mk.tmp +MoveIfChange "{o}"ldemul-tmp.h "{o}"ldemul-list.h -Echo "EMUL = " {emulname} >> "{o}"mk.tmp -Echo "EMULATION_OFILES = " {emulation_ofiles} >> "{o}"mk.tmp +Echo '# From mpw-config.in' > "{o}"mk.tmp +Echo "EMUL = " {emulname} >> "{o}"mk.tmp +Echo "EMULATION_OFILES = " {emulation_ofiles} >> "{o}"mk.tmp Echo 'version = ' `Search 'ld version ' {srcdir}ldver.c | sed -e 's/.*ld version \([^ ]*\).*/\1/'` >> "{o}"mk.tmp -Echo "TDEFINES = " >> "{o}"mk.tmp +Echo "TDEFINES = " >> "{o}"mk.tmp +Echo '# End from mpw-config.in' >> "{o}"mk.tmp + +Echo '/* config.h. Generated by mpw-configure. */' > "{o}"config.new +Echo '#include "mpw.h"' >> "{o}"config.new -Echo '# End from mpw-config.in' >> "{o}"mk.tmp +MoveIfChange "{o}"config.new "{o}"config.h |