add edges
here we draw the edges between the nodes.
we explicit that an object file (.o) is the result of the compilation of a source file (.c), and that when linking together .o files you produce an executable.
Here, we specify the graph, which will allow yamake to process the nodes in the right order.
What is actually performed to build the nodes (linking, compiling,…) is in the implementation of Ofile and Xfile, that implements yamake::model::GNode trait.
#![allow(unused)]
fn main() {
g.add_edge(main_c, main_o);
g.add_edge(main_o, app);
g.add_edge(add_c, add_o);
g.add_edge(add_o, project_a);
g.add_edge(project_a, app);
}
the scan will add new edges.