
*| Command script for compiling !MyApp
*|
wimpslot -min 1024k
echo *** Compiling !MyApp with 'a' flag ***
cc -c MyApp -Iadfs::HardDisc4.$.Cdir.RISC_OSLib,adfs::HardDisc4.$.Cdir.Func_Libs -fa 
IF sys$returncode<>0 then sound 1 &FFF1 200 4
If sys$ReturnCode<>0 then echo !!! Finished FAILED !!!
If sys$returncode=0 then L

  Listing 1. Command script for compiling !MyApp

=======================================

*| Command script for linking !MyApp
*|
if sys$returnCode = 0 then echo *** Linking !MyApp ***
if sys$returnCode = 0 then link -o !RunImage o.MyApp adfs::HardDisc4.$.CLib.o.Stubs adfs::HardDisc4.$.Cdir.RISC_OSLib.o.RISC_OSLib adfs::HardDisc4.$.Cdir.Func_Libs.o.FL1
if sys$ReturnCode=0 then Squeeze -v !RunImage
if sys$returncode=0 then sound 1 &FFF1 70 4 else sound 1 &FFF1 200 10
if sys$ReturnCode=0 then echo *** Finished OK ***
if sys$ReturnCode<>0 then echo !!! Finished FAILED !!!

  Listing 2. Command script for linking !MyApp

=======================================

run adfs::HardDisc4.!System
RMload adfs::HardDisc4.$.!System.Modules.Clib
RMload adfs::HardDisc4.$.!System.Modules.FPEmulator
DIR adfs::HardDisc4.$.Cdir.!MyApp
Desktop -FILE adfs::HardDisc4.$.Library.DeskStrtUp

  Listing 3. Part of C boot sequence

=======================================


*| >$.Library.DeskStrtup
*| must be a plain text file
*|
run adfs::HardDisc4.!DeskApps.!Dustbin
run adfs::HardDisc4.$.!Debug
run adfs::HardDisc4.$.!Edit adfs::HardDisc4.$.Cdir.!MyApp.C.MyApp
Filer_OpenDir adfs::HardDisc4.$.Cdir
Filer_OpenDir adfs::HardDisc4.$


  Listing 4. Second part of C boot sequence

=======================================
