1994-01-26 12:17:05 +08:00
|
|
|
# Configuration fragment for LD.
|
1994-06-29 04:20:35 +08:00
|
|
|
|
1994-12-15 05:33:33 +08:00
|
|
|
If "{target_canonical}" =~ /m68k-apple-macos/
|
1994-06-29 04:20:35 +08:00
|
|
|
Set emulname m68kcoff
|
1995-03-18 08:13:26 +08:00
|
|
|
forward-include "{srcdir}"mpw-em68kcoff.c em68kcoff.c
|
|
|
|
Set emulation_ofiles "{o}"em68kcoff.c.o
|
1995-12-13 06:35:48 +08:00
|
|
|
|
1995-10-27 13:28:17 +08:00
|
|
|
Else If "{target_canonical}" =~ /powerpc-apple-macos/
|
|
|
|
Set emulname ppcmacos
|
1995-12-13 06:35:48 +08:00
|
|
|
forward-include "{srcdir}"mpw-eppcmac.c eppcmacos.c
|
1995-10-27 13:28:17 +08:00
|
|
|
Set emulation_ofiles "{o}"eppcmacos.c.o
|
1995-12-13 06:35:48 +08:00
|
|
|
|
1995-03-18 08:13:26 +08:00
|
|
|
Else If "{target_canonical}" =~ /i386-unknown-go32/
|
|
|
|
Set emulname i386go32
|
|
|
|
forward-include "{srcdir}"mpw-ei386go32.c ei386go32.c
|
|
|
|
Set emulation_ofiles "{o}"ei386go32.c.o
|
1995-12-13 06:35:48 +08:00
|
|
|
|
|
|
|
Else If "{target_canonical}" =~ /mips-\Option-x-\Option-x/
|
1994-06-29 04:20:35 +08:00
|
|
|
Set emulname mipsidt
|
1995-03-18 08:13:26 +08:00
|
|
|
forward-include "{srcdir}"mpw-emipsidt.c emipsidt.c
|
|
|
|
Set emulation_ofiles "{o}"emipsidt.c.o
|
1995-12-13 06:35:48 +08:00
|
|
|
|
1995-03-18 08:13:26 +08:00
|
|
|
Else If "{target_canonical}" =~ /sh-hitachi-hms/
|
|
|
|
Set emulname sh
|
|
|
|
forward-include "{srcdir}"mpw-esh.c esh.c
|
|
|
|
Set emulation_ofiles "{o}"esh.c.o
|
1994-06-29 04:20:35 +08:00
|
|
|
End If
|
|
|
|
|
1995-03-18 08:13:26 +08:00
|
|
|
Echo '/* This file is automatically generated. DO NOT EDIT! */' > "{o}"ldemul-tmp.h
|
|
|
|
Echo "extern ld_emulation_xfer_type ld_{emulname}_emulation;" >> "{o}"ldemul-tmp.h
|
|
|
|
Echo '#define EMULATION_LIST \' >> "{o}"ldemul-tmp.h
|
|
|
|
Echo " &ld_{emulname}_emulation, \" >> "{o}"ldemul-tmp.h
|
|
|
|
Echo ' 0' >> "{o}"ldemul-tmp.h
|
1994-12-15 05:33:33 +08:00
|
|
|
|
1995-10-27 13:28:17 +08:00
|
|
|
MoveIfChange "{o}"ldemul-tmp.h "{o}"ldemul-list.h
|
1994-12-15 05:33:33 +08:00
|
|
|
|
1995-10-27 13:28:17 +08:00
|
|
|
Echo '# From mpw-config.in' > "{o}"mk.tmp
|
|
|
|
Echo "EMUL = " {emulname} >> "{o}"mk.tmp
|
|
|
|
Echo "EMULATION_OFILES = " {emulation_ofiles} >> "{o}"mk.tmp
|
1995-03-18 08:13:26 +08:00
|
|
|
Echo 'version = ' `Search 'ld version ' {srcdir}ldver.c | sed -e 's/.*ld version \([^ ]*\).*/\1/'` >> "{o}"mk.tmp
|
1995-10-27 13:28:17 +08:00
|
|
|
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
|
1994-12-15 05:33:33 +08:00
|
|
|
|
1995-10-27 13:28:17 +08:00
|
|
|
MoveIfChange "{o}"config.new "{o}"config.h
|