# ------------ MPLAB C18 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 =.
Category&02 = COMPILER OPTIONS
Unsigned Char = no|yes
Large Stack = no|yes
Mem Model = small|large
Default Static Locals = no|yes
Default Overlay Locals = no|yes
Procedural Abstraction Repeat Count =
Preprocessor = 
Macros = 
Warning Level = 2|1|3
Suppress Messages =
Verbose = no|yes
Mode Code = Default|Extended|Non-Extended
Message List = no|yes
Additional Include Directories =
Excluded Files = Excludes
Compiler Options =
Linker Command File = 18c242
Linker Options =
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.
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.
Unsigned Char = Set plain char type to unsigned char
Large Stack = Large stack (can span multiple banks)
Default Static Locals = Enable default static locals. Valid for Non-Extended mode only.
Default Overlay Locals = Enable default overlay locals (statically allocate activation records). Valid for Non-Extended mode only.
Procedural Abstraction Repeat Count = Set procedural abstraction repeat count (default = 4)
Preprocessor = Set processor (default is generic)
Macros = Define macros, separate with semi-colon.
Warning Level = Set warning level (default = 2).
Suppress Messages = Write here message numbers you want to suppress. separate with semi-colon.
Verbose = Operate verbosely (show banner and other information).
Mode Code = Generate (Non-)Extended mode code.
Message List = Display a list of all diagnostic messages.

[SettingsReps]
Additional Include Directories=^@[;| -I=%s]
Linker Command File = @$(LKR)\%s.lkr
Unsigned Char = no=|yes=-k
Large Stack = no=|yes=-ls
Mem Model = small=-ms|large=-ml
Default Static Locals = no=|yes=-scs
Default Overlay Locals = no=|yes=-sco
Procedural Abstraction Repeat Count = @-pa=%s
Preprocessor = @-p=%s
Macros = @[;| /D%s]
Warning Level = @-w=%s
Suppress Messages = @[;| -nw=%s]
Verbose = no=|yes=-verbose
Mode Code = Default=|Extended=--extended|Non-Extended=--no-extended
Message List = no=|yes=--help-message-list

[Variables]

CPATH = C:\MCC18
LKR = $(CPATH)\LKR

COPT = $(Unsigned Char) $(Large Stack) $(Mem Model) $(Default Static Locals) $(Default Overlay Locals) $(Procedural Abstraction Repeat Count) $(Preprocessor) $(Macros) $(Warning Level) $(Suppress Messages) $(Verbose) $(Mode Code) $(Message List) $(Compiler Options) $(Additional Include Directories)
LOPT = $(Linker Command File) $(Linker Options) /l $(CPATH)\LIB

[Environment]
PATH = $(CPATH)\BIN;%PATH%
MCC_INCLUDE = $(CPATH)\H;%INCLUDE%

[General]

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

[MakeCommands]

debug=Start Debugger
makef=Show Makefile

[InsertFiles]

[FileGroups]

FGO = .o;

[GroupFormats]

FGO = %s

[Build]

Out = $T
Depends = $FGO
Cmd0 =  MPLINK $(LOPT) $R $FGO

[.C]

Out = $In.o
DebugFlag = -O-
ReleaseFlag = -O
Cmd0 = MCC18 -fo=$O $(COPT) $R $I

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

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