# ----------- KPIT GNUSH 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]

Version = v0302
Objects = COFF
Target = 
Category&01 = DEFAULT RUN CONFIGURATION
Working Directory =.
Command Line Arguments =
Category&02 = COMPILER OPTIONS
CPU flag = -m2|-m1|-m2e|-m3|-m3e|-m4-nofpu|-m4-single-only|-m4-single|-m4
Compiler = gcc|g++
Libraries = 
Excluded Files = Excludes
Compiler Options = 
Linker Options =
Debugger=gdb
External Dependencies=yes|no

[SettingsInfo]
Version = Provides a space for you to specify an version of compiler you want to use. 
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.
Libraries = Provides a space for you to specify an object file or standard library (either static or import) to pass to the linker. Separate file names with a space.
Excluded Files = This will exclude the file(s) included in this UE project group from the build.
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.
CPU flag = SH Options.
External Dependencies=If you select "yes" option, UE Studio will generate in project group "External Dependencies" from included files.

[SettingsReps]
External Dependencies=yes=1|no=0

[Variables]

CPATH = $(HKEY_LOCAL_MACHINE\SOFTWARE$6432\kpit\GNUSH $(Version)-$(Objects)\Path)\sh-$(Objects)
COPT = -c $(Compiler Options) $(CPU flag)
LOPT = $(Linker Options)
PREFIX = SH-$(Objects)

[Environment]

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

[General]

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

.CPP = .C
.CXX = .C
.CC = .C
.S = .C
.F = .C
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]

Cmd0 =$(PREFIX)-$(Debugger) $T
Depends =$T
ShowWindow =1
DisplayConsole = 1
Title=Debug $T

[InsertFiles]

group0 = $(Libraries)

[FileGroups]

FGO = .o;
FGL = .a;
FGI = .lnk;

[GroupFormats]

FGO = %s
FGL = %s
FGI = -T%s

[Build]

Out = $T
Depends = $FGO
ReleaseFlag = -s
DebugFlag =
Cmd0 = $(PREFIX)-$(Compiler) $(LOPT) $R -o $T $FGI $FGO $FGL

[.C]

Out = $In.o
ReleaseFlag = $(Optimize)
DebugFlag = -g
Cmd0 = $(PREFIX)-$(Compiler) $(COPT) -o $O $I

IncFiles = 1
CaseSensitive = 1
IncDirs = .;$(INCLUDE);
IncKeyWords = #include;
Comments = /*.*/.//.eol.
[Show Makefile]
Title=Show makefile
Cmd0=uestudio $(UESMAKEFILE)
ShowWindow=1
DisplayConsole=0
