# ---------- COBOL Compiler 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
Compiler Options = 
Category&03 = LINKER OPTIONS
Link With = LCOBOL|COBLIB
Link For = DOS|OS2|WINDOWS|DUAL
Link in SysPrg = no|yes
Gfx Application = no|yes
Map File = no|yes
Linker Options = 
Libraries = 
Debugger = 

[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.
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.

[SettingsReps]

Link With = LCOBOL=L|COBLIB=C
Link For = DOS=R|OS2=P|WINDOWS=W|DUAL=U
Link in SysPrg = yes=|no=S
Gfx Application = no=|yes=G
Map File = no=|yes=M

[Variables]

CPATH =C:\COBOL
COPT = $(Compiler Options)
LOPT = -X:$(Link With)$(Link For)$(Link in SysPrg)$(Gfx Application)$(Map File)$(Linker Options)

[Environment]

PATH = $(CPATH);$(CPATH)\BIN;%PATH%
INCLUDE = $(CPATH)\INCLUDE
LIB = $(CPATH)\LIB

[General]

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

[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;
FGL = .lib;

[GroupFormats]

FGO = %s
FGL = %s

[Build]

Out = $T
Depends = $FGO
Cmd0 = COB $(LOPT) -O$O $FGO $FGL

[.CBL]

Out = $In.obj
DebugFlag = 
ReleaseFlag = 
Cmd0 = COBOL $I,$O,$R $(COPT)
