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}NKMakeFile"



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
