The main idea is that I have 3 slaves and each one execute a file and the master generate the make file , I need your help to know what are the libraries that I should use, and how can I detect the end of calculation of each process. Thanks.</div
Since this is a school assignment, I'm going to advise only on the choice of libraries.
So you need to execute remote commands and transfer data, this either requires starting a daemon on the remotes or leveraging an already running daemon. I think the latter is a better choice here, so you could use something like the libssh with keys for both transfer and command execution.
Then you need to analyze the dependencies between the rules, and execute the commands via the library in the right order (and degree of parallelism).</div