# ----------- Microchip C 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
Memory Model = s|l
Linker Script = 
Compiler = MCC18
Linker = MPLINK
Excluded Files = Excludes
Compiler Options = -Opa-
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.
Memory Model = s-small, l-large.
Debugger=Provides a space for you to set the debugger you want to use to debug application.

[Variables]

CPATH =C:\MCC
MCC = $(CPATH)\BIN\$(Compiler)
MCL = $(CPATH)\BIN\$(Linker)
LINKSCRIPT = $(MCC)\LKR\$(Linker Script)
UPLOADER = Z16080Upload.exe

[Environment]

[General]

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

[MakeCommands]

upload = Upload Application
debug=Start Debugger
makef=Show Makefile

[Upload Application]

Title = Upload $T
Cmd0 = $(UPLOADER) $T
Depends = $T
ShowWindow = 1
DisplayConsole = 1

[InsertFiles]

[FileGroups]

FGO = .o;

[GroupFormats]

FGO = %s

[Build]

Out = $T
Depends = $FGO
Cmd0 = $(MCL)\MPLINK $(Linker Options) /m $On.map /o $O /l $(MCC)\lib $(LINKSCRIPT) $FGO

[.C]

Out = $In.o
ReleaseFlag = -O
Cmd0 = $(MCC)\BIN\$(Compiler) -w2 -m$(Memory Model) -p=18C252 -i$(MCC)\H $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
