# ---------- Sallford FTN77 configuration ----------
# --- general --------------------------------------
# $P  - project name
# $Pp - path to project directory
# $Pn - project name
# --- compile --------------------------------------
# $I  - input full name
# $Ip - input path
# $In - input name
# $Ie - input extension
# $O  - output file
# $Op - path to output file
# $On - output filename (without path)
# $Oe - output extension
# $R  - release/debug setting for compiler
# --- build ----------------------------------------
# $T  - target full name
# $Tp - target path
# $Tn - target name
# $O  - output file
# $Op - path to output file
# $On - output filename (without path)
# $Oe - output extension
# $R  - release/debug setting for linker

[Settings]

Target = 
Category&01 = DEFAULT RUN CONFIGURATION
Working Directory =.
Command Line Arguments =
Category&02 = COMPILER OPTIONS
Ansi Standard = no|yes
Generate Listing = no|yes
Check DO Loop = no|yes
Double Real = no|yes
Two Bytes Integer = no|yes
Logical 2 = no|yes
Warnings = yes|no
Zeroise = no|yes
Compiler Options = 
Debug Options = debug|check|full check
Release Options = default|optimise|unsafe
Linker Options =
Debugger= sdbg
External Dependencies=yes|no

[SettingsInfo]

Target = Provides a space for you to specify an output file and location of the program that the linker creates.
Working Directory = Provides a space for you to specify the directory in which executing occurs. If you do not specify a directory, executing occurs in the directory where the executable is located.
Command Line Arguments = Provides a space for you to specify command-line arguments you want to pass to the program at startup.
Excluded Files = This will exclude the file(s) included in this UE project group from the build.
Generate Listing = This option generates a program listing on a given file.
Compiler Options = Provides a space for you to specify an additional compiler options.
Linker Options = Provides a space for you to specify an additional linker options.
Debugger=Provides a space for you to set the debugger you want to use to debug application.
External Dependencies=If you select "yes" option, UE Studio will generate in project group "External Dependencies" from included files.
Check DO Loop = Causes a run-time fail if zero-trip DO-loop is executed.
Double Real = This option specifies that FTN77 should treat all single precision (REAL) variables and constants as double precision (REAL*8).
Ansi Standard = This option ensures that all constructs used in a program conform to the ANSI Standard.
Two Bytes Integer = By default, every variable of type INTEGER will become INTEGER*4. If this option is set, every variable of type INTEGER will become INTEGER*2.
Logical 2 = By default, every variable of type LOGICAL will become LOGICAL*4. If this option is set, every variable of type LOGICAL will become LOGICAL*2.
Warnings = Suppresses warning and comment messages.
Zeroise = This option is used to set all static variables and arrays (that have not appeared in a DATA statement) to zero at the start of execution.

[SettingsReps]

External Dependencies=yes=1|no=0
Generate Listing = no=|yes=/LIST
Debug Options = debug=/DEBUG|check=/CHECK|full check=/FULLCHECK
Release Options = default=|optimise=/OPTIMISE|unsafe=/OPTIMISE /UNSAFE
Check DO Loop = no=|yes=/DOCHECK
Double Real = no=|yes=/DREAL
Ansi Standard = no=|yes=/ANSI
Two Bytes Integer = no=|yes=/INTS
Logical 2 = no=|yes=/LOGS
Warnings = yes=|no=/NO_WARNINGS
Zeroise = no=|yes=/ZEROISE

[Variables]

CPATH =C:\SALFORD
INCLUDE = $(CPATH)
COPTN = FTN77 /ERROR_NUMBERS $(Ansi Standard) $(Generate Listing) $(Check DO Loop) $(Double Real) $(Two Bytes Integer) $(Logical 2) $(Zeroise) $(Warnings)
LOPTN = SLINK -SUBSYSTEM:console $(Linker Options)

[Environment]

PATH = $(CPATH);%PATH%
SOURCEPATH=$(CPATH)\SOURCES

[General]

TargetExt = .EXE
ReleaseOut = Release
DebugOut = Debug
UseFullPaths = 0
UseDosNames = 0
Excludes = $(Excluded Files)
GenerateEDGroup=$(External Dependencies)

[MakeCommands]

run = Execute Application
debug=Start Debugger
makef=Show Makefile

[Execute Application]

Title = Execute $T
Cmd0 = $(Command Line Arguments)
Depends = $T
ShowWindow = 1
DisplayConsole = 1

[Start Debugger]
Title=Debug $T
Cmd0=$(Debugger) $T
Depends=$T
ShowWindow=1

[Show Makefile]
Title=Show makefile
Cmd0=uestudio $(UESMAKEFILE)
ShowWindow=1
DisplayConsole=0

[InsertFiles]

group0 = $(Libraries)

[FileGroups]

FGO = .obj;

[Build]

Out = $T
Depends = $FGO
ReleaseFlag = -DEBUG:FULL
DebugFlag = -DEBUG:NONE
Cmd0 = $(LOPTN) $R -OUT:$T $FGO

[.FOR]

Out = $In.obj
ReleaseFlag = $(Release Options)
DebugFlag = $(Debug Options)
Cmd0 = $(COPTN) $R /BINARY $O $I
