MCPcopy Index your code
hub / github.com/Moddable-OpenSource/moddable / generateObjectsRules

Method generateObjectsRules

tools/mcrun.js:129–148  ·  view source on GitHub ↗
(tool)

Source from the content-addressed store, hash-verified

127 }
128 }
129 generateObjectsRules(tool) {
130 if (tool.windows) {
131 for (var result of tool.cFiles) {
132 var source = result.source;
133 var target = result.target;
134 this.line("$(TMP_DIR)\\", target, ": ", source);
135 this.echo(tool, "cl ", target);
136 this.line("\tcl $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) ", source, " /Fo$@");
137 }
138 }
139 else {
140 for (var result of tool.cFiles) {
141 var source = result.source;
142 var target = result.target;
143 this.line("$(TMP_DIR)/", target, ": ", source);
144 this.echo(tool, "cc ", target);
145 this.line("\t$(CC) $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) $< -o $@");
146 }
147 }
148 }
149}
150
151class ToDoFile extends FILE {

Callers

nothing calls this directly

Calls 2

echoMethod · 0.95
lineMethod · 0.45

Tested by

no test coverage detected