| !Run file for the GCCSDK
| Copyright (c) Nick Burrett, 1996, 1997, 1998, 1999, 2001
| Copyright (c) GCCSDK Development Team 2002, 2003, 2004
| Version 1.11 (12 April 2004)

| This is a modified version of the !Run supplied in standard !gcc.
| Modifications to suit the minimal setup for running GNU Fortran.
| David Crennell: November 2004.

Set GCC$Dir <Obey$Dir>

| Search path used for the compiler binaries
If "<GCCbin$Path>" = "" Then Set Run$Path <Run$Path>,GCCbin:
Set GCCbin$Path <GCC$Dir>.bin.
Set g77lib$path <GCC$Dir>.bin.o.

| Search path used for the compiler headers and libraries.
Set GCCpkg$Path <GCC$Dir>.
Set GCCsys$Path <GCC$Dir>.sys.
Set GCClcl$Path <GCC$Dir>.local.

| Set the return code limit. Unixlib encodes information within this range
Set Sys$RCLimit 65536

| Place to store temporary files
If "<UnixFS$/tmp>" = "" Then Set UnixFS$/tmp <Wimp$ScrapDir>

| Ensure correct filename translation for a variety of prefixes
Set UnixEnv$gcc$sfix "f:for:F:fpp:cc:cxx:cpp:c++:C:ii:rpo:ads:adb:ada:c:m:h:i:s:S:ali:adc:xrb:xrs:l:o:p:pas:ph:gpi:gpc:y"
Set UnixEnv$cc1$sfix <UnixEnv$gcc$sfix>
Set UnixEnv$cc1plus$sfix <UnixEnv$gcc$sfix>
Set UnixEnv$cpp$sfix <UnixEnv$gcc$sfix>
Set UnixEnv$g++$sfix <UnixEnv$gcc$sfix>
Set UnixEnv$g77$sfix <UnixEnv$gcc$sfix>
Set UnixEnv$f771$sfix <UnixEnv$gcc$sfix>
Set UnixEnv$gcov$sfix <UnixEnv$gcc$sfix>
Set UnixEnv$as$sfix "h:S:s:o"

| Uncomment these if you have a RiscPC and wish to use dynamic areas
Set gcc$heap ""


| For Fortran 77
Set g77$heap ""


| For the assembler
Set as$heap ""

| Used for extended command lines
| Initially, we look in !System for the DDEUtils module supplied by Acorn
| If not present, then we will load the DDEUtilsCy version.
|RMEnsure DDEUtils 0.02 Run <GCC$Dir>.Support.DDEUtilsCy.IFExist System:Modules.DDEUtils Then RMLoad System:Modules.DDEUtils
|RMEnsure DDEUtils 0.01 RMRun <GCC$Dir>.Support.DDEUtilsCy.DDEUtilsCy
|RMEnsure DDEUtils 0.01 %Obey -c <GCC$Dir>.Support.DDEUtilsCy.InitDDECy

RMEnsure UtilityModule 3.10 Obey
| Details specific to RISC OS 3.10 and above
RMEnsure UtilityModule 3.70 RMEnsure CallASWI 0.01 RMLoad System:Modules.CallASWI

RMEnsure SharedUnixLibrary 1.09 RMLoad <GCC$Dir>.Modules.SharedUlib
RMEnsure SharedCLibrary 5.47 RMLoad <GCC$Dir>.Modules.Clib
RMEnsure DigitalRenderer 0.52 RMLoad <GCC$Dir>.Modules.DRenderer

| KMC copied the next 2 lines from the !run for sept96 version
dir <Obey$Dir>.myprogs
filer_opendir <Obey$Dir>.myprogs