#
#	Hacks to match MacOS (most recent first):
#
#	<Sys7.1>	  8/3/92	Elliot make this change
#				  9/2/94	SuperMario ROM source dump (header preserved below)
#

#
#	File:		MemoryMgr.make
#
#	Contains:	Makefile for the Memory Manager.
#
#	Written by:	Kurt Clark, Chas Spillar, Tim Nichols and Brian Topping
#
#	Copyright:	© 1992-1993 by Apple Computer, Inc., all rights reserved.
#
#	Change History (most recent first):
#
#	   <SM4>	 5/21/93	kc		Move the figment make stuff into Figment.Make.
#	   <SM3>	 5/20/93	BT		Update sources to conditionally compile Figment under the build
#									flag "hasNewHeapMgr".
#	   <SM2>	 5/18/93	BT		Added Figment to build


FigmentDir = {MemoryMgrDir}FigmentSources:

MemoryMgrObjs 					=	"{ObjDir}MemoryMgr.a.o"							∂
									"{ObjDir}MemoryMgrExtensions.a.o"				∂
									"{ObjDir}MemoryMgrInternal.a.o"					∂
									"{ObjDir}BlockMove.a.o"


#include {FigmentDir}Figment.Make


"{LibDir}MemoryMgr.lib"			ƒ	"{LibDir}Figment.lib" {MemoryMgrObjs}
	If "{FeatureSet}" =~ /≈'hasNewHeapMgr=True'≈/
	 	Lib {StdLibOpts} -o "{Targ}" "{LibDir}Figment.lib" {MemoryMgrObjs}
	Else
	 	Lib {StdLibOpts} -o "{Targ}" {MemoryMgrObjs}
	End


"{ObjDir}BlockMove.a.o"			ƒ	"{ObjDir}StandardEqu.d"							∂
									"{MemoryMgrDir}BlockMove.a"
	Asm {StdAOpts} -o "{Targ}" "{MemoryMgrDir}BlockMove.a"


"{ObjDir}MemoryMgr.a.o"			ƒ	"{ObjDir}StandardEqu.d"							∂
									"{AIncludes}QuickDraw.a"						∂
									"{IntAIncludes}ColorEqu.a"						∂
									"{AIncludes}Palettes.a"							∂
									"{IntAIncludes}HardwarePrivateEqu.a"			∂
									"{AIncludes}HardwareEqu.a"						∂
									"{AIncludes}fsequ.a"							∂
									"{IntAIncludes}UniversalEqu.a"					∂
									"{MemoryMgrDir}MemoryMgrPriv.a"					∂
									"{MemoryMgrDir}MemoryMgr.a"
	Asm {StdAOpts} -o "{Targ}" "{MemoryMgrDir}MemoryMgr.a"


"{ObjDir}MemoryMgrExtensions.a.o"	ƒ	"{ObjDir}StandardEqu.d"						∂
									"{MemoryMgrDir}MemoryMgrPriv.a"					∂
									"{MemoryMgrDir}MemoryMgrExtensions.a"
	Asm {StdAOpts} -o "{Targ}" "{MemoryMgrDir}MemoryMgrExtensions.a"


"{ObjDir}MemoryMgrInternal.a.o"	ƒ	"{ObjDir}StandardEqu.d"							∂
									"{IntAIncludes}HardwarePrivateEqu.a"			∂
									"{AIncludes}HardwareEqu.a"						∂
									"{MemoryMgrDir}MemoryMgrPriv.a"					∂
									"{MemoryMgrDir}MemoryMgrInternal.a"
	Asm {StdAOpts} -o "{Targ}" "{MemoryMgrDir}MemoryMgrInternal.a"


"{ObjDir}MemoryMgrPatches.a.o"	ƒ	"{MemoryMgrDir}MemoryMgrPatches.a"
	Asm {StdAOpts} -o "{Targ}" "{MemoryMgrDir}MemoryMgrPatches.a"


