mirror of
https://github.com/elliotnunn/powermac-rom.git
synced 2024-11-21 03:30:54 +00:00
0d277dc2e3
Previously the MPW linker script would generate a secondary script to be executed. This was unnecessarily complicated, and it left some junk in the build tree.
67 lines
1.4 KiB
Plaintext
67 lines
1.4 KiB
Plaintext
ResultDir = :BuildResults:
|
|
LinkerDir = :Linker:
|
|
|
|
|
|
|
|
MainTarget Ä {ResultDir}PowerROM
|
|
|
|
|
|
|
|
{LinkerDir}LinkPowerROM.tool Ä {LinkerDir}LinkPowerROM.c
|
|
SC -o "{TempFolder}LinkPowerROM.o" {Deps}
|
|
ILink -d -t MPST -c 'MPS ' -o {Targ} "{Libraries}Stubs.o" "{CLibraries}StdCLib.o" "{Libraries}MacRuntime.o" "{Libraries}IntEnv.o" "{Libraries}Interface.o" "{TempFolder}LinkPowerROM.o"
|
|
|
|
|
|
|
|
RomBin = :RomMondo.bin
|
|
|
|
|
|
|
|
ExceptionTableBin = {ResultDir}PPCExceptionTable.x
|
|
|
|
{ExceptionTableBin} Ä PPCExceptionTable.s
|
|
PPCAsm -o {Targ} {Deps}
|
|
|
|
|
|
|
|
ConfigInfoBin = {ResultDir}ConfigInfo.x
|
|
|
|
{ConfigInfoBin} Ä ConfigInfo.s
|
|
PPCAsm -o {Targ} {Deps}
|
|
|
|
|
|
|
|
#### PowerPC NanoKernel ####
|
|
NKDir = :NanoKernel:
|
|
NKIncDir = :Internal:
|
|
NKBin = {ResultDir}NanoKernel.x
|
|
NKOpts =
|
|
#include "{NKDir}InnerMakeFile"
|
|
|
|
|
|
|
|
EmulatorBin = Emulator.x
|
|
|
|
|
|
|
|
{ResultDir}PowerROM Ä {LinkerDir}LinkPowerROM.tool {RomBin} {ExceptionTableBin} {ConfigInfoBin} {NKBin} {EmulatorBin}
|
|
{LinkerDir}LinkPowerROM {Targ} ¶
|
|
RomTop: ¶
|
|
0x000000 Mac68kRomTop: ¶
|
|
{RomBin} ¶
|
|
Mac68kRomBtm: ¶
|
|
¶
|
|
0x300000 ExTblTop: ¶
|
|
{ExceptionTableBin} ¶
|
|
¶
|
|
0x30d000 CHECKSUM ¶
|
|
{ConfigInfoBin} ¶
|
|
¶
|
|
0x310000 NKTop: ¶
|
|
{NKBin} ¶
|
|
¶
|
|
0x360000 ¶
|
|
{EmulatorBin} ¶
|
|
0x400000 RomBtm: ¶
|
|
> Dev:Null # unless you want debug output
|