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

Method generateObjectsRules

tools/mcconfig.js:181–194  ·  view source on GitHub ↗
(tool)

Source from the content-addressed store, hash-verified

179 this.line("");
180 }
181 generateObjectsRules(tool) {
182 for (var result of tool.cFiles) {
183 var source = result.source;
184 var target = result.target;
185 this.line("$(TMP_DIR)/", target, ": ", source, " $(HEADERS) | $(TMP_DIR)/mc.xs.c");
186 if (result.recipe) {
187 this.write(tool.recipes[result.recipe]);
188 }
189 else {
190 this.echo(tool, "cc ", target);
191 this.line("\t$(CC) $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) $< -o $@");
192 }
193 }
194 }
195}
196
197class ZephyrMakeFile extends MAKEFILE {

Callers

nothing calls this directly

Calls 3

echoMethod · 0.95
writeMethod · 0.65
lineMethod · 0.45

Tested by

no test coverage detected