# ---------- PICC Microchip 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
Processor = 12F629|12F675|16C84|16F627|16F84A|16F84|16F877A|16F877
Float = 24 bit|32 bit
Output = Bytecraft COD|American Auto symbolic HEX|Binary Image|Intel HEX|Motorola S1/S9 HEX|Tektronix HEX|UBROF
Asm List = no|yes
Listing = no|yes
Printf = default|longs|longs and floats
Identifier Length = 32
String Optimizations = enable|disable
Generate Prototypes = no|yes
Char Type = unsigned|signed
Warning Level = 0|-9|-8|-7|-6|-5|-4|-3|-2|-1|1|2|3|4|5|6|7|8|9
Optimization = 1|2|3|4|5|6|7|8|9
Libraries = 

Compiler Options = 
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.
Command Line Arguments = Provides a space for you to specify command-line arguments you want to pass to the program at startup.
Processor = This option defines the processor which is being used.
Asm List = This option tells PICL to generate an assembler .LST file for each compilation.
Float = This option causing the use of truncated 24-bit floating point format or the IEEE754 32-bit floating point format for doubles.
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.
Listing = This option will produce a cross reference listing.
Printf = For Midrange and High-End processors, you can use a version of printf() and related functions which, in addition to supporting the printing of integers, can support printing of long integers or floats.
Identifier Length = This option allows the C identifier length to be increased to 255.
String Optimizations = This option can disable string packing optimizations. Use "disable" option if the emulator or debugging environment you are using does not support processors which can read their own program memory.
Generate Prototypes =  Generate .PRO files containing both ANSI and K&R style function declarations for all functions within the specified source files.
Char Type = This option will make the default char type signed char. Any unsigned char will have to be explicitly declared unsigned char.
Warning Level = Provides a space for you to set the compiler warning level. Allowable warning levels range from -9 to 9.
Optimization = Global Optimization can result in significant reductions to code size and internal RAM usage.
Debugger=Provides a space for you to set the debugger you want to use to debug application.

[SettingsReps]

Asm List = no=|yes=-ASMLIST
Float = 24 bit=-D24|32 bit=-D32
Output = Bytecraft COD=|American Auto symbolic HEX=-AAHEX|Binary Image=-BIN|Intel HEX=-INTEL|Motorola S1/S9 HEX=-MOT|Tektronix HEX=-TEK|UBROF=-UBROF
Listing = no=|yes=-CR$P.crf
Printf = default=|longs=-Ll|longs and floats=-Lf
String Optimizations = enable=|disable=-NO_STRING_PACK
Generate Prototypes = no=|yes=-PROTO
Char Type = unsigned=|signed=-SIGNED_CHAR

[Variables]

COPT = -q -$(Processor) $(Asm List) $(Float) $(Output) -N$(Identifier Length) $(Generate Prototypes) $(Char Type) -W$(Warning Level)
LOPT = -q $(Printf) -$(Processor) $(Output)

[Environment]

PATH = %HTL_PIC%\BIN
INC = %HTL_PIC%\INCLUDE
LIB = %HTL_PIC%\LIB
HTC_WARN_FORMAT = %%f (%%l) warning: %%s
HTC_ERR_FORMAT = %%f (%%l) error: %%s

[General]

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

.AS = .C

[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

[InsertFiles]

group0 = $(Libraries)

[FileGroups]

FGO = .obj;
FGL = .lib;

[Build]

Out = $T
Depends = $FGO
Cmd0 = PICL $(Linker Options) $(LOPT) $R -O$O $FGO $FGL

[.C]

Out = $In.obj
ReleaseFlag = -O -X -Zg$(Optimization)
Cmd0 = PICL -C $(COPT) $(Compiler Options) $R -O$O $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
