|
21 | 21 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
22 | 22 | xsi:schemaLocation="http://crownking/mplab mplab/languageToolchain.xsd"
|
23 | 23 | mp:id="SDCC"
|
24 |
| - mp:name="SDCC Toolchain" |
| 24 | + mp:name="SDCC Compiler" |
25 | 25 | mp:hostplatforms="windows,linux,mac,none"
|
26 | 26 | mp:class="org.laczik.toolchainSDCC.SDCCtoolchain">
|
27 | 27 |
|
28 | 28 | <mp:versionProvider mp:class="org.laczik.toolchainSDCC.SDCCVersionProvider"/>
|
29 | 29 |
|
30 |
| - <mp:configurationObject mp:id="sdcc-config" mp:idref="sdcc-config" opt:src="sdcc.optionLanguage.xml" opt:runtimepropertiesclass="org.laczik.toolchainSDCC.SDCCRuntimeProperties"/> |
| 30 | + <mp:configurationObject mp:id="sdcc-config" mp:idref="SDCC" opt:src="sdcc.optionLanguage.xml" opt:runtimepropertiesclass="org.laczik.toolchainSDCC.SDCCRuntimeProperties"/> |
31 | 31 |
|
32 |
| - <mp:customizerNode mp:idref="SDCC" mp:name="SDCC Toolchain"> |
33 |
| - <mp:customizerNode mp:idref="sdcc-config" mp:name="SDCC Compiler" mp:class="org.laczik.toolchainSDCC.SDCCCustomizerNode"/> |
34 |
| - </mp:customizerNode> |
| 32 | + <mp:customizerNode mp:idref="sdcc-config" mp:name="SDCC Compiler" mp:class="org.laczik.toolchainSDCC.SDCCCustomizerNode"/> |
35 | 33 |
|
36 | 34 | <mp:makefileWriter>
|
37 | 35 | <mp:inputToOutputExtensionMap mp:src="c" mp:dst="o"/>
|
38 | 36 | <mp:inputToOutputExtensionMap mp:src="C" mp:dst="o"/>
|
39 |
| - <mp:build mp:buildtype="standalone" mp:debuggableextension="cof"> |
40 |
| - <mp:outputFilenameSuffixProvider mp:class="org.laczik.toolchainSDCC.SDCCOutputFilenameSuffixProvider"/> |
| 37 | + <mp:build mp:buildtype="standalone" mp:outputextension="hex" mp:debuggableextension="cof"> |
| 38 | + <!--mp:outputFilenameSuffixProvider mp:class="org.laczik.toolchainSDCC.SDCCOutputFilenameSuffixProvider"/--> |
41 | 39 | <mp:buildStep mp:idref="compile"/>
|
42 | 40 | <mp:buildStep mp:idref="link"/>
|
43 | 41 | </mp:build>
|
44 | 42 | <mp:makeRule mp:id="compile" mp:prerequisites=".*[cC]$" mp:runtimepropertiesclass="org.laczik.toolchainSDCC.SDCCCompilerProperties">
|
45 | 43 | <!-- this following line makes sure the directory where we will compile exists -->
|
46 |
| - <mp:textEmitter mp:text="${MKDIR} ${CURRENT_OBJECT_DIR} ${NEWLINE}"/> |
| 44 | + <mp:textEmitter mp:text="${MKDIR} ${CURRENT_QUOTED_IF_SPACED_OBJECT_DIR_UNIX_SLASHES} ${NEWLINE}"/> |
47 | 45 | <!-- this following line erases the dependency files created in the last compiler -->
|
48 |
| - <mp:textEmitter mp:text="${RM} ${CURRENT_OBJECT_FILE} ${NEWLINE}"/> |
| 46 | + <mp:textEmitter mp:text="${RM} ${CURRENT_QUOTED_IF_SPACED_OBJECT_FILE} ${NEWLINE}"/> |
49 | 47 | <!-- this is the beginning of the compiler line -->
|
50 | 48 | <mp:textEmitter mp:text="${MP_CC} "/>
|
51 | 49 | <mp:optionEmitter mp:idref="sdcc-config" mp:separator=" "/>
|
52 | 50 | <mp:textEmitter mp:onlydebug="true" mp:text=" --debug"/>
|
53 | 51 | <mp:textEmitter mp:text=" -c"/>
|
54 | 52 | <mp:textEmitter mp:text=" -m${PROCESSOR_FAMILY}"/>
|
55 | 53 | <mp:textEmitter mp:text=" -p${PROCESSOR_NAME}"/>
|
56 |
| - <mp:textEmitter mp:text=" ${CURRENT_SOURCE_FILE} "/> |
57 |
| - <mp:textEmitter mp:text=" -o${CURRENT_OBJECT_FILE}"/> |
| 54 | + <mp:textEmitter mp:text=" ${CURRENT_QUOTED_IF_SPACED_SOURCE_FILE} "/> |
| 55 | + <mp:textEmitter mp:text=" -o${CURRENT_QUOTED_IF_SPACED_OBJECT_FILE}"/> |
58 | 56 | <mp:textEmitter mp:text="${NEWLINE}"/>
|
59 | 57 | </mp:makeRule>
|
60 | 58 |
|
|
65 | 63 | <mp:optionEmitter mp:idref="sdcc-config" mp:separator=" "/>
|
66 | 64 | <mp:textEmitter mp:text=" -m${PROCESSOR_FAMILY}"/>
|
67 | 65 | <mp:textEmitter mp:text=" -p${PROCESSOR_NAME}"/>
|
68 |
| - <mp:textEmitter mp:text=" ${CURRENT_OBJECT_FILES}" mp:separator=" "/> |
| 66 | + <mp:textEmitter mp:text=" ${CURRENT_QUOTED_IF_SPACED_OBJECT_FILES}" mp:separator=" "/> |
69 | 67 | <mp:textEmitter mp:text=" -o${FINAL_IMAGE_NAME} "/>
|
70 | 68 | </mp:makeRule>
|
71 | 69 | </mp:makefileWriter>
|
|
81 | 79 | <mp:defaultLocation mp:hostplatform="mac" mp:dir="/*SDCC/bin"/>
|
82 | 80 |
|
83 | 81 |
|
84 |
| - <mp:cCompiler mp:file="sdcc" mp:name="SDCC Compiler for 8-bit Devices"> |
| 82 | + <mp:cCompiler mp:file="SDCC" mp:name="SDCC Compiler for 8-bit Devices"> |
85 | 83 | <mp:versionProvider mp:class="org.laczik.toolchainSDCC.SDCCVersionProvider"/>
|
86 | 84 | <mp:builtinProvider mp:class="org.laczik.toolchainSDCC.SDCCBuiltinProvider"/>
|
87 | 85 | <mp:systemIncludeProvider mp:class="org.laczik.toolchainSDCC.SDCCSystemIncludeProvider"/>
|
|
0 commit comments