MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / generateObjectsRules

Method generateObjectsRules

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

Source from the content-addressed store, hash-verified

470 super(path)
471 }
472 generateObjectsRules(tool) {
473 for (var result of tool.cFiles) {
474 var source = result.source;
475 var target = result.target;
476 this.line("$(TMP_DIR)\\", target, ": ", source, " $(HEADERS)");
477 if (result.recipe) {
478 var recipe = tool.recipes[result.recipe];
479 recipe = recipe.replace(/\$</g, source);
480 this.write(recipe);
481 }
482 else {
483 this.echo(tool, "cc ", target);
484 this.line("\t$(CC) $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) ", source, " -o $@");
485 }
486 }
487 }
488}
489
490class SynergyNMakeFile extends NMakeFile {

Callers

nothing calls this directly

Calls 4

replaceMethod · 0.80
echoMethod · 0.80
writeMethod · 0.65
lineMethod · 0.45

Tested by

no test coverage detected