#	MakeFile	-  Make instructions for Pascal examples.
#
#	Copyright Apple Computer, Inc. 1986-1988
#	All rights reserved.
#
#	This makefile builds:
#		The sample Pascal tool: 		ResEqual
#		The sample desk accessory:		Memory
#		The sample Performance Tool: 	TestPerf
#
# 	You can define {SymOptions} as "-sym on" or "-sym off" for use with SADE
POptions = {SymOptions}


ResEqual		ƒƒ	ResEqual.r
	rez ResEqual.r -o ResEqual -append
ResEqual		ƒƒ	ResEqual.p.o FStubs.a.o
	Link -w -c 'MPS ' -t MPST ResEqual.p.o FStubs.a.o ∂
		-sn STDIO=Main ∂
		-sn INTENV=Main ∂
		-sn %A5Init=Init ∂
		"{Libraries}"Interface.o ∂
		"{Libraries}"Runtime.o ∂
		"{Libraries}"ToolLibs.o ∂
		"{PLibraries}"Paslib.o ∂
		-o ResEqual


Memory			ƒƒ	Memory.p.o DAEntry.a.o 
	Link {SymOptions} -w -da -rt DRVR=12 ∂
		-m DAEntry -sg Memory				# DAEntry is located in DAEntry.a.o ∂
		DAEntry.a.o							# This must preceed DRVRRuntime.o ∂
		"{Libraries}"DRVRRuntime.o			# This must preceed Memory.p.o ∂
		Memory.p.o ∂
		"{Libraries}"Interface.o ∂
		"{PLibraries}"Paslib.o ∂
		-o Memory -c DMOV -t DFIL
		
Memory			ƒƒ	Memory.r
	Rez -rd -c DMOV -t DFIL Memory.r -a -o Memory

Memory.NOASM			ƒ	Memory.DRVW Memory.r
	Rez -rd -c DMOV -t DFIL -d NOASM_BUILD Memory.r -o Memory.NOASM
	Duplicate -y Memory.NOASM Memory

Memory.DRVW 	ƒ	Memory.p.o
	Link -w -rt DRVW=0 ∂
		-sg Memory ∂
		"{Libraries}"DRVRRuntime.o	# This must preceed Memory.p.o ∂
		Memory.p.o ∂
		"{Libraries}"Interface.o ∂
		"{PLibraries}"Paslib.o ∂
		-o Memory.DRVW -c "????" -t "????"


TestPerf	ƒ	TestPerf.p.o
	Link -o TestPerf -t MPST -c 'MPS ' -d ∂
		-l -la > TestPerf.map # produce link map file ∂
		TestPerf.p.o "{Libraries}"PerformLib.o ∂
		"{Libraries}"Interface.o ∂
		"{Libraries}"Runtime.o ∂
		"{PLibraries}"PasLib.o

