Echo Merging basic files...
Echo
WimpTask Copy <LCCode$Dir>.!Main <LC$Dir>.!Merged ~CF
JoinDir <LCCode$Dir>.Basic

Echo
Echo Starting blink...
Echo
SetType JLibraries:Libs.1 Text
SetType JLibraries:Debug.2 Text
BLink <LC$Dir>.!Merged <LC$Dir>.!Linked
SetType JLibraries:Libs.1 Basic
SetType JLibraries:Debug.2 Basic

If "<Prof>" = "1" Then Echo
If "<Prof>" = "1" Then Echo Adding profile commands...
If "<Prof>" = "1" Then Echo
If "<Prof>" = "1" Then WimpTask MakeProf <LC$Dir>.!Linked <LCCode$Dir>.!Prof <LCCode$Dir>.ProfData
If "<Prof>" = "1" Then Obey

Echo
Echo Starting BasCompress...
Echo
Set BasCompress$Options -Reduce risRISp -Unused -XRef 0
Set BasCompress$Out     <LC$Dir>.!Crunched
Set BasCompress$Log     <LCCode$Dir>.Log
Unset BasCompress$XRef
If "<XRef>" = "1" Then Set BasCompress$XRef <LCCode$Dir>.XRef
If "<XRef>" = "1" Then Set BasCompress$Options -Reduce risRISp -Unused -XInc irsIRSpf -XRef 4 -Sort TN
BasCompress -In <LC$Dir>.!Linked -Throwback
If "<XRef>" = "1" Then Filer_Run <LCCode$Dir>.XRef
Filer_Run <LCCode$Dir>.Log
If "<XRef>" = "1" Then Obey

Echo
Echo Making into absolute file...
Echo
Run <BasCompress$Dir>.!fe.MakeApp <LC$Dir>.!Crunched <LCApp$Dir>.!RunImage -Verbose

Echo
Echo Squeezing...
Echo
squeeze -f <LCApp$Dir>.!RunImage

Echo
Echo Finished...
Echo
